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,IAAf,UAAe,W,oCAI9B,GADN,EAAAA,W,gBAC+C,mB,OAAA,IAApB,EAAAC,sBAAA,EAAAA,sBAAoB,W,0CAPrCC,EAAa,IAzBzB,IAAAC,cAAa,CACZC,iBAAgB,SAAC7D,GAGf,IAFA,IAAI8D,EAAS9D,EAAU8D,OAEhBA,GAAQ,CACb,IAAMC,EAAWD,EAAOE,YAAYL,GAEpC,GAAII,EACF,OAAOA,EAGTD,EAASA,EAAOA,MAClB,CAEA,MAAM,IAAInD,MAAM,mEAClB,I,8BA+BsD,mB,OAAA,IAArB,UAAqB,SACY,mBADZ,OACY,IAA3B,UAA2B,SACxB,mBADwB,OACxB,IAAf,EAAAG,iBAAA,EAAAA,iBAAe,YAvB/B6C,E,CAAb,E,mKCpCA,OAAgB,oBAAoB,6BAA6B,iBAAmB,6BAA6B,mBAAmB,4BAA4B,gBAAkB,4BAA4B,OAAS,mBCCvN,aACE,KAAAM,OAAS,CACX,C,iICHA,OAAgB,oBAAoB,6BAA6B,iBAAmB,8BCCpF,aACE,KAAAA,OAAS,CACX,C","sources":["webpack://iadviser/./src/router-layouts/client-layout/client-layout.html?3799","webpack://iadviser/./src/router-layouts/client-layout/client-layout.ts?c489","webpack://iadviser/./src/router-layouts/default-layout-with-footer/default-layout-with-footer.html","webpack://iadviser/./src/router-layouts/default-layout/default-layout.html","webpack://iadviser/./src/route-definitions/home.ts","webpack://iadviser/./src/route-definitions/client.ts","webpack://iadviser/./src/route-definitions/reports.ts","webpack://iadviser/./src/route-definitions/admin.ts","webpack://iadviser/./src/route-definitions/accounts.ts","webpack://iadviser/./src/route-definitions/diagnostics.ts","webpack://iadviser/./src/route-definitions/user-form.ts","webpack://iadviser/./src/route-definitions/index.ts","webpack://iadviser/./src/router-layouts/client-layout/client-context.ts","webpack://iadviser/./src/router-layouts/default-layout-with-footer/default-layout-with-footer.css?00fd","webpack://iadviser/./src/router-layouts/default-layout-with-footer/default-layout-with-footer.ts","webpack://iadviser/./src/router-layouts/default-layout/default-layout.css?5078","webpack://iadviser/./src/router-layouts/default-layout/default-layout.ts"],"sourcesContent":["module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../../node_modules/html-loader/dist/cjs.js??ruleSet[1].rules[3]!../../../node_modules/aurelia-webpack-plugin/dist/html-requires-loader.js!./client-layout.html\"));\n\t}, \"client-layout\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../../node_modules/ts-loader/index.js??ruleSet[1].rules[4].use[0]!./client-layout.ts\"));\n\t}, \"client-layout\");\n}","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n
\\r\\n\\r\\n \\r\\n \\r\\n\\r\\n\";\n// Exports\nexport default code;","// Module\nvar code = \"\\r\\n \\r\\n \\r\\n
\\r\\n\\r\\n\";\n// Exports\nexport default code;","import { activationStrategy } from 'aurelia-router';\r\n\r\nimport { PLATFORM } from 'aurelia-pal';\r\n\r\nexport const footerLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer.html'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer'),\r\n};\r\n\r\nexport const homeRoutes = [\r\n {\r\n route: ['', 'home'],\r\n name: 'home',\r\n nav: true,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/home/home'),\r\n },\r\n {\r\n route: 'pre-renewal',\r\n name: 'preRenewal',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/pre-renewals/pre-renewals', 'pre-renewals'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserPreRenewalsPreRenewalList', 'IadviserPreRenewalsPreRenewalNewBatch'],\r\n },\r\n },\r\n {\r\n route: 'au2-bridge-test',\r\n name: 'au2BridgeTest',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/au2-bridge-test/au2-bridge-test', 'au2-bridge-test'),\r\n activationStrategy: activationStrategy.replace,\r\n },\r\n];\r\n","import { EventAggregator } from 'aurelia-event-aggregator';\r\nimport { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\nimport { ConfigureRouteScope } from 'core/scoped-route-loader';\r\nimport { ClientDetailsEndpoint } from 'endpoints/client/client-details-endpoint';\r\nimport { SummaryTransactionsEndpoint } from 'endpoints/client/summary/transactions-endpoint';\r\nimport { ClientContext } from 'router-layouts/client-layout/client-context';\r\n\r\nexport const configureClientScope: ConfigureRouteScope = (container, instruction, cleanup) => {\r\n // Get/parse the client ID from the route parameter \"id\"\r\n const rawClientId = String(instruction.params.id ?? '');\r\n const clientId = Number(rawClientId);\r\n\r\n if (!/^\\d+$/.test(rawClientId) || !Number.isSafeInteger(clientId) || clientId <= 0) {\r\n throw new Error(`Invalid client ID '${rawClientId}'.`);\r\n }\r\n\r\n const clientContext = new ClientContext(\r\n clientId,\r\n container.get(ClientDetailsEndpoint),\r\n container.get(SummaryTransactionsEndpoint),\r\n container.get(EventAggregator),\r\n );\r\n\r\n container.registerInstance(ClientContext, clientContext);\r\n\r\n cleanup.add(clientContext);\r\n};\r\n\r\nexport const footerLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer.html'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer'),\r\n};\r\n\r\nexport const clientLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/client-layout/client-layout.html', 'client-layout'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/client-layout/client-layout', 'client-layout'),\r\n};\r\n\r\nexport const clientRoutes = [\r\n {\r\n route: 'client/new/:id?',\r\n name: 'newClient',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/new/new', 'client-new'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserProcessingClientNewClient'],\r\n },\r\n },\r\n // client routes\r\n {\r\n route: 'client/:id',\r\n name: 'clientHome',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/home/home', 'client-home'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'clientHome',\r\n claims: ['IadviserProcessingClientFindClientView', 'IadviserProcessingClientFindClientEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/insured/:clientInsuredPartyId?',\r\n name: 'clientInsured',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/insured/insured', 'client-insured'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'insured',\r\n claims: ['IadviserProcessingInsurednameFindInsuredNameView', 'IadviserProcessingInsurednameFindInsuredNameEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/insured/new',\r\n name: 'insuredNameNew',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/insured/insured', 'client-insured'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'insured',\r\n claims: ['IadviserProcessingInsurednameNewInsuredName'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/quotes/wizard/:entityMode/:entityType/:step/:statusTypeId/:versionNo/:isTakeUp',\r\n name: 'newQuote',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/wizard/wizard', 'client-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserProcessingQuoteNewQuote'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route:\r\n 'client/:id/wizard/go/:parentEntityId/:entityId/:actionType/:entityType/:entityMode/:step/:statusTypeId/:versionNo/:isTakeUp/:isEditTakeUpAction/:newActionType?',\r\n name: 'wizard',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/wizard/wizard', 'client-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: [\r\n 'IadviserProcessingQuoteFindQuoteView',\r\n 'IadviserProcessingQuoteFindQuoteEdit',\r\n 'IadviserProcessingPolicyFindPolicyView',\r\n 'IadviserProcessingPolicyFindPolicyEdit',\r\n ],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/quotes/:quoteId?',\r\n name: 'clientQuotes',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/quotes/quotes', 'client-quotes'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'quotes',\r\n claims: ['IadviserProcessingQuoteFindQuoteView', 'IadviserProcessingQuoteFindQuoteEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n // policyVersionId - used to open doc pack\r\n // statusTypeId - used to update policy filter, needed to return correct policies\r\n // versionNo - used to highlight version row\r\n route: 'client/:id/policies/:policyId?/:policyVersionId?/:statusTypeId?/:versionNo?',\r\n name: 'clientPolicies',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/policies/policies', 'client-policies'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'policies',\r\n claims: ['IadviserProcessingPolicyFindPolicyView', 'IadviserProcessingPolicyFindPolicyEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/claims/:claimId?',\r\n name: 'clientClaims',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/claims/claims', 'client-claims'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'claims',\r\n claims: ['IadviserProcessingClaimsFindClaimView', 'IadviserProcessingClaimsFindClaimEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/tasks/:taskId?/:taskTypeId?/:entityId?/:entityType?/:entityLabel?',\r\n name: 'clientTasks',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/tasks/tasks', 'client-tasks'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'tasks',\r\n claims: ['IadviserProcessingDiaryViewClientTasks', 'IadviserProcessingDiaryEditTask'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/documents/:entityTaskOrDocumentId?/:defaultFolderId?',\r\n name: 'clientDocuments',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/documents/documents', 'client-documents'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'documents',\r\n claims: ['IadviserProcessingDocumentFindDocumentsView', 'IadviserProcessingDocumentFindDocumentsEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/advice/:adviceId?/:versionNo?',\r\n name: 'clientAdvice',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/advice/advice', 'client-advice'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'rpg',\r\n claims: ['IadviserProcessingAdviceView', 'IadviserProcessingAdviceEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/advice/new',\r\n name: 'clientAdviceNew',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/advice/advice', 'client-advice'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'rpg',\r\n claims: ['IadviserProcessingAdviceNew'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/kyc',\r\n name: 'clientKyc',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/know-your-client/know-your-client', 'know-your-client'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'kyc',\r\n claims: ['IadviserProcessingKnowYourClientView', 'IadviserProcessingKnowYourClientEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/kyc/new',\r\n name: 'clientKycNew',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/know-your-client/know-your-client', 'know-your-client'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'kyc',\r\n claims: ['IadviserProcessingKnowYourClientNew'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/forms/:formId?',\r\n name: 'clientForms',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/forms/forms', 'forms'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'forms',\r\n claims: [],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/forms/new',\r\n name: 'clientFormsNew',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/forms/forms', 'forms'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n clientAction: true,\r\n clientNavLabel: 'forms',\r\n claims: [],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/claims/wizard/:parentEntityId/:entityMode/:entityType/:step',\r\n name: 'newClaim',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/claims/wizard', 'client-claims-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserProcessingClaimsNewClaim'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'client/:id/wizard/go/:entityId/:entityType/:entityMode/:step?',\r\n name: 'claimWizard',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/claims/wizard', 'client-claims-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserProcessingClaimsFindClaimView', 'IadviserProcessingClaimsFindClaimEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n {\r\n route: 'usageGuide',\r\n name: 'usageGuide',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/usage-guide/usage-guide', 'usage-guide'),\r\n },\r\n {\r\n route: 'client/:id/form/:formId/:entityId/:actionType/:entityType/:entityMode/:isEditTakeUpAction/:step?',\r\n name: 'formWizard',\r\n ...clientLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/wizard/wizard', 'client-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['IadviserProcessingWebFormsQuoteView', 'IadviserProcessingWebFormsQuoteEdit'],\r\n configureScope: configureClientScope,\r\n },\r\n },\r\n];\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\n\r\nexport const footerLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer.html'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer'),\r\n};\r\n\r\nexport const reportsRoutes = [\r\n {\r\n route: 'reports',\r\n name: 'app-reports',\r\n moduleId: PLATFORM.moduleName('routes/app-reports/app-reports', 'app-reports'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: [],\r\n },\r\n },\r\n {\r\n route: 'reports/:systemKey',\r\n name: 'app-reports-view',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-reports/app-reports-view', 'app-reports-view'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: [],\r\n },\r\n },\r\n];\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\n\r\nexport const footerLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer.html'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer'),\r\n};\r\n\r\nexport const adminRoutes = [\r\n {\r\n route: 'admin',\r\n name: 'app-admin',\r\n moduleId: PLATFORM.moduleName('routes/app-admin/app-admin', 'app-admin'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iadmin'],\r\n },\r\n },\r\n {\r\n route: 'admin/:menuItemId',\r\n name: 'app-admin-view',\r\n moduleId: PLATFORM.moduleName('routes/app-admin/app-admin-view', 'app-admin-view'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iadmin'],\r\n },\r\n },\r\n {\r\n route: 'admin/clientTransfer',\r\n name: 'client-transfer',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-admin/client-transfer/client-transfer', 'client-transfer'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iadmin'],\r\n },\r\n title: 'Client Transfer',\r\n },\r\n {\r\n route: 'admin/questionCollections',\r\n name: 'question-collection-editor',\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-admin/question-collection-editor/question-collection-editor',\r\n 'question-collection-editor',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iadmin'],\r\n },\r\n title: 'Question Collections',\r\n },\r\n {\r\n route: 'admin/clientImport',\r\n name: 'client-import',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-admin/client-import/client-import', 'client-import'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iadmin', 'IadminGeneralClientImport'],\r\n },\r\n },\r\n];\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\n\r\nexport const footerLayoutModules = {\r\n layoutView: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer.html'),\r\n layoutViewModel: PLATFORM.moduleName('router-layouts/default-layout-with-footer/default-layout-with-footer'),\r\n};\r\n\r\nexport const accountsRoutes = [\r\n {\r\n route: 'accounts',\r\n name: 'app-accounts',\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/app-accounts', 'app-accounts'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/:menuItemId/:batchId?',\r\n name: 'app-accounts-view',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/app-accounts-view', 'app-accounts-view'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newClientBatch/:batchId?',\r\n name: 'new-client-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/client-payments/client-batch', 'client-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/clientBatch/:batchId?',\r\n name: 'client-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/client-payments/client-batch', 'client-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newClientBatchFileUpload',\r\n name: 'upload-client-payment',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/client-payments/upload-client-payment',\r\n 'upload-client-payment',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/dishonourClientPayment',\r\n name: 'dishonour-client-payment',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/client-payments/dishonour-client-payment',\r\n 'dishonour-client-payment',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newClientSettlement',\r\n name: 'new-client-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/client-settlements/new-client-settlement',\r\n 'new-client-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/clientSettlement/:settlementId?',\r\n name: 'client-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/client-settlements/client-settlement',\r\n 'settlement-authorisation',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/findClientSettlement/:clientId?/:journalId?',\r\n name: 'find-client-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/client-settlements/find-client-settlement',\r\n 'find-client-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/clientToClient',\r\n name: 'client-to-client',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/journals/client-to-client', 'client-to-client'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/clientToSundry',\r\n name: 'client-to-sundry',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/journals/client-to-sundry', 'client-to-sundry'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/sundryToClient',\r\n name: 'sundry-to-client',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/journals/sundry-to-client', 'sundry-to-client'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/findJournal/:type?/:journalId?',\r\n name: 'find-journal',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/journals/find-journal', 'find-journal'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/journalAuthorisation',\r\n name: 'journal-authorisation',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/journals/journal-authorisation', 'journal-authorisation'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newInsurerBatch/:batchId?',\r\n name: 'new-insurer-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/insurer-payments/insurer-batch', 'insurer-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/insurerBatch/:batchId?',\r\n name: 'insurer-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/insurer-payments/insurer-batch', 'insurer-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newInsurerWorkfile',\r\n name: 'new-insurer-workfile',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/insurer-settlements/new-insurer-workfile',\r\n 'new-insurer-workfile',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/insurerWorkfile/:workfileId?',\r\n name: 'insurer-workfile',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/insurer-settlements/insurer-workfile', 'insurer-workfile'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newEarningsWorkfile',\r\n name: 'new-earnings-workfile',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/earnings-settlements/new-earnings-workfile',\r\n 'new-earnings-workfile',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/earningsWorkfile/:earningWorkfileId?',\r\n name: 'earnings-workfile',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/earnings-settlements/earnings-workfile',\r\n 'earnings-workfile',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newElectronicPayment/:fileContentId?',\r\n name: 'new-electronic-payment',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/electronic-payments/electronic-payment',\r\n 'electronic-payment',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/electronicPayment/:fileContentId?',\r\n name: 'electronic-payment',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/electronic-payments/electronic-payment',\r\n 'electronic-payment',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/electronicSettlement/:paymentOutId?',\r\n name: 'electronic-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/electronic-payments/electronic-settlement',\r\n 'electronic-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newChequeSettlement',\r\n name: 'new-cheque-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/cheque-payments/new-cheque-settlement',\r\n 'new-cheque-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/chequeSettlement/:paymentOutId?',\r\n name: 'cheque-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/cheque-payments/cheque-settlement', 'cheque-settlement'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newSundryBatch/:batchId?',\r\n name: 'new-sundry-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/sundry-payments/sundry-batch', 'sundry-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/sundryBatch/:batchId?',\r\n name: 'sundry-batch',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/sundry-payments/sundry-batch', 'sundry-batch'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newSundrySettlement',\r\n name: 'new-sundry-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/sundry-settlements/new-sundry-settlement',\r\n 'new-sundry-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/findSundrySettlement/:journalId?',\r\n name: 'find-sundry-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/sundry-settlements/find-sundry-settlement',\r\n 'find-sundry-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/accountingPeriods',\r\n name: 'accounting-periods',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName('routes/app-accounts/views/accounting-periods/accounting-periods', 'accounting-periods'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/newSurchargeSettlement',\r\n name: 'new-surcharge-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/surcharge-settlements/new-surcharge-settlement',\r\n 'new-surcharge-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n {\r\n route: 'accounts/findSurchargeSettlement/:surchargePayeeId?/:journalId?',\r\n name: 'find-surcharge-settlement',\r\n ...footerLayoutModules,\r\n moduleId: PLATFORM.moduleName(\r\n 'routes/app-accounts/views/surcharge-settlements/find-surcharge-settlement',\r\n 'find-surcharge-settlement',\r\n ),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: ['Iaccounts'],\r\n },\r\n },\r\n];\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\n\r\nexport const diagnosticsRoutes = [\r\n {\r\n route: 'diagnostics',\r\n name: 'diagnostics',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/diagnostics/diagnostics', 'diagnostics'),\r\n activationStrategy: activationStrategy.replace,\r\n settings: {\r\n claims: [],\r\n },\r\n },\r\n];\r\n","import { activationStrategy } from 'aurelia-router';\r\nimport { PLATFORM } from 'aurelia-pal';\r\n\r\nexport const userFormRoutes = [\r\n {\r\n route: ['', '/:id'],\r\n name: 'userFormHome',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/user-form/user-form', 'user-form')\r\n },\r\n {\r\n route: '/invalid',\r\n name: 'userFormInvalid',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/user-form/user-form', 'user-form')\r\n },\r\n {\r\n route: '/complete',\r\n name: 'userFormHomeComplete',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/user-form/user-form', 'user-form')\r\n },\r\n {\r\n route: 'client/:id/form/:formId/:entityId/:actionType/:entityType/:entityMode/:isEditTakeUpAction/:step?',\r\n name: 'userFormWizard',\r\n moduleId: PLATFORM.moduleName('routes/app-adviser/client/wizard/wizard', 'client-wizard'),\r\n activationStrategy: activationStrategy.replace,\r\n }\r\n];\r\n","import { PLATFORM } from 'aurelia-pal';\r\nimport { homeRoutes } from './home';\r\nimport { clientRoutes } from './client';\r\nimport { reportsRoutes } from './reports';\r\nimport { adminRoutes } from './admin';\r\nimport { accountsRoutes } from './accounts';\r\nimport { diagnosticsRoutes } from './diagnostics';\r\nimport { userFormRoutes } from './user-form';\r\n\r\nexport const appRoutes = [\r\n { route: 'pdf-preview', name: 'pdfPreview', nav: false, moduleId: PLATFORM.moduleName('../routes/pdf-preview', 'pdf-preview') },\r\n ...homeRoutes,\r\n ...clientRoutes,\r\n ...adminRoutes,\r\n ...accountsRoutes,\r\n ...reportsRoutes,\r\n ...diagnosticsRoutes,\r\n];\r\n\r\nexport const formRoutes = [\r\n ...userFormRoutes,\r\n];\r\n","import { EventAggregator, Subscription } from 'aurelia-event-aggregator';\r\nimport { Container, observable, registration } from 'aurelia-framework';\r\nimport { ClientDetailsEndpoint } from 'endpoints/client/client-details-endpoint';\r\nimport { ISummaryTransactions, SummaryTransactionsEndpoint } from 'endpoints/client/summary/transactions-endpoint';\r\nimport { IClientResponse } from 'interfaces/i-client-response';\r\nimport { eventAggregatorEvents } from 'resources/constants';\r\n\r\n// Prevent automatic construction: ClientContext is only designed to be constructed inside a configured client scope\r\n// as part of \"/client\" routes. This recursively searches explictly for a resolver for ClientContext attached to a\r\n// parent container, and if it doesn't find one (i.e. reaches the top) it throws an error.\r\n// This guards against accidental DI construction of this context outside of shared client container scope where\r\n// an instance of ClientContext gets registered.\r\n@registration({\r\n registerResolver(container: Container) {\r\n let parent = container.parent;\r\n\r\n while (parent) {\r\n const resolver = parent.getResolver(ClientContext);\r\n\r\n if (resolver) {\r\n return resolver;\r\n }\r\n\r\n parent = parent.parent;\r\n }\r\n\r\n throw new Error('ClientContext must be explicitly registered in the client scope.');\r\n },\r\n})\r\n/**\r\n * Shares state for one client between components in a configured route scope.\r\n *\r\n * The client ID is fixed at construction. Summary counts are loaded on demand and\r\n * cached for this instance; callers refresh them after operations that affect counts.\r\n * Concurrent requests share a single load, and failed loads leave cached data intact.\r\n * This context does not persist state or share it across separately created scopes.\r\n */\r\nexport class ClientContext {\r\n /** Latest successfully loaded client details, or null before the first successful load. */\r\n @observable\r\n public clientDetails: IClientResponse | null = null;\r\n\r\n /** Latest successfully loaded summary counts, or null before the first successful load. */\r\n @observable\r\n public summaryTransactions: ISummaryTransactions | null = null;\r\n\r\n // In-flight request promises shared by load/refresh callers; cleared on success or failure.\r\n private loadClientDetailsPromise: Promise | null = null;\r\n private loadSummaryTransactionsPromise: Promise | null = null;\r\n\r\n private clientActiveStatusSubscription: Subscription | null = null;\r\n\r\n /**\r\n * @param clientId - The client associated with this scope.\r\n * @param summaryTransactionsEndpoint - Endpoint used to retrieve this client's summary counts.\r\n */\r\n constructor(\r\n public readonly clientId: number,\r\n private clientDetailsEndpoint: ClientDetailsEndpoint,\r\n private summaryTransactionsEndpoint: SummaryTransactionsEndpoint,\r\n private eventAggregator: EventAggregator,\r\n ) {\r\n // Load basic client details as soon as we're constructed\r\n // Don't await though, anybody that depends on it can call ensureClientDetailsLoadedAsync and await that\r\n this.loadClientDetailsAsync();\r\n\r\n // Update when client status is changed\r\n this.clientActiveStatusSubscription = this.eventAggregator.subscribe(\r\n eventAggregatorEvents.clientActiveStatus,\r\n async (event: { clientCode: string; clientName: string; clientActive: boolean }) => {\r\n if (!this.clientDetails) {\r\n // No client details have previously been loaded to update, do nothing\r\n return;\r\n }\r\n\r\n this.clientDetails.clientName = event.clientName;\r\n this.clientDetails.clientName = event.clientName;\r\n this.clientDetails.clientActiveFlag = event.clientActive;\r\n },\r\n );\r\n }\r\n\r\n public dispose() {\r\n this.clientActiveStatusSubscription!.dispose();\r\n }\r\n\r\n public async ensureClientDetailsLoadedAsync(): Promise {\r\n if (this.clientDetails != null) {\r\n return;\r\n }\r\n\r\n return this.refreshClientDetailsAsync();\r\n }\r\n\r\n /**\r\n * Returns cached counts if available; otherwise loads them using the shared request.\r\n * This does not wait for an ongoing refresh when previously loaded counts exist.\r\n *\r\n * @returns Cached or newly loaded summary counts.\r\n * @throws If the endpoint request fails or returns no summary data.\r\n */\r\n public async ensureSummaryTransactionsLoadedAsync(): Promise {\r\n if (this.summaryTransactions) {\r\n return;\r\n }\r\n\r\n return this.refreshSummaryTransactionsAsync();\r\n }\r\n\r\n public async refreshClientDetailsAsync(): Promise {\r\n if (this.loadClientDetailsPromise) {\r\n return this.loadClientDetailsPromise;\r\n }\r\n\r\n this.loadClientDetailsPromise = this.loadClientDetailsAsync();\r\n\r\n try {\r\n return await this.loadClientDetailsPromise;\r\n } finally {\r\n // Allow later callers to retry after failure as well as refresh after success.\r\n this.loadSummaryTransactionsPromise = null;\r\n }\r\n }\r\n\r\n /**\r\n * Reloads counts, or joins the current request if a load is already in progress.\r\n * Existing counts remain available while loading and are retained if the request fails.\r\n *\r\n * @returns The summary counts from the shared request.\r\n * @throws If the endpoint request fails or returns no summary data.\r\n */\r\n public async refreshSummaryTransactionsAsync(): Promise {\r\n if (this.loadSummaryTransactionsPromise) {\r\n return this.loadSummaryTransactionsPromise;\r\n }\r\n\r\n this.loadSummaryTransactionsPromise = this.loadSummaryTransactionsAsync();\r\n\r\n try {\r\n return await this.loadSummaryTransactionsPromise;\r\n } finally {\r\n // Allow later callers to retry after failure as well as refresh after success.\r\n this.loadSummaryTransactionsPromise = null;\r\n }\r\n }\r\n\r\n /**\r\n * Fetches the basic client details and publishes them via observables.\r\n * An empty response is an error and must not replace previously loaded data.\r\n */\r\n private async loadClientDetailsAsync(): Promise {\r\n const result = await this.clientDetailsEndpoint.fetch({ clientId: this.clientId.toString() });\r\n\r\n if (result.data == null) {\r\n throw new Error(`Could not get updated summary transactions for client '${this.clientId}'`);\r\n }\r\n\r\n this.clientDetails = result.data;\r\n }\r\n\r\n /**\r\n * Fetches and validates counts before publishing them to observing components.\r\n * An empty response is an error and must not replace previously loaded data.\r\n */\r\n private async loadSummaryTransactionsAsync(): Promise {\r\n const result = await this.summaryTransactionsEndpoint.fetch({ clientId: this.clientId });\r\n\r\n if (result.data == null) {\r\n throw new Error(`Could not get updated summary transactions for client '${this.clientId}'`);\r\n }\r\n\r\n this.summaryTransactions = result.data;\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"content-container\":\"content-container____tlD50\",\"contentContainer\":\"content-container____tlD50\",\"footer-container\":\"footer-container____RTkfR\",\"footerContainer\":\"footer-container____RTkfR\",\"footer\":\"footer____Qb9do\"};","import styles from './default-layout-with-footer.css';\r\n\r\nexport class DefaultLayoutWithFooter {\r\n styles = styles;\r\n}\r\n","// extracted by mini-css-extract-plugin\nexport default {\"content-container\":\"content-container____j7Iv8\",\"contentContainer\":\"content-container____j7Iv8\"};","import styles from './default-layout.css';\r\n\r\nexport class DefaultLayout {\r\n styles = styles;\r\n}\r\n"],"names":["module","exports","cb","require","homeRoutes","route","name","nav","moduleId","layoutView","layoutViewModel","activationStrategy","replace","settings","claims","configureClientScope","container","instruction","cleanup","rawClientId","String","params","id","clientId","Number","test","isSafeInteger","Error","clientContext","get","EventAggregator","registerInstance","add","clientLayoutModules","clientRoutes","clientAction","clientNavLabel","configureScope","reportsRoutes","adminRoutes","title","accountsRoutes","diagnosticsRoutes","userFormRoutes","appRoutes","formRoutes","clientDetailsEndpoint","summaryTransactionsEndpoint","eventAggregator","clientDetails","summaryTransactions","loadClientDetailsPromise","loadSummaryTransactionsPromise","clientActiveStatusSubscription","this","loadClientDetailsAsync","subscribe","clientActiveStatus","event","clientName","clientActiveFlag","clientActive","dispose","ensureClientDetailsLoadedAsync","Promise","refreshClientDetailsAsync","ensureSummaryTransactionsLoadedAsync","refreshSummaryTransactionsAsync","loadSummaryTransactionsAsync","fetch","toString","result","data","observable","ISummaryTransactions","ClientContext","registration","registerResolver","parent","resolver","getResolver","styles"],"sourceRoot":""}