@flarehr/apollo-super-selection 3.14.52544 → 3.17.52781
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/package.json +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +0 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.js +0 -130
- package/dist/lib/apollo-super-selection/index.esm.js +0 -0
- package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
- package/dist/lib/apollo-super-selection/p-27129f6d.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-2bbd0732.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-2bd70644.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-30bebd30.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-31a3ef1a.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
- package/dist/lib/apollo-super-selection/p-381262c1.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
- package/dist/lib/apollo-super-selection/p-48e99aba.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-4ceefd14.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-52cb55a8.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-55737760.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-59a986b0.js +0 -1
- package/dist/lib/apollo-super-selection/p-7b72a245.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-84240b0b.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-943b206b.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-9b5fb4bc.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-cbe37145.js +0 -1
- package/dist/lib/apollo-super-selection/p-cc209002.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-cc9c37a4.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-dd3a95d5.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
- package/dist/lib/apollo-super-selection/p-fbcce741.entry.js +0 -1
- package/dist/lib/cjs/active-router-08eabf9a.js +0 -75
- package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -23
- package/dist/lib/cjs/app-globals-45007120.js +0 -25
- package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
- package/dist/lib/cjs/datorama-akita-7f4b082a.js +0 -2704
- package/dist/lib/cjs/delay-81aff2f1.js +0 -955
- package/dist/lib/cjs/fl-button_43.cjs.entry.js +0 -16969
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
- package/dist/lib/cjs/index-b2214bec.js +0 -1764
- package/dist/lib/cjs/index.cjs.js +0 -2
- package/dist/lib/cjs/loader.cjs.js +0 -25
- package/dist/lib/cjs/stencil-async-content.cjs.entry.js +0 -32
- package/dist/lib/cjs/stencil-route-title.cjs.entry.js +0 -32
- package/dist/lib/cjs/stencil-router-prompt.cjs.entry.js +0 -59
- package/dist/lib/cjs/stencil-router-redirect.cjs.entry.js +0 -32
- package/dist/lib/collection/collection-manifest.json +0 -125
- package/dist/lib/collection/components/app-host/loading-page.js +0 -9
- package/dist/lib/collection/components/app-host/services/app-configuration.query.js +0 -18
- package/dist/lib/collection/components/app-host/services/app-configuration.service.js +0 -25
- package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -43
- package/dist/lib/collection/components/app-host/services/authentication.query.js +0 -21
- package/dist/lib/collection/components/app-host/services/authentication.service.js +0 -50
- package/dist/lib/collection/components/app-host/services/interop/host-interop.service.js +0 -31
- package/dist/lib/collection/components/app-host/services/interop/iframe-interop.service.js +0 -30
- package/dist/lib/collection/components/app-host/services/interop/react-native-interop.service.js +0 -20
- package/dist/lib/collection/components/app-host/services/interop.query.js +0 -26
- package/dist/lib/collection/components/app-host/services/session.store.js +0 -37
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -28
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -92
- package/dist/lib/collection/components/super-selection-app/api/api-client.js +0 -14
- package/dist/lib/collection/components/super-selection-app/api/event-tracking.api.js +0 -9
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -30
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -31
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -29
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.js +0 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.js +0 -31
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -68
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +0 -53
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +0 -108
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -93
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -103
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.js +0 -111
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -153
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js +0 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -96
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -37
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -38
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -63
- 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 +0 -95
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -99
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.js +0 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js +0 -13
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +0 -127
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -9
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +0 -35
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
- 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 +0 -19
- package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -22
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -71
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -22
- package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
- package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
- package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -53
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -42
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -73
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -11
- package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -49
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -216
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -53
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +0 -152
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -15
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -229
- package/dist/lib/collection/global/init-host.js +0 -22
- package/dist/lib/collection/global/main.dev.js +0 -26
- package/dist/lib/collection/global/main.js +0 -11
- package/dist/lib/collection/global/stencil-router-workaround.js +0 -12
- package/dist/lib/collection/index.js +0 -2
- package/dist/lib/collection/utils/config.js +0 -2
- package/dist/lib/collection/utils/gtm.js +0 -5
- package/dist/lib/collection/utils/iframe.js +0 -33
- package/dist/lib/collection/utils/index.js +0 -8
- package/dist/lib/collection/utils/lazy.js +0 -29
- package/dist/lib/collection/utils/storage.js +0 -5
- package/dist/lib/esm/active-router-09eb3641.js +0 -73
- package/dist/lib/esm/apollo-super-selection.js +0 -21
- package/dist/lib/esm/app-globals-7ac1ffba.js +0 -23
- package/dist/lib/esm/context-consumer.entry.js +0 -25
- package/dist/lib/esm/datorama-akita-79ce4385.js +0 -2692
- package/dist/lib/esm/delay-c0555599.js +0 -935
- package/dist/lib/esm/fl-button_43.entry.js +0 -16923
- package/dist/lib/esm/fl-style-guide.entry.js +0 -86
- package/dist/lib/esm/index-227ab0f1.js +0 -1731
- package/dist/lib/esm/index.js +0 -1
- package/dist/lib/esm/loader.js +0 -21
- package/dist/lib/esm/polyfills/core-js.js +0 -11
- package/dist/lib/esm/polyfills/css-shim.js +0 -1
- package/dist/lib/esm/polyfills/dom.js +0 -79
- package/dist/lib/esm/polyfills/es5-html-element.js +0 -1
- package/dist/lib/esm/polyfills/index.js +0 -34
- package/dist/lib/esm/polyfills/system.js +0 -6
- package/dist/lib/esm/stencil-async-content.entry.js +0 -28
- package/dist/lib/esm/stencil-route-title.entry.js +0 -28
- package/dist/lib/esm/stencil-router-prompt.entry.js +0 -55
- package/dist/lib/esm/stencil-router-redirect.entry.js +0 -28
- package/dist/lib/esm-es5/active-router-09eb3641.js +0 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
- package/dist/lib/esm-es5/app-globals-7ac1ffba.js +0 -1
- package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
- package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
- package/dist/lib/esm-es5/delay-c0555599.js +0 -1
- package/dist/lib/esm-es5/fl-button_43.entry.js +0 -69
- package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
- package/dist/lib/esm-es5/index-227ab0f1.js +0 -1
- package/dist/lib/esm-es5/index.js +0 -0
- package/dist/lib/esm-es5/loader.js +0 -1
- package/dist/lib/esm-es5/stencil-async-content.entry.js +0 -1
- package/dist/lib/esm-es5/stencil-route-title.entry.js +0 -1
- package/dist/lib/esm-es5/stencil-router-prompt.entry.js +0 -1
- package/dist/lib/esm-es5/stencil-router-redirect.entry.js +0 -1
- package/dist/lib/index.cjs.js +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/loader/cdn.js +0 -3
- package/dist/lib/loader/index.cjs.js +0 -3
- package/dist/lib/loader/index.d.ts +0 -13
- package/dist/lib/loader/index.es2017.js +0 -3
- package/dist/lib/loader/index.js +0 -4
- package/dist/lib/loader/package.json +0 -10
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
- 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 +0 -3
- package/dist/lib/types/components/app-host/loading-page.d.ts +0 -3
- package/dist/lib/types/components/app-host/services/app-configuration.query.d.ts +0 -11
- package/dist/lib/types/components/app-host/services/app-configuration.service.d.ts +0 -9
- package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -14
- package/dist/lib/types/components/app-host/services/authentication.query.d.ts +0 -13
- package/dist/lib/types/components/app-host/services/authentication.service.d.ts +0 -9
- package/dist/lib/types/components/app-host/services/interop/host-interop.service.d.ts +0 -7
- package/dist/lib/types/components/app-host/services/interop/iframe-interop.service.d.ts +0 -5
- package/dist/lib/types/components/app-host/services/interop/react-native-interop.service.d.ts +0 -7
- package/dist/lib/types/components/app-host/services/interop.query.d.ts +0 -11
- package/dist/lib/types/components/app-host/services/session.store.d.ts +0 -30
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -17
- package/dist/lib/types/components/super-selection-app/api/api-client.d.ts +0 -2
- package/dist/lib/types/components/super-selection-app/api/event-tracking.api.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -73
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +0 -16
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +0 -81
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -13
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -28
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +0 -9
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +0 -30
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -12
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -12
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/bankBsbNumbers.d.ts +0 -112
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -10
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -21
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
- package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.d.ts +0 -13
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-join-page.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +0 -17
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -9
- package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -21
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -24
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -13
- package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -17
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -13
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -26
- package/dist/lib/types/components.d.ts +0 -532
- package/dist/lib/types/global/init-host.d.ts +0 -1
- package/dist/lib/types/global/main.d.ts +0 -1
- package/dist/lib/types/global/main.dev.d.ts +0 -1
- package/dist/lib/types/global/stencil-router-workaround.d.ts +0 -1
- package/dist/lib/types/index.d.ts +0 -2
- package/dist/lib/types/stencil-public-runtime.d.ts +0 -1555
- package/dist/lib/types/utils/config.d.ts +0 -2
- package/dist/lib/types/utils/gtm.d.ts +0 -7
- package/dist/lib/types/utils/iframe.d.ts +0 -13
- package/dist/lib/types/utils/index.d.ts +0 -3
- package/dist/lib/types/utils/lazy.d.ts +0 -12
- package/dist/lib/types/utils/storage.d.ts +0 -4
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
scroll-behavior: smooth;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
img.fluid-fit {
|
|
6
|
-
object-fit: cover;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.sss-app-container {
|
|
10
|
-
--fl-color-primary: #00aa65;
|
|
11
|
-
--fl-color-primary-light: #66d7a9;
|
|
12
|
-
--fl-color-primary-dark: #00aa65;
|
|
13
|
-
--fl-color-primary-disabled: #66d7a9;
|
|
14
|
-
--fl-color-primary-hover: #00aa65;
|
|
15
|
-
--fl-color-primary-focus: #00aa65;
|
|
16
|
-
--fl-color-primary-text: white;
|
|
17
|
-
--fl-color-secondary: #e5e5e5;
|
|
18
|
-
--fl-color-secondary-hover: #b3b3b3;
|
|
19
|
-
--fl-color-secondary-focus: #b3b3b3;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
|
23
|
-
select,
|
|
24
|
-
textarea,
|
|
25
|
-
input {
|
|
26
|
-
font-size: 16px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import '@flarehr/beacon';
|
|
2
|
-
import { ResizeObserver as ResizeObserverPolyfill } from '@juggle/resize-observer';
|
|
3
|
-
import { Component, h, Host, State } from '@stencil/core';
|
|
4
|
-
import { isNone, toUndefined } from 'fp-ts/lib/Option';
|
|
5
|
-
import initHost from '../../global/init-host';
|
|
6
|
-
import iframe from '../../utils/iframe';
|
|
7
|
-
import appInsights from '../app-host/services/appinsights.service';
|
|
8
|
-
import appConfigurationQuery from './services/app-configuration.query';
|
|
9
|
-
import appConfigurationService from './services/app-configuration.service';
|
|
10
|
-
import sessionQuery from './services/authentication.query';
|
|
11
|
-
import hostInteropService from './services/interop/host-interop.service';
|
|
12
|
-
import { AuthenticationState } from './services/session.store';
|
|
13
|
-
export class SuperSelectionAppHost {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.areStylesLoaded = false;
|
|
16
|
-
}
|
|
17
|
-
async componentWillLoad() {
|
|
18
|
-
await initHost();
|
|
19
|
-
sessionQuery.sessionState$.subscribe((updatedState) => (this.sessionState = updatedState));
|
|
20
|
-
sessionQuery.jwt$.subscribe((newToken) => (this.jwt = newToken));
|
|
21
|
-
appConfigurationQuery.appConfiguration$.subscribe((updatedConfiguration) => (this.appConfiguration = updatedConfiguration));
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
if (isNone(this.appConfiguration))
|
|
25
|
-
return h("sss-loading-page", null);
|
|
26
|
-
return (h(Host, { class: "d-flex flex-fill flex-column justify-content-between" },
|
|
27
|
-
this.fetchStyles(),
|
|
28
|
-
this.areStylesLoaded && this.renderAppContent()));
|
|
29
|
-
}
|
|
30
|
-
fetchStyles() {
|
|
31
|
-
return [
|
|
32
|
-
h("link", { rel: "stylesheet", href: "https://npm-cdn.flarehr.com/@flarehr/beacon@dev/dist/beacon/beacon.css", media: "all", onLoad: () => (this.areStylesLoaded = true) })
|
|
33
|
-
];
|
|
34
|
-
}
|
|
35
|
-
renderAppContent() {
|
|
36
|
-
return (h("stencil-router", { root: appConfigurationService.getAppRootUrl(), class: "sss-app-container" },
|
|
37
|
-
h("stencil-route-switch", { scrollTopOffset: 0 },
|
|
38
|
-
h("stencil-route", { ref: (el) => this.observeContentResize(el), url: "/", routeRender: this.renderProtectedRoute((props) => (h("super-selection-app", Object.assign({ accessToken: toUndefined(this.jwt), backendUrl: appConfigurationQuery.configuration.ApiBaseUrl, appBaseUrl: this.getAppBaseUrl(), onSuccessPageAcknowledged: this.handleSuccessPageAcknowledged, "onStep-completion": this.handleStepSubmitSuccess, onInitialised: this.handleAppInitialised }, props)))) }))));
|
|
39
|
-
}
|
|
40
|
-
getAppBaseUrl() {
|
|
41
|
-
const splits = window.location.pathname.split('app');
|
|
42
|
-
return splits[0] + "app/";
|
|
43
|
-
}
|
|
44
|
-
handleSuccessPageAcknowledged() {
|
|
45
|
-
hostInteropService.completeSuperSelectionStep();
|
|
46
|
-
}
|
|
47
|
-
handleStepSubmitSuccess() {
|
|
48
|
-
iframe.submitSuccess();
|
|
49
|
-
}
|
|
50
|
-
handleAppInitialised(evt) {
|
|
51
|
-
appInsights.addCustomProperties({
|
|
52
|
-
'X-ACCOUNT-ID': evt.detail.accountIdOrDefault,
|
|
53
|
-
'X-PARTNER-ID': evt.detail.partnerIdOrDefault,
|
|
54
|
-
'X-PROFILE-ID': evt.detail.profileId
|
|
55
|
-
});
|
|
56
|
-
appInsights.getAppInsights().trackPageView();
|
|
57
|
-
const loadingPageContainer = document.getElementById('sss-external-loading-page-container');
|
|
58
|
-
if (loadingPageContainer) {
|
|
59
|
-
document.body.removeChild(loadingPageContainer);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
observeContentResize(appContent) {
|
|
63
|
-
const ResizeObserver = window.ResizeObserver || ResizeObserverPolyfill;
|
|
64
|
-
new ResizeObserver(() => {
|
|
65
|
-
iframe.resize(appContent.offsetHeight, -1);
|
|
66
|
-
}).observe(appContent);
|
|
67
|
-
}
|
|
68
|
-
renderProtectedRoute(renderProtectedComponent) {
|
|
69
|
-
switch (this.sessionState) {
|
|
70
|
-
case AuthenticationState.Authenticated:
|
|
71
|
-
return renderProtectedComponent;
|
|
72
|
-
case AuthenticationState.Unauthorized:
|
|
73
|
-
return () => h("sss-loading-page", null);
|
|
74
|
-
case AuthenticationState.Error:
|
|
75
|
-
return () => h("h1", null, "Authentication Error");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
static get is() { return "super-selection-app-host"; }
|
|
79
|
-
static get encapsulation() { return "shadow"; }
|
|
80
|
-
static get originalStyleUrls() { return {
|
|
81
|
-
"$": ["super-selection-app-host.scss"]
|
|
82
|
-
}; }
|
|
83
|
-
static get styleUrls() { return {
|
|
84
|
-
"$": ["super-selection-app-host.css"]
|
|
85
|
-
}; }
|
|
86
|
-
static get states() { return {
|
|
87
|
-
"sessionState": {},
|
|
88
|
-
"jwt": {},
|
|
89
|
-
"appConfiguration": {},
|
|
90
|
-
"areStylesLoaded": {}
|
|
91
|
-
}; }
|
|
92
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import wretch from 'wretch';
|
|
2
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
3
|
-
export function buildBackendApiClient() {
|
|
4
|
-
const jwt = superSelectionAppService.jwt;
|
|
5
|
-
const profileId = superSelectionAppService.profileId;
|
|
6
|
-
const accountId = superSelectionAppService.accountIdOrDefault;
|
|
7
|
-
const partnerId = superSelectionAppService.partnerIdOrDefault;
|
|
8
|
-
return wretch(superSelectionAppService.apiBaseUrl).headers({
|
|
9
|
-
Authorization: `Bearer ${jwt}`,
|
|
10
|
-
'X-PROFILE-ID': profileId,
|
|
11
|
-
'X-PARTNER-ID': partnerId,
|
|
12
|
-
'X-ACCOUNT-ID': accountId
|
|
13
|
-
});
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { buildBackendApiClient } from '../api/api-client';
|
|
2
|
-
export class EventTrackingApi {
|
|
3
|
-
static get Instance() {
|
|
4
|
-
return this.instance || (this.instance = new this());
|
|
5
|
-
}
|
|
6
|
-
async PostAnalyticsEventAsync(event) {
|
|
7
|
-
return buildBackendApiClient().url('analytics-events').post(event).res();
|
|
8
|
-
}
|
|
9
|
-
}
|
package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { buildBackendApiClient } from './api-client';
|
|
2
|
-
export class SuperSelectionApi {
|
|
3
|
-
async getAustralianFundsAsync(searchFilter) {
|
|
4
|
-
return buildBackendApiClient()
|
|
5
|
-
.url(`super-choice/australian-funds?${this.toQueryString(searchFilter)}`)
|
|
6
|
-
.get()
|
|
7
|
-
.notFound(() => {
|
|
8
|
-
throw new Error('Failed to fetch the list of australian super funds.');
|
|
9
|
-
})
|
|
10
|
-
.json();
|
|
11
|
-
}
|
|
12
|
-
async getAppStateAsync() {
|
|
13
|
-
return buildBackendApiClient()
|
|
14
|
-
.url('client-app-state')
|
|
15
|
-
.get()
|
|
16
|
-
.notFound(() => {
|
|
17
|
-
throw new Error('Failed to fetch application configuration.');
|
|
18
|
-
})
|
|
19
|
-
.json();
|
|
20
|
-
}
|
|
21
|
-
toQueryString(searchFilter) {
|
|
22
|
-
switch (searchFilter.type) {
|
|
23
|
-
case 'partialMatch':
|
|
24
|
-
return `search=${searchFilter.searchString}&maxRecordCount=${searchFilter.maxRecordCount}`;
|
|
25
|
-
case 'usiMatch':
|
|
26
|
-
return `usi=${searchFilter.usi}`;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export default new SuperSelectionApi();
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, h, Host } from '@stencil/core';
|
|
2
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
3
|
-
export class Success {
|
|
4
|
-
render() {
|
|
5
|
-
return (h(Host, { class: "d-flex flex-fill" },
|
|
6
|
-
h("div", { class: "container mt-5" },
|
|
7
|
-
h("div", { class: "row justify-content-center" },
|
|
8
|
-
h("div", { class: "col col-sm-9 col-md-6" },
|
|
9
|
-
h("div", { class: "bg-light rounded p-4" },
|
|
10
|
-
h("div", { class: "d-flex justify-content-center" },
|
|
11
|
-
h("div", null,
|
|
12
|
-
h("svg", { width: "3em", height: "3em", viewBox: "0 0 16 16", class: "bi bi-check-circle-fill text-success", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" },
|
|
13
|
-
h("path", { "fill-rule": "evenodd", d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" })))),
|
|
14
|
-
h("div", { class: "d-flex justify-content-center" },
|
|
15
|
-
h("p", { class: "mt-3 confirm-title text-center font-weight-bold px-5" }, "Successfully updated superannuation details")),
|
|
16
|
-
h("div", { class: "mt-2 text-center" },
|
|
17
|
-
h("p", { class: "confirm-text mb-0" }, "Your superannuation details have been updated successfully."),
|
|
18
|
-
h("br", null),
|
|
19
|
-
h("p", { class: "confirm-text mb-0" },
|
|
20
|
-
"To continue with your onboarding, press ",
|
|
21
|
-
h("strong", null, "Continue"),
|
|
22
|
-
" below."))),
|
|
23
|
-
h("div", { class: "flex-grow-1 mt-4" },
|
|
24
|
-
h("fl-promise-button", { isBlockElement: true, onClick: this.handleContinueButtonClick },
|
|
25
|
-
h("span", null, "Continue"))))))));
|
|
26
|
-
}
|
|
27
|
-
handleContinueButtonClick(_event) {
|
|
28
|
-
superSelectionAppService.completeSuperSelectionFlow();
|
|
29
|
-
}
|
|
30
|
-
static get is() { return "sss-success"; }
|
|
31
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, h } from '@stencil/core';
|
|
2
|
-
import { AppVersion } from '../../../utils';
|
|
3
|
-
import navigationService from '../services/navigation.service';
|
|
4
|
-
export class FooterSection {
|
|
5
|
-
render() {
|
|
6
|
-
return (h("div", { class: "container mb-sm-0" },
|
|
7
|
-
h("div", { class: "row justify-content-center mt-5 mb-3" },
|
|
8
|
-
h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" },
|
|
9
|
-
h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"),
|
|
10
|
-
h("h5", { class: "font-weight-bold text-center mb-4" },
|
|
11
|
-
h("span", { class: "text-dark mr-1" }, "Simple Financial"),
|
|
12
|
-
h("span", { class: "simple-choices-text" }, "Choices")))),
|
|
13
|
-
h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" },
|
|
14
|
-
h("p", { class: "text-muted small" }, "Financial product content on this page is provided by Simple Financial Choices Pty Ltd, a wholly owned entity of Flare HR. Simple Financial Choices Pty Ltd (ABN 58 629 890 900; AFS Representative No. 001269407), is a Corporate Authorised Representative of True Oak Investments Ltd (ABN 81 002 558 956; AFS Licence No. 238184). Flare HR does not endorse or accept responsibility for any financial product advice or services provided by Simple Financial Choices Pty Ltd.")),
|
|
15
|
-
h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
|
|
16
|
-
}
|
|
17
|
-
appVersionBadge() {
|
|
18
|
-
return (h("small", { style: { opacity: '0.5' }, class: "text-muted" },
|
|
19
|
-
"Powered by Flare, v",
|
|
20
|
-
AppVersion));
|
|
21
|
-
}
|
|
22
|
-
static get is() { return "sss-footer-section"; }
|
|
23
|
-
static get originalStyleUrls() { return {
|
|
24
|
-
"$": ["footer-section.scss"]
|
|
25
|
-
}; }
|
|
26
|
-
static get styleUrls() { return {
|
|
27
|
-
"$": ["footer-section.css"]
|
|
28
|
-
}; }
|
|
29
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const QSuperFundUsi = '60905115063001';
|
|
2
|
-
export const QSuperFundId = 'qsuper';
|
|
3
|
-
export const QSuperFundName = 'QSuper';
|
|
4
|
-
export const QSuperAltFundName = 'Recognised performer';
|
|
5
|
-
export const QSuperInsuranceProductName = 'QSuper Insurance';
|
|
6
|
-
export const QSuperPdsUrl = 'https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf';
|
|
7
|
-
export const QSuperMinAge = 14;
|
|
8
|
-
export const QSuperMinInsuranceAge = 16;
|
|
9
|
-
export const QSuperMaxAge = 70;
|
|
10
|
-
export const SlateFundUsi = '32367272075001';
|
|
11
|
-
export const SlateFundId = 'slate';
|
|
12
|
-
export const SlateFundName = 'Slate Super';
|
|
13
|
-
export const SlateAltFundName = 'Modern Digital Fund';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
-
export class CustomFundChoiceApi {
|
|
3
|
-
async submitDefaultFundChoiceAsync(dto) {
|
|
4
|
-
return buildBackendApiClient()
|
|
5
|
-
.url('super-choice/default')
|
|
6
|
-
.post(dto)
|
|
7
|
-
.badRequest(() => {
|
|
8
|
-
throw new Error('Failed to process default fund join request');
|
|
9
|
-
})
|
|
10
|
-
.text();
|
|
11
|
-
}
|
|
12
|
-
async submitCustomFundChoiceAsync(dto) {
|
|
13
|
-
return buildBackendApiClient()
|
|
14
|
-
.url('super-choice/custom-fund')
|
|
15
|
-
.post(dto)
|
|
16
|
-
.badRequest(() => {
|
|
17
|
-
throw new Error('Failed to process custom fund join request');
|
|
18
|
-
})
|
|
19
|
-
.text();
|
|
20
|
-
}
|
|
21
|
-
async submitSelfManagedFundChoiceAsync(dto) {
|
|
22
|
-
return buildBackendApiClient()
|
|
23
|
-
.url('super-choice/smsf')
|
|
24
|
-
.post(dto)
|
|
25
|
-
.badRequest(() => {
|
|
26
|
-
throw new Error('Failed to process SMSF choice request');
|
|
27
|
-
})
|
|
28
|
-
.text();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export default new CustomFundChoiceApi();
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import { injectHistory } from '@stencil/router';
|
|
3
|
-
import navigationService from '../../services/navigation.service';
|
|
4
|
-
import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
|
|
5
|
-
import customFundState from '../custom-fund/custom-fund.store';
|
|
6
|
-
const customFundOptions = customFundState.customFunds;
|
|
7
|
-
export class CustomFund {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.currentCustomFund = customFundOptions[0];
|
|
10
|
-
this.fundOptionsList = customFundOptions;
|
|
11
|
-
}
|
|
12
|
-
componentWillLoad() {
|
|
13
|
-
let currentRoute = '';
|
|
14
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.MyOwnFund))
|
|
15
|
-
currentRoute = SuperSelectionAppRoutes.MyOwnFund;
|
|
16
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.DefaultFund))
|
|
17
|
-
currentRoute = SuperSelectionAppRoutes.DefaultFund;
|
|
18
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.SelfManagedFund))
|
|
19
|
-
currentRoute = SuperSelectionAppRoutes.SelfManagedFund;
|
|
20
|
-
this.currentCustomFund =
|
|
21
|
-
customFundOptions.find((item) => item.value === currentRoute) || customFundOptions[0];
|
|
22
|
-
navigationService.navigateInternally(this.history, currentRoute);
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return (h("div", { class: "container" },
|
|
26
|
-
h("div", { class: "row justify-content-center" },
|
|
27
|
-
h("div", { class: "col col-sm-10 col-md-7" },
|
|
28
|
-
h("p", { class: "font-weight-bold text-center" }, "Choose your Super"),
|
|
29
|
-
h("div", { class: "mb-4" },
|
|
30
|
-
h("fl-dropdown", { options: this.fundOptionsList, required: true, requiredValidationMessage: "Select an option", placeholder: "Select...", value: this.currentCustomFund.value, onValueChanged: (ev) => this.handleChange(ev.detail.value.trim()) })),
|
|
31
|
-
h("slot", null)))));
|
|
32
|
-
}
|
|
33
|
-
handleChange(value) {
|
|
34
|
-
const newFund = customFundOptions.find((item) => item.value === value) || {
|
|
35
|
-
value: SuperSelectionAppRoutes.MyOwnFund
|
|
36
|
-
};
|
|
37
|
-
navigationService.navigateInternally(this.history, newFund.value);
|
|
38
|
-
}
|
|
39
|
-
static get is() { return "sss-custom-fund"; }
|
|
40
|
-
static get assetsDirs() { return ["assets"]; }
|
|
41
|
-
static get properties() { return {
|
|
42
|
-
"history": {
|
|
43
|
-
"type": "unknown",
|
|
44
|
-
"mutable": false,
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "RouterHistory",
|
|
47
|
-
"resolved": "RouterHistory",
|
|
48
|
-
"references": {
|
|
49
|
-
"RouterHistory": {
|
|
50
|
-
"location": "import",
|
|
51
|
-
"path": "@stencil/router"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"required": false,
|
|
56
|
-
"optional": false,
|
|
57
|
-
"docs": {
|
|
58
|
-
"tags": [],
|
|
59
|
-
"text": ""
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}; }
|
|
63
|
-
static get states() { return {
|
|
64
|
-
"currentCustomFund": {},
|
|
65
|
-
"fundOptionsList": {}
|
|
66
|
-
}; }
|
|
67
|
-
}
|
|
68
|
-
injectHistory(CustomFund);
|
package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { createStore } from '@stencil/store';
|
|
2
|
-
import * as O from 'fp-ts/Option';
|
|
3
|
-
import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
|
|
4
|
-
var CustomFundTypes;
|
|
5
|
-
(function (CustomFundTypes) {
|
|
6
|
-
CustomFundTypes["MyOwnFund"] = "My Own Fund";
|
|
7
|
-
CustomFundTypes["DefaultFund"] = "Default Fund";
|
|
8
|
-
CustomFundTypes["SelfManagedFund"] = "Self Managed Fund";
|
|
9
|
-
})(CustomFundTypes || (CustomFundTypes = {}));
|
|
10
|
-
export const initialStateCustomFund = {
|
|
11
|
-
continueAllowed: false,
|
|
12
|
-
nextRoute: '/',
|
|
13
|
-
myOwnFundForm: {
|
|
14
|
-
fundUsi: O.none,
|
|
15
|
-
memberNumber: O.none,
|
|
16
|
-
standardChoiceFormSignature: O.none
|
|
17
|
-
},
|
|
18
|
-
defaultFundForm: {
|
|
19
|
-
standardChoiceFormSignature: ''
|
|
20
|
-
},
|
|
21
|
-
selfManagedFundForm: {
|
|
22
|
-
fundName: '',
|
|
23
|
-
fundAbn: '',
|
|
24
|
-
fundEsa: '',
|
|
25
|
-
addressLine1: '',
|
|
26
|
-
addressLine2: '',
|
|
27
|
-
state: '',
|
|
28
|
-
postcode: '',
|
|
29
|
-
city: '',
|
|
30
|
-
bankAccountName: '',
|
|
31
|
-
bsb: '',
|
|
32
|
-
bankAccountNumber: '',
|
|
33
|
-
standardChoiceFormSignature: ''
|
|
34
|
-
},
|
|
35
|
-
currentCustomFundType: CustomFundTypes.MyOwnFund,
|
|
36
|
-
customFunds: [
|
|
37
|
-
{
|
|
38
|
-
label: CustomFundTypes.MyOwnFund,
|
|
39
|
-
value: SuperSelectionAppRoutes.MyOwnFund
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
label: CustomFundTypes.DefaultFund,
|
|
43
|
-
value: SuperSelectionAppRoutes.DefaultFund
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: CustomFundTypes.SelfManagedFund,
|
|
47
|
-
value: SuperSelectionAppRoutes.SelfManagedFund
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
};
|
|
51
|
-
const { state, reset } = createStore(initialStateCustomFund);
|
|
52
|
-
export const resetCustomFund = reset;
|
|
53
|
-
export default state;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
-
import * as O from 'fp-ts/lib/Option';
|
|
3
|
-
import australianFundLookupService from '../../../services/australian-fund-lookup.service';
|
|
4
|
-
import { EventTrackingService } from '../../../services/event-tracking.service';
|
|
5
|
-
import navigationService from '../../../services/navigation.service';
|
|
6
|
-
import notificationsService from '../../../services/notifications.service';
|
|
7
|
-
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
8
|
-
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
9
|
-
import customFundChoiceApi from '../api/custom-fund-choice.api';
|
|
10
|
-
import customFundState from '../custom-fund.store';
|
|
11
|
-
export class DefaultFund {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.defaultFundProductName = 'Loading fund...';
|
|
14
|
-
this.eventTrackingService = EventTrackingService.Instance;
|
|
15
|
-
}
|
|
16
|
-
async componentWillLoad() {
|
|
17
|
-
const defaultFundUsi = superSelectionAppService.defaultFundUsi;
|
|
18
|
-
if (O.isNone(defaultFundUsi)) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
this.isDefaultFundExists = true;
|
|
22
|
-
const defaultFundSearchResult = await australianFundLookupService.getFundByUsiAsync(defaultFundUsi.value);
|
|
23
|
-
if (O.isNone(defaultFundSearchResult)) {
|
|
24
|
-
this.isInvalidDefaultFund = true;
|
|
25
|
-
notificationsService.showErrorNotification({
|
|
26
|
-
title: 'Something is not right',
|
|
27
|
-
description: `Couldn't find information about the configured default fund (USI ${defaultFundUsi.value})`
|
|
28
|
-
});
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
this.defaultFund = defaultFundSearchResult.value;
|
|
32
|
-
this.defaultFundProductName = defaultFundSearchResult.value.productName;
|
|
33
|
-
}
|
|
34
|
-
componentDidLoad() {
|
|
35
|
-
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
36
|
-
fundUsi: this.defaultFund.usi,
|
|
37
|
-
fundName: this.defaultFund.productName
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
const NoDefaultFundBlock = () => (h("div", { class: "card p-4" },
|
|
42
|
-
h("p", { class: "font-weight-bold" }, "No Default Fund"),
|
|
43
|
-
h("p", { class: "mb-4 small" }, "It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund.")));
|
|
44
|
-
const DefaultFundBlock = (props) => [
|
|
45
|
-
h("div", { class: "card p-4" },
|
|
46
|
-
h("p", { class: "font-weight-bold" }, "Default Fund"),
|
|
47
|
-
h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and submit. Your application to join the fund is subject to Trustee approval."),
|
|
48
|
-
h("p", { class: "font-weight-bold mt-3" }, "Default Fund Name"),
|
|
49
|
-
h("p", null, props.defaultFundName)),
|
|
50
|
-
h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
51
|
-
customFundState.defaultFundForm = Object.assign(Object.assign({}, customFundState.defaultFundForm), event.detail);
|
|
52
|
-
} })
|
|
53
|
-
];
|
|
54
|
-
return (h(Host, { class: "d-flex flex-fill" },
|
|
55
|
-
h("sss-custom-fund", { class: "flex-fill" },
|
|
56
|
-
h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
57
|
-
'was-validated': this.formState === 'validated'
|
|
58
|
-
}, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (h(NoDefaultFundBlock, null))),
|
|
59
|
-
h("div", { class: "mt-4" },
|
|
60
|
-
h("sss-notifications-section", null)),
|
|
61
|
-
h("div", { class: "d-flex mt-4" },
|
|
62
|
-
h("div", { class: "flex-grow-1 w-50" },
|
|
63
|
-
h("div", { class: "mr-2" },
|
|
64
|
-
h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
|
|
65
|
-
h("span", null, "Back")))),
|
|
66
|
-
h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (h("div", { class: "ml-2" },
|
|
67
|
-
h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() },
|
|
68
|
-
h("span", null, "Submit")))))))));
|
|
69
|
-
}
|
|
70
|
-
async handleSubmitForm() {
|
|
71
|
-
if (this.isInvalidDefaultFund) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
this.formState = 'validated';
|
|
75
|
-
if (this.formElement.checkValidity()) {
|
|
76
|
-
await customFundChoiceApi.submitDefaultFundChoiceAsync(customFundState.defaultFundForm);
|
|
77
|
-
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
78
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
static get is() { return "sss-default-fund"; }
|
|
82
|
-
static get properties() { return {
|
|
83
|
-
"history": {
|
|
84
|
-
"type": "unknown",
|
|
85
|
-
"mutable": false,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "RouterHistory",
|
|
88
|
-
"resolved": "RouterHistory",
|
|
89
|
-
"references": {
|
|
90
|
-
"RouterHistory": {
|
|
91
|
-
"location": "import",
|
|
92
|
-
"path": "@stencil/router"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"required": false,
|
|
97
|
-
"optional": false,
|
|
98
|
-
"docs": {
|
|
99
|
-
"tags": [],
|
|
100
|
-
"text": ""
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}; }
|
|
104
|
-
static get states() { return {
|
|
105
|
-
"formState": {},
|
|
106
|
-
"defaultFundProductName": {}
|
|
107
|
-
}; }
|
|
108
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Component, Event, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import * as O from 'fp-ts/Option';
|
|
3
|
-
import australianFundLookupService from '../../../services/australian-fund-lookup.service';
|
|
4
|
-
import customFundState from '../custom-fund.store';
|
|
5
|
-
export class MyOwnFundInputs {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.MIN_SEARCH_STRING_LENGTH = 3;
|
|
8
|
-
this.MAX_RECORD_COUNT = 10;
|
|
9
|
-
this.searchFundsAsync = async (searchBy) => {
|
|
10
|
-
const funds = await australianFundLookupService.searchFundsAsync(searchBy, this.MAX_RECORD_COUNT);
|
|
11
|
-
return funds
|
|
12
|
-
.sort((a, b) => a.productName.localeCompare(b.productName))
|
|
13
|
-
.map((fund) => ({
|
|
14
|
-
label: `${fund.productName} (${fund.usi})`,
|
|
15
|
-
value: fund.usi
|
|
16
|
-
}));
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (h("div", null,
|
|
21
|
-
h("div", { class: "" },
|
|
22
|
-
h("label", { class: "mb-2 font-weight-bold" }, "Superannuation Fund Name"),
|
|
23
|
-
h("fl-dropdown-async", { searchFunction: this.searchFundsAsync, minSearchStringLength: this.MIN_SEARCH_STRING_LENGTH, required: true, requiredValidationMessage: "Select a fund", placeholder: `Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`, value: this.selectedOption, onValueChanged: (ev) => {
|
|
24
|
-
this.selectedOption = ev.detail;
|
|
25
|
-
this.updateFundUsi(ev.detail.value.toString());
|
|
26
|
-
} }),
|
|
27
|
-
h("div", { class: "invalid-feedback" }, "Select a fund"),
|
|
28
|
-
O.isSome(this.myOwnFundForm.fundUsi) && (h("div", null,
|
|
29
|
-
h("label", { class: "mb-2 mt-3 font-weight-bold" }, "Superannuation Fund USI"),
|
|
30
|
-
h("p", { class: "mb-0" }, this.myOwnFundForm.fundUsi.value),
|
|
31
|
-
h("p", { class: "small mt-1" }, "Please ensure this is the correct fund USI as some funds have similar names")))),
|
|
32
|
-
h("div", { class: "mt-4" },
|
|
33
|
-
h("label", { class: "mb-2 font-weight-bold" }, "Member Number"),
|
|
34
|
-
h("input", { placeholder: "Enter your member number", type: "text", class: "form-control", required: true, pattern: "[A-Za-z0-9]{4,16}", name: "memberNumber", id: "memberNumber", value: O.toUndefined(customFundState.myOwnFundForm.memberNumber), onChange: (ev) => this.updateMemberNumber(ev.target.value.trim()) }),
|
|
35
|
-
h("div", { class: "invalid-feedback" }, "Enter a valid member number (only numbers and / or letters)"))));
|
|
36
|
-
}
|
|
37
|
-
updateFundUsi(usi) {
|
|
38
|
-
this.formChanged.emit({ fundUsi: O.some(usi) });
|
|
39
|
-
}
|
|
40
|
-
updateMemberNumber(memberNumber) {
|
|
41
|
-
this.formChanged.emit({ memberNumber: O.some(memberNumber) });
|
|
42
|
-
}
|
|
43
|
-
static get is() { return "sss-my-own-fund-inputs"; }
|
|
44
|
-
static get properties() { return {
|
|
45
|
-
"myOwnFundForm": {
|
|
46
|
-
"type": "unknown",
|
|
47
|
-
"mutable": false,
|
|
48
|
-
"complexType": {
|
|
49
|
-
"original": "MyOwnFundFormState",
|
|
50
|
-
"resolved": "{ fundUsi: Option<string>; memberNumber: Option<string>; standardChoiceFormSignature: Option<string>; }",
|
|
51
|
-
"references": {
|
|
52
|
-
"MyOwnFundFormState": {
|
|
53
|
-
"location": "import",
|
|
54
|
-
"path": "../custom-fund.store"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"required": false,
|
|
59
|
-
"optional": false,
|
|
60
|
-
"docs": {
|
|
61
|
-
"tags": [],
|
|
62
|
-
"text": ""
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}; }
|
|
66
|
-
static get states() { return {
|
|
67
|
-
"selectedOption": {}
|
|
68
|
-
}; }
|
|
69
|
-
static get events() { return [{
|
|
70
|
-
"method": "formChanged",
|
|
71
|
-
"name": "formChanged",
|
|
72
|
-
"bubbles": true,
|
|
73
|
-
"cancelable": true,
|
|
74
|
-
"composed": true,
|
|
75
|
-
"docs": {
|
|
76
|
-
"tags": [],
|
|
77
|
-
"text": ""
|
|
78
|
-
},
|
|
79
|
-
"complexType": {
|
|
80
|
-
"original": "Partial<MyOwnFundFormState>",
|
|
81
|
-
"resolved": "{ fundUsi?: None | Some<string> | undefined; memberNumber?: None | Some<string> | undefined; standardChoiceFormSignature?: None | Some<string> | undefined; }",
|
|
82
|
-
"references": {
|
|
83
|
-
"Partial": {
|
|
84
|
-
"location": "global"
|
|
85
|
-
},
|
|
86
|
-
"MyOwnFundFormState": {
|
|
87
|
-
"location": "import",
|
|
88
|
-
"path": "../custom-fund.store"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}]; }
|
|
93
|
-
}
|