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AAMC,EACT,WAAA1B,GACA,CAEA,SAAMM,CAAIC,EAA8CC,GAEpD,OADAkB,EAAgBC,OAAOC,WAChBpB,GACX,E,eCAG,IAAMqB,EAAN,MAIH,WAAA7B,CAAoB8B,EAAoBH,EAA8BI,GAAlD,KAAAD,aAAAA,EAAkD,KAAAC,eAAAA,EAClEC,SAASC,KAAKC,UAAY,WAChCpB,QAAQ7D,IAAI,cAENyE,EAAgBC,OAASA,EACzB5D,KAAK+D,aACAK,UAAU,YACVC,MAAK,QAGd,CACA,eAAAC,CAAgB5G,EAA6B6G,GAE/CxB,QAAQ7D,IAAI,yBACNc,KAAKuE,OAASA,EACd7G,EAAO8G,iBAAiBxC,EAAA,GACxBtE,EAAO+G,mBAAmBd,GAE1BjG,EAAOgH,IAAIC,GAEXjH,EAAOgH,IAAI,CAAErB,MAAO,GAAIuB,SAAU,gBACtC,GAzBSd,E,mUAAK,GADjB,IAAAe,c,kIAKqC,EAAAC,KAAc,EAAAC,cAAsC,OAJ7EjB,E","sources":["webpack://client-app/./src/shell/shell.html","webpack://client-app/./src/resources/index.ts","webpack://client-app/./src/resources/utilities/GuidGenerator.ts","webpack://client-app/./src/resources/value-converters/date-format.ts","webpack://client-app/./src/resources/value-converters/entry-type.ts","webpack://client-app/./src/resources/value-converters/file-size.ts","webpack://client-app/./src/resources/value-converters/number-format.ts","webpack://client-app/./src/resources/value-converters/search.ts","webpack://client-app/./src/resources/value-converters/sort.ts","webpack://client-app/./src/resources/value-converters/take.ts","webpack://client-app/./src/resources/value-converters/url-fixer.ts","webpack://client-app/./src/shell/EnsureUserSignedInStep.ts","webpack://client-app/./src/shell/routes.ts","webpack://client-app/./src/shell/CloseDialogStep.ts","webpack://client-app/./src/shell/shell.ts"],"sourcesContent":["module.exports = \"\\r\\n\\t\\r\\n\\t \\r\\n \\r\\n\\t\\r\\n\\t\\r\\n\\r\\n\";","import { PLATFORM } from 'aurelia-pal';\r\nimport { FrameworkConfiguration } from 'aurelia-framework';\r\n\r\nexport function configure(config: FrameworkConfiguration) {\r\n config.globalResources([\r\n \tPLATFORM.moduleName(\"resources/value-converters/url-fixer\"), \r\n\t\tPLATFORM.moduleName('resources/value-converters/sort'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/search'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/take'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/date-format'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/number-format'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/file-size'), \r\n\t\tPLATFORM.moduleName('resources/value-converters/entry-type'), \r\n\t\tPLATFORM.moduleName('app/components/top-bar/top-bar'), \r\n\t\tPLATFORM.moduleName('app/components/search/search'), \r\n\t\tPLATFORM.moduleName('app/components/load-spinner/load-spinner'), \r\n\t\tPLATFORM.moduleName('resources/custom-attributes/css-grid-table'), \r\n\t\tPLATFORM.moduleName('resources/custom-attributes/sortable-list')\r\n\t])\r\n}\r\n","export class GuidGenerator{\r\n\tpublic createGuid():string {\r\n\t\treturn \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function (c) {\r\n\t\t\tconst r = Math.random() * 16 | 0;\r\n\t\t\tconst v = c === \"x\" ? r : (r & 0x3 | 0x8); return v.toString(16);\r\n\t\t}).toLowerCase();\r\n\t}\r\n}\r\n","// import * as dayjs from 'dayjs';\r\n// import * as settings from 'app-settings.json';\r\n\r\n// var localizedFormat = require('dayjs/plugin/localizedFormat');\r\n\r\nimport * as dayjs from 'dayjs';\r\nimport * as localizedFormat from 'dayjs/plugin/localizedFormat';\r\ndayjs.extend(localizedFormat);\r\n\r\nexport class DateFormatValueConverter {\r\n\ttoView(value: Date) {\r\n\t\treturn dayjs(value).format('LLLL');\r\n\t}\r\n}\r\n \r\n","export class EntryTypeValueConverter {\r\n\ttoView(entryTypeInt: number) {\r\n\t\tswitch (entryTypeInt) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn \"Main\";\r\n\t\t\tcase 1:\r\n\t\t\t\treturn \"Option\";\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \"Regulation\";\r\n\t\t}\r\n\t}\r\n}\r\n","export class FileSizeValueConverter {\r\n\ttoView(bytes: number, decimals: number) {\r\n\t\tif (bytes === 0) return \"0 Byte\";\r\n\t\tconst k = 1000;\r\n\t\tconst dm = Boolean(decimals) ? 2 : decimals;\r\n\t\tconst sizes = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\r\n\t\tconst i = Math.floor(Math.log(bytes) / Math.log(k));\r\n\t\treturn parseFloat((bytes / Math.pow(k, i)).toString()).toFixed(dm) + \" \" + sizes[i];\r\n\t}\r\n}\r\n","export class NumberFormatValueConverter{\r\n\ttoView(value: any, decimals: any){\r\n\t\treturn parseFloat(value).toLocaleString(navigator.language, {minimumFractionDigits: decimals});\r\n\t}\r\n\t\r\n}\r\n","export class SearchValueConverter {\r\n\ttoView(array: any, config: any) {\t\t\r\n\t\tif (!Boolean(array) || config.searchTerm === \"\") return array;\r\n\r\n\t\treturn array.filter((obj: any) => \r\n\t\t\tthis.isFound(config, obj)\r\n\t\t);\r\n\t}\r\n\r\n\tprivate isFound(config: any, obj: any): Boolean {\r\n\t\tlet found = false;\r\n\t\tfor (let index = 0; index < config.columns.length; index++) {\r\n\t\t\tconst x = this.resolve(config.columns[index], obj);\r\n\t\t\tif (x === undefined) continue;\r\n\t\t\tif (typeof(x) === 'string') {\r\n\t\t\t\tfound = x.toLowerCase().includes(config.searchTerm.toLowerCase());\r\n\t\t\t}\r\n\t\t\tif (found) break;\r\n\t\t}\r\n\t\treturn found;\r\n\t}\r\n\t\r\n\t// Accounts for nested objects e.g.: \"location.address, location.zipCode, etc.\"\r\n\tprivate resolve(path: string, obj: any) {\r\n\t\treturn path.split('.').reduce(function(prev, curr) {\r\n\t\t\treturn prev ? prev[curr] : null\r\n\t\t}, obj || self)\r\n\t}\r\n}\r\n","export class SortValueConverter {\r\n\ttoView(array: any, config: any) {\r\n\r\n\t\tif (!Boolean(array)) return array;\r\n\r\n\t\tarray = array.slice(0, array.length); // HACK - made to handle huge amounts of data in virtual repeat (slice makes a new array, that does not have reference to the original array in Aurelia)\r\n\r\n\t\tlet factor = (config.direction || 'ascending') === 'ascending' ? 1 : -1;\r\n\t\treturn array.sort((a: any, b: any) => {\r\n\t\t\tif (typeof (a[config.propertyName]) === \"string\") {\r\n\t\t\t\tlet nameA = a[config.propertyName] ? a[config.propertyName].trim().toUpperCase() : \"\"; // ignore upper and lowercase\r\n\t\t\t\tlet nameB = b[config.propertyName] ? b[config.propertyName].trim().toUpperCase() : \"\"; // ignore upper and lowercase\r\n\t\t\t\tif (nameA < nameB) {\r\n\t\t\t\t\treturn -1 * factor;\r\n\t\t\t\t}\r\n\t\t\t\tif (nameA > nameB) {\r\n\t\t\t\t\treturn factor;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\tif (typeof (a[config.propertyName]) === \"number\")\r\n\t\t\t\treturn (a[config.propertyName] - b[config.propertyName]) * factor;\r\n\t\t});\r\n\t}\r\n}\r\n","export class TakeValueConverter {\r\n toView(array: any, count: any) {\r\n return array.slice(0, count);\r\n }\r\n }\r\n \r\n","export class UrlFixerValueConverter{\r\n\ttoView(input: any){\r\n\t\treturn input;\r\n\t}\r\n}\r\n","import {\r\n\tNavigationInstruction,\r\n\tNext,\r\n\tRedirect,\r\n\tPipelineStep\r\n} from \"aurelia-router\";\r\n\r\nexport class EnsureUserSignedInStep implements PipelineStep {\r\n constructor() { }\r\n\r\n public static isLoggedIn(who:string): boolean { // this check is no good, because it doesn't account for if token has expired.\r\n let gotAccessToken = sessionStorage.getItem('access_token');\r\n //console.trace(who, '.auth.isLoggedIn, token?', gotAccessToken);\r\n return Boolean(gotAccessToken);\r\n }\r\n \r\n\t//public static kickedOutByReset:boolean = false;\r\n async run(navigationInstruction: NavigationInstruction, next: Next): Promise {\r\n\t\ttry {\r\n\t\t\tlet authRequired: boolean = navigationInstruction.getAllInstructions().some(i => !i.config.settings.allowAnonymous);\r\n\t\t\t// console.log('authorizeStep.run, authRequired?', authRequired); // JG: we 'always' know this is true, I assume?\r\n\t\t\tif (authRequired) {\r\n\t\t\t\tlet loggedIn = EnsureUserSignedInStep.isLoggedIn('run');\r\n\t\t\t\tconsole.log('authorizeStep.run, loggedIn?', loggedIn);\r\n\t\t\t\tif (!loggedIn) { // || EnsureUserSignedInStep.kickedOutByReset) {\r\n\t\t\t\t\tlet origPath = navigationInstruction.fragment; // beware this is the #/ path.\r\n\t\t\t\t\tconsole.log('REDIRECT, navIns/origPath:', navigationInstruction);\r\n\t\t\t\t\treturn next.cancel(\r\n\t\t\t\t\t\tnew Redirect(`login?redir=${origPath}`)\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//console.log('authorizeStep.run, ->next');\r\n\t\t\treturn next();\r\n\t\t} catch (e) {\r\n\t\t\tconsole.trace('err AuthorizeStep.run', e);\r\n\t\t}\r\n }\r\n}\r\n","import { RouteConfig } from 'aurelia-router';\r\nimport { PLATFORM } from \"aurelia-framework\";\r\n\r\n// JG: Dette er et array af RouteConfigs.\r\n// Bemærk, alle disse routes er #-routes for en SPA,\r\n// vi kan IKKE tilgå f.eks. http://localhost:8080/login\r\n\r\nlet baseRoutes:RouteConfig[] = [\r\n\t{ // (denne route regel bliver default startup-siden, pga. en route-map i shell.ts.)\r\n\t\t// JG: Denne 'rod/base route er indgangen til MANUFACTURER siden af aoc/collab applikationen'.\r\n route: ['manufacturer', 'manufacturer/:typeName/:typeId'], \r\n\t\tname: 'manufacturer', \r\n\t\ttitle: 'AjourContent',\r\n moduleId: PLATFORM.moduleName('showroom/showroom'), \r\n settings: { allowAnonymous: true } \r\n\t}, \r\n { \r\n route: 'login', // (the pattern we match incoming URLs against)\r\n\t\tname: 'login', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollab', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('login/login'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n\t},\r\n {\r\n route: 'confirm-user', // (the pattern we match incoming URLs against)\r\n\t\tname: 'confirm-user', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollabConfirmUser', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('user-handles/confirm-user/confirm-user'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n },\r\n {\r\n route: 'forgot-password', // (the pattern we match incoming URLs against)\r\n\t\tname: 'forgot-password', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollabForgotPassword', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('user-handles/forgot-password/forgot-password'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n },\r\n {\r\n route: 'reset-password', // (the pattern we match incoming URLs against)\r\n\t\tname: 'reset-password', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollabResetPassword', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('user-handles/reset-password/reset-password'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n },\r\n {\r\n route: 'create-user-inv', // (the pattern we match incoming URLs against)\r\n\t\tname: 'create-user-inv', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollabCreateUser', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('user-handles/create-user-inv/create-user-inv'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n },\r\n {\r\n route: 'confirm-invited-user', // (the pattern we match incoming URLs against)\r\n\t\tname: 'confirm-invited-user', // (a unique name used to identify and refer to this route.)\r\n\t\ttitle: 'AjourCollabCreateUser', // (intended for browser document title field.)\r\n moduleId: PLATFORM.moduleName('user-handles/confirm-invited-user/confirm-invited-user'), \r\n settings: { allowAnonymous: true } // (any custom data you need.)\r\n },\r\n\t{ // http://localhost:8080/#/jgaardsted@gmail.com/project/7850b0a3-39c9-4146-a7e2-e89077175a55/tender-settings/828ab2e3-c97a-4e5d-897f-587cb5b1aea7 \r\n\t\t// JG: gæt: Denne 'rod/base route er vist rod-indgangen til COLLAB siden af aoc/collab applikationen'??\r\n\t\t// (JG: NB, route her is akin to '/' or '' empty:)\r\n route: ':usersEmailNow', // was: 'companyName'. hvorfor hulen har route 'root' en variabel companyName, og hvorfor putter nogen en email ind i den??\r\n name: 'root', \r\n moduleId: PLATFORM.moduleName('app/aox/aox'), // (aox is the shell for the COLLAB app.)\r\n nav: true, // (whether to include in nav model.)\r\n href: 'aox' // (otherwise defaults to 'route' above here. href is needed when route above contains dynamic parts.)\r\n\t}\r\n]\r\n\r\n// JG: Kan det virke hvis vi skriver det sådan her?\r\nexport default baseRoutes;\r\n","import { DialogService } from 'aurelia-dialog';\r\nimport { NavigationInstruction, Next, PipelineStep } from \"aurelia-router\";\r\n\r\n\r\nexport class CloseDialogStep implements PipelineStep {\r\n constructor() {\r\n }\r\n static dialog: DialogService;\r\n async run(navigationInstruction: NavigationInstruction, next: Next): Promise {\r\n CloseDialogStep.dialog.closeAll();\r\n return next();\r\n }\r\n}\r\n","import { DialogService } from 'aurelia-dialog';\r\nimport { autoinject } from 'aurelia-framework';\r\nimport { Router, RouterConfiguration } from \"aurelia-router\";\r\nimport routes from './routes';\r\nimport { I18N } from 'aurelia-i18n';\r\nimport { ContextMenuService } from 'app/services/context-menu-service';\r\nimport * as settings from 'app-settings.json';\r\nimport { CloseDialogStep } from './CloseDialogStep';\r\nimport { EnsureUserSignedInStep } from './EnsureUserSignedInStep';\r\n\r\n@autoinject()\r\nexport class Shell {\r\n\t/* NB, shell/shell is set as ROOT by main.ts:configure().\r\n\t*/\r\n router: Router | undefined;\r\n constructor(private translations: I18N, dialog: DialogService, public contextService: ContextMenuService) {\r\n document.body.className = \"theme-eg\";\r\n\t\tconsole.log('shell ctor');\r\n\r\n CloseDialogStep.dialog = dialog;\r\n this.translations\r\n .setLocale(settings.language)\r\n .then(() => {\r\n // locale is loaded\r\n });\r\n }\r\n configureRouter(config: RouterConfiguration, router: Router): void {\r\n //throw 'goddammit';\r\n\t\tconsole.log('Shell.configureRouter');\r\n this.router = router;\r\n config.addAuthorizeStep(EnsureUserSignedInStep); // (a sort of 'middleware pipeline'.)\r\n config.addPreActivateStep(CloseDialogStep);\r\n\t\t \r\n config.map(routes); // ROUTES ARE _HERE_ !!\r\n\t\t// Added here to avoid breaking routes array type signature (JG: hvad menes med det?)\r\n config.map({ route: '', redirect: 'manufacturer' }); // Det er denne regel, der laver defaulten med at sende root path til manufacturer.)\r\n }\r\n}\r\n\r\n\r\n\r\n"],"names":["module","exports","configure","config","globalResources","GuidGenerator","createGuid","replace","c","r","Math","random","toString","toLowerCase","DateFormatValueConverter","toView","value","format","EntryTypeValueConverter","entryTypeInt","FileSizeValueConverter","bytes","decimals","dm","Boolean","i","floor","log","parseFloat","pow","toFixed","NumberFormatValueConverter","toLocaleString","navigator","language","minimumFractionDigits","SearchValueConverter","array","searchTerm","filter","obj","this","isFound","found","index","columns","length","x","resolve","undefined","includes","path","split","reduce","prev","curr","self","SortValueConverter","slice","factor","direction","sort","a","b","propertyName","nameA","trim","toUpperCase","nameB","TakeValueConverter","count","UrlFixerValueConverter","input","EnsureUserSignedInStep","constructor","isLoggedIn","who","gotAccessToken","sessionStorage","getItem","run","navigationInstruction","next","getAllInstructions","some","settings","allowAnonymous","loggedIn","console","origPath","fragment","cancel","e","trace","route","name","title","moduleId","nav","href","CloseDialogStep","dialog","closeAll","Shell","translations","contextService","document","body","className","setLocale","then","configureRouter","router","addAuthorizeStep","addPreActivateStep","map","routes","redirect","autoinject","I18N","DialogService"],"sourceRoot":""}