@flarehr/apollo-super-selection 1.3.23524 → 1.3.23680
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.css +1 -0
- 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/assets/icon-exclamation.svg +3 -0
- package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
- package/dist/lib/apollo-super-selection/index.esm.js +0 -0
- package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
- package/dist/lib/apollo-super-selection/p-15f0e5eb.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-22939048.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
- package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
- package/dist/lib/apollo-super-selection/p-2b42304a.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-33eca162.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-4e871154.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-50ea2036.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-53b231f0.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-5c73c587.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-5e00b8d8.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-69bbf1dd.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-71ca4cf8.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
- package/dist/lib/apollo-super-selection/p-97188c78.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-9d2a7c0e.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-9f64929e.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-c775c0e4.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-db0bded8.js +1 -0
- package/dist/lib/apollo-super-selection/p-e957b393.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-fdadb647.js +1 -0
- package/dist/lib/cjs/active-router-1f555f75.js +75 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +22 -0
- package/dist/lib/cjs/app-globals-b1125d8c.js +25 -0
- package/dist/lib/cjs/context-consumer.cjs.entry.js +29 -0
- package/dist/lib/cjs/custom-fund-choice.api-293c1ace.js +3209 -0
- package/dist/lib/cjs/datorama-akita-6c9cb8fb.js +3641 -0
- package/dist/lib/cjs/index-eb4f212f.js +1766 -0
- package/dist/lib/cjs/index.cjs.js +2 -0
- package/dist/lib/cjs/loader.cjs.js +24 -0
- package/dist/lib/cjs/sss-button_32.cjs.entry.js +14934 -0
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +111 -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/apollo-super-selection.css +1 -0
- package/dist/lib/collection/collection-manifest.json +98 -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/app-parameters.query.js +13 -0
- package/dist/lib/collection/components/app-host/services/app-parameters.service.js +14 -0
- package/dist/lib/collection/components/app-host/services/appinsights.service.js +46 -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 +38 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +24 -0
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +87 -0
- package/dist/lib/collection/components/external-loading-page/external-loading-page.js +29 -0
- package/dist/lib/collection/components/super-byof/super-byof-types.js +1 -0
- package/dist/lib/collection/components/super-byof/super-byof.form.js +1 -0
- package/dist/lib/collection/components/super-byof/super-byof.js +139 -0
- package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +49 -0
- package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +121 -0
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +6 -0
- package/dist/lib/collection/components/super-campaign/super-campaign.js +210 -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-campaign-errors-api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +16 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +179 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +69 -0
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +36 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/choice/choice-router.js +42 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +163 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +39 -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 +50 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +109 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +36 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +114 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +113 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/member-name-input.js +162 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js +115 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.js +11 -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/smsf-engagement-step-host.js +161 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -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 +31 -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/api/slate.js +4 -0
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +37 -0
- package/dist/lib/collection/components/super-selection-app/misc/button.js +195 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +390 -0
- package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +22 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +42 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +66 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +121 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +145 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +223 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +398 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +288 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +37 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +81 -0
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +15 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +117 -0
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +134 -0
- package/dist/lib/collection/components/super-selection-app/services/misc.service.js +7 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +31 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +38 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +171 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +45 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +155 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +11 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +27 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +291 -0
- package/dist/lib/collection/components/super-smsf/super-smsf-types.js +1 -0
- package/dist/lib/collection/components/super-smsf/super-smsf.form.js +1 -0
- package/dist/lib/collection/components/super-smsf/super-smsf.js +166 -0
- package/dist/lib/collection/global/init-host.js +25 -0
- package/dist/lib/collection/global/main.dev.js +29 -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 +11 -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-d18b36fb.js +73 -0
- package/dist/lib/esm/apollo-super-selection.js +20 -0
- package/dist/lib/esm/app-globals-c1f89805.js +23 -0
- package/dist/lib/esm/context-consumer.entry.js +25 -0
- package/dist/lib/esm/custom-fund-choice.api-42801d64.js +3188 -0
- package/dist/lib/esm/datorama-akita-127aea91.js +3624 -0
- package/dist/lib/esm/index-107d7c24.js +1732 -0
- package/dist/lib/esm/index.js +1 -0
- package/dist/lib/esm/loader.js +20 -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/sss-button_32.entry.js +14879 -0
- package/dist/lib/esm/sss-super-byof-host.entry.js +107 -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-d18b36fb.js +1 -0
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -0
- package/dist/lib/esm-es5/app-globals-c1f89805.js +1 -0
- package/dist/lib/esm-es5/context-consumer.entry.js +1 -0
- package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
- package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
- package/dist/lib/esm-es5/index-107d7c24.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/sss-button_32.entry.js +69 -0
- package/dist/lib/esm-es5/sss-super-byof-host.entry.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/@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/app-parameters.query.d.ts +10 -0
- package/dist/lib/types/components/app-host/services/app-parameters.service.d.ts +6 -0
- package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +15 -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 +31 -0
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +15 -0
- package/dist/lib/types/components/super-byof/super-byof-types.d.ts +26 -0
- package/dist/lib/types/components/super-byof/super-byof.d.ts +19 -0
- package/dist/lib/types/components/super-byof/super-byof.form.d.ts +6 -0
- package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +12 -0
- package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +15 -0
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +98 -0
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +27 -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-campaign-errors-api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +171 -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 +248 -0
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/choice/choice-router.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +10 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +43 -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 +27 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +13 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +18 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +26 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.d.ts +20 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.d.ts +1 -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/smsf-engagement-step-host.d.ts +28 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +23 -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 +9 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/misc/button.d.ts +14 -0
- package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +52 -0
- package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +18 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +28 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +52 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +95 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +14 -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 +25 -0
- package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +75 -0
- package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +17 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +19 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +43 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +37 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +16 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +42 -0
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +27 -0
- package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +34 -0
- package/dist/lib/types/components/super-smsf/super-smsf.d.ts +20 -0
- package/dist/lib/types/components/super-smsf/super-smsf.form.d.ts +15 -0
- package/dist/lib/types/components.d.ts +522 -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 +4 -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/custom-fund/member-name-input.js
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Component, Event, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
export class MemberNameInput {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.value = '';
|
|
5
|
+
this.name = '';
|
|
6
|
+
this.readableName = '';
|
|
7
|
+
this.showValidationErrors = false;
|
|
8
|
+
this.errorMessage = '';
|
|
9
|
+
// Pattern for name validation
|
|
10
|
+
this.NAME_PATTERN = "^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$";
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return (h(Host, null,
|
|
14
|
+
h("input", { "data-testid": this.testId, type: "text", class: {
|
|
15
|
+
'shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md': true,
|
|
16
|
+
'invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
|
|
17
|
+
.showValidationErrors
|
|
18
|
+
}, required: true, pattern: this.NAME_PATTERN, name: this.name, value: this.value, onInput: (ev) => this.handleInput(ev) }),
|
|
19
|
+
this.errorMessage && (h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, this.errorMessage))));
|
|
20
|
+
}
|
|
21
|
+
handleInput(ev) {
|
|
22
|
+
const target = ev.target;
|
|
23
|
+
target.value = target.value.replace(/\s+/g, ' ');
|
|
24
|
+
this.validateInput(target);
|
|
25
|
+
this.myInputChange.emit(target.value.trim());
|
|
26
|
+
}
|
|
27
|
+
validateInput(target) {
|
|
28
|
+
if (!target.checkValidity()) {
|
|
29
|
+
if (target.validity.valueMissing) {
|
|
30
|
+
this.errorMessage = `${this.readableName} is required.`;
|
|
31
|
+
}
|
|
32
|
+
else if (target.validity.patternMismatch) {
|
|
33
|
+
if (target.value.startsWith('-') || target.value.startsWith("'")) {
|
|
34
|
+
this.errorMessage = `${this.readableName} must start with a letter.`;
|
|
35
|
+
}
|
|
36
|
+
else if (target.value.includes('--')) {
|
|
37
|
+
this.errorMessage = `${this.readableName} must not have a double hypen.`;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
this.errorMessage = `${this.readableName} contains unsupported characters.`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.errorMessage = 'Invalid input.';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
this.errorMessage = '';
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
static get is() { return "sss-name-input"; }
|
|
52
|
+
static get properties() { return {
|
|
53
|
+
"testId": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "string",
|
|
58
|
+
"resolved": "string",
|
|
59
|
+
"references": {}
|
|
60
|
+
},
|
|
61
|
+
"required": false,
|
|
62
|
+
"optional": false,
|
|
63
|
+
"docs": {
|
|
64
|
+
"tags": [],
|
|
65
|
+
"text": ""
|
|
66
|
+
},
|
|
67
|
+
"attribute": "test-id",
|
|
68
|
+
"reflect": false
|
|
69
|
+
},
|
|
70
|
+
"value": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": ""
|
|
83
|
+
},
|
|
84
|
+
"attribute": "value",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "''"
|
|
87
|
+
},
|
|
88
|
+
"name": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "string",
|
|
93
|
+
"resolved": "string",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": ""
|
|
101
|
+
},
|
|
102
|
+
"attribute": "name",
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"defaultValue": "''"
|
|
105
|
+
},
|
|
106
|
+
"readableName": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"attribute": "readable-name",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "''"
|
|
123
|
+
},
|
|
124
|
+
"showValidationErrors": {
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "boolean",
|
|
129
|
+
"resolved": "boolean",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"attribute": "show-validation-errors",
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"defaultValue": "false"
|
|
141
|
+
}
|
|
142
|
+
}; }
|
|
143
|
+
static get states() { return {
|
|
144
|
+
"errorMessage": {}
|
|
145
|
+
}; }
|
|
146
|
+
static get events() { return [{
|
|
147
|
+
"method": "myInputChange",
|
|
148
|
+
"name": "myInputChange",
|
|
149
|
+
"bubbles": true,
|
|
150
|
+
"cancelable": true,
|
|
151
|
+
"composed": true,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
155
|
+
},
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "any",
|
|
158
|
+
"resolved": "any",
|
|
159
|
+
"references": {}
|
|
160
|
+
}
|
|
161
|
+
}]; }
|
|
162
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import { injectHistory } from '@stencil/router';
|
|
3
|
+
import { isSome } from 'fp-ts/lib/Option';
|
|
4
|
+
import { EventTrackingService } from '../../../services/event-tracking.service';
|
|
5
|
+
import navigationService from '../../../services/navigation.service';
|
|
6
|
+
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
7
|
+
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
8
|
+
import customFundChoiceApi from '../api/custom-fund-choice.api';
|
|
9
|
+
import customFundState from '../custom-fund.store';
|
|
10
|
+
export class MyOwnFundEngagementStep {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.stepContinued = async (event) => {
|
|
13
|
+
if (event.detail.sender == 'byof-engagement') {
|
|
14
|
+
await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi, event.detail.reason);
|
|
15
|
+
this.navigateToStandardChoice();
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.subscribeToStepEvents = () => {
|
|
19
|
+
for (const eventName in this.stepEventHandlers) {
|
|
20
|
+
document.addEventListener(eventName, this.stepEventHandlers[eventName]);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
this.unSubscribeFromStepEvents = () => {
|
|
24
|
+
for (const eventName in this.stepEventHandlers) {
|
|
25
|
+
document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
this.stepEventHandlers = {
|
|
29
|
+
continue: this.stepContinued.bind(this)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
async componentWillLoad() {
|
|
33
|
+
if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
|
|
34
|
+
superSelectionAppService.isUsingSuperCampaign &&
|
|
35
|
+
isSome(customFundState.myOwnFundForm.fundUsi) &&
|
|
36
|
+
isSome(customFundState.myOwnFundForm.fundName) &&
|
|
37
|
+
isSome(customFundState.myOwnFundForm.memberNumber) &&
|
|
38
|
+
isSome(customFundState.myOwnFundForm.memberFirstName) &&
|
|
39
|
+
isSome(customFundState.myOwnFundForm.memberFamilyName) &&
|
|
40
|
+
isSome(superSelectionAppService.backendUrl) &&
|
|
41
|
+
isSome(superSelectionAppService.state.jwt)) {
|
|
42
|
+
this.backendUrl = superSelectionAppService.backendUrl.value;
|
|
43
|
+
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
44
|
+
this.fundUsi = customFundState.myOwnFundForm.fundUsi.value;
|
|
45
|
+
this.fundName = customFundState.myOwnFundForm.fundName.value;
|
|
46
|
+
this.memberNumber = customFundState.myOwnFundForm.memberNumber.value;
|
|
47
|
+
this.memberFirstName = customFundState.myOwnFundForm.memberFirstName.value;
|
|
48
|
+
this.memberFamilyName = customFundState.myOwnFundForm.memberFamilyName.value;
|
|
49
|
+
this.unSubscribeFromStepEvents();
|
|
50
|
+
this.subscribeToStepEvents();
|
|
51
|
+
superSelectionAppService.hideFooterSection = true;
|
|
52
|
+
await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
disconnectedCallback() {
|
|
59
|
+
this.unSubscribeFromStepEvents();
|
|
60
|
+
superSelectionAppService.hideFooterSection = false;
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (h(Host, null,
|
|
64
|
+
h("apollo-super-byof-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken, "fund-usi": this.fundUsi })));
|
|
65
|
+
}
|
|
66
|
+
navigateToStandardChoice() {
|
|
67
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
68
|
+
history: this.history,
|
|
69
|
+
fundName: this.fundName,
|
|
70
|
+
fundDetails: {
|
|
71
|
+
type: 'myOwnFund',
|
|
72
|
+
fundName: this.fundName,
|
|
73
|
+
fundUsi: this.fundUsi,
|
|
74
|
+
memberNumber: this.memberNumber
|
|
75
|
+
},
|
|
76
|
+
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
77
|
+
const customFundChoiceDto = Object.assign({ fundUsi: this.fundUsi, memberNumber: this.memberNumber, memberFirstName: this.memberFirstName, memberFamilyName: this.memberFamilyName, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
78
|
+
await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
static get is() { return "sss-my-own-fund-engagement-step-host"; }
|
|
83
|
+
static get properties() { return {
|
|
84
|
+
"history": {
|
|
85
|
+
"type": "unknown",
|
|
86
|
+
"mutable": false,
|
|
87
|
+
"complexType": {
|
|
88
|
+
"original": "RouterHistory",
|
|
89
|
+
"resolved": "RouterHistory",
|
|
90
|
+
"references": {
|
|
91
|
+
"RouterHistory": {
|
|
92
|
+
"location": "import",
|
|
93
|
+
"path": "@stencil/router"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": false,
|
|
98
|
+
"optional": false,
|
|
99
|
+
"docs": {
|
|
100
|
+
"tags": [],
|
|
101
|
+
"text": ""
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}; }
|
|
105
|
+
static get states() { return {
|
|
106
|
+
"backendUrl": {},
|
|
107
|
+
"accessToken": {},
|
|
108
|
+
"fundUsi": {},
|
|
109
|
+
"fundName": {},
|
|
110
|
+
"memberNumber": {},
|
|
111
|
+
"memberFirstName": {},
|
|
112
|
+
"memberFamilyName": {}
|
|
113
|
+
}; }
|
|
114
|
+
}
|
|
115
|
+
injectHistory(MyOwnFundEngagementStep);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function validateAbn(abn) {
|
|
2
|
+
const digitArray = abn.split('').map(Number);
|
|
3
|
+
const isAllDigits = digitArray.every((d) => !isNaN(d));
|
|
4
|
+
const weightingFactors = [10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19];
|
|
5
|
+
if (!isAllDigits || digitArray.length !== weightingFactors.length) {
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
digitArray[0]--;
|
|
9
|
+
const sum = digitArray.reduce((sum, digit, i) => sum + digit * weightingFactors[i], 0);
|
|
10
|
+
return sum % 89 === 0;
|
|
11
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'01': 'Australia and New Zealand Banking Group',
|
|
3
|
+
'03': 'Westpac Banking Corporation',
|
|
4
|
+
'73': 'Westpac Banking Corporation',
|
|
5
|
+
'06': 'Commonwealth Bank of Australia',
|
|
6
|
+
'76': 'Commonwealth Bank of Australia',
|
|
7
|
+
'08': 'National Australia Bank',
|
|
8
|
+
'78': 'National Australia Bank',
|
|
9
|
+
'09': 'Reserve Bank of Australia',
|
|
10
|
+
'10': 'BankSA (division of Westpac Bank)',
|
|
11
|
+
'11': 'St George Bank (division of Westpac Bank)',
|
|
12
|
+
'33': 'St George Bank (division of Westpac Bank)',
|
|
13
|
+
'12': 'Bank of Queensland',
|
|
14
|
+
'14': 'Rabobank',
|
|
15
|
+
'15': 'Town & Country Bank',
|
|
16
|
+
'18': 'Macquarie Bank',
|
|
17
|
+
'19': 'Bank of Melbourne (division of Westpac Bank)',
|
|
18
|
+
'55': 'Bank of Melbourne (division of Westpac Bank)',
|
|
19
|
+
'21': 'JP Morgan Chase Bank',
|
|
20
|
+
'22': 'BNP Paribas',
|
|
21
|
+
'23': 'Bank of America',
|
|
22
|
+
'24': 'Citibank & Citibank NA',
|
|
23
|
+
'510': 'Citibank & Citibank NA',
|
|
24
|
+
'25': 'BNP Paribas Securities',
|
|
25
|
+
'26': 'Bankers Trust Australia (division of Westpac Bank)',
|
|
26
|
+
'29': 'MUFG Bank',
|
|
27
|
+
'30': 'Bankwest (division of Commonwealth Bank)',
|
|
28
|
+
'31': 'Bank Australia',
|
|
29
|
+
'325': 'Beyond Bank',
|
|
30
|
+
'34': 'HSBC Bank Australia',
|
|
31
|
+
'985': 'HSBC Bank Australia',
|
|
32
|
+
'35': 'Bank of China',
|
|
33
|
+
'980': 'Bank of China',
|
|
34
|
+
'40': 'Commonwealth Bank of Australia',
|
|
35
|
+
'41': 'Deutsche Bank',
|
|
36
|
+
'42': 'Commonwealth Bank of Australia',
|
|
37
|
+
'52': 'Commonwealth Bank of Australia',
|
|
38
|
+
'45': 'OCBC Bank',
|
|
39
|
+
'46': 'Advance Bank (division of Westpac Bank)',
|
|
40
|
+
'47': 'Challenge Bank (division of Westpac Bank)',
|
|
41
|
+
'48': 'Suncorp-Metway',
|
|
42
|
+
'664': 'Suncorp-Metway',
|
|
43
|
+
'512': 'Community First Credit Union',
|
|
44
|
+
'514': 'RACQ Bank',
|
|
45
|
+
'517': 'Volt Bank',
|
|
46
|
+
'533': 'Bananacoast Community Credit Union',
|
|
47
|
+
'57': 'Australian Settlements',
|
|
48
|
+
'61': 'Adelaide Bank (division of Bendigo and Adelaide Bank)',
|
|
49
|
+
'611': 'Endeavour Mutual Bank',
|
|
50
|
+
'823': 'Endeavour Mutual Bank',
|
|
51
|
+
'630': 'Greater Bank',
|
|
52
|
+
'637': 'Greater Bank',
|
|
53
|
+
'632': 'B&E',
|
|
54
|
+
'633': 'Bendigo Bank',
|
|
55
|
+
'634': 'Uniting Financial Services',
|
|
56
|
+
'638': 'Heritage Bank',
|
|
57
|
+
'880': 'Heritage Bank',
|
|
58
|
+
'639': 'Home Building Society (division of Bank of Queensland)',
|
|
59
|
+
'640': 'Hume Bank',
|
|
60
|
+
'641': 'IMB',
|
|
61
|
+
'647': 'IMB',
|
|
62
|
+
'642': 'Australian Military Bank',
|
|
63
|
+
'645': 'Auswide Bank',
|
|
64
|
+
'656': 'Auswide Bank',
|
|
65
|
+
'646': 'Maitland Mutual Building Society',
|
|
66
|
+
'650': 'Newcastle Permanent Building Society',
|
|
67
|
+
'653': 'Pioneer Permanent Building Society (division of Bank of Queensland)',
|
|
68
|
+
'654': 'Queensland Country Credit Union',
|
|
69
|
+
'655': 'The Rock',
|
|
70
|
+
'659': 'G&C Mutual Bank',
|
|
71
|
+
'676': 'Gateway Bank',
|
|
72
|
+
'70': 'Indue',
|
|
73
|
+
'721': 'Holiday Coast Credit Union',
|
|
74
|
+
'722': 'Southern Cross Credit Union',
|
|
75
|
+
'723': 'Bank of Heritage Isle',
|
|
76
|
+
'724': 'MOVE',
|
|
77
|
+
'728': 'Summerland Credit Union',
|
|
78
|
+
'777': 'Police & Nurse',
|
|
79
|
+
'80': 'Cuscal',
|
|
80
|
+
'670': 'Cuscal',
|
|
81
|
+
'812': 'Teachers Mutual Bank',
|
|
82
|
+
'813': 'Capricornian',
|
|
83
|
+
'814': 'Credit Union Australia',
|
|
84
|
+
'815': 'Police Bank',
|
|
85
|
+
'817': 'Warwick Credit Union',
|
|
86
|
+
'818': 'Bank of Communications',
|
|
87
|
+
'819': 'Industrial & Commercial Bank of China',
|
|
88
|
+
'824': 'Sutherland Credit Union',
|
|
89
|
+
'825': 'Big Sky Building Society',
|
|
90
|
+
'833': 'Defence Bank',
|
|
91
|
+
'882': 'Unity Bank',
|
|
92
|
+
'888': 'China Construction Bank',
|
|
93
|
+
'90': 'Australia Post',
|
|
94
|
+
'911': 'Sumitomo Mitsui Banking Corporation',
|
|
95
|
+
'913': 'State Street Bank & Trust Company',
|
|
96
|
+
'917': 'Arab Bank Australia',
|
|
97
|
+
'918': 'Mizuho Bank',
|
|
98
|
+
'922': 'United Overseas Bank',
|
|
99
|
+
'923': 'ING Bank',
|
|
100
|
+
'936': 'ING Bank',
|
|
101
|
+
'931': 'Mega International Commercial Bank',
|
|
102
|
+
'932': 'Regional Australia Bank',
|
|
103
|
+
'939': 'AMP Bank',
|
|
104
|
+
'941': 'Delphi Bank (division of Bendigo and Adelaide Bank)',
|
|
105
|
+
'942': 'Bank of Sydney',
|
|
106
|
+
'943': 'Taiwan Business Bank',
|
|
107
|
+
'944': 'Members Equity Bank',
|
|
108
|
+
'946': 'UBS AG',
|
|
109
|
+
'951': 'BOQ Specialist',
|
|
110
|
+
'969': 'Tyro Payments'
|
|
111
|
+
};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import { injectHistory } from '@stencil/router';
|
|
3
|
+
import { isSome } from 'fp-ts/lib/Option';
|
|
4
|
+
import { EventTrackingService } from '../../../services/event-tracking.service';
|
|
5
|
+
import navigationService from '../../../services/navigation.service';
|
|
6
|
+
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
7
|
+
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
8
|
+
import customFundChoiceApi from '../api/custom-fund-choice.api';
|
|
9
|
+
import customFundState from '../custom-fund.store';
|
|
10
|
+
export class SmsfEngagementStep {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.allFormFieldsAreFilled = (selfManagedFundForm) => {
|
|
13
|
+
return (selfManagedFundForm.fundName != null &&
|
|
14
|
+
selfManagedFundForm.fundAbn != null &&
|
|
15
|
+
selfManagedFundForm.fundEsa != null &&
|
|
16
|
+
selfManagedFundForm.addressLine1 != null &&
|
|
17
|
+
selfManagedFundForm.city != null &&
|
|
18
|
+
selfManagedFundForm.state != null &&
|
|
19
|
+
selfManagedFundForm.postcode != null &&
|
|
20
|
+
selfManagedFundForm.bsb != null &&
|
|
21
|
+
selfManagedFundForm.bankAccountName != null &&
|
|
22
|
+
selfManagedFundForm.bankAccountNumber != null &&
|
|
23
|
+
selfManagedFundForm.memberFirstName != null &&
|
|
24
|
+
selfManagedFundForm.memberFamilyName != null);
|
|
25
|
+
};
|
|
26
|
+
this.stepContinued = async (event) => {
|
|
27
|
+
if (event.detail.sender == 'smsf-engagement') {
|
|
28
|
+
await EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
|
|
29
|
+
this.navigateToStandardChoice();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
this.subscribeToStepEvents = () => {
|
|
33
|
+
for (const eventName in this.stepEventHandlers) {
|
|
34
|
+
document.addEventListener(eventName, this.stepEventHandlers[eventName]);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.unSubscribeFromStepEvents = () => {
|
|
38
|
+
for (const eventName in this.stepEventHandlers) {
|
|
39
|
+
document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
this.stepEventHandlers = {
|
|
43
|
+
continue: this.stepContinued.bind(this)
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
async componentWillLoad() {
|
|
47
|
+
if (superSelectionAppService.isSmsfCustomStepEnabled &&
|
|
48
|
+
superSelectionAppService.isUsingSuperCampaign &&
|
|
49
|
+
this.allFormFieldsAreFilled(customFundState.selfManagedFundForm) &&
|
|
50
|
+
isSome(superSelectionAppService.backendUrl) &&
|
|
51
|
+
isSome(superSelectionAppService.state.jwt)) {
|
|
52
|
+
this.backendUrl = superSelectionAppService.backendUrl.value;
|
|
53
|
+
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
54
|
+
this.accountId = superSelectionAppService.accountIdOrDefault;
|
|
55
|
+
this.partnerId = superSelectionAppService.partnerIdOrDefault;
|
|
56
|
+
this.initialiseFormState(customFundState.selfManagedFundForm);
|
|
57
|
+
this.unSubscribeFromStepEvents();
|
|
58
|
+
this.subscribeToStepEvents();
|
|
59
|
+
superSelectionAppService.hideFooterSection = true;
|
|
60
|
+
await EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SelfManagedFund);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
this.unSubscribeFromStepEvents();
|
|
68
|
+
superSelectionAppService.hideFooterSection = false;
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return (h(Host, null,
|
|
72
|
+
h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken, "account-id": this.accountId, "partner-id": this.partnerId })));
|
|
73
|
+
}
|
|
74
|
+
navigateToStandardChoice() {
|
|
75
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
76
|
+
history: this.history,
|
|
77
|
+
fundName: 'Self-managed super fund',
|
|
78
|
+
fundDetails: {
|
|
79
|
+
type: 'smsf',
|
|
80
|
+
fundName: this.fundName,
|
|
81
|
+
fundEsa: this.fundEsa
|
|
82
|
+
},
|
|
83
|
+
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
84
|
+
const requestDto = Object.assign({ smsfChoice: {
|
|
85
|
+
abn: this.fundAbn,
|
|
86
|
+
fundName: this.fundName,
|
|
87
|
+
fundAddress: {
|
|
88
|
+
addressLine1: this.fundAddress.addressLine1,
|
|
89
|
+
addressLine2: this.fundAddress.addressLine2,
|
|
90
|
+
city: this.fundAddress.city,
|
|
91
|
+
state: this.fundAddress.state,
|
|
92
|
+
postcode: this.fundAddress.postcode
|
|
93
|
+
},
|
|
94
|
+
bsb: this.bsb,
|
|
95
|
+
bankAccountName: this.bankAccountName,
|
|
96
|
+
bankAccountNumber: this.bankAccountNumber,
|
|
97
|
+
electronicServiceAddress: this.fundEsa,
|
|
98
|
+
memberFirstName: this.memberFirstName,
|
|
99
|
+
memberFamilyName: this.memberFamilyName
|
|
100
|
+
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
101
|
+
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
initialiseFormState(selfManagedFundForm) {
|
|
106
|
+
this.fundName = selfManagedFundForm.fundName;
|
|
107
|
+
this.fundAbn = selfManagedFundForm.fundAbn;
|
|
108
|
+
this.fundEsa = selfManagedFundForm.fundEsa;
|
|
109
|
+
this.fundAddress = {
|
|
110
|
+
addressLine1: selfManagedFundForm.addressLine1,
|
|
111
|
+
addressLine2: selfManagedFundForm.addressLine2,
|
|
112
|
+
city: selfManagedFundForm.city,
|
|
113
|
+
state: selfManagedFundForm.state,
|
|
114
|
+
postcode: selfManagedFundForm.postcode
|
|
115
|
+
};
|
|
116
|
+
this.bsb = selfManagedFundForm.bsb;
|
|
117
|
+
this.bankAccountName = selfManagedFundForm.bankAccountName;
|
|
118
|
+
this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
|
|
119
|
+
this.memberFirstName = selfManagedFundForm.memberFirstName;
|
|
120
|
+
this.memberFamilyName = selfManagedFundForm.memberFamilyName;
|
|
121
|
+
}
|
|
122
|
+
static get is() { return "sss-smsf-engagement-step-host"; }
|
|
123
|
+
static get properties() { return {
|
|
124
|
+
"history": {
|
|
125
|
+
"type": "unknown",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "RouterHistory",
|
|
129
|
+
"resolved": "RouterHistory",
|
|
130
|
+
"references": {
|
|
131
|
+
"RouterHistory": {
|
|
132
|
+
"location": "import",
|
|
133
|
+
"path": "@stencil/router"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": false,
|
|
138
|
+
"optional": false,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": ""
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}; }
|
|
145
|
+
static get states() { return {
|
|
146
|
+
"backendUrl": {},
|
|
147
|
+
"accessToken": {},
|
|
148
|
+
"fundName": {},
|
|
149
|
+
"fundAbn": {},
|
|
150
|
+
"fundEsa": {},
|
|
151
|
+
"fundAddress": {},
|
|
152
|
+
"bsb": {},
|
|
153
|
+
"bankAccountName": {},
|
|
154
|
+
"bankAccountNumber": {},
|
|
155
|
+
"memberFirstName": {},
|
|
156
|
+
"memberFamilyName": {},
|
|
157
|
+
"accountId": {},
|
|
158
|
+
"partnerId": {}
|
|
159
|
+
}; }
|
|
160
|
+
}
|
|
161
|
+
injectHistory(SmsfEngagementStep);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
+
export class PromotedFundChoiceApi {
|
|
3
|
+
async submitChoiceAsync(dto) {
|
|
4
|
+
return buildBackendApiClient()
|
|
5
|
+
.url('super-choice/promoted-fund')
|
|
6
|
+
.post(dto)
|
|
7
|
+
.badRequest(() => {
|
|
8
|
+
throw new Error('Failed to process Promoted Fund choice request');
|
|
9
|
+
})
|
|
10
|
+
.text();
|
|
11
|
+
}
|
|
12
|
+
async submitDefaultChoiceAsync(dto) {
|
|
13
|
+
return buildBackendApiClient()
|
|
14
|
+
.url('super-choice/promoted-fund/default')
|
|
15
|
+
.post(dto)
|
|
16
|
+
.badRequest(() => {
|
|
17
|
+
throw new Error('Failed to process Promoted Default Fund choice request');
|
|
18
|
+
})
|
|
19
|
+
.text();
|
|
20
|
+
}
|
|
21
|
+
async submitDefaultChoiceWithJoinAsync(dto) {
|
|
22
|
+
return buildBackendApiClient()
|
|
23
|
+
.url('super-choice/promoted-fund/default-with-join')
|
|
24
|
+
.post(dto)
|
|
25
|
+
.badRequest(() => {
|
|
26
|
+
throw new Error('Failed to process Promoted Default Fund With Join choice request');
|
|
27
|
+
})
|
|
28
|
+
.text();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default new PromotedFundChoiceApi();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
+
export class SlateChoiceApi {
|
|
3
|
+
async submitSlateChoiceAsync(dto) {
|
|
4
|
+
return buildBackendApiClient()
|
|
5
|
+
.url('super-choice/slate')
|
|
6
|
+
.post(dto)
|
|
7
|
+
.badRequest(() => {
|
|
8
|
+
throw new Error('Failed to process Slate join request');
|
|
9
|
+
})
|
|
10
|
+
.text();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default new SlateChoiceApi();
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component, Fragment, h } from '@stencil/core';
|
|
2
|
+
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
3
|
+
import superSelectionAppService from '../services/super-selection-app.service';
|
|
4
|
+
const RouteLink = (props, children) => {
|
|
5
|
+
return (h("stencil-route-link", { exact: true, url: props.route },
|
|
6
|
+
h("div", { class: {
|
|
7
|
+
'block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full': true,
|
|
8
|
+
'bg-white shadow-sm text-primary-base': props.isActive,
|
|
9
|
+
'hover:bg-primary-hover text-white': !props.isActive
|
|
10
|
+
} }, children)));
|
|
11
|
+
};
|
|
12
|
+
const ChooseAnotherFundLink = (props) => {
|
|
13
|
+
let route = SuperSelectionAppRoutes.MyOwnFund;
|
|
14
|
+
if (window.location.href.includes(SuperSelectionAppRoutes.SelfManagedFund)) {
|
|
15
|
+
route = SuperSelectionAppRoutes.SelfManagedFund;
|
|
16
|
+
}
|
|
17
|
+
else if (window.location.href.includes(SuperSelectionAppRoutes.DefaultFund)) {
|
|
18
|
+
route = SuperSelectionAppRoutes.DefaultFund;
|
|
19
|
+
}
|
|
20
|
+
else if (window.location.href.includes(SuperSelectionAppRoutes.FeaturedFunds)) {
|
|
21
|
+
route = SuperSelectionAppRoutes.FeaturedFunds;
|
|
22
|
+
}
|
|
23
|
+
return (h(RouteLink, { route: route, isActive: props.isActive }, "Choose another fund"));
|
|
24
|
+
};
|
|
25
|
+
export class HeaderSection {
|
|
26
|
+
render() {
|
|
27
|
+
return (h("div", { class: "flex justify-center" },
|
|
28
|
+
h("div", { class: "text-center max-w-800" },
|
|
29
|
+
h("h3", { class: "font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl" }, "Nominate a super fund"),
|
|
30
|
+
h(Fragment, null,
|
|
31
|
+
h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" }, superSelectionAppService.superCampaignCanNotBeActivated ? (h(Fragment, null, "You can choose any super fund, including your current fund/SMSF or your employer\u2019s default fund.")) : (h(Fragment, null, "You can choose any super fund, including your current fund/SMSF, your employer\u2019s default fund, or alternatively, you can select from one of the featured\u00A0funds."))),
|
|
32
|
+
!superSelectionAppService.superCampaignCanNotBeActivated && (h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" },
|
|
33
|
+
h(RouteLink, { route: SuperSelectionAppRoutes.ChoicePage, isActive: false }, "Featured super funds"),
|
|
34
|
+
h(ChooseAnotherFundLink, { isActive: true })))))));
|
|
35
|
+
}
|
|
36
|
+
static get is() { return "sss-header-section"; }
|
|
37
|
+
}
|