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b6B,EAAS,UAEJC,KACT,MAAM,IAAI1B,MAAM,iEAA0DqB,KAAKzB,SAAQ,MAIzF,OADAyB,KAAKJ,oBAAsBQ,EAAOC,KAC3B,CAAP,EAAOL,KAAKJ,qB,MA/DP,GADN,EAAAU,W,gBAC+C,mB,OAAA,IAApB,EAAAC,sBAAA,EAAAA,sBAAoB,W,0CAHrCC,EAAa,IAzBzB,IAAAC,cAAa,CACZC,iBAAgB,SAACzC,GAGf,IAFA,IAAI0C,EAAS1C,EAAU0C,OAEhBA,GAAQ,CACb,IAAMC,EAAWD,EAAOE,YAAYL,GAEpC,GAAII,EACF,OAAOA,EAGTD,EAASA,EAAOA,MAClB,CAEA,MAAM,IAAIhC,MAAM,mEAClB,I,8BAwBkE,mB,OAAA,IAA3B,UAA2B,YAdvD6B,E,CAAb,E,mKChCA,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 { PLATFORM } from 'aurelia-pal';\r\nimport { activationStrategy } from 'aurelia-router';\r\nimport { ConfigureRouteScope } from 'core/scoped-route-loader';\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) => {\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 container.registerInstance(ClientContext, new ClientContext(clientId, container.get(SummaryTransactionsEndpoint)));\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 { Container, observable, registration } from 'aurelia-framework';\r\nimport { ISummaryTransactions, SummaryTransactionsEndpoint } from 'endpoints/client/summary/transactions-endpoint';\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 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 shared by load/refresh callers; cleared on success or failure. */\r\n private loadPromise: Promise | 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 summaryTransactionsEndpoint: SummaryTransactionsEndpoint,\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 this.summaryTransactions;\r\n }\r\n\r\n return this.refreshSummaryTransactionsAsync();\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.loadPromise) {\r\n return this.loadPromise;\r\n }\r\n\r\n this.loadPromise = this.loadSummaryTransactionsAsync();\r\n\r\n try {\r\n return await this.loadPromise;\r\n } finally {\r\n // Allow later callers to retry after failure as well as refresh after success.\r\n this.loadPromise = null;\r\n }\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 counts.\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 return this.summaryTransactions;\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","rawClientId","String","params","id","clientId","Number","test","isSafeInteger","Error","registerInstance","get","clientLayoutModules","clientRoutes","clientAction","clientNavLabel","configureScope","reportsRoutes","adminRoutes","title","accountsRoutes","diagnosticsRoutes","userFormRoutes","appRoutes","formRoutes","summaryTransactionsEndpoint","summaryTransactions","loadPromise","ensureSummaryTransactionsLoadedAsync","Promise","this","refreshSummaryTransactionsAsync","loadSummaryTransactionsAsync","fetch","result","data","observable","ISummaryTransactions","ClientContext","registration","registerResolver","parent","resolver","getResolver","styles"],"sourceRoot":""}