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BACNC,SAAU,uCACVC,KAAK,EACLC,MAAO,oBACPC,KAAM,2BAEP,CACC3B,MAAO,CAAC,2BACRuB,KAAM,0BACNC,SAAU,2CACVC,IAAKL,EACLM,MAAO,eACPC,KAAM,0BACNC,SAAU,CACTC,WAAW,EACXG,YAAa,aACbC,mBAAoB,YACpBC,iBAAkB,UAClBE,wBAAyB,CACxB,iBAAkB,aAEnBC,SAAU,CACT,CACCX,MAAO,eACPC,KAAM,+BAOXf,EAAOiC,IAAIxB,GACXT,EAAOkC,cAAc,oBACrBzG,KAAKwB,OAASA,CACf,GA3uBc,EAAA+B,WAAoB,EA7IlC,IAAC,IAAAmD,cAAa,c,iFAVF5G,EAAG,KADf,EAAA6G,W,uBAsB+B,IAA2B,EAAAC,gBAAqC,IAA0C,OArB7H9G,E","sources":["webpack://client-app/./src/app/aox/aox.html","webpack://client-app/./src/app/aox/aox.ts"],"sourcesContent":["module.exports = \"\\r\\n\";","import {DeviceService} from 'app/services/device-service';\r\nimport {ObjectListManager} from 'app/services/object-list/object-list-manager';\r\nimport {AppContextService} from 'app/services/app-context-service';\r\nimport {EventAggregator, Subscription} from 'aurelia-event-aggregator';\r\nimport {autoinject, computedFrom} from 'aurelia-framework';\r\nimport {PLATFORM} from 'aurelia-pal';\r\nimport {activationStrategy, Router, RouterConfiguration} from 'aurelia-router'; // and RouteConfig.\r\nimport {ApiClient} from 'app/services/api-client';\r\nimport {RequestErrorHandling} from 'app/services/RequestErrorHandling';\r\nimport {RequestMethod} from 'app/services/RequestMethod';\r\n\r\nimport * as environment from '../../../config/environment.json';\r\nimport {UserDto} from '../models/user-administration-dtos';\r\nimport {ProjectDto} from 'app/models/project-dto';\r\nimport {MenuAccessLevel, RouteConfig_Root} from './RouteTypings_Ajour';\r\nimport {ProjectInvitationDto} from 'app/models/project-invitation-dto';\r\nimport {EnsureUserSignedInStep} from \"shell/EnsureUserSignedInStep\";\r\n\r\n@autoinject\r\nexport class AOX {\r\n\t// AOX belongs to routes.root (see routes.ts).\r\n\t// Why is it being triggered on login?\r\n\r\n\tpublic objects: ObjectListManager | undefined;\r\n\tpublic router: Router | undefined;\r\n\r\n\tprivate _isLoading: boolean = false;\r\n\tprivate projectInvitationClosed: boolean = false;\r\n\t// public isLoading: boolean;\r\n\t@computedFrom('_isLoading')\r\n\tpublic get isLoading() {\r\n return this._isLoading;\r\n // return this.loadingCount > 0;\r\n }\r\n\tprivate loadingCount = 0;\r\n\t\r\n\tpublic navCollapsed: boolean = false;\r\n\tpublic showOverlay: boolean = false;\r\n\tprivate subscriptions: Subscription[] = [];\r\n\r\n\tconstructor(private apiClient: ApiClient, private events: EventAggregator, private appContext: AppContextService, private deviceService: DeviceService) {\r\n\t\t// console.trace('AOX ctor');\r\n\t\tthis.setDeviceTypeAttribute();\r\n\t}\r\n\r\n\tasync activate() {\r\n\t\tthis.checkRouting();\r\n\r\n\t\t// we should not trigger this, if we are trying to log in!\r\n\r\n\t\t/* The earlier/newest broken situation we had,\r\n\t\twas that collab login dialog displayed correctly on screen/UI,\r\n\t\tbut in the log, this was executing and failing at the same time.\r\n\r\n\t\tI have now removed the 'exception eater' from the broken-getCurrentUser attempt.\r\n\t\tOn the one hand, this should stop the cascade of errors happening here.\r\n\t\tOn the other hand, it might interfere with whether the login-view would be rendered the way it used to.\r\n\t\tWhatever, we should proceeed to 'the next error situation'.\r\n\r\n\t\tOne third idea/possibility, would be that AOX should \r\n\t\tjust 'SILENTLY' bail out when getCurrentUser fails.\r\n\t\tThat way, OTOH, we won't trip up aurealia's lifecycle,\r\n\t\tbut OTOH avoid the broken calls to getProjects/getInvites.\r\n\t\tWith 'SILENTLY', I mean it should still console-log its decision,\r\n\t\tbut not report an exception back to aurelia.\r\n\t\tLet's see what happens.\r\n\t\t */\r\n\r\n\t\t// It is important that is is allowed to fail, so aurelia can give up/stop.\r\n\t\tawait this.RETRIEVE_currentUser_allowToFail(); // Det her fejler ved reload. // in AOX,activate\r\n\r\n\t\ttry {\r\n\t\t\tawait this.getProjects();//activate\r\n\t\t\tawait this.getProjectInvitations();\r\n\t\t} catch (s) {\r\n\t\t\tconsole.trace('in exception handler in aox.ts.activate',s);\r\n\t\t}\r\n\t}\r\n\r\n\tcheckRouting() {\r\n\t\t// this aloggedIn bool is bullshit, it just reacts to PRESENCE of token, not validity of it.\r\n\t\tlet loggedIn = EnsureUserSignedInStep.isLoggedIn('act');\t\t\r\n\t\tconsole.log('AOX activate, is loggedIn?', loggedIn);\r\n\r\n\t\t// we want to figure out how to recognize\r\n\t\t// when we arrive here during a login.\r\n\t\tconst router = this.router;\r\n\t\tconst curIns = router?.currentInstruction;\r\n\t\tconst navModels = router?.navigation;\r\n\t\tconsole.log('AOX.activate, curIns:', curIns);\r\n\t\tconsole.log('AOX.activate, navModels:', navModels);\r\n\t}\r\n\r\n\tattached() {\r\n\t\tthis.subscriptions = [\r\n\t\t\tthis.events.subscribe(\"project-created\", () => { this.getProjects() }),//project-created\r\n\t\t\tthis.events.subscribe(\"project-updated\", () => { this.getProjects() }),//project-updated\r\n\t\t\tthis.events.subscribe(\"project-archived\", () => { this.getProjects() }),//project-archived\r\n\t\t\tthis.events.subscribe(\"project-restored\", () => { this.getProjects() }),//project-restored\r\n\t\t\tthis.events.subscribe(\"project-invitation-accepted\", () => { this.getProjects(); this.getProjectInvitations();}),//project-invitation-accepted\r\n\t\t\tthis.events.subscribe(\"project-invitation-rejected\", () => { this.getProjectInvitations() }),\r\n\r\n\t\t\tthis.events.subscribe(\"is-loading\", (data: boolean) => { \r\n\t\t\t\tthis.toggleIsLoading(data);\r\n\t\t\t}),\r\n\r\n\t\t\tthis.events.subscribe(\"nav-collapsed\", (payload: any) => { this.navCollapsed = payload }),\r\n\t\t\tthis.events.subscribe(\"show-overlay\", (payload: any) => { this.showOverlay = payload }),\r\n\t\t\tthis.events.subscribe(\"router:navigation:complete\", () => this.showOverlay = false),\r\n\t\t\tthis.events.subscribe(\"remove-invitation-alert\", () => this.projectInvitationClosed = true)\r\n\t\t];\r\n\t}\r\n\r\n\ttoggleIsLoading(data: boolean) {\r\n\t\t//console.log(`isLoading, ${this.isLoading} => ${data}`);\r\n\t\tthis.booleanToggle(data);\r\n\t}\r\n\r\n\tbooleanToggle(data: boolean) {\r\n\t\tthis._isLoading = data;\r\n\t}\r\n\r\n\tcountToggle(data: boolean) {\r\n\t\tthis.loadingCount += (data ? 1 : -1);\r\n\t}\r\n\r\n\tdeactivate() {\r\n\t\tthis.subscriptions.forEach(subscription => (\r\n\t\t\tsubscription.dispose()\r\n\t\t));\r\n\t}\r\n\r\n\tremoveOverlay() {\r\n\t\tthis.events.publish('overlay:clicked');\r\n\t}\r\n\r\n\tprivate setDeviceTypeAttribute() {\r\n\t\tdocument.querySelector('html')?.setAttribute('data-device-type', this.deviceService.getDeviceType());\r\n\t}\r\n\r\n\tprivate async getProjects(): Promise {\r\n\t\tconst hasSignedIn_User:boolean = !!this.appContext.currentUser;\r\n\r\n\t\tconsole.log('aox.getProjects, hasUser?', hasSignedIn_User);\r\n\t\tlet prjs:ProjectDto[] = [];\r\n\t\tif (hasSignedIn_User) {\r\n\t\t\tprjs = await this.apiClient.global.get('Project/GetProjects_MovedFROMSystem').jsonResult(); \r\n\t\t} else {\r\n\t\t\tconsole.warn('(AOX.getProjects sets EMPTY, as no signed in user.)');\r\n\t\t}\r\n\t\tthis.appContext.setProjects(prjs);\r\n\t\tthis.events.publish('finished-getting-projects')\r\n\t}\r\n\r\n\tprivate async getProjectInvitations(): Promise {\r\n\t\tconst hasSignedIn_User:boolean = !!this.appContext.currentUser;\r\n\t\tconsole.log('AOX.getProjectInvitations, has-user?', hasSignedIn_User);\r\n\r\n\t\tlet data:ProjectInvitationDto[] = [];\r\n\r\n\t\tlet path = AOX.useNewAPI ? 'UserInfo/GetUserProjectInvitations'\r\n\t\t\t\t\t\t\t : 'Project/GetUserProjectInvitations';\t\t\t\t\t\t\t \r\n\t\tif (hasSignedIn_User) {\t\t\r\n\t\t\tdata = await this.apiClient.global.get(path).jsonResult();\r\n\t\t} else {\r\n\t\t\tconsole.warn('(AOX.getProjectInvitations sets EMPTY, as no signed in user.)');\r\n\t\t}\r\n\t\tthis.appContext.setProjectInvitations(data);\r\n\t}\r\n\r\n\tpublic static useNewAPI:boolean = true;\r\n\r\n\tprivate async RETRIEVE_currentUser_allowToFail(): Promise { // called from AOX.activate.\r\n\t\t// Important: No try-catch here!\r\n\t\t// If this fails, it must be allowed to fail!\r\n\r\n\t\tlet global_requestMethod:RequestMethod = this.apiClient.global;\r\n\t\tconsole.log('getCurrentUser, route-api-url is:', global_requestMethod.request.route);\r\n\r\n\t\tlet path = AOX.useNewAPI ? 'UserInfo/GetCurrentUser'\r\n\t\t\t\t\t\t\t\t: 'UserAdministration/GetCurrentUser';\r\n\r\n\t\tlet requestHandler:RequestErrorHandling = global_requestMethod.get(path);\r\n\r\n\t\tlet curUser:UserDto|undefined = await requestHandler.jsonResult(); // den her skal ha lov at fejle!\r\n\r\n\t\t// fixme, here we should react if response is NOT a userDto!\r\n\t\tconsole.log('get-set-curUser:', curUser);\r\n\t\tif (!curUser) { console.trace('no curUser in attempt to call api GetCurrentUser'); }\r\n\t\tconsole.log('..User org:', curUser?.organization);\r\n\t\tthis.appContext.setCurrentUser(curUser);\r\n\t}\r\n\r\n\tcheckHeaders() {\r\n\t\tlet headers: any = this.apiClient.global.request.headers;\r\n\t\tconsole.log('GCU, #headers:', Object.keys(headers).length);\r\n\t\tObject.keys(headers).forEach(\r\n\t\t\tx => {\r\n\t\t\t\tconsole.log('GCU, headers:',x, headers[x])\r\n\t\t\t} \r\n\t\t);\r\n\t}\r\n\r\n\tpublic configureRouter(config: RouterConfiguration, router: Router) {\r\n\t\tlet enableManualEntries: boolean = true; //environment.testing || environment.debug; // Grep food: enable Manual entries. // prerelease\r\n\t\tlet enableMats: boolean = environment.testing || environment.debug; // Grep food: enable Manual entries. // prerelease\r\n\t\tlet enableQuantityViews: boolean = false; //environment.testing || environment.debug; \r\n\t\tlet enableBrowseAO: boolean = environment.testing || environment.debug; // Grep food: enable Manual entries. // prerelease\r\n\t\tlet isPrerelease_lca:boolean = true; //environment.testing || environment.debug;\r\n\t\tlet enableModelRevs: boolean = ApiClient.IsCatendaEnabled_Global; //true; //environment.testing || environment.debug; // Grep food: enable enableModelRevs entries. // prerelease\r\n\t\tlet enablePartGrid: boolean = environment.testing || environment.debug; // Grep food: enable enablePartGrid entries. // prerelease\r\n\t\tlet workArea: boolean = true; //environment.testing || environment.debug; // Grep food: enable enablePartGrid entries. // prerelease\r\n\t\tlet enableQuantityTakeoff: boolean = true;\r\n\t\tlet enableOldBP: boolean = false;\r\n\t\tlet enableIFCImport:boolean = environment.testing || environment.debug;\r\n\t\tlet enableIFCFun:boolean = environment.testing || environment.debug;\r\n\r\n\t\tlet enableQuantityGrid:boolean = environment.testing || environment.debug;\r\n\t\tlet enableTestModelRevision:boolean = environment.testing || environment.debug;\r\n\t\tlet enableUserAdministration: boolean = environment.testing || environment.debug;\r\n\t\t// let enableProjectManager: boolean = environment.testing || environment.debug;\r\n\t\t// let enableOrgInfo: boolean = environment.testing || environment.debug;\r\n\r\n\t\t//Toggle for enabling and disabling project roles.\r\n\t\tlet areOrgPrjRolesDisabled: boolean = false;\r\n\r\n\r\n\t\t// JG: I put types on this stuff, to be able to see what is going on..\r\n\t\tlet routeConfigs:RouteConfig_Root[] = [ //ie RouteConfig\r\n\t\t\t{ // RouteConfig_Root (project-overview)\r\n\t\t\t\troute: '',\r\n\t\t\t\tredirect: 'project/overview'\r\n\t\t\t},\r\n\t\t\t{ // RouteConfig_Root\r\n\t\t\t\troute: ['project/overview'],\r\n\t\t\t\tname: 'project/overview',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/project-overview/project-overview'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Project selection',\r\n\t\t\t\thref: 'project/overview',\t\t\t\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t{ // RouteConfig_Root (test-model-revision) // These are also RouteConfigs:\r\n\t\t\t\troute: ['project/:projectId/access-denied-to-project'],\r\n\t\t\t\tname: 'access-denied-to-project',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/access-denied-page/access-denied-page'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Access Denied',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// Project routes\r\n\t\t\t{ // RouteConfig_Root (dashboard)\r\n\t\t\t\t// These are also RouteConfigs (but also still RouteConfig_Root):\r\n\t\t\t\t//The route here is not set as a sub-item anymore, now it must be set in the children list.\r\n\t\t\t\troute: ['project/:projectId/dashboard'],\r\n\t\t\t\tname: 'project/dashboard',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/dashboard/dashboard'),\r\n\t\t\t\tnav: true,\r\n\t\t\t\ttitle: 'Project Overview',\r\n\t\t\t\thref: 'project/dashboard',\r\n\t\t\t\tmenuAccessLevel: MenuAccessLevel.AOCRolesOrPrjUser,\r\n\t\t\t\tsettings: { // (settings is type RouteSettingAjour.)\r\n\t\t\t\t\tisSection: true,\r\n\t\t\t\t\tsectionName: 'Project',\r\n\t\t\t\t\tsectionNameNoSpace: 'Project', //used for styling conditionally in navigation\r\n\t\t\t\t\tsectionIconClass: 'fa-solid fa-building',\r\n\t\t\t\t\tisProjectSelector: true,\r\n sectionUserRolesAllowed: [\r\n 'AOC_SuperAdmin', 'AOC_Admin', 'AOC_User'\r\n ],\r\n\t\t\t\t\tchildren: [ // these (IRouteConfig_Child[]) 'children' are intended for navigation.html's 'repeat.for=\"item of route.settings.children\">'\t\t\t\t\t \r\n\t\t\t\t\t // We COULD even control access to menu items from here, similarly to how e.g. enableModelRevs works - BUT, it is sufficent for us, that the disabled-{} we pass on from here, are SUPPORTED where they arrive (as this means we can also control access THERE.)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Project Overview',\r\n\t\t\t\t\t\t\thref: 'project/dashboard',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tenableModelRevs ? \r\n\t\t\t\t\t\t{// these are Ajour's own \"RouteConfig_Child\": (ie not proper aurelia RouteConfigs.)\r\n\t\t\t\t\t\t\ttitle: 'Models',//MENU-label\r\n\t\t\t\t\t\t\thref: 'project/model-revision',// what is this ACTUALLY, it is not a href. It seems to be a template for ajour project routing? (isProjectSelector?)\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html // So Ajour handles the navigation manually, by calling Router.navigate(..)\r\n\t\t\t\t\t\tworkArea ? \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Work area',\r\n\t\t\t\t\t\t\thref: 'project/work-area',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\t//TODO - Remove PartGrid\r\n\t\t\t\t\t\tenableManualEntries ? \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Manual entry',\r\n\t\t\t\t\t\t\thref: 'project/manual-entry',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\tenableIFCImport ? \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Import IFC',\r\n\t\t\t\t\t\t\thref: 'project/ifc-import',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\tenableIFCFun ? \r\n\t\t\t\t\t\t{ // IRouteConfig_Child..\r\n\t\t\t\t\t\t\ttitle: 'IFC Fun (child)', // (this goes in the leftpane menu-items.)\r\n\t\t\t\t\t\t\thref: 'project/ifc-fun',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\tenableIFCFun ? \r\n\t\t\t\t\t\t{ // IRouteConfig_Child..\r\n\t\t\t\t\t\t\ttitle: 'OpenBimTestBed', // (this goes in the leftpane menu-items.)\r\n\t\t\t\t\t\t\thref: 'project/openbim-testbed',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Bill of quantities',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser,\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Create bill of quantity',\r\n\t\t\t\t\t\t\t\t\thref: 'project/tender-list'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Quantity settings',\r\n\t\t\t\t\t\t\t\t\thref: 'project/summing'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tenableMats ? \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Materials',\r\n\t\t\t\t\t\t\thref: 'project/materials',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t} : {}, // filtered in navigation.html\r\n\t\t\t\t\t\tenableQuantityViews ?\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Quantity Views',\r\n\t\t\t\t\t\t\thref: 'project/quantity-views'\r\n\t\t\t\t\t\t}: {},\r\n\t\t\t\t\t\tenableQuantityTakeoff ?\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Quantity take-off',\r\n\t\t\t\t\t\t\thref: 'project/quantity-takeoff',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t}: {},\r\n\t\t\t\t\t\tenableTestModelRevision ?\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Test Model Revision',\r\n\t\t\t\t\t\t\thref: 'project/test-model-revision',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t}: {},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Changelog',\r\n\t\t\t\t\t\t\thref: 'project/changelog',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Project Settings',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjSettings,\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Parameters',\r\n\t\t\t\t\t\t\t\t\thref: 'project/parameters'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Value lists',\r\n\t\t\t\t\t\t\t\t\thref: 'project/value-lists'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Categories',\r\n\t\t\t\t\t\t\t\t\thref: 'project/categories'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Sustainability',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjUser,\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'LCA',\r\n\t\t\t\t\t\t\t\t\thref: 'project/lcabyg/export/'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t// enableProjectManager ?\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Project Manager',\r\n\t\t\t\t\t\t\thref: 'project/project-manager',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.PrjAdmin,\r\n\t\t\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\t\t\tisSection: true,\r\n\t\t\t\t\t\t\t\t// prjMemberRoleLevel: areOrgPrjRolesDisabled ? undefined : {projectRole: ProjectRole.Prj_Admin, orgRole: OrgRole.Org_Admin},\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}, \r\n\t\t\t{ // RouteConfig_Root (test-model-revision) // These are also RouteConfigs:\r\n\t\t\t\troute: ['project/:projectId/test-model-revision'],\r\n\t\t\t\tname: 'project/test-model-revision',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/test-model-revision/test-model-revision'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Test Model Revision',//browser-titlebar-food.\r\n\t\t\t\thref: 'project/test-model-revision',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ // RouteConfig_Root - These are also RouteConfigs:\r\n\t\t\t\troute: ['project/:projectId/quantity-takeoff'],\r\n\t\t\t\tname: 'project/quantity-takeoff',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/quantity-takeoff/quantity-takeoff'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Quantity take-off',//browser-titlebar-food.\r\n\t\t\t\thref: 'project/quantity-takeoff',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ // RouteConfig_Root\r\n\t\t\t\troute: ['project/:projectId/ifc-import'],\r\n\t\t\t\tname: 'project/ifc-import',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/ifc-import/ifc-import'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Import IFC',\r\n\t\t\t\thref: 'project/ifc-import',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ // RouteConfig_Root\r\n\t\t\t\troute: ['project/:projectId/ifc-fun'],\r\n\t\t\t\tname: 'project/ifc-fun',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/ifc-fun/ifc-fun'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'IFC Fun (root)', // (This goes in the breadcrumb top-bar.)\r\n\t\t\t\thref: 'project/ifc-fun',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{ // RouteConfig_Root\r\n\t\t\t\troute: ['project/:projectId/openbim-testbed'],\r\n\t\t\t\tname: 'project/openbim-testbed',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/ifc-fun/openbim-testbed'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'OpenBimTestBed', // (This goes in the breadcrumb top-bar.)\r\n\t\t\t\thref: 'project/openbim-testbed',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/work-area'],\r\n\t\t\t\tname: 'project/work-area',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/work-area/work-area-container'), ///full-view\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Work area',\r\n\t\t\t\thref: 'project/work-area',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/parameters/bulk-parameters'],\r\n\t\t\t\tname: 'project/parameters/bulk-parameters',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/bulk-parameters/bulk-parameters'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Bulk parameters',\r\n\t\t\t\thref: 'project/parameters/bulk-parameters',\r\n\t\t\t\tsettings:{\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/manual-entry'],\r\n\t\t\t\tname: 'project/manual-entry',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/manual-entries/manual-entries-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Manual entry',\r\n\t\t\t\thref: 'project/manual-entry',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/model-revision'],\r\n\t\t\t\tname: 'project/model-revision',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/model-revision/model-revision'),//While testing change this.\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Models',\r\n\t\t\t\thref: 'project/model-revision',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/summing'],\r\n\t\t\t\tname: 'project/summing',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/summing/summing'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Quantity settings',\r\n\t\t\t\thref: 'project/summing',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/tender-list'],\r\n\t\t\t\tname: 'project/tender-list',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/tender/list/tender-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Create bill of quantity',\r\n\t\t\t\thref: 'project/tender-list',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/changelog'],\r\n\t\t\t\tname: 'project/changelog',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/changelog/changelog'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Changelog',\r\n\t\t\t\thref: 'project/changelog',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/tender-list/tender-settings/:id'],\r\n\t\t\t\tname: 'project/tender-settings',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/tender/settings/tender-settings'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Tender settings',\r\n\t\t\t\thref: 'project/tender-settings',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/materials'],\r\n\t\t\t\tname: 'project/materials',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/materials/materials-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Materials',\r\n\t\t\t\thref: 'project/materials',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/quantity-views'],\r\n\t\t\t\tname: 'project/quantity-views',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/quantity-views/quantity-views'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Quantity Views',\r\n\t\t\t\thref: 'project/quantity-views',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t// https://aurelia.io/docs/routing/configuration#basic-configuration\r\n\t\t\t\troute: ['project/:projectId/quantity-views/quantity-filters/:QV_Id?'], // den her er ikke robust overfor manglende QV_Id!\r\n\t\t\t\tname: 'project/quantity-filters',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/quantity-views/quantity-filters'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Quantity Filters',\r\n\t\t\t\thref: 'project/quantity-filters',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/parameters'],\r\n\t\t\t\tname: 'project/parameters',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/parameters/list/parameters-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Parameters',\r\n\t\t\t\thref: 'project/parameters',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/value-lists'],\r\n\t\t\t\tname: 'project/value-lists',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/value-lists/value-lists'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Value lists',\r\n\t\t\t\thref: 'project/value-lists',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/categories'],\r\n\t\t\t\tname: 'project/categories',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/categories/categories'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Categories',\r\n\t\t\t\thref: 'project/categories',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/project-manager'],\r\n\t\t\t\tname: 'project/project-manager',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/project-manager/project-manager'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Project Manager',\r\n\t\t\t\thref: 'project/project-manager'\r\n\t\t\t},\r\n\t\t\t//LCAByg routes\r\n\t\t\t//FIXME change summing routes to export etc.\r\n\t\t\tisPrerelease_lca ?\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/lcabyg'],\r\n\t\t\t\tname: 'lca-export',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/lcabyg/export/export'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'LCA', // was: Export\r\n\t\t\t\thref: 'project/lcabyg/export/',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t\tisProjectSelector:true,\r\n\t\t\t\t\tsectionName: 'Sustainability', // was: LCAByg\r\n\t\t\t\t\tsectionIconClass: 'fa-leaf', //FIXME set to LCA-byg icon\r\n\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t'AOC_SuperAdmin', 'AOC_Admin' //FIXME adjust to the correct privileges as discussed with Thomas\r\n\t\t\t\t\t],\r\n\t\t\t\t\t// children: [\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ttitle: 'Analysis',\r\n\t\t\t\t\t// \t\thref: 'lca-analysis'\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ttitle: 'Results',\r\n\t\t\t\t\t// \t\thref: 'lca-results'\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t// \t{\r\n\t\t\t\t\t// \t\ttitle: 'Setup',\r\n\t\t\t\t\t// \t\thref: 'lca-setup'\r\n\t\t\t\t\t// \t},\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t// ]\r\n\t\t\t\t}\r\n\t\t\t}:\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/lcabyg/results'],\r\n\t\t\t\tname: 'Results',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/browse-ao/browse-ao'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Results',\r\n\t\t\t\thref: 'lca-results'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/lcabyg/analysis'],\r\n\t\t\t\tname: 'analysis',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/lcabyg/export/export'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Analysis',\r\n\t\t\t\thref: 'lca-analysis'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/lcabyg/setup'],\r\n\t\t\t\tname: 'setup',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/browse-ao/browse-ao'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Setup',\r\n\t\t\t\thref: 'lca-setup'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['project/:projectId/project-manager/transfer'],\r\n\t\t\t\tname: 'administration/projects/transfer-project-standards',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/project/prj-role-transfer-standards/prj-role-transfer-standards'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Transfer Project Standards',\r\n\t\t\t\thref: 'project/prj-role-transfer-standards'\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t// Administration routes\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/users'],\r\n\t\t\t\tname: 'users',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/users/list/users-list'),\r\n\t\t\t\tnav: true,\r\n\t\t\t\ttitle: 'Users',\r\n\t\t\t\thref: 'administration/users',\r\n\t\t\t\tmenuAccessLevel: MenuAccessLevel.AOCRolesOrOrgAdmin,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: true,\r\n\t\t\t\t\tsectionName: 'Administration',\r\n\t\t\t\t\tsectionNameNoSpace: 'Administration', //used for styling conditionally in navigation\r\n\t\t\t\t\tsectionIconClass: 'fa-cogs',\r\n\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t'AOC_SuperAdmin', 'AOC_Admin'\r\n\t\t\t\t\t],\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Users',\r\n\t\t\t\t\t\t\thref: 'administration/users',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.OrgAdmin,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'Projects',\r\n\t\t\t\t\t\t\thref: 'administration/projects',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.AOCRolesOrOrgAdmin,\r\n\t\t\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\t\t\tisSection: false,\r\n\t\t\t\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t\t\t\t'AOC_SuperAdmin', 'AOC_Admin'\r\n\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'System Settings',\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.OrgAdmin,\r\n\t\t\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'System value lists',\r\n\t\t\t\t\t\t\t\t\thref: 'administration/value-lists'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Whitelists',\r\n\t\t\t\t\t\t\t\t\thref: 'administration/whitelists'\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\ttitle: 'Classifications',\r\n\t\t\t\t\t\t\t\t\thref: 'administration/classifications'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tenableBrowseAO ?\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.OrgAdmin,\r\n\t\t\t\t\t\t\ttitle: 'Browse AO',\r\n\t\t\t\t\t\t href: 'administration/browse-ao',\r\n\t\t\t\t\t\t} : {}, \r\n\t\t\t\t\t\t// enableOrgInfo ? \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmenuAccessLevel: MenuAccessLevel.AOCRolesOrOrgAdmin,\r\n\t\t\t\t\t\t\ttitle: 'Organization info',\r\n\t\t\t\t\t\t href: 'administration/org-info',\r\n\t\t\t\t\t\t\tsettings: {\r\n\t\t\t\t\t\t\t\tisSection: false,\r\n\t\t\t\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t\t\t\t'AOC_SuperAdmin', 'AOC_Admin'\r\n\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/projects'],\r\n\t\t\t\tname: 'projects',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/projects/list/projects-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Projects',\r\n\t\t\t\thref: 'administration/projects',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/classifications'],\r\n\t\t\t\tname: 'administration/classifications',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/classifications/classifications-list'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Classifications',\r\n\t\t\t\thref: 'administration/classifications',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t'AOC_SuperAdmin'\r\n\t\t\t\t\t]\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/projects/archived'],\r\n\t\t\t\tname: 'archived-projects',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/projects/list-archived/projects-list-archived'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Archived projects',\r\n\t\t\t\thref: 'administration/projects/archived',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/value-lists'],\r\n\t\t\t\tname: 'value-lists',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/value-lists/value-lists'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'System value lists',\r\n\t\t\t\thref: 'administration/value-lists',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: false,\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/projects/edit/:projectId'],\r\n\t\t\t\tname: 'administration/manage-project',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/projects/manage/manage-project'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\tactivationStrategy: activationStrategy.replace,\r\n\t\t\t\ttitle: 'Manage project',\r\n\t\t\t\thref: 'administration/manage-project'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/projects/create'],\r\n\t\t\t\tname: 'administration/create-project',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/projects/manage/manage-project'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Create project',\r\n\t\t\t\thref: 'administration/create-project'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/projects/edit/:projectId/transfer', 'administration/projects/transfer'],\r\n\t\t\t\tname: 'administration/projects/transfer-project-standards',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/projects/manage/transfer-project-standards'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Transfer Project Standards',\r\n\t\t\t\thref: 'administration/projects/transfer-project-standards'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/whitelists/:whitelistId/:mode'],\r\n\t\t\t\tname: 'administration/whitelists/manage-whitelist',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/whitelists/manage/manage-whitelist'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Manage Whitelist',\r\n\t\t\t\thref: 'administration/whitelists/manage-whitelist'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/whitelists/create'],\r\n\t\t\t\tname: 'administration/whitelists/create-whitelist',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/whitelists/manage/manage-whitelist'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Create Whitelist',\r\n\t\t\t\thref: 'administration/whitelists/create-whitelist' \r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/whitelists'],\r\n\t\t\t\tname: 'administration/whitelists',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/whitelists/list/whitelists'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Whitelists',\r\n\t\t\t\thref: 'administration/whitelists'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/users/edit/:userId'],\r\n\t\t\t\tname: 'administration/users/edit',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/users/manage/manage-user'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Manage user',\r\n\t\t\t\thref: 'administration/users/edit'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/users/create'],\r\n\t\t\t\tname: 'administration/users/create-user',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/users/manage/manage-user'),\r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Create user',\r\n\t\t\t\thref: 'administration/users/create-user'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/browse-ao'],\r\n\t\t\t\tname: 'administration/browse-ao',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/browse-ao/browse-ao'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Browse AO',\r\n\t\t\t\thref: 'administration/browse-ao'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['administration/org-info'],\r\n\t\t\t\tname: 'administration/org-info',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/administration/org-info/org-info'), \r\n\t\t\t\tnav: false,\r\n\t\t\t\ttitle: 'Organization info',\r\n\t\t\t\thref: 'administration/org-info'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\troute: ['user-admin/user-manager'],\r\n\t\t\t\tname: 'user-admin/user-manager',\r\n\t\t\t\tmoduleId: PLATFORM.moduleName('app/user-admin/user-manager/user-manager'),\r\n\t\t\t\tnav: enableUserAdministration,\r\n\t\t\t\ttitle: 'Manage users',\r\n\t\t\t\thref: 'user-admin/user-manager',\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tisSection: true,\r\n\t\t\t\t\tsectionName: 'User Admin',\r\n\t\t\t\t\tsectionNameNoSpace: 'UserAdmin', //used for styling conditionally in navigation\r\n\t\t\t\t\tsectionIconClass: 'fa-user',\r\n\t\t\t\t\tsectionUserRolesAllowed: [\r\n\t\t\t\t\t\t'AOC_SuperAdmin', 'AOC_Admin'\r\n\t\t\t\t\t],\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttitle: 'User Manager',\r\n\t\t\t\t\t\t\thref: 'user-admin/user-manager'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t];\r\n\t\t\r\n\t\tconfig.map(routeConfigs);\r\n\t\tconfig.fallbackRoute('project/overview');\r\n\t\tthis.router = router;\r\n\t}\r\n}\r\n\r\n"],"names":["module","exports","AOX","isLoading","this","_isLoading","constructor","apiClient","events","appContext","deviceService","projectInvitationClosed","loadingCount","navCollapsed","showOverlay","subscriptions","setDeviceTypeAttribute","activate","checkRouting","RETRIEVE_currentUser_allowToFail","getProjects","getProjectInvitations","s","console","trace","loggedIn","isLoggedIn","log","router","curIns","currentInstruction","navModels","navigation","attached","subscribe","data","toggleIsLoading","payload","booleanToggle","countToggle","deactivate","forEach","subscription","dispose","removeOverlay","publish","document","querySelector","setAttribute","getDeviceType","hasSignedIn_User","currentUser","prjs","global","get","jsonResult","warn","setProjects","path","useNewAPI","setProjectInvitations","global_requestMethod","request","route","requestHandler","curUser","organization","setCurrentUser","checkHeaders","headers","Object","keys","length","x","configureRouter","config","enableMats","enableBrowseAO","enableModelRevs","IsCatendaEnabled_Global","enableIFCImport","enableIFCFun","enableTestModelRevision","enableUserAdministration","routeConfigs","redirect","name","moduleId","nav","title","href","settings","isSection","menuAccessLevel","AOCRolesOrPrjUser","sectionName","sectionNameNoSpace","sectionIconClass","isProjectSelector","sectionUserRolesAllowed","children","PrjUser","PrjSettings","PrjAdmin","AOCRolesOrOrgAdmin","OrgAdmin","activationStrategy","replace","map","fallbackRoute","computedFrom","autoinject","EventAggregator"],"sourceRoot":""}