@flarehr/apollo-super-selection 1.3.54526 → 1.3.54543
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.css +0 -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/assets/icon-exclamation.svg +0 -3
- package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +0 -3
- package/dist/lib/apollo-super-selection/index.esm.js +0 -0
- package/dist/lib/apollo-super-selection/p-02f24922.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-071b8545.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-14885f78.system.js +0 -15
- package/dist/lib/apollo-super-selection/p-15f0e5eb.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-23cfdd82.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-29c11183.js +0 -15
- package/dist/lib/apollo-super-selection/p-44bec843.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-4957a5ac.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-50ea2036.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-51aefdb1.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-51c6dd08.js +0 -1
- package/dist/lib/apollo-super-selection/p-6ac8791e.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-7a89efaf.js +0 -1
- package/dist/lib/apollo-super-selection/p-80178f87.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-86e3e03f.js +0 -1
- package/dist/lib/apollo-super-selection/p-9c855634.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-b89b68db.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-e1a8d252.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-ef3afa00.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-f29066b9.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-fcb4050d.entry.js +0 -1
- package/dist/lib/cjs/active-router-1f555f75.js +0 -75
- package/dist/lib/cjs/apollo-super-selection.cjs.js +0 -22
- package/dist/lib/cjs/app-globals-b1125d8c.js +0 -25
- package/dist/lib/cjs/context-consumer.cjs.entry.js +0 -29
- package/dist/lib/cjs/datorama-akita-6c9cb8fb.js +0 -3641
- package/dist/lib/cjs/index-eb4f212f.js +0 -1766
- package/dist/lib/cjs/index.cjs.js +0 -2
- package/dist/lib/cjs/loader.cjs.js +0 -24
- package/dist/lib/cjs/sss-button_31.cjs.entry.js +0 -17977
- 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/apollo-super-selection.css +0 -1
- package/dist/lib/collection/collection-manifest.json +0 -95
- 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/app-parameters.query.js +0 -13
- package/dist/lib/collection/components/app-host/services/app-parameters.service.js +0 -14
- package/dist/lib/collection/components/app-host/services/appinsights.service.js +0 -46
- 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 -38
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -24
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +0 -87
- package/dist/lib/collection/components/external-loading-page/external-loading-page.js +0 -29
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +0 -6
- package/dist/lib/collection/components/super-campaign/super-campaign.js +0 -361
- 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-campaign-errors-api.js +0 -9
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +0 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +0 -16
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +0 -179
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +0 -69
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +0 -36
- package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +0 -3
- package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +0 -3
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +0 -163
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +0 -39
- 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 -50
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +0 -86
- 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 -114
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/member-name-input.js +0 -162
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +0 -143
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +0 -118
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.js +0 -11
- 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 -253
- 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 -121
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +0 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +0 -31
- 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/api/slate.js +0 -4
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +0 -53
- package/dist/lib/collection/components/super-selection-app/misc/button.js +0 -195
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +0 -7
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +0 -390
- package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +0 -52
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-common.js +0 -22
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +0 -42
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-error-box.js +0 -66
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.js +0 -121
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-invalid-smsf.js +0 -145
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +0 -223
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +0 -398
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-types.js +0 -288
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js +0 -37
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill.js +0 -81
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +0 -15
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +0 -97
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +0 -134
- package/dist/lib/collection/components/super-selection-app/services/misc.service.js +0 -7
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +0 -31
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -32
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +0 -146
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +0 -42
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +0 -155
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +0 -11
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +0 -27
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -291
- package/dist/lib/collection/global/init-host.js +0 -25
- package/dist/lib/collection/global/main.dev.js +0 -29
- 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 -11
- package/dist/lib/collection/utils/lazy.js +0 -29
- package/dist/lib/collection/utils/storage.js +0 -5
- package/dist/lib/esm/active-router-5e40c0f8.js +0 -73
- package/dist/lib/esm/apollo-super-selection.js +0 -20
- package/dist/lib/esm/app-globals-c1f89805.js +0 -23
- package/dist/lib/esm/context-consumer.entry.js +0 -25
- package/dist/lib/esm/datorama-akita-127aea91.js +0 -3624
- package/dist/lib/esm/index-189b2180.js +0 -1732
- package/dist/lib/esm/index.js +0 -1
- package/dist/lib/esm/loader.js +0 -20
- 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/sss-button_31.entry.js +0 -17923
- 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-5e40c0f8.js +0 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +0 -1
- package/dist/lib/esm-es5/app-globals-c1f89805.js +0 -1
- package/dist/lib/esm-es5/context-consumer.entry.js +0 -1
- package/dist/lib/esm-es5/datorama-akita-127aea91.js +0 -15
- package/dist/lib/esm-es5/index-189b2180.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/sss-button_31.entry.js +0 -69
- 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/@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/app-parameters.query.d.ts +0 -10
- package/dist/lib/types/components/app-host/services/app-parameters.service.d.ts +0 -6
- package/dist/lib/types/components/app-host/services/appinsights.service.d.ts +0 -15
- 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 -31
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -15
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +0 -96
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -37
- 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-campaign-errors-api.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +0 -149
- 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 -233
- package/dist/lib/types/components/super-selection-app/app-state-pages/success.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +0 -12
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.d.ts +0 -10
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +0 -43
- 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 -13
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +0 -16
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +0 -13
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/abn-validation.d.ts +0 -1
- 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 -29
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +0 -25
- 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 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/misc/button.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +0 -52
- package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-common.d.ts +0 -9
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-display-field.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-error-box.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-my-own-fund.d.ts +0 -18
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-invalid-smsf.d.ts +0 -28
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-my-own-fund.d.ts +0 -30
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-smsf.d.ts +0 -52
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-types.d.ts +0 -95
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill-warning-box.d.ts +0 -4
- package/dist/lib/types/components/super-selection-app/prefill-fund/prefill.d.ts +0 -14
- 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 -21
- package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +0 -75
- package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +0 -6
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +0 -17
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -16
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +0 -38
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +0 -34
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +0 -16
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +0 -42
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +0 -27
- package/dist/lib/types/components.d.ts +0 -503
- 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 -4
- package/dist/lib/types/utils/lazy.d.ts +0 -12
- package/dist/lib/types/utils/storage.d.ts +0 -4
package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-warning-box.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop } from '@stencil/core';
|
|
2
|
-
export class PrefillWarningBox {
|
|
3
|
-
render() {
|
|
4
|
-
const WarningIcon = () => {
|
|
5
|
-
return (h("div", { class: "w-5 h-5" },
|
|
6
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none" },
|
|
7
|
-
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z", fill: "#FBBF24" }))));
|
|
8
|
-
};
|
|
9
|
-
return (h("div", { class: "flex items-start self-stretch rounded-md bg-yellow-50" },
|
|
10
|
-
h("div", { class: "w-1 self-stretch bg-yellow-400" }),
|
|
11
|
-
h("div", { class: "flex items-start gap-3 flex-[1_0_0] p-4" },
|
|
12
|
-
h(WarningIcon, null),
|
|
13
|
-
h("div", { class: "flex flex-col items-start gap-2 flex-[1_0_0]" },
|
|
14
|
-
h("div", { class: "flex flex-col items-start gap-1 self-stretch" }, this.notificationList.map((text) => (h("div", { class: "flex items-start gap-[7px] self-stretch pl-0" },
|
|
15
|
-
this.notificationList.length > 1 && (h("div", { class: "pt-1.5 justify-center items-center flex" },
|
|
16
|
-
h("div", { class: "w-1.5 h-1.5 bg-yellow-700 rounded-full" }))),
|
|
17
|
-
h("div", { class: "flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700" }, text)))))))));
|
|
18
|
-
}
|
|
19
|
-
static get is() { return "sss-prefill-warning-box"; }
|
|
20
|
-
static get properties() { return {
|
|
21
|
-
"notificationList": {
|
|
22
|
-
"type": "unknown",
|
|
23
|
-
"mutable": false,
|
|
24
|
-
"complexType": {
|
|
25
|
-
"original": "string[]",
|
|
26
|
-
"resolved": "string[]",
|
|
27
|
-
"references": {}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": false,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}; }
|
|
37
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import { isSome } from 'fp-ts/Option';
|
|
3
|
-
import navigationService from '../services/navigation.service';
|
|
4
|
-
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
5
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
6
|
-
export class Prefill {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.prefill = undefined;
|
|
9
|
-
this.ignorePopState = () => window.history.pushState(null, '', null);
|
|
10
|
-
}
|
|
11
|
-
connectedCallback() {
|
|
12
|
-
this.ignorePopState();
|
|
13
|
-
window.addEventListener('popstate', this.ignorePopState);
|
|
14
|
-
}
|
|
15
|
-
disconnectedCallback() {
|
|
16
|
-
window.removeEventListener('popstate', this.ignorePopState);
|
|
17
|
-
}
|
|
18
|
-
async componentWillLoad() {
|
|
19
|
-
this.prefill = isSome(superSelectionAppService.state.superChoicePrefill)
|
|
20
|
-
? superSelectionAppService.state.superChoicePrefill.value
|
|
21
|
-
: undefined;
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
if (this.prefill && this.prefill.type === 'myOwnFund') {
|
|
25
|
-
if (this.prefill.data.fundDetail.type === 'Valid') {
|
|
26
|
-
return this.renderMyOwnFund(this.prefill.data);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return this.renderInvalidMyOwnFund(this.prefill.data);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (this.prefill && this.prefill.type === 'smsf') {
|
|
33
|
-
if (this.prefill.data.fundAbn.valid) {
|
|
34
|
-
return this.renderSMSF(this.prefill.data);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.renderInvalidSMSF(this.prefill.data);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
renderMyOwnFund(data) {
|
|
44
|
-
return h("sss-prefill-my-own-fund", { history: this.history, prefill: data });
|
|
45
|
-
}
|
|
46
|
-
renderInvalidMyOwnFund(data) {
|
|
47
|
-
return h("sss-prefill-invalid-my-own-fund", { history: this.history, prefill: data });
|
|
48
|
-
}
|
|
49
|
-
renderSMSF(data) {
|
|
50
|
-
return h("sss-prefill-smsf", { history: this.history, prefill: data });
|
|
51
|
-
}
|
|
52
|
-
renderInvalidSMSF(data) {
|
|
53
|
-
return h("sss-prefill-invalid-smsf", { history: this.history, prefill: data });
|
|
54
|
-
}
|
|
55
|
-
static get is() { return "sss-prefill"; }
|
|
56
|
-
static get properties() { return {
|
|
57
|
-
"history": {
|
|
58
|
-
"type": "unknown",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "RouterHistory",
|
|
62
|
-
"resolved": "RouterHistory",
|
|
63
|
-
"references": {
|
|
64
|
-
"RouterHistory": {
|
|
65
|
-
"location": "import",
|
|
66
|
-
"path": "@stencil/router"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"required": false,
|
|
71
|
-
"optional": false,
|
|
72
|
-
"docs": {
|
|
73
|
-
"tags": [],
|
|
74
|
-
"text": ""
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}; }
|
|
78
|
-
static get states() { return {
|
|
79
|
-
"prefill": {}
|
|
80
|
-
}; }
|
|
81
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { some } from 'fp-ts/lib/Option';
|
|
2
|
-
import superSelectionApi from '../api/super-selection.api';
|
|
3
|
-
export class AustralianFundLookupService {
|
|
4
|
-
async searchFundsAsync(searchString, maxRecordCount) {
|
|
5
|
-
return superSelectionApi.getAustralianFundsAsync({
|
|
6
|
-
searchString,
|
|
7
|
-
maxRecordCount
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
async getFundAsync(usi, includeInactive) {
|
|
11
|
-
const result = await superSelectionApi.getAustralianFundAsync(usi, includeInactive);
|
|
12
|
-
return some(result);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export default new AustralianFundLookupService();
|
package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { EventTrackingApi } from '../api/event-tracking.api';
|
|
2
|
-
export class EventTrackingService {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.eventTrackingApi = EventTrackingApi.Instance;
|
|
5
|
-
}
|
|
6
|
-
static get Instance() {
|
|
7
|
-
return this.instance || (this.instance = new this());
|
|
8
|
-
}
|
|
9
|
-
async TrackSuperFundPdsViewedAsync(detail) {
|
|
10
|
-
return this.trackEventAsync({
|
|
11
|
-
SuperFundPdsViewed: detail
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
async TrackPromotedSuperFundDetailViewedAsync(detail) {
|
|
15
|
-
return this.trackEventAsync({
|
|
16
|
-
SuperFundDetailViewed: {
|
|
17
|
-
PromotedFund: detail
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
async TrackPromotedDefaultSuperFundDetailViewedAsync(detail) {
|
|
22
|
-
return this.trackEventAsync({
|
|
23
|
-
SuperFundDetailViewed: {
|
|
24
|
-
PromotedDefaultFund: detail
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
async TrackMyOwnSuperFundDetailViewedAsync(detail) {
|
|
29
|
-
return this.trackEventAsync({
|
|
30
|
-
SuperFundDetailViewed: {
|
|
31
|
-
MyOwnFund: detail
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
async TrackSmsfSuperFundDetailViewedAsync(detail) {
|
|
36
|
-
return this.trackEventAsync({
|
|
37
|
-
SuperFundDetailViewed: {
|
|
38
|
-
Smsf: detail
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
async TrackDefaultSuperFundDetailViewedAsync(detail) {
|
|
43
|
-
return this.trackEventAsync({
|
|
44
|
-
SuperFundDetailViewed: {
|
|
45
|
-
DefaultFund: detail
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
async TrackSuperFundNominationViewedAsync(detail) {
|
|
50
|
-
return this.trackEventAsync({
|
|
51
|
-
SuperFundNominationViewed: detail
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
async TrackSuperFundNominationDeclinedAsync(detail) {
|
|
55
|
-
return this.trackEventAsync({
|
|
56
|
-
SuperFundNominationDeclined: detail
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
async TrackSuperFundDisclaimerViewedAsync(detail) {
|
|
60
|
-
return this.trackEventAsync({
|
|
61
|
-
SuperFundDisclaimerViewed: detail
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
async TrackSuperFundDisclaimerAcceptedAsync(detail) {
|
|
65
|
-
return this.trackEventAsync({
|
|
66
|
-
SuperFundDisclaimerAccepted: detail
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
async TrackSuperFundPrefillViewedAsync(detail) {
|
|
70
|
-
return this.trackEventAsync({
|
|
71
|
-
SuperFundPrefillViewed: detail
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
async TrackSuperFundPrefillDeclinedAsync(detail) {
|
|
75
|
-
return this.trackEventAsync({
|
|
76
|
-
SuperFundPrefillDeclined: detail
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
async TrackSuperFundDetailChangeRequestedAsync(detail) {
|
|
80
|
-
return this.trackEventAsync({
|
|
81
|
-
SuperFundDetailChangeRequested: detail
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
async TrackSuperCampaignActivationSucceededAsync(detail) {
|
|
85
|
-
return this.trackEventAsync({
|
|
86
|
-
SuperCampaignActivationSucceeded: detail
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
async trackEventAsync(event) {
|
|
90
|
-
try {
|
|
91
|
-
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
92
|
-
}
|
|
93
|
-
catch (_a) {
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { isNone, isSome, none, some } from 'fp-ts/Option';
|
|
2
|
-
import { assertExhaustive } from '../../../utils';
|
|
3
|
-
import { buildBackendApiClient } from '../api/api-client';
|
|
4
|
-
import { getPromotedFundId, getSuperChoiceMemberNumber, getSuperChoiceUsi } from '../api/super-selection.api.dto';
|
|
5
|
-
import australianFundLookupService from './australian-fund-lookup.service';
|
|
6
|
-
import superSelectionAppService from './super-selection-app.service';
|
|
7
|
-
export function ExistingFund(fund) {
|
|
8
|
-
if (isSome(fund)) {
|
|
9
|
-
return fund.value.isActive ? 'Active' : 'Inactive';
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
return 'Unknown';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export class ExistingFundService {
|
|
16
|
-
async GetExistingFundAsync() {
|
|
17
|
-
var _a;
|
|
18
|
-
const choice = superSelectionAppService.superBuyer.superChoice;
|
|
19
|
-
const choiceDetails = (_a = superSelectionAppService.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails;
|
|
20
|
-
if (!choice)
|
|
21
|
-
return none;
|
|
22
|
-
if (!choiceDetails)
|
|
23
|
-
return none;
|
|
24
|
-
const dateSubmitted = choice.dateSubmitted == undefined ? none : some(new Date(choice.dateSubmitted));
|
|
25
|
-
const usi = getSuperChoiceUsi(choiceDetails);
|
|
26
|
-
const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
|
|
27
|
-
switch (choiceDetails.kind) {
|
|
28
|
-
case 'Promoted': {
|
|
29
|
-
if (isNone(usi))
|
|
30
|
-
return none;
|
|
31
|
-
const fund = await this.getFundByUsiAsync(usi.value);
|
|
32
|
-
return some({
|
|
33
|
-
type: 'Promoted Fund',
|
|
34
|
-
id: getPromotedFundId(choiceDetails.promoted),
|
|
35
|
-
name: isSome(fund) ? fund.value.productName : usi.value,
|
|
36
|
-
usi: usi,
|
|
37
|
-
valid: 'Active',
|
|
38
|
-
memberNumber: memberNumber,
|
|
39
|
-
lastNominatedAt: dateSubmitted
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
case 'MyOwnFund': {
|
|
43
|
-
const fundUsi = choiceDetails.myOwnFund.usi;
|
|
44
|
-
const fund = await this.getFundByUsiAsync(fundUsi);
|
|
45
|
-
return some({
|
|
46
|
-
type: 'My Own Fund',
|
|
47
|
-
name: isSome(fund) ? fund.value.productName : fundUsi,
|
|
48
|
-
usi: usi,
|
|
49
|
-
valid: this.toFundValidState(fund),
|
|
50
|
-
memberNumber: memberNumber,
|
|
51
|
-
lastNominatedAt: dateSubmitted
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
case 'SMSF':
|
|
55
|
-
return some({
|
|
56
|
-
type: 'Self Managed Fund',
|
|
57
|
-
name: choiceDetails.smsf.fundName,
|
|
58
|
-
valid: 'Unknown',
|
|
59
|
-
lastNominatedAt: dateSubmitted
|
|
60
|
-
});
|
|
61
|
-
case 'Default': {
|
|
62
|
-
const defaultUsi = choiceDetails.default.usi;
|
|
63
|
-
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
64
|
-
return some({
|
|
65
|
-
type: 'Default Fund',
|
|
66
|
-
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
67
|
-
usi: usi,
|
|
68
|
-
valid: this.toFundValidState(defaultFund),
|
|
69
|
-
lastNominatedAt: dateSubmitted
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
case 'PromotedDefault': {
|
|
73
|
-
const defaultUsi = choiceDetails.promotedDefault.usi;
|
|
74
|
-
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
75
|
-
return some({
|
|
76
|
-
type: 'Promoted Default Fund',
|
|
77
|
-
id: choiceDetails.promotedDefault.fundId,
|
|
78
|
-
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
79
|
-
usi: usi,
|
|
80
|
-
valid: this.toFundValidState(defaultFund),
|
|
81
|
-
lastNominatedAt: dateSubmitted
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
case 'DefinedBenefits': {
|
|
85
|
-
const defaultUsi = choiceDetails.definedBenefits.usi;
|
|
86
|
-
const fund = await this.getFundByUsiAsync(defaultUsi);
|
|
87
|
-
return some({
|
|
88
|
-
type: 'Defined Benefits Fund',
|
|
89
|
-
name: isSome(fund) ? fund.value.productName : defaultUsi,
|
|
90
|
-
usi: usi,
|
|
91
|
-
valid: this.toFundValidState(fund),
|
|
92
|
-
lastNominatedAt: dateSubmitted
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
case 'PromotedDefaultWithJoin': {
|
|
96
|
-
const defaultUsi = choiceDetails.promotedDefaultWithJoin.usi;
|
|
97
|
-
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
98
|
-
return some({
|
|
99
|
-
type: 'Promoted Default Fund With Join',
|
|
100
|
-
id: choiceDetails.promotedDefaultWithJoin.fundId,
|
|
101
|
-
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
102
|
-
usi: usi,
|
|
103
|
-
valid: this.toFundValidState(defaultFund),
|
|
104
|
-
memberNumber: memberNumber,
|
|
105
|
-
lastNominatedAt: dateSubmitted
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
default:
|
|
109
|
-
assertExhaustive(choiceDetails);
|
|
110
|
-
return none;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
async submitRetainSuperFundAsync(dto) {
|
|
114
|
-
return buildBackendApiClient()
|
|
115
|
-
.url('super-choice/retain-super-fund')
|
|
116
|
-
.post(dto)
|
|
117
|
-
.badRequest(() => {
|
|
118
|
-
throw new Error('Failed to process default fund join request');
|
|
119
|
-
})
|
|
120
|
-
.text();
|
|
121
|
-
}
|
|
122
|
-
getFundByUsiAsync(usi) {
|
|
123
|
-
return australianFundLookupService.getFundAsync(usi, true);
|
|
124
|
-
}
|
|
125
|
-
toFundValidState(fund) {
|
|
126
|
-
if (isSome(fund)) {
|
|
127
|
-
return fund.value.isActive ? 'Active' : 'Inactive';
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return 'Unknown';
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export default new ExistingFundService();
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import iframe from '../../../utils/iframe';
|
|
2
|
-
import standardChoiceFormState from './../standard-choice/standard-choice-form.store';
|
|
3
|
-
import { SuperSelectionAppRoutes } from './super-selection-app.routes';
|
|
4
|
-
import superSelectionAppService from './super-selection-app.service';
|
|
5
|
-
class NavigationService {
|
|
6
|
-
navigateInternally(history, route) {
|
|
7
|
-
const path = `${this.appBaseUrl}${this.toRouteWithLeadingSlash(route)}`;
|
|
8
|
-
iframe.navigation(path);
|
|
9
|
-
history.push(path);
|
|
10
|
-
}
|
|
11
|
-
navigateInternallyToStandardChoice(options) {
|
|
12
|
-
standardChoiceFormState.handleSubmitFn = options.handleSubmitFn;
|
|
13
|
-
standardChoiceFormState.fundName = options.fundName;
|
|
14
|
-
standardChoiceFormState.fundDetails = options.fundDetails;
|
|
15
|
-
standardChoiceFormState.promotedFundId = options.promotedFundId;
|
|
16
|
-
this.navigateInternally(options.history, SuperSelectionAppRoutes.StandardChoice);
|
|
17
|
-
}
|
|
18
|
-
toExternalUrl(url) {
|
|
19
|
-
const externalUrl = new URL(url);
|
|
20
|
-
externalUrl.searchParams.append('_extnav', 'true');
|
|
21
|
-
return externalUrl.href;
|
|
22
|
-
}
|
|
23
|
-
get appBaseUrl() {
|
|
24
|
-
const baseUrl = superSelectionAppService.appBaseUrl;
|
|
25
|
-
return baseUrl.replace(/\/$/, '');
|
|
26
|
-
}
|
|
27
|
-
toRouteWithLeadingSlash(route) {
|
|
28
|
-
return route.length > 0 && route[0] === '/' ? route : `/${route}`;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export default new NavigationService();
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
2
|
-
export var SuperSelectionAppRoutes;
|
|
3
|
-
(function (SuperSelectionAppRoutes) {
|
|
4
|
-
SuperSelectionAppRoutes["ExistingChoicePage"] = "/existing";
|
|
5
|
-
SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
|
|
6
|
-
SuperSelectionAppRoutes["ChoicePage"] = "/";
|
|
7
|
-
SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
|
|
8
|
-
SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
|
|
9
|
-
SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
|
|
10
|
-
SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
|
|
11
|
-
SuperSelectionAppRoutes["PrefillSMSFPage"] = "/super-choice/prefill-smsf/";
|
|
12
|
-
SuperSelectionAppRoutes["PrefillInvalidSMSFPage"] = "/super-choice/prefill-invalid-smsf/";
|
|
13
|
-
SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
|
|
14
|
-
SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
|
|
15
|
-
SuperSelectionAppRoutes["StandardChoice"] = "/standard-choice/";
|
|
16
|
-
SuperSelectionAppRoutes["Success"] = "/success/";
|
|
17
|
-
})(SuperSelectionAppRoutes || (SuperSelectionAppRoutes = {}));
|
|
18
|
-
export const superSelectionAppStencilRoutes = [
|
|
19
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.ExistingChoicePage, component: "sss-existing-choice-page" }),
|
|
20
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.SuperCampaign, component: "sss-super-campaign-host" }),
|
|
21
|
-
h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-super-campaign-host" }),
|
|
22
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-my-own-fund" }),
|
|
23
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
|
|
24
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
|
|
25
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
|
|
26
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
|
|
27
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
|
|
28
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-self-managed-fund" }),
|
|
29
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund" }),
|
|
30
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
|
|
31
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.Success, component: "sss-success" })
|
|
32
|
-
];
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { createStore } from '@stencil/store';
|
|
2
|
-
import { pipe } from 'fp-ts/lib/function';
|
|
3
|
-
import * as O from 'fp-ts/lib/Option';
|
|
4
|
-
import jwtDecode from 'jwt-decode';
|
|
5
|
-
import superSelectionApi from '../api/super-selection.api';
|
|
6
|
-
import { initialState, SuperCampaignComponentStatus, SuperCampaignState } from './super-selection.store';
|
|
7
|
-
export class SuperSelectionAppService {
|
|
8
|
-
constructor() {
|
|
9
|
-
const { state, onChange } = createStore(initialState);
|
|
10
|
-
this._state = state;
|
|
11
|
-
this._onChange = onChange;
|
|
12
|
-
onChange('jwt', (jwt) => {
|
|
13
|
-
this._state.profileId = pipe(jwt, O.chain((jwtValue) => O.fromNullable(jwtDecode(jwtValue).sub)));
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
get state() {
|
|
17
|
-
return this._state;
|
|
18
|
-
}
|
|
19
|
-
get onChange() {
|
|
20
|
-
return this._onChange;
|
|
21
|
-
}
|
|
22
|
-
get superBuyer() {
|
|
23
|
-
if (O.isNone(this._state.superBuyer)) {
|
|
24
|
-
throw Error('User information is not set');
|
|
25
|
-
}
|
|
26
|
-
return this._state.superBuyer.value;
|
|
27
|
-
}
|
|
28
|
-
get apiBaseUrl() {
|
|
29
|
-
if (O.isNone(this._state.apiBaseUrl)) {
|
|
30
|
-
throw Error('API base URL is not set');
|
|
31
|
-
}
|
|
32
|
-
return this._state.apiBaseUrl.value;
|
|
33
|
-
}
|
|
34
|
-
get appBaseUrl() {
|
|
35
|
-
if (O.isNone(this._state.appBaseUrl)) {
|
|
36
|
-
throw Error('App base URL is not set');
|
|
37
|
-
}
|
|
38
|
-
return this._state.appBaseUrl.value;
|
|
39
|
-
}
|
|
40
|
-
get promotedFunds() {
|
|
41
|
-
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
42
|
-
return this.superCampaignState.PromotedFundIds;
|
|
43
|
-
}
|
|
44
|
-
if (O.isNone(this._state.promotedFunds)) {
|
|
45
|
-
throw Error('Promoted Funds is not set');
|
|
46
|
-
}
|
|
47
|
-
return this._state.promotedFunds.value;
|
|
48
|
-
}
|
|
49
|
-
get promotedDefaultFundPosition() {
|
|
50
|
-
if (this.state.superCampaignEnabled && this.superCampaignState !== undefined) {
|
|
51
|
-
return O.fromNullable(this.superCampaignState.DefaultFundPosition);
|
|
52
|
-
}
|
|
53
|
-
return O.none;
|
|
54
|
-
}
|
|
55
|
-
get promotedFundsConfig() {
|
|
56
|
-
return {
|
|
57
|
-
shownFunds: this.promotedFunds,
|
|
58
|
-
promotedDefaultFundPosition: O.toUndefined(this.promotedDefaultFundPosition),
|
|
59
|
-
promotedFundsConfigSource: this.isUsingSuperCampaign ? 'superCampaign' : 'superSelection'
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
get profileId() {
|
|
63
|
-
if (O.isNone(this._state.profileId)) {
|
|
64
|
-
throw Error('Failed to get Profile ID from JWT');
|
|
65
|
-
}
|
|
66
|
-
return this._state.profileId.value;
|
|
67
|
-
}
|
|
68
|
-
get defaultFundUsi() {
|
|
69
|
-
const profileConfigDefaultFundUsi = pipe(this._state.profileConfiguration, O.map((config) => O.fromNullable(config.defaultFundUsi)), O.flatten);
|
|
70
|
-
if (O.isSome(profileConfigDefaultFundUsi)) {
|
|
71
|
-
return profileConfigDefaultFundUsi;
|
|
72
|
-
}
|
|
73
|
-
return pipe(this._state.accountConfiguration, O.map((config) => O.fromNullable(config.defaultFundUsi)), O.flatten);
|
|
74
|
-
}
|
|
75
|
-
get accountIdOrDefault() {
|
|
76
|
-
return pipe(this._state.accountConfiguration, O.map((config) => config.accountId), O.getOrElse(() => ''));
|
|
77
|
-
}
|
|
78
|
-
get partnerIdOrDefault() {
|
|
79
|
-
return pipe(this._state.superBuyer, O.map((superBuyer) => superBuyer.partnerId), O.getOrElse(() => ''));
|
|
80
|
-
}
|
|
81
|
-
get jwt() {
|
|
82
|
-
if (O.isNone(this._state.jwt)) {
|
|
83
|
-
throw Error('No authentication information was found');
|
|
84
|
-
}
|
|
85
|
-
return this._state.jwt.value;
|
|
86
|
-
}
|
|
87
|
-
completeSuperSelectionFlow() {
|
|
88
|
-
this._state.hasSuccessPageBeenAcknowledged = true;
|
|
89
|
-
}
|
|
90
|
-
markSuperSelectionAsSubmitted() {
|
|
91
|
-
this._state.hasSuperSelectionBeenSubmitted = true;
|
|
92
|
-
}
|
|
93
|
-
get isDefinedBenefitsEligible() {
|
|
94
|
-
return this._state.isDefinedBenefitsEligible;
|
|
95
|
-
}
|
|
96
|
-
async loadAppStateAsync() {
|
|
97
|
-
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
98
|
-
this._state.accountConfiguration = O.fromNullable(appStateResponse.accountConfiguration);
|
|
99
|
-
this._state.profileConfiguration = O.fromNullable(appStateResponse.profileConfiguration);
|
|
100
|
-
this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
|
|
101
|
-
this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
|
|
102
|
-
this._state.superChoicePrefill = O.fromNullable(appStateResponse.prefill);
|
|
103
|
-
this._state.isDefinedBenefitsEligible = O.fromNullable(appStateResponse.isDefinedBenefitsEligible);
|
|
104
|
-
}
|
|
105
|
-
setSuperCampaignPromotedFundsShown(shownFunds) {
|
|
106
|
-
if (this._state.superCampaignState !== undefined)
|
|
107
|
-
this._state.superCampaignState.promotedFundsShown = shownFunds;
|
|
108
|
-
else
|
|
109
|
-
throw new Error('Cannot set shown funds for SuperCampaing state because it is undefined');
|
|
110
|
-
}
|
|
111
|
-
viewSuperFundPanelAsync(promotedFundIdListOverride) {
|
|
112
|
-
return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({}, this.promotedFundsConfig), { shownFunds: promotedFundIdListOverride
|
|
113
|
-
? promotedFundIdListOverride
|
|
114
|
-
: this.promotedFundsConfig.shownFunds }));
|
|
115
|
-
}
|
|
116
|
-
get superCampaignState() {
|
|
117
|
-
return this._state.superCampaignState;
|
|
118
|
-
}
|
|
119
|
-
get superCampaignComponentStatus() {
|
|
120
|
-
return this._state.superCampaignComponentStatus;
|
|
121
|
-
}
|
|
122
|
-
set superCampaignComponentStatus(value) {
|
|
123
|
-
if (value === SuperCampaignComponentStatus.Loaded) {
|
|
124
|
-
this._state.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
125
|
-
this._state.superCampaignState = new SuperCampaignState();
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
this._state.superCampaignComponentStatus = value;
|
|
129
|
-
this._state.superCampaignState = undefined;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
get isUsingSuperCampaign() {
|
|
133
|
-
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
134
|
-
}
|
|
135
|
-
get isSuperCampaignFallbackActivated() {
|
|
136
|
-
return (this.state.superCampaignEnabled &&
|
|
137
|
-
this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
|
|
138
|
-
}
|
|
139
|
-
get superCampaignIsInView() {
|
|
140
|
-
return this._state.superCampaignIsInView;
|
|
141
|
-
}
|
|
142
|
-
set superCampaignIsInView(value) {
|
|
143
|
-
this._state.superCampaignIsInView = value;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
export default new SuperSelectionAppService();
|
package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as O from 'fp-ts/lib/Option';
|
|
2
|
-
export var SuperCampaignComponentStatus;
|
|
3
|
-
(function (SuperCampaignComponentStatus) {
|
|
4
|
-
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotLoaded"] = 1] = "NotLoaded";
|
|
5
|
-
SuperCampaignComponentStatus[SuperCampaignComponentStatus["Loaded"] = 2] = "Loaded";
|
|
6
|
-
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotWorking"] = 3] = "NotWorking";
|
|
7
|
-
})(SuperCampaignComponentStatus || (SuperCampaignComponentStatus = {}));
|
|
8
|
-
export class SuperCampaignState {
|
|
9
|
-
constructor() {
|
|
10
|
-
this._promotedFundsShown = [];
|
|
11
|
-
}
|
|
12
|
-
get PromotedFundIds() {
|
|
13
|
-
return this._promotedFundsShown.map((p) => p.fundId);
|
|
14
|
-
}
|
|
15
|
-
set promotedFundsShown(value) {
|
|
16
|
-
this._promotedFundsShown = value;
|
|
17
|
-
}
|
|
18
|
-
get DefaultFundPosition() {
|
|
19
|
-
const index = this._promotedFundsShown.findIndex((value) => value.fundType === 'promoted-default');
|
|
20
|
-
if (index === -1)
|
|
21
|
-
return undefined;
|
|
22
|
-
return index + 1;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export const initialState = {
|
|
26
|
-
apiBaseUrl: O.none,
|
|
27
|
-
appBaseUrl: O.none,
|
|
28
|
-
profileId: O.none,
|
|
29
|
-
jwt: O.none,
|
|
30
|
-
superBuyer: O.none,
|
|
31
|
-
superChoicePrefill: O.none,
|
|
32
|
-
promotedFunds: O.none,
|
|
33
|
-
accountConfiguration: O.none,
|
|
34
|
-
profileConfiguration: O.none,
|
|
35
|
-
hasSuccessPageBeenAcknowledged: false,
|
|
36
|
-
hasSuperSelectionBeenSubmitted: false,
|
|
37
|
-
isDefinedBenefitsEligible: O.none,
|
|
38
|
-
superCampaignEnabled: true,
|
|
39
|
-
superCampaignState: undefined,
|
|
40
|
-
superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded,
|
|
41
|
-
superCampaignIsInView: false
|
|
42
|
-
};
|