{"version":3,"file":"app-d91a9049.b149463909b5e91f4e75.bundle.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHA;AAEA;AAEA;AAAA;AAAA;;AAqJA;AAlJA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzJA;AAAA;AAgBA;AAdA;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAHA;AAKA;;;;;;AACA;AACA;;AAAA;AACA;;AAAA;AACA;AACA;;;;;AACA;AACA;AAAA;;AAEA;AAAA;AAOA;AACA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BA;AAEA;AACA;AACA;AAEA;AACA;AAEA;;;;;AACA;AACA;;AAAA;AACA;;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAGA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AASA;;;;;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA","sources":["webpack://app/./src/app.html","webpack://app/./src/app.ts","webpack://app/./src/config/FsConfig.ts","webpack://app/./src/main.ts"],"sourcesContent":["// Module\nvar code = \"\\n\";\n// Exports\nexport default code;","import { PLATFORM } from 'aurelia-pal';\nimport { Router, RouterConfiguration } from 'aurelia-router';\nimport { FsApp } from './Lib/Fs.Core.Aurelia/Components/fsapp';\r\n\nexport class App extends FsApp {\n public router: Router;\n\n public configureRouter(config: RouterConfiguration, router: Router): Promise | PromiseLike | void {\n /*config.title = 'Aurelia';*/\n config.map([\n {\n route: [''],\n redirect: \"Modules/Aqs/HomePage\",\n },\n {\n route: 'users',\n name: 'users',\n moduleId: PLATFORM.moduleName('./Modules/Sample/Programs/GithubUser/users'),\n nav: true,\n title: 'Github Users',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page'),\n },\n //{\n // route: 'child-router',\n // name: 'child-router',\n // moduleId: PLATFORM.moduleName('./Modules/Sample/Programs/ChildRouter/child-router'),\n // nav: true,\n // title: 'Child Router',\r\n // layoutViewModel: PLATFORM.moduleName('Layout/master-page'),\n //},\n {\n route: 'child-router-core',\n name: 'child-router-core',\n nav: true,\n title: 'Core',\n redirect: 'Core/ManageUser'\n },\n {\n route: 'open-layer',\n name: 'open-layer',\n moduleId: PLATFORM.moduleName('./Modules/Sample/Programs/OpenLayer/open-layer'),\n nav: true,\n title: 'Open Layer',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page'),\n },\n {\n route: 'change-password',\n name: 'ChangePassword',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ChangePassword/ChangePasswordVM'),\n nav: false,\n settings: { IsFromLogin: true },\n title: 'Audit Log',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'change-password/TokenNo:/ResourceId:',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ChangePassword/ChangePasswordVM'),\n name: 'ChangePasswordLogin',\n nav: false,\n settings: { IsFromLogin: false },\n title: 'Change Password',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'redirect-success',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ChangePassword/RedirectSuccessVM'),\n name: 'RedirectSuccess',\n nav: false,\n title: 'Redirect Success',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'create-password',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/CreatePassword/CreatePasswordVM'),\n name: 'CreatePassword',\n nav: false,\n title: 'Create Password',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'forget-password',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ForgetPassword/ForgetPasswordVM'),\n name: 'ForgetPassword',\n nav: false,\n title: 'Forget Password',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'activate',\n name: 'Activate',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/Activate/ActivateVM'),\n nav: true,\n title: 'Activate',\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page-manageuser'),\n },\n {\n route: 'Core/ManageUser',\n name: 'ManageUser',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ManageUser/ManageUserSearchVM'),\n nav: true,\n title: 'Manage User',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n },\n {\n route: 'audit-log',\n name: 'AuditLog',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/AuditLog/AuditLogSearchVM'),\n nav: true,\n title: 'Audit Log',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n },\n {\n route: 'manage-configuration',\n name: 'ManageConfiguration',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ManageConfiguration/ConfigurationSearchVM'),\n nav: true,\n title: 'Manage Configuration',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n },\n {\n route: 'manage-user-group',\n name: 'ManageUserGroup',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/ManageUserGroup/ManageUserGroupSearchVM'),\n nav: true,\n title: 'Manage User Group',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n },\n {\n route: 'user-detail/:id?',\n name: 'UserDetail',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/UserDetail/UserDetailEditorVM'),\n nav: false,\n title: 'User Detail',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n },\n {\n route: 'user-group-detail/:id?',\n name: 'UserGroupDetail',\n moduleId: PLATFORM.moduleName('./Modules/Core/Programs/UserGroupDetail/UserGroupDetailEditorVM'),\n nav: false,\n title: 'User Group Detail',\n settings: { parentMenu: 'child-router-core' },\r\n layoutViewModel: PLATFORM.moduleName('Layout/master-page')\n }\n ]);\n\n this.router = router;\n }\n}\n","export class fs {\r\n\r\n static get Config(): FsConfig {\r\n return window['_config'];\r\n }\r\n static set Config(config: FsConfig) {\r\n window['_config'] = config;\r\n }\r\n\r\n static async InitConfig() {\r\n const configFile = require('Config/FsConfig.json');\r\n var response = await fetch(configFile.default);\r\n var result = await response.json();\r\n console.log('JSON loaded via fetch', result);\r\n this.Config = $.extend(this.Config, result.Config);\r\n }\r\n}\r\n\r\nexport class FsConfig {\r\n ServiceBaseUrl: string;\r\n ClientBaseUrl: string;\r\n ClientUrl: string;\r\n UserDetailUrl: string;\r\n UserGroupDetailUrl: string;\r\n YearOffset: number;\r\n EnableManualCheckSession: boolean = false;\r\n IsShowPasswordRequirements: boolean = true;\r\n}\r\n","import 'bootstrap';\nimport { Aurelia } from 'aurelia-framework';\nimport environment from '../config/environment.json';\nimport { PLATFORM } from 'aurelia-pal';\nimport { I18N, Backend, TCustomAttribute } from 'aurelia-i18n';\nimport { AppRouter } from 'aurelia-router';\nimport { fs } from './Config/FsConfig';\r\nimport OidcConfig from './Config/open-id-connect-configuration';\r\n\r\nexport async function configure(aurelia: Aurelia) {\r\n aurelia.use.standardConfiguration();\r\n await fs.InitConfig();\r\n await OidcConfig.InitConfig();\r\n\r\n if (environment.testing) {\r\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-testing'));\r\n }\n\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-dialog'));\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-toolbelt/components/bootstrap/navbar'));\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-validation'));\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-open-id-connect'), () => OidcConfig.Config);\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-bootstrap-datetimepicker'), config => {\r\n config.extra.bootstrapVersion = 4;\r\n });\n aurelia.use.plugin(PLATFORM.moduleName('aurelia-i18n'), (instance) => {\n\n let aliases = ['t', 'i18n'];\n // add aliases for 't' attribute\n TCustomAttribute.configureAliases(aliases);\n\n // register backend plugin\n instance.i18next.use(Backend.with(aurelia.loader));//.use(modules[3]);\n\n // adapt options to your needs (see http://i18next.com/docs/options/)\n // make sure to return the promise of the setup method, in order to guarantee proper loading\n\n instance.setup({\n backend: {\n loadPath: loadPath\n },\n attributes: aliases,\n fallbackLng: 'th',\n debug: true\n }).then(() => {\n });\n });\n\n aurelia.use.feature(PLATFORM.moduleName('Modules/Sample/index'));\n aurelia.use.feature(PLATFORM.moduleName('Modules/Core/index'));\n aurelia.use.feature(PLATFORM.moduleName('Modules/Aqs/index'));\n\n //Uncomment the line below to enable animation.\n // aurelia.use.plugin(PLATFORM.moduleName('aurelia-animator-css'));\n //if the css animator is enabled, add swap-order=\"after\" to all router-view elements\n\n //Anyone wanting to use HTMLImports to load views, will need to install the following plugin.\n // aurelia.use.plugin(PLATFORM.moduleName('aurelia-html-import-template-loader'));\n\n aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app')));\n}\n\nfunction loadPath(lng, namespace) {\n\n console.log(\"Namespace: \" + namespace[0]);\n var splitPath = namespace[0].split(\".\");\n let path = \"\";\n if (splitPath.length > 1) {\n path = 'Modules/' + splitPath[0] + '/Locales/' + lng + '/' + splitPath[1] + '.json';\r\n } else {\n path = 'Modules/Core/Locales/' + lng + '/' + splitPath[0] + '.json';\r\n }\n return path;\n}\n"],"names":[],"sourceRoot":""}