@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/super-choice-page/super-choice-item.js
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { Component, Event, getAssetPath, h, Host, Prop } from '@stencil/core';
|
|
2
|
+
import { EventTrackingService } from '../services/event-tracking.service';
|
|
3
|
+
export class SuperChoiceItem {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.eventTrackingService = EventTrackingService.Instance;
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: {
|
|
9
|
+
'd-flex p-3': true,
|
|
10
|
+
'ss-picked-fund': this.isSelected
|
|
11
|
+
} },
|
|
12
|
+
h("div", { class: "card-body pb-0 px-0 px-xl-3" },
|
|
13
|
+
this.isSelected && (h("div", { class: "px-3 py-2 text-white picked-block position-absolute" }, "You picked")),
|
|
14
|
+
h("div", { class: "d-flex flex-fill flex-column align-items-center" },
|
|
15
|
+
h("img", { class: "ss-choice-logo", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/${this.logo}`) }),
|
|
16
|
+
h("p", { class: "font-weight-bold text-center mt-3 mb-0" }, this.heading),
|
|
17
|
+
h("div", { class: "mt-3" }, JSON.parse(this.features).map((feature) => (h("p", { class: "text-center" }, feature.value)))))),
|
|
18
|
+
h("div", { class: "text-center" },
|
|
19
|
+
h("div", { class: "p-3" },
|
|
20
|
+
h("fl-button", { class: "uuid-button-continue", isBlockElement: true, onClick: () => this.handleFundClick() }, this.callToAction)),
|
|
21
|
+
h("a", { target: "_blank", href: this.pdsLink, onClick: () => this.pdsViewedAsync() }, "View PDS"))));
|
|
22
|
+
}
|
|
23
|
+
handleFundClick() {
|
|
24
|
+
return this.joinFundClicked.emit();
|
|
25
|
+
}
|
|
26
|
+
pdsViewedAsync() {
|
|
27
|
+
return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
|
|
28
|
+
fundUsi: this.usi,
|
|
29
|
+
fundName: this.name,
|
|
30
|
+
fundNameAlt: this.heading,
|
|
31
|
+
pageName: 'Panel Fund Page'
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "sss-super-choice-item"; }
|
|
35
|
+
static get originalStyleUrls() { return {
|
|
36
|
+
"$": ["super-choice-page.scss"]
|
|
37
|
+
}; }
|
|
38
|
+
static get styleUrls() { return {
|
|
39
|
+
"$": ["super-choice-page.css"]
|
|
40
|
+
}; }
|
|
41
|
+
static get assetsDirs() { return ["assets"]; }
|
|
42
|
+
static get properties() { return {
|
|
43
|
+
"heading": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"mutable": false,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "string",
|
|
48
|
+
"resolved": "string",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": ""
|
|
56
|
+
},
|
|
57
|
+
"attribute": "heading",
|
|
58
|
+
"reflect": false
|
|
59
|
+
},
|
|
60
|
+
"isSelected": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "boolean",
|
|
65
|
+
"resolved": "boolean",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": false,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": ""
|
|
73
|
+
},
|
|
74
|
+
"attribute": "is-selected",
|
|
75
|
+
"reflect": false
|
|
76
|
+
},
|
|
77
|
+
"usi": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "string",
|
|
82
|
+
"resolved": "string",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": ""
|
|
90
|
+
},
|
|
91
|
+
"attribute": "usi",
|
|
92
|
+
"reflect": false
|
|
93
|
+
},
|
|
94
|
+
"name": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "string",
|
|
99
|
+
"resolved": "string",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"attribute": "name",
|
|
109
|
+
"reflect": false
|
|
110
|
+
},
|
|
111
|
+
"logo": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "string",
|
|
116
|
+
"resolved": "string",
|
|
117
|
+
"references": {}
|
|
118
|
+
},
|
|
119
|
+
"required": false,
|
|
120
|
+
"optional": false,
|
|
121
|
+
"docs": {
|
|
122
|
+
"tags": [],
|
|
123
|
+
"text": ""
|
|
124
|
+
},
|
|
125
|
+
"attribute": "logo",
|
|
126
|
+
"reflect": false
|
|
127
|
+
},
|
|
128
|
+
"pdsLink": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "string",
|
|
133
|
+
"resolved": "string",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": ""
|
|
141
|
+
},
|
|
142
|
+
"attribute": "pds-link",
|
|
143
|
+
"reflect": false
|
|
144
|
+
},
|
|
145
|
+
"callToAction": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
},
|
|
159
|
+
"attribute": "call-to-action",
|
|
160
|
+
"reflect": false
|
|
161
|
+
},
|
|
162
|
+
"features": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "string",
|
|
167
|
+
"resolved": "string",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": ""
|
|
175
|
+
},
|
|
176
|
+
"attribute": "features",
|
|
177
|
+
"reflect": false
|
|
178
|
+
},
|
|
179
|
+
"history": {
|
|
180
|
+
"type": "unknown",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "RouterHistory",
|
|
184
|
+
"resolved": "RouterHistory",
|
|
185
|
+
"references": {
|
|
186
|
+
"RouterHistory": {
|
|
187
|
+
"location": "import",
|
|
188
|
+
"path": "@stencil/router"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": ""
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}; }
|
|
200
|
+
static get events() { return [{
|
|
201
|
+
"method": "joinFundClicked",
|
|
202
|
+
"name": "joinFundClicked",
|
|
203
|
+
"bubbles": true,
|
|
204
|
+
"cancelable": true,
|
|
205
|
+
"composed": true,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "void",
|
|
212
|
+
"resolved": "void",
|
|
213
|
+
"references": {}
|
|
214
|
+
}
|
|
215
|
+
}]; }
|
|
216
|
+
}
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
html {
|
|
2
|
+
scroll-behavior: smooth;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
img.fluid-fit {
|
|
6
|
+
object-fit: cover;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.checkbox-container {
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
background-color: #f5f4f2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.confirm-checkbox-item {
|
|
15
|
+
transform: scale(1.7);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.simple-choices-text {
|
|
19
|
+
color: #489882;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.choice-card {
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
|
|
25
|
+
border-radius: 3px;
|
|
26
|
+
}
|
|
27
|
+
.choice-card.ss-picked-fund {
|
|
28
|
+
border: 2px solid var(--fl-color-primary);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.card.ss-picked-fund {
|
|
32
|
+
border: 2px solid var(--fl-color-primary);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ss-choice-logo {
|
|
36
|
+
height: 70px;
|
|
37
|
+
width: 70px;
|
|
38
|
+
object-fit: contain;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
img {
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: block;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.choice-component {
|
|
47
|
+
width: 100%;
|
|
48
|
+
position: relative;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.flexible {
|
|
52
|
+
flex-grow: 1;
|
|
53
|
+
}
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import { isSome, none } from 'fp-ts/Option';
|
|
3
|
+
import iframe from '../../../utils/iframe';
|
|
4
|
+
import * as constants from '../funds/constants';
|
|
5
|
+
import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
|
|
6
|
+
import { resetQSuperState } from '../funds/qsuper/helpers/resetState';
|
|
7
|
+
import { EventTrackingService } from '../services/event-tracking.service';
|
|
8
|
+
import navigationService from '../services/navigation.service';
|
|
9
|
+
import chosenFundService from '../services/selected-super-choice-info.service';
|
|
10
|
+
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
11
|
+
import SuperSelectionAppService from '../services/super-selection-app.service';
|
|
12
|
+
export class SuperChoicePage {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.promotedFunds = this.getPromotedFunds();
|
|
15
|
+
this.chosenFund = none;
|
|
16
|
+
this.eventTrackingService = EventTrackingService.Instance;
|
|
17
|
+
this.isPromotedFundSelected = (fundId) => {
|
|
18
|
+
return (isSome(this.chosenFund) &&
|
|
19
|
+
this.chosenFund.value.isPromoted &&
|
|
20
|
+
this.chosenFund.value.promotedId === fundId);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
iframe.appReady();
|
|
25
|
+
const enabledFundIds = this.promotedFunds.map((item) => item.usi);
|
|
26
|
+
this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
27
|
+
enabledFundIds
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async componentWillLoad() {
|
|
31
|
+
resetQSuperState();
|
|
32
|
+
this.chosenFund = await chosenFundService.GetChosenFundAsync();
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
const superChoiceParagraphOne = `Selecting the right super fund is very important. Simple Financial Choices have provided you with easy access to the below funds to make your choice an easy one, if you think that one of them might suit your needs.`;
|
|
36
|
+
const superChoiceParagraphTwo = `The content on this page and on the following pages relating to superannuation is provided by Simple Financial Choices (SFC), except for any content in relation to QSuper which is prepared, and provided to SFC, by QSuper Board ABN 32 125 059 006. The superannuation funds presented below are neither selected nor recommended by your employer nor by Flare HR.`;
|
|
37
|
+
const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
|
|
38
|
+
return (h(Host, null,
|
|
39
|
+
h("div", { class: "container mt-0 mb-0" },
|
|
40
|
+
h("div", { class: "row justify-content-center" },
|
|
41
|
+
h("div", { class: "col" },
|
|
42
|
+
h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
|
|
43
|
+
h("h5", { class: "font-weight-bold text-center mb-4" },
|
|
44
|
+
h("span", { class: "text-dark mr-1" }, "Simple Financial"),
|
|
45
|
+
h("span", { class: "simple-choices-text" }, "Choices")))),
|
|
46
|
+
h("div", { class: "row justify-content-center" },
|
|
47
|
+
h("div", { class: "col" },
|
|
48
|
+
h("p", { class: "text-center" }, superChoiceParagraphOne),
|
|
49
|
+
h("p", { class: "text-center small" }, superChoiceParagraphTwo),
|
|
50
|
+
h("p", { class: "text-center small" }, superChoiceParagraphThree))),
|
|
51
|
+
h("div", { class: "row" },
|
|
52
|
+
h("div", { class: "col" },
|
|
53
|
+
h("sss-notifications-section", null))),
|
|
54
|
+
h("div", { class: "row justify-content-center mt-4" },
|
|
55
|
+
h("div", { class: "col col-sm-10 col-md-8 col-xl-7" },
|
|
56
|
+
h("div", { class: "row" },
|
|
57
|
+
h("div", { class: "col" },
|
|
58
|
+
h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))),
|
|
59
|
+
h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" },
|
|
60
|
+
h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))),
|
|
61
|
+
h("div", { class: "row mt-3" },
|
|
62
|
+
h("div", { class: "col" },
|
|
63
|
+
h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
|
|
64
|
+
h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
|
|
65
|
+
}
|
|
66
|
+
allFunds() {
|
|
67
|
+
return [
|
|
68
|
+
{
|
|
69
|
+
fundId: constants.SlateFundId,
|
|
70
|
+
usi: constants.SlateFundUsi,
|
|
71
|
+
name: constants.SlateFundName,
|
|
72
|
+
heading: constants.SlateAltFundName,
|
|
73
|
+
logo: 'logo-slate.png',
|
|
74
|
+
route: SuperSelectionAppRoutes.SlateJoin,
|
|
75
|
+
callToAction: 'Join Slate Super',
|
|
76
|
+
pdsLink: 'https://slatesuper.com.au/pds/?utm_source=flare&utm_medium=superselection',
|
|
77
|
+
features: [
|
|
78
|
+
{ order: 1, value: 'Personalised lifestages investment strategy that evolves with you' },
|
|
79
|
+
{ order: 2, value: 'Advanced mobile app with retirement forecast and smart features' },
|
|
80
|
+
{ order: 3, value: 'Your own personal concierge at Slate to assist with your account' }
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
fundId: constants.QSuperFundId,
|
|
85
|
+
usi: constants.QSuperFundUsi,
|
|
86
|
+
name: constants.QSuperFundName,
|
|
87
|
+
heading: constants.QSuperAltFundName,
|
|
88
|
+
logo: 'logo-qsuper-square.png',
|
|
89
|
+
route: SuperSelectionAppRoutes.QSuperOptIn,
|
|
90
|
+
callToAction: 'Join QSuper',
|
|
91
|
+
pdsLink: 'https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements',
|
|
92
|
+
features: [
|
|
93
|
+
{ order: 1, value: '100 years strong' },
|
|
94
|
+
{ order: 2, value: `One of Australia's largest funds` },
|
|
95
|
+
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
fundId: constants.AustralianRetirementTrustFundId,
|
|
100
|
+
usi: constants.AustralianRetirementTrustFundUsi,
|
|
101
|
+
name: constants.AustralianRetirementTrustFundName,
|
|
102
|
+
heading: constants.AustralianRetirementTrustAltFundName,
|
|
103
|
+
logo: 'logo-qsuper-square.png',
|
|
104
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
105
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
106
|
+
pdsLink: 'https://google.com',
|
|
107
|
+
features: []
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
getPromotedFunds() {
|
|
112
|
+
const fundTiles = [];
|
|
113
|
+
SuperSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
114
|
+
const fund = this.allFunds().find((fund) => fundId == fund.fundId);
|
|
115
|
+
if (fund !== undefined) {
|
|
116
|
+
fundTiles.push(fund);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return fundTiles;
|
|
120
|
+
}
|
|
121
|
+
async handleJoinSuperClickAsync(fund) {
|
|
122
|
+
if (fund.fundId === constants.SlateFundId) {
|
|
123
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
124
|
+
fundUsi: constants.SlateFundUsi,
|
|
125
|
+
fundName: constants.SlateFundName,
|
|
126
|
+
fundNameAlt: constants.SlateAltFundName
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
else if (fund.fundId === constants.QSuperFundId) {
|
|
130
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
131
|
+
fundUsi: constants.QSuperFundUsi,
|
|
132
|
+
fundName: constants.QSuperFundName,
|
|
133
|
+
fundNameAlt: constants.QSuperAltFundName
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
else if (fund.fundId === constants.AustralianRetirementTrustFundId) {
|
|
137
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
138
|
+
fundUsi: constants.AustralianRetirementTrustFundUsi,
|
|
139
|
+
fundName: constants.AustralianRetirementTrustFundName,
|
|
140
|
+
fundNameAlt: constants.AustralianRetirementTrustAltFundName
|
|
141
|
+
});
|
|
142
|
+
promotedFundState.fundId = fund.fundId;
|
|
143
|
+
}
|
|
144
|
+
return navigationService.navigateInternally(this.history, fund.route);
|
|
145
|
+
}
|
|
146
|
+
static get is() { return "sss-super-choice-page"; }
|
|
147
|
+
static get originalStyleUrls() { return {
|
|
148
|
+
"$": ["super-choice-page.scss"]
|
|
149
|
+
}; }
|
|
150
|
+
static get styleUrls() { return {
|
|
151
|
+
"$": ["super-choice-page.css"]
|
|
152
|
+
}; }
|
|
153
|
+
static get assetsDirs() { return ["assets"]; }
|
|
154
|
+
static get properties() { return {
|
|
155
|
+
"history": {
|
|
156
|
+
"type": "unknown",
|
|
157
|
+
"mutable": false,
|
|
158
|
+
"complexType": {
|
|
159
|
+
"original": "RouterHistory",
|
|
160
|
+
"resolved": "RouterHistory",
|
|
161
|
+
"references": {
|
|
162
|
+
"RouterHistory": {
|
|
163
|
+
"location": "import",
|
|
164
|
+
"path": "@stencil/router"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": ""
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}; }
|
|
176
|
+
static get states() { return {
|
|
177
|
+
"promotedFunds": {},
|
|
178
|
+
"chosenFund": {}
|
|
179
|
+
}; }
|
|
180
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import '@flarehr/beacon';
|
|
2
|
+
import { Component, Event, h, Host, Prop, State, Watch } from '@stencil/core';
|
|
3
|
+
import { injectHistory } from '@stencil/router';
|
|
4
|
+
import * as O from 'fp-ts/lib/Option';
|
|
5
|
+
import { resetQSuperState } from './funds/qsuper/helpers/resetState';
|
|
6
|
+
import { superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
|
|
7
|
+
import superSelectionAppService from './services/super-selection-app.service';
|
|
8
|
+
export class SuperSelectionApp {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.isAppInitialised = false;
|
|
11
|
+
}
|
|
12
|
+
async componentWillLoad() {
|
|
13
|
+
const jwt = O.fromNullable(this.accessToken);
|
|
14
|
+
if (O.isNone(jwt)) {
|
|
15
|
+
throw Error(`jwt property is missing.`);
|
|
16
|
+
}
|
|
17
|
+
superSelectionAppService.state.jwt = jwt;
|
|
18
|
+
const apiBaseUrl = O.fromNullable(this.backendUrl);
|
|
19
|
+
if (O.isNone(apiBaseUrl)) {
|
|
20
|
+
throw Error(`apiBaseUrl property is missing.`);
|
|
21
|
+
}
|
|
22
|
+
superSelectionAppService.state.apiBaseUrl = O.some(apiBaseUrl.value.replace(/\/$/, '') + '/');
|
|
23
|
+
const appBaseUrl = O.fromNullable(this.appBaseUrl);
|
|
24
|
+
if (O.isNone(appBaseUrl)) {
|
|
25
|
+
throw Error(`appBaseUrl property is missing.`);
|
|
26
|
+
}
|
|
27
|
+
superSelectionAppService.state.appBaseUrl = O.some(appBaseUrl.value.replace(/\/$/, ''));
|
|
28
|
+
superSelectionAppService.onChange('hasSuccessPageBeenAcknowledged', (_) => this.successPageAcknowledged.emit());
|
|
29
|
+
superSelectionAppService.onChange('hasSuperSelectionBeenSubmitted', (submitted) => {
|
|
30
|
+
if (!submitted)
|
|
31
|
+
return;
|
|
32
|
+
this.stepSubmitSuccess.emit();
|
|
33
|
+
superSelectionAppService.state.hasSuperSelectionBeenSubmitted = false;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async componentDidLoad() {
|
|
37
|
+
resetQSuperState();
|
|
38
|
+
await superSelectionAppService.loadAppStateAsync();
|
|
39
|
+
this.isAppInitialised = true;
|
|
40
|
+
this.initialised.emit({
|
|
41
|
+
accountIdOrDefault: superSelectionAppService.accountIdOrDefault,
|
|
42
|
+
partnerIdOrDefault: superSelectionAppService.partnerIdOrDefault,
|
|
43
|
+
profileId: superSelectionAppService.profileId
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
authTokenChanged(newValue) {
|
|
47
|
+
superSelectionAppService.state.jwt = O.fromNullable(newValue);
|
|
48
|
+
}
|
|
49
|
+
onRouteChange() {
|
|
50
|
+
window === null || window === void 0 ? void 0 : window.scroll(0, 0);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, { class: "d-flex justify-content-center flex-grow-1" },
|
|
54
|
+
h("div", { class: "d-flex flex-column justify-content-between" }, this.renderAppContent())));
|
|
55
|
+
}
|
|
56
|
+
routerBaseUrl() {
|
|
57
|
+
var _a;
|
|
58
|
+
return ((_a = this.appBaseUrl) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '')) + '/';
|
|
59
|
+
}
|
|
60
|
+
renderAppContent() {
|
|
61
|
+
return (h("stencil-router", { root: this.routerBaseUrl() },
|
|
62
|
+
h("stencil-route-switch", { scrollTopOffset: 0 },
|
|
63
|
+
h("div", { class: "d-flex flex-column" },
|
|
64
|
+
h("div", { class: "d-flex justify-content-center" }, this.isAppInitialised ? (superSelectionAppStencilRoutes) : (h("fl-loading-indicator", { class: "mt-5" }))),
|
|
65
|
+
h("div", { class: "d-flex justify-content-center" },
|
|
66
|
+
h("sss-footer-section", null))))));
|
|
67
|
+
}
|
|
68
|
+
static get is() { return "super-selection-app"; }
|
|
69
|
+
static get originalStyleUrls() { return {
|
|
70
|
+
"$": ["super-selection-app.scss"]
|
|
71
|
+
}; }
|
|
72
|
+
static get styleUrls() { return {
|
|
73
|
+
"$": ["super-selection-app.css"]
|
|
74
|
+
}; }
|
|
75
|
+
static get properties() { return {
|
|
76
|
+
"accessToken": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"mutable": false,
|
|
79
|
+
"complexType": {
|
|
80
|
+
"original": "string",
|
|
81
|
+
"resolved": "string | undefined",
|
|
82
|
+
"references": {}
|
|
83
|
+
},
|
|
84
|
+
"required": false,
|
|
85
|
+
"optional": true,
|
|
86
|
+
"docs": {
|
|
87
|
+
"tags": [],
|
|
88
|
+
"text": ""
|
|
89
|
+
},
|
|
90
|
+
"attribute": "access-token",
|
|
91
|
+
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"backendUrl": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string | undefined",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": true,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": ""
|
|
106
|
+
},
|
|
107
|
+
"attribute": "backend-url",
|
|
108
|
+
"reflect": false
|
|
109
|
+
},
|
|
110
|
+
"appBaseUrl": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "string",
|
|
115
|
+
"resolved": "string | undefined",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": true,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "app-base-url",
|
|
125
|
+
"reflect": false
|
|
126
|
+
},
|
|
127
|
+
"history": {
|
|
128
|
+
"type": "unknown",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "RouterHistory",
|
|
132
|
+
"resolved": "RouterHistory",
|
|
133
|
+
"references": {
|
|
134
|
+
"RouterHistory": {
|
|
135
|
+
"location": "import",
|
|
136
|
+
"path": "@stencil/router"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"location": {
|
|
148
|
+
"type": "unknown",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "LocationSegments",
|
|
152
|
+
"resolved": "LocationSegments | undefined",
|
|
153
|
+
"references": {
|
|
154
|
+
"LocationSegments": {
|
|
155
|
+
"location": "import",
|
|
156
|
+
"path": "@stencil/router"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": true,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": ""
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}; }
|
|
168
|
+
static get states() { return {
|
|
169
|
+
"isAppInitialised": {}
|
|
170
|
+
}; }
|
|
171
|
+
static get events() { return [{
|
|
172
|
+
"method": "stepSubmitSuccess",
|
|
173
|
+
"name": "step-completion",
|
|
174
|
+
"bubbles": true,
|
|
175
|
+
"cancelable": true,
|
|
176
|
+
"composed": true,
|
|
177
|
+
"docs": {
|
|
178
|
+
"tags": [],
|
|
179
|
+
"text": ""
|
|
180
|
+
},
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "void",
|
|
183
|
+
"resolved": "void",
|
|
184
|
+
"references": {}
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
"method": "successPageAcknowledged",
|
|
188
|
+
"name": "successPageAcknowledged",
|
|
189
|
+
"bubbles": true,
|
|
190
|
+
"cancelable": true,
|
|
191
|
+
"composed": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": ""
|
|
195
|
+
},
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "void",
|
|
198
|
+
"resolved": "void",
|
|
199
|
+
"references": {}
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
"method": "initialised",
|
|
203
|
+
"name": "initialised",
|
|
204
|
+
"bubbles": true,
|
|
205
|
+
"cancelable": true,
|
|
206
|
+
"composed": true,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": ""
|
|
210
|
+
},
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "InitialisedWith",
|
|
213
|
+
"resolved": "{ accountIdOrDefault: string; partnerIdOrDefault: string; profileId: string; }",
|
|
214
|
+
"references": {
|
|
215
|
+
"InitialisedWith": {
|
|
216
|
+
"location": "local"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}]; }
|
|
221
|
+
static get watchers() { return [{
|
|
222
|
+
"propName": "accessToken",
|
|
223
|
+
"methodName": "authTokenChanged"
|
|
224
|
+
}, {
|
|
225
|
+
"propName": "location",
|
|
226
|
+
"methodName": "onRouteChange"
|
|
227
|
+
}]; }
|
|
228
|
+
}
|
|
229
|
+
injectHistory(SuperSelectionApp);
|