@flarehr/apollo-super-selection 1.3.54428 → 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-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-7768c4df.entry.js +0 -14
- 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-8e934c3c.system.entry.js +0 -69
- 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-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
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { none, some } from 'fp-ts/Option';
|
|
2
|
-
import { assertExhaustive } from '../../../utils';
|
|
3
|
-
import { slate } from '../funds/slate-super/api/slate';
|
|
4
|
-
export function hydratePromotedFundChoiceDtoKind(dto) {
|
|
5
|
-
if ('slate' in dto) {
|
|
6
|
-
dto.kind = 'slate';
|
|
7
|
-
}
|
|
8
|
-
else if ('australianRetirementTrust' in dto) {
|
|
9
|
-
dto.kind = 'australianRetirementTrust';
|
|
10
|
-
}
|
|
11
|
-
else if ('aware' in dto) {
|
|
12
|
-
dto.kind = 'aware';
|
|
13
|
-
}
|
|
14
|
-
else if ('active' in dto) {
|
|
15
|
-
dto.kind = 'active';
|
|
16
|
-
}
|
|
17
|
-
else if ('australianEthical' in dto) {
|
|
18
|
-
dto.kind = 'australianEthical';
|
|
19
|
-
}
|
|
20
|
-
else if ('virgin' in dto) {
|
|
21
|
-
dto.kind = 'virgin';
|
|
22
|
-
}
|
|
23
|
-
else if ('spirit' in dto) {
|
|
24
|
-
dto.kind = 'spirit';
|
|
25
|
-
}
|
|
26
|
-
else if ('firstSuper' in dto) {
|
|
27
|
-
dto.kind = 'firstSuper';
|
|
28
|
-
}
|
|
29
|
-
else if ('mercerMyChoice' in dto) {
|
|
30
|
-
dto.kind = 'mercerMyChoice';
|
|
31
|
-
}
|
|
32
|
-
else if ('generic' in dto) {
|
|
33
|
-
dto.kind = 'generic';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function getPromotedFundUsi(dto) {
|
|
37
|
-
switch (dto.kind) {
|
|
38
|
-
case 'slate':
|
|
39
|
-
return slate.usi;
|
|
40
|
-
case 'australianRetirementTrust':
|
|
41
|
-
return dto.australianRetirementTrust.usi;
|
|
42
|
-
case 'aware':
|
|
43
|
-
return dto.aware.usi;
|
|
44
|
-
case 'active':
|
|
45
|
-
return dto.active.usi;
|
|
46
|
-
case 'australianEthical':
|
|
47
|
-
return dto.australianEthical.usi;
|
|
48
|
-
case 'virgin':
|
|
49
|
-
return dto.virgin.usi;
|
|
50
|
-
case 'spirit':
|
|
51
|
-
return dto.spirit.usi;
|
|
52
|
-
case 'firstSuper':
|
|
53
|
-
return dto.firstSuper.usi;
|
|
54
|
-
case 'mercerMyChoice':
|
|
55
|
-
return dto.mercerMyChoice.usi;
|
|
56
|
-
case 'generic':
|
|
57
|
-
return dto.generic.usi;
|
|
58
|
-
default:
|
|
59
|
-
assertExhaustive(dto);
|
|
60
|
-
return '';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export function getPromotedFundId(dto) {
|
|
64
|
-
switch (dto.kind) {
|
|
65
|
-
case 'slate':
|
|
66
|
-
return slate.fundId;
|
|
67
|
-
case 'australianRetirementTrust':
|
|
68
|
-
return 'australian-retirement-trust';
|
|
69
|
-
case 'aware':
|
|
70
|
-
return 'aware';
|
|
71
|
-
case 'active':
|
|
72
|
-
return 'active';
|
|
73
|
-
case 'australianEthical':
|
|
74
|
-
return 'australian-ethical';
|
|
75
|
-
case 'virgin':
|
|
76
|
-
return 'virgin';
|
|
77
|
-
case 'spirit':
|
|
78
|
-
return 'spirit';
|
|
79
|
-
case 'firstSuper':
|
|
80
|
-
return 'first-super';
|
|
81
|
-
case 'mercerMyChoice':
|
|
82
|
-
return 'mercermychoice';
|
|
83
|
-
case 'generic':
|
|
84
|
-
return dto.generic.fundId;
|
|
85
|
-
default:
|
|
86
|
-
assertExhaustive(dto);
|
|
87
|
-
return '';
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
export function getSuperChoiceUsi(dto) {
|
|
91
|
-
switch (dto.kind) {
|
|
92
|
-
case 'Promoted':
|
|
93
|
-
return some(getPromotedFundUsi(dto.promoted));
|
|
94
|
-
case 'MyOwnFund':
|
|
95
|
-
return some(dto.myOwnFund.usi);
|
|
96
|
-
case 'SMSF':
|
|
97
|
-
return none;
|
|
98
|
-
case 'Default':
|
|
99
|
-
return some(dto.default.usi);
|
|
100
|
-
case 'PromotedDefault':
|
|
101
|
-
return some(dto.promotedDefault.usi);
|
|
102
|
-
case 'DefinedBenefits':
|
|
103
|
-
return some(dto.definedBenefits.usi);
|
|
104
|
-
case 'PromotedDefaultWithJoin':
|
|
105
|
-
return some(dto.promotedDefaultWithJoin.usi);
|
|
106
|
-
default:
|
|
107
|
-
assertExhaustive(dto);
|
|
108
|
-
return none;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function getPromotedFundMemberNumber(dto) {
|
|
112
|
-
switch (dto.kind) {
|
|
113
|
-
case 'slate':
|
|
114
|
-
return dto.slate.memberNumber;
|
|
115
|
-
case 'australianRetirementTrust':
|
|
116
|
-
return dto.australianRetirementTrust.memberNumber;
|
|
117
|
-
case 'aware':
|
|
118
|
-
return dto.aware.memberNumber;
|
|
119
|
-
case 'active':
|
|
120
|
-
return dto.active.memberNumber;
|
|
121
|
-
case 'australianEthical':
|
|
122
|
-
return dto.australianEthical.memberNumber;
|
|
123
|
-
case 'virgin':
|
|
124
|
-
return dto.virgin.memberNumber;
|
|
125
|
-
case 'spirit':
|
|
126
|
-
return dto.spirit.memberNumber;
|
|
127
|
-
case 'firstSuper':
|
|
128
|
-
return dto.firstSuper.memberNumber;
|
|
129
|
-
case 'mercerMyChoice':
|
|
130
|
-
return dto.mercerMyChoice.memberNumber;
|
|
131
|
-
case 'generic':
|
|
132
|
-
return dto.generic.memberNumber;
|
|
133
|
-
default:
|
|
134
|
-
assertExhaustive(dto);
|
|
135
|
-
return '';
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
export function getSuperChoiceMemberNumber(dto) {
|
|
139
|
-
switch (dto.kind) {
|
|
140
|
-
case 'Promoted':
|
|
141
|
-
return some(getPromotedFundMemberNumber(dto.promoted));
|
|
142
|
-
case 'MyOwnFund':
|
|
143
|
-
return some(dto.myOwnFund.memberNumber);
|
|
144
|
-
case 'DefinedBenefits':
|
|
145
|
-
return some(dto.definedBenefits.memberNumber);
|
|
146
|
-
case 'PromotedDefaultWithJoin':
|
|
147
|
-
return some(dto.promotedDefaultWithJoin.memberNumber);
|
|
148
|
-
case 'SMSF':
|
|
149
|
-
case 'Default':
|
|
150
|
-
case 'PromotedDefault':
|
|
151
|
-
return none;
|
|
152
|
-
default:
|
|
153
|
-
assertExhaustive(dto);
|
|
154
|
-
return none;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
export function hydrateSuperChoiceDetailsDtoKind(dto) {
|
|
158
|
-
if ('promoted' in dto) {
|
|
159
|
-
dto.kind = 'Promoted';
|
|
160
|
-
}
|
|
161
|
-
else if ('myOwnFund' in dto) {
|
|
162
|
-
dto.kind = 'MyOwnFund';
|
|
163
|
-
}
|
|
164
|
-
else if ('smsf' in dto) {
|
|
165
|
-
dto.kind = 'SMSF';
|
|
166
|
-
}
|
|
167
|
-
else if ('default' in dto) {
|
|
168
|
-
dto.kind = 'Default';
|
|
169
|
-
}
|
|
170
|
-
else if ('promotedDefault' in dto) {
|
|
171
|
-
dto.kind = 'PromotedDefault';
|
|
172
|
-
}
|
|
173
|
-
else if ('definedBenefits' in dto) {
|
|
174
|
-
dto.kind = 'DefinedBenefits';
|
|
175
|
-
}
|
|
176
|
-
else if ('promotedDefaultWithJoin' in dto) {
|
|
177
|
-
dto.kind = 'PromotedDefaultWithJoin';
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { assertExhaustive } from '../../../utils';
|
|
2
|
-
import { buildBackendApiClient } from './api-client';
|
|
3
|
-
import { hydratePromotedFundChoiceDtoKind, hydrateSuperChoiceDetailsDtoKind } from './super-selection.api.dto';
|
|
4
|
-
export class SuperSelectionApi {
|
|
5
|
-
async getAustralianFundsAsync(searchFilter, includeInactive = false) {
|
|
6
|
-
return buildBackendApiClient()
|
|
7
|
-
.url(`super-choice/australian-funds-v2?${this.toQueryString(includeInactive, searchFilter)}`)
|
|
8
|
-
.get()
|
|
9
|
-
.notFound(() => {
|
|
10
|
-
throw new Error('Failed to fetch the list of australian super funds.');
|
|
11
|
-
})
|
|
12
|
-
.json();
|
|
13
|
-
}
|
|
14
|
-
async getAustralianFundAsync(usi, includeInactive) {
|
|
15
|
-
const queryStr = includeInactive ? '?includeInactive=true' : '';
|
|
16
|
-
return buildBackendApiClient()
|
|
17
|
-
.url(`super-choice/australian-funds/${usi}${queryStr}`)
|
|
18
|
-
.get()
|
|
19
|
-
.notFound(() => {
|
|
20
|
-
throw new Error('Failed to fetch australian super fund.');
|
|
21
|
-
})
|
|
22
|
-
.json();
|
|
23
|
-
}
|
|
24
|
-
async getAppStateAsync() {
|
|
25
|
-
var _a;
|
|
26
|
-
const response = await buildBackendApiClient()
|
|
27
|
-
.url('client-app-state')
|
|
28
|
-
.get()
|
|
29
|
-
.notFound(() => {
|
|
30
|
-
throw new Error('Failed to fetch application configuration.');
|
|
31
|
-
})
|
|
32
|
-
.json();
|
|
33
|
-
if ((_a = response.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails) {
|
|
34
|
-
hydrateSuperChoiceDetailsDtoKind(response.superBuyer.superChoice.choiceDetails);
|
|
35
|
-
switch (response.superBuyer.superChoice.choiceDetails.kind) {
|
|
36
|
-
case 'Promoted':
|
|
37
|
-
hydratePromotedFundChoiceDtoKind(response.superBuyer.superChoice.choiceDetails.promoted);
|
|
38
|
-
break;
|
|
39
|
-
case 'Default':
|
|
40
|
-
case 'MyOwnFund':
|
|
41
|
-
case 'PromotedDefault':
|
|
42
|
-
case 'SMSF':
|
|
43
|
-
case 'DefinedBenefits':
|
|
44
|
-
case 'PromotedDefaultWithJoin':
|
|
45
|
-
break;
|
|
46
|
-
default:
|
|
47
|
-
assertExhaustive(response.superBuyer.superChoice.choiceDetails);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return response;
|
|
51
|
-
}
|
|
52
|
-
async clickPromotedTileAsync(payload) {
|
|
53
|
-
return buildBackendApiClient().url('click-promoted-tile').post(payload).res();
|
|
54
|
-
}
|
|
55
|
-
async viewSuperFundPanelAsync(payload) {
|
|
56
|
-
return buildBackendApiClient().url('view-super-fund-panel').post(payload).res();
|
|
57
|
-
}
|
|
58
|
-
toSearchFilterQueryString(searchFilter) {
|
|
59
|
-
return (`search=${searchFilter.searchString}` +
|
|
60
|
-
(searchFilter.maxRecordCount > 0 ? '&maxRecordCount=' + searchFilter.maxRecordCount : ''));
|
|
61
|
-
}
|
|
62
|
-
toQueryString(includeInactive, searchFilter) {
|
|
63
|
-
const search = this.toSearchFilterQueryString(searchFilter);
|
|
64
|
-
const inactive = includeInactive ? 'includeInactive=true' : '';
|
|
65
|
-
const isNotEmpty = (s) => s && s.length;
|
|
66
|
-
return [search, inactive].filter(isNotEmpty).join('&');
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export default new SuperSelectionApi();
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Component, h, Host } from '@stencil/core';
|
|
2
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
3
|
-
export class Success {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.ignorePopState = () => window.history.pushState(null, '', null);
|
|
6
|
-
}
|
|
7
|
-
connectedCallback() {
|
|
8
|
-
this.ignorePopState();
|
|
9
|
-
window.addEventListener('popstate', this.ignorePopState);
|
|
10
|
-
}
|
|
11
|
-
disconnectedCallback() {
|
|
12
|
-
window.removeEventListener('popstate', this.ignorePopState);
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
const CheckIcon = () => {
|
|
16
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", class: "fill-primary-base" },
|
|
17
|
-
h("path", { d: "M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z" })));
|
|
18
|
-
};
|
|
19
|
-
return (h(Host, { class: "text-center" },
|
|
20
|
-
h("div", { class: "flex justify-center" },
|
|
21
|
-
h("div", { class: "relative" },
|
|
22
|
-
h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
|
|
23
|
-
h("div", { class: "h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2" },
|
|
24
|
-
h(CheckIcon, null)))),
|
|
25
|
-
h("h3", { class: "text-2xl leading-8 font-bold mt-4" }, "Your super choice has been submitted"),
|
|
26
|
-
h("p", { class: "mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto" }, "Your superannuation details have been updated successfully and will be submitted to your employer."),
|
|
27
|
-
h("div", { class: "flex justify-center mt-8" },
|
|
28
|
-
h("div", { class: "max-w-[200px] w-full" },
|
|
29
|
-
h("sss-button", { testid: "continue-button", size: "xl", fillWidth: true, onClick: this.handleContinueButtonClick },
|
|
30
|
-
h("span", null, "Continue"))))));
|
|
31
|
-
}
|
|
32
|
-
handleContinueButtonClick(_event) {
|
|
33
|
-
superSelectionAppService.completeSuperSelectionFlow();
|
|
34
|
-
}
|
|
35
|
-
static get is() { return "sss-success"; }
|
|
36
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="#facc15">
|
|
2
|
-
<path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
|
|
3
|
-
</svg>
|
package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import { isSome } from 'fp-ts/Option';
|
|
3
|
-
import { assertExhaustive } from '../../../utils';
|
|
4
|
-
import { EventTrackingService } from '../services/event-tracking.service';
|
|
5
|
-
import existingFundService from '../services/existing-super-choice-info.service';
|
|
6
|
-
import navigationService from '../services/navigation.service';
|
|
7
|
-
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
8
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
9
|
-
export class ExistingChoice {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.eventTrackingService = EventTrackingService.Instance;
|
|
12
|
-
this.createSuperFundNominationDetail = (fund) => {
|
|
13
|
-
function toUndefined(opt) {
|
|
14
|
-
return isSome(opt) ? opt.value : undefined;
|
|
15
|
-
}
|
|
16
|
-
function getUsi(fund) {
|
|
17
|
-
return 'usi' in fund ? toUndefined(fund.usi) : undefined;
|
|
18
|
-
}
|
|
19
|
-
function getMemberNumber(fund) {
|
|
20
|
-
return 'memberNumber' in fund ? toUndefined(fund.memberNumber) : undefined;
|
|
21
|
-
}
|
|
22
|
-
return {
|
|
23
|
-
fundType: fund.type.toString(),
|
|
24
|
-
fundName: fund.name,
|
|
25
|
-
fundUsi: getUsi(fund),
|
|
26
|
-
memberNumber: getMemberNumber(fund),
|
|
27
|
-
fundStatus: fund.valid.toString(),
|
|
28
|
-
lastNominatedAt: isSome(fund.lastNominatedAt) ? fund.lastNominatedAt.value.toISOString() : ''
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
componentDidLoad() {
|
|
33
|
-
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
34
|
-
return this.eventTrackingService.TrackSuperFundNominationViewedAsync(detail);
|
|
35
|
-
}
|
|
36
|
-
async componentWillLoad() {
|
|
37
|
-
const chosenFundOption = await existingFundService.GetExistingFundAsync();
|
|
38
|
-
if (isSome(chosenFundOption) && chosenFundOption.value.valid !== 'Inactive') {
|
|
39
|
-
this.existingFund = chosenFundOption.value;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const PromotedFundView = (_props) => {
|
|
47
|
-
return (h("div", { class: "flex justify-center" }));
|
|
48
|
-
};
|
|
49
|
-
const MyOwnFundView = () => {
|
|
50
|
-
return (h("div", { class: "flex h-20 justify-center items-center relative" },
|
|
51
|
-
h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
|
|
52
|
-
h("div", { class: "h-10 w-10 absolute" },
|
|
53
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", class: "fill-primary-base" },
|
|
54
|
-
h("path", { d: "M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z" })))));
|
|
55
|
-
};
|
|
56
|
-
const SelfManagedFundView = () => {
|
|
57
|
-
return (h("div", { class: "flex h-20 justify-center items-center relative" },
|
|
58
|
-
h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
|
|
59
|
-
h("div", { class: "h-10 w-10 absolute" },
|
|
60
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", class: "fill-primary-base" },
|
|
61
|
-
h("path", { d: "M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z" })))));
|
|
62
|
-
};
|
|
63
|
-
const DefaultFundView = () => {
|
|
64
|
-
return (h("div", { class: "flex h-20 justify-center items-center relative" },
|
|
65
|
-
h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
|
|
66
|
-
h("div", { class: "h-10 w-10 absolute" },
|
|
67
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", class: "fill-primary-base" },
|
|
68
|
-
h("path", { d: "M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z" })))));
|
|
69
|
-
};
|
|
70
|
-
const DefinedBenefitsFundView = () => {
|
|
71
|
-
return (h("div", { class: "flex h-20 justify-center items-center relative" },
|
|
72
|
-
h("div", { class: "h-20 w-20 rounded-full bg-primary-base opacity-10" }),
|
|
73
|
-
h("div", { class: "h-10 w-10 absolute" },
|
|
74
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", class: "fill-primary-base" },
|
|
75
|
-
h("path", { d: "M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z" })))));
|
|
76
|
-
};
|
|
77
|
-
const ChooseAnotherFundView = () => {
|
|
78
|
-
return this.existingFund.type == 'Defined Benefits Fund' ? null : (h("div", { class: "mt-4" },
|
|
79
|
-
h("sss-button", { testid: "choose-another-fund-button", fillWidth: true, variant: "secondary", promiseFn: () => this.handleFundNominationDeclined() }, "Choose another fund")));
|
|
80
|
-
};
|
|
81
|
-
return (h("div", null,
|
|
82
|
-
h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Your super nomination"),
|
|
83
|
-
this.existingFund.type == 'Defined Benefits Fund' ? null : (h("div", { class: "sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7" }, "Continue with your chosen fund or choose another fund below.")),
|
|
84
|
-
h("div", { class: "flex justify-center mt-8 sm:mt-12" },
|
|
85
|
-
h("div", { class: "max-w-400 w-full" },
|
|
86
|
-
h("div", { class: "flex-col border shadow-sm p-6 pt-8 rounded-lg text-center" },
|
|
87
|
-
h("div", { class: "space-y-4" },
|
|
88
|
-
(() => {
|
|
89
|
-
switch (this.existingFund.type) {
|
|
90
|
-
case 'Promoted Fund':
|
|
91
|
-
case 'Promoted Default Fund':
|
|
92
|
-
return h(PromotedFundView, { name: this.existingFund.name });
|
|
93
|
-
case 'Self Managed Fund':
|
|
94
|
-
return h(SelfManagedFundView, null);
|
|
95
|
-
case 'My Own Fund':
|
|
96
|
-
case 'Promoted Default Fund With Join':
|
|
97
|
-
return h(MyOwnFundView, null);
|
|
98
|
-
case 'Default Fund':
|
|
99
|
-
return h(DefaultFundView, null);
|
|
100
|
-
case 'Defined Benefits Fund':
|
|
101
|
-
return h(DefinedBenefitsFundView, null);
|
|
102
|
-
default:
|
|
103
|
-
assertExhaustive(this.existingFund);
|
|
104
|
-
return h("div", null);
|
|
105
|
-
}
|
|
106
|
-
})(),
|
|
107
|
-
h("div", { class: "sm:text-lg font-bold leading-6 break-words" }, (() => {
|
|
108
|
-
switch (this.existingFund.type) {
|
|
109
|
-
case 'Default Fund':
|
|
110
|
-
return "Employer's default fund";
|
|
111
|
-
case 'My Own Fund':
|
|
112
|
-
case 'Promoted Fund':
|
|
113
|
-
case 'Self Managed Fund':
|
|
114
|
-
case 'Promoted Default Fund':
|
|
115
|
-
case 'Defined Benefits Fund':
|
|
116
|
-
case 'Promoted Default Fund With Join':
|
|
117
|
-
return this.existingFund.name;
|
|
118
|
-
default:
|
|
119
|
-
assertExhaustive(this.existingFund);
|
|
120
|
-
return '';
|
|
121
|
-
}
|
|
122
|
-
})())),
|
|
123
|
-
h("div", { class: "mt-6" },
|
|
124
|
-
h("sss-button", { testid: "continue-with-this-fund-button", fillWidth: true, promiseFn: () => this.handleFundNominationAccepted() }, "Continue with this fund"))),
|
|
125
|
-
h(ChooseAnotherFundView, null)))));
|
|
126
|
-
}
|
|
127
|
-
async handleFundNominationAccepted() {
|
|
128
|
-
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
129
|
-
await existingFundService.submitRetainSuperFundAsync(detail);
|
|
130
|
-
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
131
|
-
}
|
|
132
|
-
async handleFundNominationDeclined() {
|
|
133
|
-
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
134
|
-
await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(detail);
|
|
135
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
136
|
-
}
|
|
137
|
-
static get is() { return "sss-existing-choice-page"; }
|
|
138
|
-
static get properties() { return {
|
|
139
|
-
"history": {
|
|
140
|
-
"type": "unknown",
|
|
141
|
-
"mutable": false,
|
|
142
|
-
"complexType": {
|
|
143
|
-
"original": "RouterHistory",
|
|
144
|
-
"resolved": "RouterHistory",
|
|
145
|
-
"references": {
|
|
146
|
-
"RouterHistory": {
|
|
147
|
-
"location": "import",
|
|
148
|
-
"path": "@stencil/router"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"required": false,
|
|
153
|
-
"optional": false,
|
|
154
|
-
"docs": {
|
|
155
|
-
"tags": [],
|
|
156
|
-
"text": ""
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}; }
|
|
160
|
-
static get states() { return {
|
|
161
|
-
"existingFund": {}
|
|
162
|
-
}; }
|
|
163
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Component, h, Prop } from '@stencil/core';
|
|
2
|
-
import { AppVersion } from '../../../utils';
|
|
3
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
4
|
-
const DefaultFooterText = 'Powered by Flare';
|
|
5
|
-
export class FooterSection {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.footerText = () => this.textOverride !== undefined ? this.textOverride : DefaultFooterText;
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h("div", { class: {
|
|
11
|
-
'text-center text-gray-500 text-xs w-full max-w-960 mx-auto': true,
|
|
12
|
-
'mt-8 sm:mt-20': !superSelectionAppService.superCampaignIsInView
|
|
13
|
-
} },
|
|
14
|
-
!superSelectionAppService.superCampaignIsInView && h("span", null, this.footerText()),
|
|
15
|
-
h("p", { class: "block text-transparent" },
|
|
16
|
-
"v",
|
|
17
|
-
AppVersion)));
|
|
18
|
-
}
|
|
19
|
-
static get is() { return "sss-footer-section"; }
|
|
20
|
-
static get properties() { return {
|
|
21
|
-
"textOverride": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"mutable": false,
|
|
24
|
-
"complexType": {
|
|
25
|
-
"original": "string",
|
|
26
|
-
"resolved": "string | undefined",
|
|
27
|
-
"references": {}
|
|
28
|
-
},
|
|
29
|
-
"required": false,
|
|
30
|
-
"optional": true,
|
|
31
|
-
"docs": {
|
|
32
|
-
"tags": [],
|
|
33
|
-
"text": ""
|
|
34
|
-
},
|
|
35
|
-
"attribute": "text-override",
|
|
36
|
-
"reflect": false
|
|
37
|
-
}
|
|
38
|
-
}; }
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,50 +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
|
-
async submitDefinedBenefitsChoiceAsync(dto) {
|
|
31
|
-
return buildBackendApiClient()
|
|
32
|
-
.url('super-choice/defined-benefits')
|
|
33
|
-
.post(dto)
|
|
34
|
-
.badRequest(() => {
|
|
35
|
-
throw new Error('Failed to process Defined Benefits choice request');
|
|
36
|
-
})
|
|
37
|
-
.text();
|
|
38
|
-
}
|
|
39
|
-
async validateAbnForSMSF(abn) {
|
|
40
|
-
const response = await buildBackendApiClient()
|
|
41
|
-
.url(`super-choice/smsf/${abn}/validate`)
|
|
42
|
-
.get()
|
|
43
|
-
.badRequest(() => {
|
|
44
|
-
throw new Error('Failed to verify that if the provided abn is used for regulated fund');
|
|
45
|
-
})
|
|
46
|
-
.json();
|
|
47
|
-
return response.result;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
export default new CustomFundChoiceApi();
|
|
@@ -1,86 +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
|
-
this.showFundOptionsSelection = false;
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
let currentRoute = '';
|
|
15
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.MyOwnFund))
|
|
16
|
-
currentRoute = SuperSelectionAppRoutes.MyOwnFund;
|
|
17
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.DefaultFund))
|
|
18
|
-
currentRoute = SuperSelectionAppRoutes.DefaultFund;
|
|
19
|
-
if (window.location.pathname.includes(SuperSelectionAppRoutes.SelfManagedFund))
|
|
20
|
-
currentRoute = SuperSelectionAppRoutes.SelfManagedFund;
|
|
21
|
-
this.currentCustomFund =
|
|
22
|
-
customFundOptions.find((item) => item.value === currentRoute) || customFundOptions[0];
|
|
23
|
-
navigationService.navigateInternally(this.history, currentRoute);
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const ChevronDownIcon = () => {
|
|
27
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "h-5 w-5 text-gray-500", viewBox: "0 0 20 20" },
|
|
28
|
-
h("path", { "fill-rule": "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", "clip-rule": "evenodd" })));
|
|
29
|
-
};
|
|
30
|
-
const CheckIcon = () => {
|
|
31
|
-
return (h("svg", { class: "h-5 w-5 fill-primary-base group-hover:fill-white", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" },
|
|
32
|
-
h("path", { "fill-rule": "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", "clip-rule": "evenodd" })));
|
|
33
|
-
};
|
|
34
|
-
return (h("div", { class: "max-w-560 relative" },
|
|
35
|
-
h("label", { class: "font-medium text-gray-700 text-sm" }, "Which fund would you like to nominate?"),
|
|
36
|
-
h("div", { class: "mt-1 mb-4" },
|
|
37
|
-
h("button", { type: "button", class: "bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm", onClick: () => (this.showFundOptionsSelection = !this.showFundOptionsSelection) },
|
|
38
|
-
h("span", { class: {
|
|
39
|
-
'block truncate': true,
|
|
40
|
-
'text-gray-500': this.showFundOptionsSelection
|
|
41
|
-
} }, this.showFundOptionsSelection ? 'Select' : this.currentCustomFund.label),
|
|
42
|
-
h("span", { class: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none" },
|
|
43
|
-
h(ChevronDownIcon, null))),
|
|
44
|
-
this.showFundOptionsSelection && (h("ul", { class: "absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm" }, this.fundOptionsList.map((f) => (h("li", { class: "text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base", onClick: () => {
|
|
45
|
-
this.showFundOptionsSelection = !this.showFundOptionsSelection;
|
|
46
|
-
navigationService.navigateInternally(this.history, f.value);
|
|
47
|
-
} },
|
|
48
|
-
h("span", { class: {
|
|
49
|
-
'block truncate': true,
|
|
50
|
-
'font-semibold': this.currentCustomFund === f
|
|
51
|
-
} }, f.label),
|
|
52
|
-
this.currentCustomFund === f && (h("span", { class: "absolute inset-y-0 right-0 flex items-center pr-4" },
|
|
53
|
-
h(CheckIcon, null))))))))),
|
|
54
|
-
h("div", { onClick: () => (this.showFundOptionsSelection = false) },
|
|
55
|
-
h("slot", null))));
|
|
56
|
-
}
|
|
57
|
-
static get is() { return "sss-custom-fund"; }
|
|
58
|
-
static get properties() { return {
|
|
59
|
-
"history": {
|
|
60
|
-
"type": "unknown",
|
|
61
|
-
"mutable": false,
|
|
62
|
-
"complexType": {
|
|
63
|
-
"original": "RouterHistory",
|
|
64
|
-
"resolved": "RouterHistory",
|
|
65
|
-
"references": {
|
|
66
|
-
"RouterHistory": {
|
|
67
|
-
"location": "import",
|
|
68
|
-
"path": "@stencil/router"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"required": false,
|
|
73
|
-
"optional": false,
|
|
74
|
-
"docs": {
|
|
75
|
-
"tags": [],
|
|
76
|
-
"text": ""
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}; }
|
|
80
|
-
static get states() { return {
|
|
81
|
-
"currentCustomFund": {},
|
|
82
|
-
"fundOptionsList": {},
|
|
83
|
-
"showFundOptionsSelection": {}
|
|
84
|
-
}; }
|
|
85
|
-
}
|
|
86
|
-
injectHistory(CustomFund);
|