@flarehr/apollo-super-selection 3.17.52781 → 3.21.53721
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -0
- package/dist/lib/apollo-super-selection/apollo-super-selection.js +130 -0
- package/dist/lib/apollo-super-selection/index.esm.js +0 -0
- package/dist/lib/apollo-super-selection/p-01a9f4a4.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-082669d9.js +1 -0
- package/dist/lib/apollo-super-selection/p-13573238.system.js +15 -0
- package/dist/lib/apollo-super-selection/p-20136efe.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-285da037.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-342cee5a.js +1 -0
- package/dist/lib/apollo-super-selection/p-381262c1.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-38ee2795.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-38f24f69.js +1 -0
- package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-61734b66.js +1 -0
- package/dist/lib/apollo-super-selection/p-642db1f7.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-8cbfc343.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-9eff6951.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-a98c2760.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-abedb220.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-ae4f5e0b.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-c284a0de.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-c5e41889.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-cd49a6b7.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-df9ce4b7.js +15 -0
- package/dist/lib/apollo-super-selection/p-f15bf700.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +1 -0
- package/dist/lib/cjs/active-router-e92fd784.js +75 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +23 -0
- package/dist/lib/cjs/app-globals-45007120.js +25 -0
- package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
- package/dist/lib/cjs/datorama-akita-7f4b082a.js +2704 -0
- package/dist/lib/cjs/delay-81aff2f1.js +955 -0
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +17199 -0
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +90 -0
- package/dist/lib/cjs/index-942e6faa.js +1767 -0
- package/dist/lib/cjs/index.cjs.js +2 -0
- package/dist/lib/cjs/loader.cjs.js +25 -0
- package/dist/lib/cjs/stencil-async-content.cjs.entry.js +32 -0
- package/dist/lib/cjs/stencil-route-title.cjs.entry.js +32 -0
- package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +59 -0
- package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +32 -0
- package/dist/lib/collection/collection-manifest.json +131 -0
- package/dist/lib/collection/components/app-host/loading-page.js +9 -0
- package/dist/lib/collection/components/app-host/services/app-configuration.query.js +18 -0
- package/dist/lib/collection/components/app-host/services/app-configuration.service.js +25 -0
- package/dist/lib/collection/components/app-host/services/appinsights.service.js +43 -0
- package/dist/lib/collection/components/app-host/services/authentication.query.js +21 -0
- package/dist/lib/collection/components/app-host/services/authentication.service.js +50 -0
- package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +31 -0
- package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +30 -0
- package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +20 -0
- package/dist/lib/collection/components/app-host/services/interop.query.js +26 -0
- package/dist/lib/collection/components/app-host/services/session.store.js +37 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +28 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +92 -0
- package/dist/lib/collection/components/super-selection-app/api/api-client.js +14 -0
- package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +30 -0
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +31 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +11 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +28 -0
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +17 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +31 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +68 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +53 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +108 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +93 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +103 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +111 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +153 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +111 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +23 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +52 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +37 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +89 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +31 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +38 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +63 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +95 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +99 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +18 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +95 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +50 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +10 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +66 -0
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +64 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +127 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +35 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +67 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +19 -0
- package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +25 -0
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +22 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +71 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +22 -0
- package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +37 -0
- package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +3 -0
- package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +53 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +46 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +83 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +12 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +1 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +49 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +18 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +53 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +216 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +53 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +180 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +15 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +229 -0
- package/dist/lib/collection/global/init-host.js +22 -0
- package/dist/lib/collection/global/main.dev.js +26 -0
- package/dist/lib/collection/global/main.js +11 -0
- package/dist/lib/collection/global/stencil-router-workaround.js +12 -0
- package/dist/lib/collection/index.js +2 -0
- package/dist/lib/collection/utils/config.js +2 -0
- package/dist/lib/collection/utils/gtm.js +5 -0
- package/dist/lib/collection/utils/iframe.js +33 -0
- package/dist/lib/collection/utils/index.js +8 -0
- package/dist/lib/collection/utils/lazy.js +29 -0
- package/dist/lib/collection/utils/storage.js +5 -0
- package/dist/lib/esm/active-router-4c80d3d2.js +73 -0
- package/dist/lib/esm/apollo-super-selection.js +21 -0
- package/dist/lib/esm/app-globals-7ac1ffba.js +23 -0
- package/dist/lib/esm/context-consumer.entry.js +25 -0
- package/dist/lib/esm/datorama-akita-79ce4385.js +2692 -0
- package/dist/lib/esm/delay-c0555599.js +935 -0
- package/dist/lib/esm/fl-button_46.entry.js +17150 -0
- package/dist/lib/esm/fl-style-guide.entry.js +86 -0
- package/dist/lib/esm/index-0496d1af.js +1734 -0
- package/dist/lib/esm/index.js +1 -0
- package/dist/lib/esm/loader.js +21 -0
- package/dist/lib/esm/polyfills/core-js.js +11 -0
- package/dist/lib/esm/polyfills/css-shim.js +1 -0
- package/dist/lib/esm/polyfills/dom.js +79 -0
- package/dist/lib/esm/polyfills/es5-html-element.js +1 -0
- package/dist/lib/esm/polyfills/index.js +34 -0
- package/dist/lib/esm/polyfills/system.js +6 -0
- package/dist/lib/esm/stencil-async-content.entry.js +28 -0
- package/dist/lib/esm/stencil-route-title.entry.js +28 -0
- package/dist/lib/esm/stencil-router-prompt.entry.js +55 -0
- package/dist/lib/esm/stencil-router-redirect.entry.js +28 -0
- package/dist/lib/esm-es5/active-router-4c80d3d2.js +1 -0
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
- package/dist/lib/esm-es5/app-globals-7ac1ffba.js +1 -0
- package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
- package/dist/lib/esm-es5/datorama-akita-79ce4385.js +15 -0
- package/dist/lib/esm-es5/delay-c0555599.js +1 -0
- package/dist/lib/esm-es5/fl-button_46.entry.js +69 -0
- package/dist/lib/esm-es5/fl-style-guide.entry.js +1 -0
- package/dist/lib/esm-es5/index-0496d1af.js +1 -0
- package/dist/lib/esm-es5/index.js +0 -0
- package/dist/lib/esm-es5/loader.js +1 -0
- package/dist/lib/esm-es5/stencil-async-content.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-route-title.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-router-prompt.entry.js +1 -0
- package/dist/lib/esm-es5/stencil-router-redirect.entry.js +1 -0
- package/dist/lib/index.cjs.js +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/loader/cdn.js +3 -0
- package/dist/lib/loader/index.cjs.js +3 -0
- package/dist/lib/loader/index.d.ts +13 -0
- package/dist/lib/loader/index.es2017.js +3 -0
- package/dist/lib/loader/index.js +4 -0
- package/dist/lib/loader/package.json +10 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +45 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +9 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +9 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +141 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +5 -0
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
- package/dist/lib/node_modules/@stencil/router/dist/collection/components/route/route.css +3 -0
- package/dist/lib/types/components/app-host/loading-page.d.ts +3 -0
- package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +11 -0
- package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +9 -0
- package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +14 -0
- package/dist/lib/types/components/app-host/services/authentication.query.d.ts +13 -0
- package/dist/lib/types/components/app-host/services/authentication.service.d.ts +9 -0
- package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +7 -0
- package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +5 -0
- package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +7 -0
- package/dist/lib/types/components/app-host/services/interop.query.d.ts +11 -0
- package/dist/lib/types/components/app-host/services/session.store.d.ts +30 -0
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +73 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +16 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +82 -0
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +28 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +112 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +21 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +58 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +18 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +23 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +26 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +26 -0
- package/dist/lib/types/components.d.ts +576 -0
- package/dist/lib/types/global/init-host.d.ts +1 -0
- package/dist/lib/types/global/main.d.ts +1 -0
- package/dist/lib/types/global/main.dev.d.ts +1 -0
- package/dist/lib/types/global/stencil-router-workaround.d.ts +1 -0
- package/dist/lib/types/index.d.ts +2 -0
- package/dist/lib/types/stencil-public-runtime.d.ts +1555 -0
- package/dist/lib/types/utils/config.d.ts +2 -0
- package/dist/lib/types/utils/gtm.d.ts +7 -0
- package/dist/lib/types/utils/iframe.d.ts +13 -0
- package/dist/lib/types/utils/index.d.ts +3 -0
- package/dist/lib/types/utils/lazy.d.ts +12 -0
- package/dist/lib/types/utils/storage.d.ts +4 -0
- package/package.json +1 -1
package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
import slateIFrameBuilder from './services/slate-iframe-builder';
|
|
3
|
+
export class SlateJoinPage {
|
|
4
|
+
componentDidLoad() {
|
|
5
|
+
slateIFrameBuilder.build(this.iframeElement, this.history);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: "d-flex flex-fill" },
|
|
9
|
+
h("iframe", { width: "100%", height: window.innerHeight, style: { "border": "none" }, ref: (el) => (this.iframeElement = el) })));
|
|
10
|
+
}
|
|
11
|
+
;
|
|
12
|
+
static get is() { return "sss-slate-join-page"; }
|
|
13
|
+
static get properties() { return {
|
|
14
|
+
"history": {
|
|
15
|
+
"type": "unknown",
|
|
16
|
+
"mutable": false,
|
|
17
|
+
"complexType": {
|
|
18
|
+
"original": "RouterHistory",
|
|
19
|
+
"resolved": "RouterHistory",
|
|
20
|
+
"references": {
|
|
21
|
+
"RouterHistory": {
|
|
22
|
+
"location": "import",
|
|
23
|
+
"path": "@stencil/router"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": false,
|
|
28
|
+
"optional": false,
|
|
29
|
+
"docs": {
|
|
30
|
+
"tags": [],
|
|
31
|
+
"text": ""
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}; }
|
|
35
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import navigationService from '../../services/navigation.service';
|
|
3
|
+
import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
|
|
4
|
+
import superSelectionAppService from '../../services/super-selection-app.service';
|
|
5
|
+
import slateState from '../slate-super/slate-fund.store';
|
|
6
|
+
import slateFundState from '../slate-super/slate-fund.store';
|
|
7
|
+
import slateChoiceApi from './api/slate-choice.api';
|
|
8
|
+
export class SlateStandardChoicePage {
|
|
9
|
+
render() {
|
|
10
|
+
return (h(Host, { class: "d-flex flex-fill" },
|
|
11
|
+
h("div", { class: "container" },
|
|
12
|
+
h("div", { class: "row justify-content-center" },
|
|
13
|
+
h("div", { class: "col col-sm-10 col-md-7" },
|
|
14
|
+
h("sss-slatesuper-header", null),
|
|
15
|
+
h("div", null,
|
|
16
|
+
h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
17
|
+
'was-validated': this.formState === 'validated'
|
|
18
|
+
}, ref: (el) => (this.formElement = el) },
|
|
19
|
+
h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
20
|
+
slateFundState.slateFundForm = Object.assign(Object.assign({}, slateFundState.slateFundForm), event.detail);
|
|
21
|
+
} })),
|
|
22
|
+
h("div", { class: "d-flex mt-4" },
|
|
23
|
+
h("div", { class: "flex-grow-1 w-50" },
|
|
24
|
+
h("div", { class: "mr-2" },
|
|
25
|
+
h("stencil-route-link", { url: "/" },
|
|
26
|
+
h("fl-button", { isBlockElement: true, variant: "secondary" },
|
|
27
|
+
h("span", null, "Back"))))),
|
|
28
|
+
h("div", { class: "flex-grow-1 w-50" },
|
|
29
|
+
h("div", { class: "ml-2" },
|
|
30
|
+
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
31
|
+
h("span", null, "Submit")))))))))));
|
|
32
|
+
}
|
|
33
|
+
async handleSubmitForm() {
|
|
34
|
+
this.formState = 'validated';
|
|
35
|
+
if (this.formElement.checkValidity()) {
|
|
36
|
+
await slateChoiceApi.submitSlateChoiceAsync(slateState.slateFundForm);
|
|
37
|
+
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
38
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "sss-slate-standard-choice-page"; }
|
|
42
|
+
static get properties() { return {
|
|
43
|
+
"history": {
|
|
44
|
+
"type": "unknown",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "RouterHistory",
|
|
48
|
+
"resolved": "RouterHistory",
|
|
49
|
+
"references": {
|
|
50
|
+
"RouterHistory": {
|
|
51
|
+
"location": "import",
|
|
52
|
+
"path": "@stencil/router"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": false,
|
|
57
|
+
"optional": false,
|
|
58
|
+
"docs": {
|
|
59
|
+
"tags": [],
|
|
60
|
+
"text": ""
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}; }
|
|
64
|
+
static get states() { return {
|
|
65
|
+
"formState": {}
|
|
66
|
+
}; }
|
|
67
|
+
}
|
package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css
ADDED
|
File without changes
|
package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component, getAssetPath, h } from '@stencil/core';
|
|
2
|
+
export class SlatesuperHeader {
|
|
3
|
+
render() {
|
|
4
|
+
return (h("div", { class: "d-flex" },
|
|
5
|
+
h("div", null,
|
|
6
|
+
h("img", { class: "ss-choice-logo img-thumbnail", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/logo-slate.png`) })),
|
|
7
|
+
h("div", { class: "d-flex flex-column ml-3 align-items-left" },
|
|
8
|
+
h("p", { class: "confirm-title font-weight-bold mb-0" }, "You\u2019re almost there!"),
|
|
9
|
+
h("p", { class: "confirm-text mb-0" }, "To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection."))));
|
|
10
|
+
}
|
|
11
|
+
static get is() { return "sss-slatesuper-header"; }
|
|
12
|
+
static get originalStyleUrls() { return {
|
|
13
|
+
"$": ["slatesuper-header.scss"]
|
|
14
|
+
}; }
|
|
15
|
+
static get styleUrls() { return {
|
|
16
|
+
"$": ["slatesuper-header.css"]
|
|
17
|
+
}; }
|
|
18
|
+
static get assetsDirs() { return ["assets"]; }
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component, h, Host } from '@stencil/core';
|
|
2
|
+
import notificationsService from '../services/notifications.service';
|
|
3
|
+
export class NotificationsSection {
|
|
4
|
+
disconnectedCallback() {
|
|
5
|
+
notificationsService.clearNotifications();
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
const { items } = notificationsService.state;
|
|
9
|
+
if (items.length <= 0)
|
|
10
|
+
return h(Host, null);
|
|
11
|
+
const firstAlert = items[0];
|
|
12
|
+
const className = `alert alert-${firstAlert.type}`;
|
|
13
|
+
return (h("div", { class: className, role: "alert" },
|
|
14
|
+
h("div", { class: "d-flex" },
|
|
15
|
+
h("p", { class: "mb-0 flex-grow-1" },
|
|
16
|
+
h("strong", null, items[0].details.title)),
|
|
17
|
+
h("button", { onClick: this.handleClose, type: "button", class: "close pb-1", "aria-label": "Close" },
|
|
18
|
+
h("span", { "aria-hidden": "true" }, "\u00D7"))),
|
|
19
|
+
h("p", { class: "mb-0 mt-1" }, items[0].details.description)));
|
|
20
|
+
}
|
|
21
|
+
handleClose() {
|
|
22
|
+
notificationsService.closeCurrent();
|
|
23
|
+
}
|
|
24
|
+
static get is() { return "sss-notifications-section"; }
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { none, some } from 'fp-ts/lib/Option';
|
|
2
|
+
import superSelectionApi from '../api/super-selection.api';
|
|
3
|
+
export class AustralianFundLookupService {
|
|
4
|
+
searchFundsAsync(searchString, maxRecordCount) {
|
|
5
|
+
return superSelectionApi.getAustralianFundsAsync({
|
|
6
|
+
type: 'partialMatch',
|
|
7
|
+
searchString,
|
|
8
|
+
maxRecordCount
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
async getFundByUsiAsync(usi) {
|
|
12
|
+
const results = await superSelectionApi.getAustralianFundsAsync({
|
|
13
|
+
type: 'usiMatch',
|
|
14
|
+
usi
|
|
15
|
+
});
|
|
16
|
+
if (results.length === 1) {
|
|
17
|
+
return some(results[0]);
|
|
18
|
+
}
|
|
19
|
+
return none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new AustralianFundLookupService();
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { EventTrackingApi } from '../api/event-tracking.api';
|
|
2
|
+
export class EventTrackingService {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.eventTrackingApi = EventTrackingApi.Instance;
|
|
5
|
+
}
|
|
6
|
+
static get Instance() {
|
|
7
|
+
return this.instance || (this.instance = new this());
|
|
8
|
+
}
|
|
9
|
+
async TrackFinancialProductViewedAsync(detail) {
|
|
10
|
+
return this.trackEventAsync({
|
|
11
|
+
FinancialProductViewed: detail
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async TrackSuperFundPdsViewedAsync(detail) {
|
|
15
|
+
return this.trackEventAsync({
|
|
16
|
+
SuperFundPdsViewed: detail
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
async TrackFinancialProductAcceptedAsync(detail) {
|
|
20
|
+
return this.trackEventAsync({
|
|
21
|
+
FinancialProductAccepted: detail
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async TrackFinancialProductRejectedAsync(detail) {
|
|
25
|
+
return this.trackEventAsync({
|
|
26
|
+
FinancialProductRejected: detail
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async TrackSuperFundPrivacyConfirmationAcceptedAsync(detail) {
|
|
30
|
+
return this.trackEventAsync({
|
|
31
|
+
SuperFundPrivacyConfirmationAccepted: detail
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async TrackPromotedSuperFundDetailViewedAsync(detail) {
|
|
35
|
+
return this.trackEventAsync({
|
|
36
|
+
SuperFundDetailViewed: {
|
|
37
|
+
PromotedFund: detail
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
async TrackMyOwnSuperFundDetailViewedAsync() {
|
|
42
|
+
return this.trackEventAsync({
|
|
43
|
+
SuperFundDetailViewed: 'MyOwnFund'
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
async TrackSmsfSuperFundDetailViewedAsync() {
|
|
47
|
+
return this.trackEventAsync({
|
|
48
|
+
SuperFundDetailViewed: 'Smsf'
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async TrackDefaultSuperFundDetailViewedAsync(detail) {
|
|
52
|
+
return this.trackEventAsync({
|
|
53
|
+
SuperFundDetailViewed: {
|
|
54
|
+
DefaultFund: detail
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
async TrackSuperFundPanelViewedAsync(detail) {
|
|
59
|
+
return this.trackEventAsync({
|
|
60
|
+
SuperFundPanelViewed: detail
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async trackEventAsync(event) {
|
|
64
|
+
try {
|
|
65
|
+
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
66
|
+
}
|
|
67
|
+
catch (_a) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import iframe from '../../../utils/iframe';
|
|
2
|
+
import superSelectionAppService from './super-selection-app.service';
|
|
3
|
+
class NavigationService {
|
|
4
|
+
navigateInternally(history, route) {
|
|
5
|
+
const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
|
|
6
|
+
iframe.navigation(path);
|
|
7
|
+
history.push(path);
|
|
8
|
+
}
|
|
9
|
+
toExternalUrl(url) {
|
|
10
|
+
const externalUrl = new URL(url);
|
|
11
|
+
externalUrl.searchParams.append('_extnav', 'true');
|
|
12
|
+
return externalUrl.href;
|
|
13
|
+
}
|
|
14
|
+
get appBaseUrl() {
|
|
15
|
+
const baseUrl = superSelectionAppService.appBaseUrl;
|
|
16
|
+
return baseUrl.replace(/\/$/, '');
|
|
17
|
+
}
|
|
18
|
+
toRouteWithLeadingSlash(route) {
|
|
19
|
+
return route.length > 0 && route[0] === '/' ? route : `/${route}`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export default new NavigationService();
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createStore } from '@stencil/store';
|
|
2
|
+
import { initialState } from './notifications.store';
|
|
3
|
+
class NotificationsService {
|
|
4
|
+
constructor() {
|
|
5
|
+
const { state } = createStore(initialState);
|
|
6
|
+
this._state = state;
|
|
7
|
+
}
|
|
8
|
+
get state() {
|
|
9
|
+
return this._state;
|
|
10
|
+
}
|
|
11
|
+
closeCurrent() {
|
|
12
|
+
const items = [...this._state.items];
|
|
13
|
+
items.shift();
|
|
14
|
+
this._state.items = items;
|
|
15
|
+
}
|
|
16
|
+
clearNotifications() {
|
|
17
|
+
this._state.items = [];
|
|
18
|
+
}
|
|
19
|
+
showErrorNotification(details, priority) {
|
|
20
|
+
this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'danger');
|
|
21
|
+
}
|
|
22
|
+
showInfoNotification(details, priority) {
|
|
23
|
+
this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'info');
|
|
24
|
+
}
|
|
25
|
+
showWarningNotification(details, priority) {
|
|
26
|
+
this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'warning');
|
|
27
|
+
}
|
|
28
|
+
showSuccessNotification(details, priority) {
|
|
29
|
+
this.pushNotification(details, priority !== null && priority !== void 0 ? priority : 0, 'success');
|
|
30
|
+
}
|
|
31
|
+
pushNotification(details, priority, type) {
|
|
32
|
+
const items = [...this._state.items];
|
|
33
|
+
items.push({ details, type, priority });
|
|
34
|
+
this._state.items = items.sort((a, b) => b.priority - a.priority);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default new NotificationsService();
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { isSome, none, some } from 'fp-ts/Option';
|
|
2
|
+
import * as constants from '../funds/constants';
|
|
3
|
+
import australianFundLookupService from './australian-fund-lookup.service';
|
|
4
|
+
import superSelectionAppService from './super-selection-app.service';
|
|
5
|
+
export class ChosenFundService {
|
|
6
|
+
async GetChosenFundAsync() {
|
|
7
|
+
var _a;
|
|
8
|
+
const choiceDetails = (_a = superSelectionAppService.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails;
|
|
9
|
+
if (!choiceDetails)
|
|
10
|
+
return none;
|
|
11
|
+
if ('promoted' in choiceDetails) {
|
|
12
|
+
const promotedId = constants.QSuperFundId in choiceDetails.promoted
|
|
13
|
+
? constants.QSuperFundId
|
|
14
|
+
: constants.SlateFundId in choiceDetails.promoted
|
|
15
|
+
? constants.SlateFundId
|
|
16
|
+
: '';
|
|
17
|
+
return some({
|
|
18
|
+
isPromoted: true,
|
|
19
|
+
promotedId
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
else if ('smsf' in choiceDetails) {
|
|
23
|
+
return some({
|
|
24
|
+
isPromoted: false,
|
|
25
|
+
name: choiceDetails.smsf.fundName,
|
|
26
|
+
type: 'Self Managed Fund'
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
else if ('myOwnFund' in choiceDetails) {
|
|
30
|
+
const fundUsi = choiceDetails.myOwnFund.usi;
|
|
31
|
+
const fund = await this.getFundByUsiAsync(fundUsi);
|
|
32
|
+
return some({
|
|
33
|
+
isPromoted: false,
|
|
34
|
+
name: isSome(fund) ? fund.value.productName : fundUsi,
|
|
35
|
+
type: 'My Own Fund'
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else if ('default' in choiceDetails) {
|
|
39
|
+
const defaultUsi = choiceDetails.default.usi;
|
|
40
|
+
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
41
|
+
return some({
|
|
42
|
+
isPromoted: false,
|
|
43
|
+
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
44
|
+
type: 'Default Fund'
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return none;
|
|
48
|
+
}
|
|
49
|
+
getFundByUsiAsync(usi) {
|
|
50
|
+
return australianFundLookupService.getFundByUsiAsync(usi);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export default new ChosenFundService();
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export var SuperSelectionAppRoutes;
|
|
3
|
+
(function (SuperSelectionAppRoutes) {
|
|
4
|
+
SuperSelectionAppRoutes["ChoicePage"] = "/";
|
|
5
|
+
SuperSelectionAppRoutes["SlateJoin"] = "/slate/join/";
|
|
6
|
+
SuperSelectionAppRoutes["SlateStandardChoice"] = "/slate/standard-choice/";
|
|
7
|
+
SuperSelectionAppRoutes["QSuperOptIn"] = "/qsuper/insurance/opt-in/";
|
|
8
|
+
SuperSelectionAppRoutes["QSuperQuestion1"] = "/qsuper/insurance/question1/";
|
|
9
|
+
SuperSelectionAppRoutes["QSuperQuestion2"] = "/qsuper/insurance/question2/";
|
|
10
|
+
SuperSelectionAppRoutes["QSuperQuestion3"] = "/qsuper/insurance/question3/";
|
|
11
|
+
SuperSelectionAppRoutes["QSuperQuestion4"] = "/qsuper/insurance/question4/";
|
|
12
|
+
SuperSelectionAppRoutes["QSuperQuestion5"] = "/qsuper/insurance/question5/";
|
|
13
|
+
SuperSelectionAppRoutes["QSuperQuestion6"] = "/qsuper/insurance/question6/";
|
|
14
|
+
SuperSelectionAppRoutes["QSuperQuestion7"] = "/qsuper/insurance/question7/";
|
|
15
|
+
SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
|
|
16
|
+
SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
|
|
17
|
+
SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
|
|
18
|
+
SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
|
|
19
|
+
SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
|
|
20
|
+
SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
|
|
21
|
+
SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
|
|
22
|
+
SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
|
|
23
|
+
SuperSelectionAppRoutes["Success"] = "/success/";
|
|
24
|
+
})(SuperSelectionAppRoutes || (SuperSelectionAppRoutes = {}));
|
|
25
|
+
export const superSelectionAppStencilRoutes = [
|
|
26
|
+
h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-super-choice-page" }),
|
|
27
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
|
|
28
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
|
|
29
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
|
|
30
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
|
|
31
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
|
|
32
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
|
|
33
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
|
|
34
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
|
|
35
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion4, component: "sss-qsuper-question-4" }),
|
|
36
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion5, component: "sss-qsuper-question-5" }),
|
|
37
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion6, component: "sss-qsuper-question-6" }),
|
|
38
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion7, component: "sss-qsuper-question-7" }),
|
|
39
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion8, component: "sss-qsuper-question-8" }),
|
|
40
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperConsent, component: "sss-qsuper-consent" }),
|
|
41
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperJoin, component: "sss-qsuper-join" }),
|
|
42
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-my-own-fund" }),
|
|
43
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-self-managed-fund" }),
|
|
44
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund" }),
|
|
45
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.Success, component: "sss-success" })
|
|
46
|
+
];
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { createStore } from '@stencil/store';
|
|
2
|
+
import { pipe } from 'fp-ts/lib/function';
|
|
3
|
+
import * as O from 'fp-ts/lib/Option';
|
|
4
|
+
import jwtDecode from 'jwt-decode';
|
|
5
|
+
import superSelectionApi from '../api/super-selection.api';
|
|
6
|
+
import { initialState } from './super-selection.store';
|
|
7
|
+
export class SuperSelectionAppService {
|
|
8
|
+
constructor() {
|
|
9
|
+
const { state, onChange } = createStore(initialState);
|
|
10
|
+
this._state = state;
|
|
11
|
+
this._onChange = onChange;
|
|
12
|
+
onChange('jwt', (jwt) => {
|
|
13
|
+
this._state.profileId = pipe(jwt, O.chain((jwtValue) => O.fromNullable(jwtDecode(jwtValue).sub)));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
get state() {
|
|
17
|
+
return this._state;
|
|
18
|
+
}
|
|
19
|
+
get onChange() {
|
|
20
|
+
return this._onChange;
|
|
21
|
+
}
|
|
22
|
+
get superBuyer() {
|
|
23
|
+
if (O.isNone(this._state.superBuyer)) {
|
|
24
|
+
throw Error('User information is not set');
|
|
25
|
+
}
|
|
26
|
+
return this._state.superBuyer.value;
|
|
27
|
+
}
|
|
28
|
+
get apiBaseUrl() {
|
|
29
|
+
if (O.isNone(this._state.apiBaseUrl)) {
|
|
30
|
+
throw Error('API base URL is not set');
|
|
31
|
+
}
|
|
32
|
+
return this._state.apiBaseUrl.value;
|
|
33
|
+
}
|
|
34
|
+
get appBaseUrl() {
|
|
35
|
+
if (O.isNone(this._state.appBaseUrl)) {
|
|
36
|
+
throw Error('App base URL is not set');
|
|
37
|
+
}
|
|
38
|
+
return this._state.appBaseUrl.value;
|
|
39
|
+
}
|
|
40
|
+
get promotedFunds() {
|
|
41
|
+
if (O.isNone(this._state.promotedFunds)) {
|
|
42
|
+
throw Error('Promoted Funds is not set');
|
|
43
|
+
}
|
|
44
|
+
return this._state.promotedFunds.value;
|
|
45
|
+
}
|
|
46
|
+
get profileId() {
|
|
47
|
+
if (O.isNone(this._state.profileId)) {
|
|
48
|
+
throw Error('Failed to get Profile ID from JWT');
|
|
49
|
+
}
|
|
50
|
+
return this._state.profileId.value;
|
|
51
|
+
}
|
|
52
|
+
get defaultFundUsi() {
|
|
53
|
+
return pipe(this._state.accountConfiguration, O.map((config) => O.fromNullable(config.defaultFundUsi)), O.flatten);
|
|
54
|
+
}
|
|
55
|
+
get accountIdOrDefault() {
|
|
56
|
+
return pipe(this._state.accountConfiguration, O.map((config) => config.accountId), O.getOrElse(() => ''));
|
|
57
|
+
}
|
|
58
|
+
get partnerIdOrDefault() {
|
|
59
|
+
return pipe(this._state.superBuyer, O.map((superBuyer) => superBuyer.partnerId), O.getOrElse(() => ''));
|
|
60
|
+
}
|
|
61
|
+
get jwt() {
|
|
62
|
+
if (O.isNone(this._state.jwt)) {
|
|
63
|
+
throw Error('No authentication information was found');
|
|
64
|
+
}
|
|
65
|
+
return this._state.jwt.value;
|
|
66
|
+
}
|
|
67
|
+
get showSmsfNotSupported() {
|
|
68
|
+
return pipe(this._state.superBuyer, O.map((superBuyer) => superBuyer.showSmsfNotSupported), O.getOrElse(() => false));
|
|
69
|
+
}
|
|
70
|
+
completeSuperSelectionFlow() {
|
|
71
|
+
this._state.hasSuccessPageBeenAcknowledged = true;
|
|
72
|
+
}
|
|
73
|
+
markSuperSelectionAsSubmitted() {
|
|
74
|
+
this._state.hasSuperSelectionBeenSubmitted = true;
|
|
75
|
+
}
|
|
76
|
+
async loadAppStateAsync() {
|
|
77
|
+
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
78
|
+
this._state.accountConfiguration = O.fromNullable(appStateResponse.accountConfiguration);
|
|
79
|
+
this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
|
|
80
|
+
this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export default new SuperSelectionAppService();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as O from 'fp-ts/lib/Option';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
apiBaseUrl: O.none,
|
|
4
|
+
appBaseUrl: O.none,
|
|
5
|
+
profileId: O.none,
|
|
6
|
+
jwt: O.none,
|
|
7
|
+
superBuyer: O.none,
|
|
8
|
+
promotedFunds: O.none,
|
|
9
|
+
accountConfiguration: O.none,
|
|
10
|
+
hasSuccessPageBeenAcknowledged: false,
|
|
11
|
+
hasSuperSelectionBeenSubmitted: false
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, Event, h, State } from '@stencil/core';
|
|
2
|
+
export class StandardChoiceFormInputDefaultFund {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.standardChoiceFormUrl = "/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";
|
|
5
|
+
this.standardChoiceFormSignature = '';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h("div", { class: "card p-4 mt-4 bg-light" },
|
|
9
|
+
h("h4", { class: "small font-weight-bold" }, "Superannuation Standard Choice Form"),
|
|
10
|
+
h("p", { class: "small mt-2" },
|
|
11
|
+
"The superannuation",
|
|
12
|
+
' ',
|
|
13
|
+
h("a", { target: "_blank", href: this.standardChoiceFormUrl }, "standard choice form"),
|
|
14
|
+
' ',
|
|
15
|
+
"informs your employer of your choice of fund."),
|
|
16
|
+
h("h4", { class: "small font-weight-bold" }, "Type your full name below (required)"),
|
|
17
|
+
h("input", { placeholder: "Type your full name", type: "text", class: "form-control", required: true, minlength: "2", name: "standardChoiceFormSignature", id: "standardChoiceFormSignature", value: this.standardChoiceFormSignature, onKeyUp: (ev) => this.updateFormField(ev.target.value.trim()) }),
|
|
18
|
+
h("div", { class: "invalid-feedback" }, "Type your full name"),
|
|
19
|
+
h("p", { class: "small mt-3 mb-0" }, "Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding.")));
|
|
20
|
+
}
|
|
21
|
+
updateFormField(value) {
|
|
22
|
+
this.standardChoiceFormSignatureUpdated.emit({ standardChoiceFormSignature: value });
|
|
23
|
+
}
|
|
24
|
+
static get is() { return "sss-standard-choice-form"; }
|
|
25
|
+
static get states() { return {
|
|
26
|
+
"standardChoiceFormSignature": {}
|
|
27
|
+
}; }
|
|
28
|
+
static get events() { return [{
|
|
29
|
+
"method": "standardChoiceFormSignatureUpdated",
|
|
30
|
+
"name": "standardChoiceFormSignatureUpdated",
|
|
31
|
+
"bubbles": true,
|
|
32
|
+
"cancelable": true,
|
|
33
|
+
"composed": true,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": ""
|
|
37
|
+
},
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "StandardChoiceInput",
|
|
40
|
+
"resolved": "{ standardChoiceFormSignature: string; }",
|
|
41
|
+
"references": {
|
|
42
|
+
"StandardChoiceInput": {
|
|
43
|
+
"location": "import",
|
|
44
|
+
"path": "./api/standard-choice.model"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}]; }
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
html {
|
|
2
|
+
scroll-behavior: smooth;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
img.fluid-fit {
|
|
6
|
+
object-fit: cover;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.picked-block {
|
|
10
|
+
background-color: var(--fl-color-primary);
|
|
11
|
+
border-top-right-radius: 3px;
|
|
12
|
+
right: 0;
|
|
13
|
+
top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.picked-box-border {
|
|
17
|
+
border: 2px solid var(--fl-color-primary);
|
|
18
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Component, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
export class SelectedSuperChoiceSection {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { class: "bg-white rounded-sm picked-box-border p-3" },
|
|
5
|
+
h("div", { class: "d-flex" },
|
|
6
|
+
h("div", { class: "flex-grow-1 font-weight-bold" }, this.fundType),
|
|
7
|
+
h("div", { class: "px-3 py-2 text-white picked-block position-absolute" }, "You picked")),
|
|
8
|
+
h("div", null, this.fundName)));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "sss-selected-super-choice-section"; }
|
|
11
|
+
static get originalStyleUrls() { return {
|
|
12
|
+
"$": ["selected-super-choice-section.scss"]
|
|
13
|
+
}; }
|
|
14
|
+
static get styleUrls() { return {
|
|
15
|
+
"$": ["selected-super-choice-section.css"]
|
|
16
|
+
}; }
|
|
17
|
+
static get properties() { return {
|
|
18
|
+
"fundType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"mutable": false,
|
|
21
|
+
"complexType": {
|
|
22
|
+
"original": "string",
|
|
23
|
+
"resolved": "string",
|
|
24
|
+
"references": {}
|
|
25
|
+
},
|
|
26
|
+
"required": false,
|
|
27
|
+
"optional": false,
|
|
28
|
+
"docs": {
|
|
29
|
+
"tags": [],
|
|
30
|
+
"text": ""
|
|
31
|
+
},
|
|
32
|
+
"attribute": "fund-type",
|
|
33
|
+
"reflect": false
|
|
34
|
+
},
|
|
35
|
+
"fundName": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "string",
|
|
40
|
+
"resolved": "string",
|
|
41
|
+
"references": {}
|
|
42
|
+
},
|
|
43
|
+
"required": false,
|
|
44
|
+
"optional": false,
|
|
45
|
+
"docs": {
|
|
46
|
+
"tags": [],
|
|
47
|
+
"text": ""
|
|
48
|
+
},
|
|
49
|
+
"attribute": "fund-name",
|
|
50
|
+
"reflect": false
|
|
51
|
+
}
|
|
52
|
+
}; }
|
|
53
|
+
}
|