@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,111 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'01': 'Australia and New Zealand Banking Group',
|
|
3
|
-
'03': 'Westpac Banking Corporation',
|
|
4
|
-
'73': 'Westpac Banking Corporation',
|
|
5
|
-
'06': 'Commonwealth Bank of Australia',
|
|
6
|
-
'76': 'Commonwealth Bank of Australia',
|
|
7
|
-
'08': 'National Australia Bank',
|
|
8
|
-
'78': 'National Australia Bank',
|
|
9
|
-
'09': 'Reserve Bank of Australia',
|
|
10
|
-
'10': 'BankSA (division of Westpac Bank)',
|
|
11
|
-
'11': 'St George Bank (division of Westpac Bank)',
|
|
12
|
-
'33': 'St George Bank (division of Westpac Bank)',
|
|
13
|
-
'12': 'Bank of Queensland',
|
|
14
|
-
'14': 'Rabobank',
|
|
15
|
-
'15': 'Town & Country Bank',
|
|
16
|
-
'18': 'Macquarie Bank',
|
|
17
|
-
'19': 'Bank of Melbourne (division of Westpac Bank)',
|
|
18
|
-
'55': 'Bank of Melbourne (division of Westpac Bank)',
|
|
19
|
-
'21': 'JP Morgan Chase Bank',
|
|
20
|
-
'22': 'BNP Paribas',
|
|
21
|
-
'23': 'Bank of America',
|
|
22
|
-
'24': 'Citibank & Citibank NA',
|
|
23
|
-
'510': 'Citibank & Citibank NA',
|
|
24
|
-
'25': 'BNP Paribas Securities',
|
|
25
|
-
'26': 'Bankers Trust Australia (division of Westpac Bank)',
|
|
26
|
-
'29': 'MUFG Bank',
|
|
27
|
-
'30': 'Bankwest (division of Commonwealth Bank)',
|
|
28
|
-
'31': 'Bank Australia',
|
|
29
|
-
'325': 'Beyond Bank',
|
|
30
|
-
'34': 'HSBC Bank Australia',
|
|
31
|
-
'985': 'HSBC Bank Australia',
|
|
32
|
-
'35': 'Bank of China',
|
|
33
|
-
'980': 'Bank of China',
|
|
34
|
-
'40': 'Commonwealth Bank of Australia',
|
|
35
|
-
'41': 'Deutsche Bank',
|
|
36
|
-
'42': 'Commonwealth Bank of Australia',
|
|
37
|
-
'52': 'Commonwealth Bank of Australia',
|
|
38
|
-
'45': 'OCBC Bank',
|
|
39
|
-
'46': 'Advance Bank (division of Westpac Bank)',
|
|
40
|
-
'47': 'Challenge Bank (division of Westpac Bank)',
|
|
41
|
-
'48': 'Suncorp-Metway',
|
|
42
|
-
'664': 'Suncorp-Metway',
|
|
43
|
-
'512': 'Community First Credit Union',
|
|
44
|
-
'514': 'RACQ Bank',
|
|
45
|
-
'517': 'Volt Bank',
|
|
46
|
-
'533': 'Bananacoast Community Credit Union',
|
|
47
|
-
'57': 'Australian Settlements',
|
|
48
|
-
'61': 'Adelaide Bank (division of Bendigo and Adelaide Bank)',
|
|
49
|
-
'611': 'Endeavour Mutual Bank',
|
|
50
|
-
'823': 'Endeavour Mutual Bank',
|
|
51
|
-
'630': 'Greater Bank',
|
|
52
|
-
'637': 'Greater Bank',
|
|
53
|
-
'632': 'B&E',
|
|
54
|
-
'633': 'Bendigo Bank',
|
|
55
|
-
'634': 'Uniting Financial Services',
|
|
56
|
-
'638': 'Heritage Bank',
|
|
57
|
-
'880': 'Heritage Bank',
|
|
58
|
-
'639': 'Home Building Society (division of Bank of Queensland)',
|
|
59
|
-
'640': 'Hume Bank',
|
|
60
|
-
'641': 'IMB',
|
|
61
|
-
'647': 'IMB',
|
|
62
|
-
'642': 'Australian Military Bank',
|
|
63
|
-
'645': 'Auswide Bank',
|
|
64
|
-
'656': 'Auswide Bank',
|
|
65
|
-
'646': 'Maitland Mutual Building Society',
|
|
66
|
-
'650': 'Newcastle Permanent Building Society',
|
|
67
|
-
'653': 'Pioneer Permanent Building Society (division of Bank of Queensland)',
|
|
68
|
-
'654': 'Queensland Country Credit Union',
|
|
69
|
-
'655': 'The Rock',
|
|
70
|
-
'659': 'G&C Mutual Bank',
|
|
71
|
-
'676': 'Gateway Bank',
|
|
72
|
-
'70': 'Indue',
|
|
73
|
-
'721': 'Holiday Coast Credit Union',
|
|
74
|
-
'722': 'Southern Cross Credit Union',
|
|
75
|
-
'723': 'Bank of Heritage Isle',
|
|
76
|
-
'724': 'MOVE',
|
|
77
|
-
'728': 'Summerland Credit Union',
|
|
78
|
-
'777': 'Police & Nurse',
|
|
79
|
-
'80': 'Cuscal',
|
|
80
|
-
'670': 'Cuscal',
|
|
81
|
-
'812': 'Teachers Mutual Bank',
|
|
82
|
-
'813': 'Capricornian',
|
|
83
|
-
'814': 'Credit Union Australia',
|
|
84
|
-
'815': 'Police Bank',
|
|
85
|
-
'817': 'Warwick Credit Union',
|
|
86
|
-
'818': 'Bank of Communications',
|
|
87
|
-
'819': 'Industrial & Commercial Bank of China',
|
|
88
|
-
'824': 'Sutherland Credit Union',
|
|
89
|
-
'825': 'Big Sky Building Society',
|
|
90
|
-
'833': 'Defence Bank',
|
|
91
|
-
'882': 'Unity Bank',
|
|
92
|
-
'888': 'China Construction Bank',
|
|
93
|
-
'90': 'Australia Post',
|
|
94
|
-
'911': 'Sumitomo Mitsui Banking Corporation',
|
|
95
|
-
'913': 'State Street Bank & Trust Company',
|
|
96
|
-
'917': 'Arab Bank Australia',
|
|
97
|
-
'918': 'Mizuho Bank',
|
|
98
|
-
'922': 'United Overseas Bank',
|
|
99
|
-
'923': 'ING Bank',
|
|
100
|
-
'936': 'ING Bank',
|
|
101
|
-
'931': 'Mega International Commercial Bank',
|
|
102
|
-
'932': 'Regional Australia Bank',
|
|
103
|
-
'939': 'AMP Bank',
|
|
104
|
-
'941': 'Delphi Bank (division of Bendigo and Adelaide Bank)',
|
|
105
|
-
'942': 'Bank of Sydney',
|
|
106
|
-
'943': 'Taiwan Business Bank',
|
|
107
|
-
'944': 'Members Equity Bank',
|
|
108
|
-
'946': 'UBS AG',
|
|
109
|
-
'951': 'BOQ Specialist',
|
|
110
|
-
'969': 'Tyro Payments'
|
|
111
|
-
};
|
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { Component, Event, h, Prop, State } from '@stencil/core';
|
|
2
|
-
import { isNone, isSome, none, some } from 'fp-ts/Option';
|
|
3
|
-
import customFundChoiceApi from '../api/custom-fund-choice.api';
|
|
4
|
-
import customFundState from '../custom-fund.store';
|
|
5
|
-
import { validateAbn } from './abn-validation';
|
|
6
|
-
import bsbNumbers from './bankBsbNumbers';
|
|
7
|
-
var AbnValidationStatus;
|
|
8
|
-
(function (AbnValidationStatus) {
|
|
9
|
-
AbnValidationStatus[AbnValidationStatus["Invalid"] = 1] = "Invalid";
|
|
10
|
-
AbnValidationStatus[AbnValidationStatus["AbnIsUsedForRegulatedFund"] = 2] = "AbnIsUsedForRegulatedFund";
|
|
11
|
-
AbnValidationStatus[AbnValidationStatus["Valid"] = 3] = "Valid";
|
|
12
|
-
})(AbnValidationStatus || (AbnValidationStatus = {}));
|
|
13
|
-
export class SelfManagedFundInputs {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.abnValidationStatus = AbnValidationStatus.Invalid;
|
|
16
|
-
this.isAbnTouched = false;
|
|
17
|
-
this.currentBank = none;
|
|
18
|
-
this.addressErrorMessage = none;
|
|
19
|
-
this.stateOptions = [
|
|
20
|
-
{ value: 'NSW', label: 'NSW' },
|
|
21
|
-
{ value: 'QLD', label: 'QLD' },
|
|
22
|
-
{ value: 'ACT', label: 'ACT' },
|
|
23
|
-
{ value: 'VIC', label: 'VIC' },
|
|
24
|
-
{ value: 'TAS', label: 'TAS' },
|
|
25
|
-
{ value: 'WA', label: 'WA' },
|
|
26
|
-
{ value: 'SA', label: 'SA' },
|
|
27
|
-
{ value: 'NT', label: 'NT' }
|
|
28
|
-
];
|
|
29
|
-
this.bsbRegex = new RegExp(/^[0-9]{3}[0-9]{3}$/);
|
|
30
|
-
this.bankAccountNumberRegex = new RegExp(/^[0-9]{2,10}$/);
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const inputClass = {
|
|
34
|
-
'relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10': true,
|
|
35
|
-
'invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
|
|
36
|
-
.showValidationErrors
|
|
37
|
-
};
|
|
38
|
-
return (h("div", null,
|
|
39
|
-
h("div", null,
|
|
40
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Fund name"),
|
|
41
|
-
h("div", { class: "mt-1" },
|
|
42
|
-
h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundName", id: "fundName", value: customFundState.selfManagedFundForm.fundName, onChange: (ev) => this.updateFormField('fundName', ev.target.value.trim()) }),
|
|
43
|
-
h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid fund name"))),
|
|
44
|
-
h("div", { class: "mt-3" },
|
|
45
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Fund ABN"),
|
|
46
|
-
h("div", { class: "mt-1" },
|
|
47
|
-
h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundAbn", id: "fundAbn", value: customFundState.selfManagedFundForm.fundAbn, inputmode: "numeric", pattern: "[0-9]*", onKeyUp: async (ev) => {
|
|
48
|
-
const abnInput = ev.target;
|
|
49
|
-
this.updateFormField('fundAbn', abnInput.value.trim());
|
|
50
|
-
this.abnValidationStatus = AbnValidationStatus.Invalid;
|
|
51
|
-
if (validateAbn(abnInput.value)) {
|
|
52
|
-
const isAbnUsedForRegulatedFund = await this.isAbnUsedForRegulatedAsync(abnInput.value);
|
|
53
|
-
this.abnValidationStatus = isAbnUsedForRegulatedFund
|
|
54
|
-
? AbnValidationStatus.AbnIsUsedForRegulatedFund
|
|
55
|
-
: AbnValidationStatus.Valid;
|
|
56
|
-
}
|
|
57
|
-
// We need to set a custom validity message to trigger css invalid styles for non valid cases
|
|
58
|
-
const validityMessage = this.abnValidationStatus === AbnValidationStatus.Valid
|
|
59
|
-
? ''
|
|
60
|
-
: 'Enter a valid fund ABN (digits only)';
|
|
61
|
-
abnInput.setCustomValidity(validityMessage);
|
|
62
|
-
this.updateFormField('isAbnValid', this.abnValidationStatus === AbnValidationStatus.Valid);
|
|
63
|
-
}, onBlur: () => (this.isAbnTouched = true) }),
|
|
64
|
-
this.renderAbnValidationError())),
|
|
65
|
-
h("div", { class: "mt-3" },
|
|
66
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Electronic service address alias (ESA)"),
|
|
67
|
-
h("div", { class: "mt-1" },
|
|
68
|
-
h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundEsa", id: "fundEsa", value: customFundState.selfManagedFundForm.fundEsa, onChange: (ev) => this.updateFormField('fundEsa', ev.target.value.trim()) }),
|
|
69
|
-
h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid fund ESA"))),
|
|
70
|
-
h("div", { class: "mt-3" },
|
|
71
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Fund address"),
|
|
72
|
-
h("div", { class: "mt-1 rounded-md shadow-sm -space-y-px" },
|
|
73
|
-
h("input", { placeholder: "Address line 1", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-t-md shadow-none': true }), required: true, minlength: "2", name: "addressLine1", id: "addressLine1", value: customFundState.selfManagedFundForm.addressLine1, onChange: (ev) => {
|
|
74
|
-
this.updateFormField('addressLine1', ev.target.value.trim());
|
|
75
|
-
this.updateAddressErrorMessage();
|
|
76
|
-
}, ref: (el) => (this.addressLine1Element = el) }),
|
|
77
|
-
h("input", { placeholder: "Address line 2 (optional)", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none shadow-none': true }), name: "addressLine2", id: "addressLine2", value: customFundState.selfManagedFundForm.addressLine2, onChange: (ev) => this.updateFormField('addressLine2', ev.target.value.trim()) }),
|
|
78
|
-
h("input", { placeholder: "City/suburb", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none shadow-none': true }), name: "city", required: true, id: "city", value: customFundState.selfManagedFundForm.city, onChange: (ev) => {
|
|
79
|
-
this.updateFormField('city', ev.target.value.trim());
|
|
80
|
-
this.updateAddressErrorMessage();
|
|
81
|
-
}, ref: (el) => (this.cityElement = el) }),
|
|
82
|
-
h("div", { class: "flex -space-x-px" },
|
|
83
|
-
h("div", { class: "w-1/2 flex-1 min-w-0" },
|
|
84
|
-
h("input", { placeholder: "Postcode", type: "text", required: true, class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-bl-md shadow-none': true }), name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", value: customFundState.selfManagedFundForm.postcode, inputmode: "numeric", onChange: (ev) => {
|
|
85
|
-
this.updateFormField('postcode', ev.target.value.trim());
|
|
86
|
-
this.updateAddressErrorMessage();
|
|
87
|
-
}, ref: (el) => (this.postcodeElement = el) })),
|
|
88
|
-
h("div", { class: "flex-1 min-w-0" },
|
|
89
|
-
h("select", { class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-br-md shadow-none': true, 'text-gray-500': this.fundForm.state !== undefined }), name: "state", required: true, id: "state", onChange: (ev) => {
|
|
90
|
-
this.updateFormField('state', ev.target.value.trim());
|
|
91
|
-
this.updateAddressErrorMessage();
|
|
92
|
-
}, ref: (el) => (this.stateElement = el) },
|
|
93
|
-
h("option", { disabled: true, selected: this.fundForm.state !== undefined, value: "" }, "State"),
|
|
94
|
-
this.stateOptions.map((s) => (h("option", { value: s.value, selected: this.fundForm.state === s.value }, s.label))))))),
|
|
95
|
-
isSome(this.addressErrorMessage) && this.showValidationErrors && (h("div", { class: "mt-2 text-sm text-red-600" }, this.addressErrorMessage.value))),
|
|
96
|
-
h("div", { class: "flex space-x-4" },
|
|
97
|
-
h("div", { class: "mt-3 w-1/2" },
|
|
98
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Given name(s)"),
|
|
99
|
-
h("div", { class: "mt-1" },
|
|
100
|
-
h("sss-name-input", { testId: "member-given-names-input", name: "memberFirstName", readableName: "Member given name(s)", showValidationErrors: this.showValidationErrors, value: customFundState.selfManagedFundForm.memberFirstName, onChange: (ev) => this.updateFormField('memberFirstName', ev.target.value.trim()) }))),
|
|
101
|
-
h("div", { class: "mt-3 w-1/2" },
|
|
102
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Last name"),
|
|
103
|
-
h("div", { class: "mt-1" },
|
|
104
|
-
h("sss-name-input", { testId: "member-last-name-input", name: "memberFamilyName", readableName: "Member last name", showValidationErrors: this.showValidationErrors, value: customFundState.selfManagedFundForm.memberFamilyName, onChange: (ev) => this.updateFormField('memberFamilyName', ev.target.value.trim()) })))),
|
|
105
|
-
h("h3", { class: "text-lg font-bold mt-6" }, "Fund bank details"),
|
|
106
|
-
h("div", { class: "mt-3" },
|
|
107
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Account name"),
|
|
108
|
-
h("div", { class: "mt-1" },
|
|
109
|
-
h("input", { type: "text", required: true, class: inputClass, name: "bankAccountName", minlength: "2", id: "bankAccountName", value: customFundState.selfManagedFundForm.bankAccountName, onChange: (ev) => this.updateFormField('bankAccountName', ev.target.value.trim()) }),
|
|
110
|
-
h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account name"))),
|
|
111
|
-
h("div", { class: "mt-3" },
|
|
112
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "BSB"),
|
|
113
|
-
h("div", { class: "mt-1" },
|
|
114
|
-
h("input", { type: "text", required: true, class: inputClass, name: "bsb", id: "bsb", minlength: "6", maxlength: "7", inputmode: "numeric", onKeyUp: (ev) => this.updateCurrentBank(ev), pattern: this.bsbRegex.source, value: customFundState.selfManagedFundForm.bsb }),
|
|
115
|
-
h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid BSB"))),
|
|
116
|
-
isSome(this.currentBank) && (h("div", { class: "mt-3" },
|
|
117
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Bank name"),
|
|
118
|
-
h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm" }, this.currentBank.value))),
|
|
119
|
-
h("div", { class: "mt-3" },
|
|
120
|
-
h("label", { class: "text-sm font-medium text-gray-700" }, "Account number"),
|
|
121
|
-
h("div", { class: "mt-1" },
|
|
122
|
-
h("input", { type: "text", required: true, class: inputClass, name: "bankAccountNumber", id: "bankAccountNumber", minlength: "2", maxlength: "11", pattern: this.bankAccountNumberRegex.source, inputmode: "numeric", value: customFundState.selfManagedFundForm.bankAccountNumber, onKeyUp: (ev) => this.updateCurrentBankAccountNumber(ev), onChange: (ev) => this.updateFormField('bankAccountNumber', ev.target.value.trim()) }),
|
|
123
|
-
h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account number")))));
|
|
124
|
-
}
|
|
125
|
-
updateFormField(key, value) {
|
|
126
|
-
this.formChanged.emit({ [key]: value });
|
|
127
|
-
}
|
|
128
|
-
async isAbnUsedForRegulatedAsync(abn) {
|
|
129
|
-
return !(await customFundChoiceApi.validateAbnForSMSF(abn));
|
|
130
|
-
}
|
|
131
|
-
renderAbnValidationError() {
|
|
132
|
-
if (this.isAbnTouched || this.showValidationErrors) {
|
|
133
|
-
switch (this.abnValidationStatus) {
|
|
134
|
-
case AbnValidationStatus.Invalid:
|
|
135
|
-
return h("div", { class: "mt-2 text-sm text-red-600" }, "Enter a valid fund ABN (digits only)");
|
|
136
|
-
case AbnValidationStatus.AbnIsUsedForRegulatedFund:
|
|
137
|
-
return (h("div", { class: "mt-2 text-sm text-red-600" }, "The supplied ABN is for a regulated fund"));
|
|
138
|
-
case AbnValidationStatus.Valid:
|
|
139
|
-
return [];
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return [];
|
|
143
|
-
}
|
|
144
|
-
filterDigits(str) {
|
|
145
|
-
return str.replace(/[^0-9]/g, '');
|
|
146
|
-
}
|
|
147
|
-
updateCurrentBank(ev) {
|
|
148
|
-
const value = this.filterDigits(ev.target.value);
|
|
149
|
-
const firstTwoNumbers = value.substring(0, 2);
|
|
150
|
-
const firstThreeNumbers = value.substring(0, 3);
|
|
151
|
-
const firstTwoNumberBankName = bsbNumbers[firstTwoNumbers];
|
|
152
|
-
const firstThreeNumberBankName = bsbNumbers[firstThreeNumbers];
|
|
153
|
-
if (firstTwoNumberBankName)
|
|
154
|
-
this.currentBank = some(firstTwoNumberBankName);
|
|
155
|
-
if (firstThreeNumberBankName)
|
|
156
|
-
this.currentBank = some(firstThreeNumberBankName);
|
|
157
|
-
if (value === '' || value.length > 6)
|
|
158
|
-
this.currentBank = none;
|
|
159
|
-
this.updateFormField('bsb', value);
|
|
160
|
-
}
|
|
161
|
-
updateCurrentBankAccountNumber(ev) {
|
|
162
|
-
const value = this.filterDigits(ev.target.value);
|
|
163
|
-
this.updateFormField('bankAccountNumber', value);
|
|
164
|
-
}
|
|
165
|
-
updateAddressErrorMessage() {
|
|
166
|
-
let message = none;
|
|
167
|
-
if (isNone(message) && !this.addressLine1Element.checkValidity()) {
|
|
168
|
-
message = some('Enter a valid address line 1');
|
|
169
|
-
}
|
|
170
|
-
if (isNone(message) && !this.cityElement.checkValidity()) {
|
|
171
|
-
message = some('Enter a valid city/suburb');
|
|
172
|
-
}
|
|
173
|
-
if (isNone(message) && !this.postcodeElement.checkValidity()) {
|
|
174
|
-
message = some('Enter a valid post code');
|
|
175
|
-
}
|
|
176
|
-
if (isNone(message) && !this.stateElement.checkValidity()) {
|
|
177
|
-
message = some('Select a state');
|
|
178
|
-
}
|
|
179
|
-
this.addressErrorMessage = message;
|
|
180
|
-
}
|
|
181
|
-
static get is() { return "sss-self-managed-fund-inputs"; }
|
|
182
|
-
static get properties() { return {
|
|
183
|
-
"fundForm": {
|
|
184
|
-
"type": "unknown",
|
|
185
|
-
"mutable": false,
|
|
186
|
-
"complexType": {
|
|
187
|
-
"original": "Partial<SelfManagedFundForm>",
|
|
188
|
-
"resolved": "{ fundName?: string | undefined; fundAbn?: string | undefined; fundEsa?: string | undefined; addressLine1?: string | undefined; addressLine2?: string | undefined; state?: string | undefined; postcode?: string | undefined; city?: string | undefined; bankAccountName?: string | undefined; bsb?: string | undefined; bankAccountNumber?: string | undefined; memberFirstName?: string | undefined; memberFamilyName?: string | undefined; }",
|
|
189
|
-
"references": {
|
|
190
|
-
"Partial": {
|
|
191
|
-
"location": "global"
|
|
192
|
-
},
|
|
193
|
-
"SelfManagedFundForm": {
|
|
194
|
-
"location": "import",
|
|
195
|
-
"path": "./self-managed-fund.form"
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"required": false,
|
|
200
|
-
"optional": false,
|
|
201
|
-
"docs": {
|
|
202
|
-
"tags": [],
|
|
203
|
-
"text": ""
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
"showValidationErrors": {
|
|
207
|
-
"type": "boolean",
|
|
208
|
-
"mutable": false,
|
|
209
|
-
"complexType": {
|
|
210
|
-
"original": "boolean",
|
|
211
|
-
"resolved": "boolean",
|
|
212
|
-
"references": {}
|
|
213
|
-
},
|
|
214
|
-
"required": false,
|
|
215
|
-
"optional": false,
|
|
216
|
-
"docs": {
|
|
217
|
-
"tags": [],
|
|
218
|
-
"text": ""
|
|
219
|
-
},
|
|
220
|
-
"attribute": "show-validation-errors",
|
|
221
|
-
"reflect": false
|
|
222
|
-
}
|
|
223
|
-
}; }
|
|
224
|
-
static get states() { return {
|
|
225
|
-
"abnValidationStatus": {},
|
|
226
|
-
"isAbnTouched": {},
|
|
227
|
-
"currentBank": {},
|
|
228
|
-
"addressErrorMessage": {}
|
|
229
|
-
}; }
|
|
230
|
-
static get events() { return [{
|
|
231
|
-
"method": "formChanged",
|
|
232
|
-
"name": "formChanged",
|
|
233
|
-
"bubbles": true,
|
|
234
|
-
"cancelable": true,
|
|
235
|
-
"composed": true,
|
|
236
|
-
"docs": {
|
|
237
|
-
"tags": [],
|
|
238
|
-
"text": ""
|
|
239
|
-
},
|
|
240
|
-
"complexType": {
|
|
241
|
-
"original": "Partial<FormChangedEvent>",
|
|
242
|
-
"resolved": "{ isAbnValid?: boolean | undefined; fundName?: string | undefined; fundAbn?: string | undefined; fundEsa?: string | undefined; addressLine1?: string | undefined; addressLine2?: string | undefined; state?: string | undefined; postcode?: string | undefined; city?: string | undefined; bankAccountName?: string | undefined; bsb?: string | undefined; bankAccountNumber?: string | undefined; memberFirstName?: string | undefined; memberFamilyName?: string | undefined; }",
|
|
243
|
-
"references": {
|
|
244
|
-
"Partial": {
|
|
245
|
-
"location": "global"
|
|
246
|
-
},
|
|
247
|
-
"FormChangedEvent": {
|
|
248
|
-
"location": "local"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}]; }
|
|
253
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
-
import { injectHistory } from '@stencil/router';
|
|
3
|
-
import * as O from 'fp-ts/Option';
|
|
4
|
-
import { EventTrackingService } from '../../../services/event-tracking.service';
|
|
5
|
-
import navigationService from '../../../services/navigation.service';
|
|
6
|
-
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
7
|
-
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
8
|
-
import customFundChoiceApi from '../api/custom-fund-choice.api';
|
|
9
|
-
import customFundState from '../custom-fund.store';
|
|
10
|
-
import { validateAbn } from './abn-validation';
|
|
11
|
-
export class SelfManagedFund {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.isSubmitDisabled = true;
|
|
14
|
-
this.isAbnValid = validateAbn(customFundState.selfManagedFundForm.fundAbn);
|
|
15
|
-
this.eventTrackingService = EventTrackingService.Instance;
|
|
16
|
-
this.success = () => {
|
|
17
|
-
navigationService.navigateInternallyToStandardChoice({
|
|
18
|
-
history: this.history,
|
|
19
|
-
fundName: 'Self-managed super fund',
|
|
20
|
-
fundDetails: {
|
|
21
|
-
type: 'smsf',
|
|
22
|
-
fundName: customFundState.selfManagedFundForm.fundName,
|
|
23
|
-
fundEsa: customFundState.selfManagedFundForm.fundEsa
|
|
24
|
-
},
|
|
25
|
-
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
26
|
-
const requestDto = Object.assign({ smsfChoice: {
|
|
27
|
-
abn: customFundState.selfManagedFundForm.fundAbn,
|
|
28
|
-
fundName: customFundState.selfManagedFundForm.fundName,
|
|
29
|
-
fundAddress: {
|
|
30
|
-
addressLine1: customFundState.selfManagedFundForm.addressLine1,
|
|
31
|
-
addressLine2: customFundState.selfManagedFundForm.addressLine2,
|
|
32
|
-
city: customFundState.selfManagedFundForm.city,
|
|
33
|
-
state: customFundState.selfManagedFundForm.state,
|
|
34
|
-
postcode: customFundState.selfManagedFundForm.postcode
|
|
35
|
-
},
|
|
36
|
-
bsb: customFundState.selfManagedFundForm.bsb,
|
|
37
|
-
bankAccountName: customFundState.selfManagedFundForm.bankAccountName,
|
|
38
|
-
bankAccountNumber: customFundState.selfManagedFundForm.bankAccountNumber,
|
|
39
|
-
electronicServiceAddress: customFundState.selfManagedFundForm.fundEsa,
|
|
40
|
-
memberFirstName: customFundState.selfManagedFundForm.memberFirstName,
|
|
41
|
-
memberFamilyName: customFundState.selfManagedFundForm.memberFamilyName
|
|
42
|
-
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
43
|
-
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
componentDidLoad() {
|
|
49
|
-
this.updateIsSubmitDisabled();
|
|
50
|
-
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
51
|
-
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
52
|
-
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
return (h(Host, null,
|
|
57
|
-
h("sss-header-section", { currentPage: "own-fund" }),
|
|
58
|
-
h("div", { class: "flex justify-center mt-11" },
|
|
59
|
-
h("sss-custom-fund", null,
|
|
60
|
-
h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
61
|
-
'was-validated': this.formState === 'validated'
|
|
62
|
-
}, ref: (el) => (this.formElement = el), onInput: (_) => this.updateIsSubmitDisabled() },
|
|
63
|
-
h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560" },
|
|
64
|
-
h("p", { class: "sm:text-lg font-bold" }, "Fund details"),
|
|
65
|
-
h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" },
|
|
66
|
-
h("div", { class: "flex" },
|
|
67
|
-
h("div", { class: "flex-shrink-0" },
|
|
68
|
-
h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-exclamation.svg') })),
|
|
69
|
-
h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, "Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))),
|
|
70
|
-
h("sss-self-managed-fund-inputs", { fundForm: customFundState.selfManagedFundForm, showValidationErrors: this.formState === 'validated', onFormChanged: (event) => {
|
|
71
|
-
customFundState.selfManagedFundForm = Object.assign(Object.assign({}, customFundState.selfManagedFundForm), event.detail);
|
|
72
|
-
if (event.detail.isAbnValid !== undefined)
|
|
73
|
-
this.isAbnValid = event.detail.isAbnValid;
|
|
74
|
-
this.updateIsSubmitDisabled();
|
|
75
|
-
} })),
|
|
76
|
-
h("div", { class: "flex justify-center mt-8" },
|
|
77
|
-
h("div", { class: "sm:max-w-320 w-full" },
|
|
78
|
-
h("div", { class: "mb-4", onClick:
|
|
79
|
-
// user clicks on disabled button (div wrapper) then validation errors will show
|
|
80
|
-
() => (this.formState = 'validated') },
|
|
81
|
-
h("sss-button", { testid: "continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Continue")),
|
|
82
|
-
h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage },
|
|
83
|
-
h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back")))))))));
|
|
84
|
-
}
|
|
85
|
-
updateIsSubmitDisabled() {
|
|
86
|
-
this.isSubmitDisabled = !this.formElement.checkValidity() || !this.isAbnValid;
|
|
87
|
-
}
|
|
88
|
-
async handleSubmitForm() {
|
|
89
|
-
this.formState = 'validated';
|
|
90
|
-
if (this.formElement.checkValidity())
|
|
91
|
-
this.success();
|
|
92
|
-
}
|
|
93
|
-
static get is() { return "sss-self-managed-fund"; }
|
|
94
|
-
static get properties() { return {
|
|
95
|
-
"history": {
|
|
96
|
-
"type": "unknown",
|
|
97
|
-
"mutable": false,
|
|
98
|
-
"complexType": {
|
|
99
|
-
"original": "RouterHistory",
|
|
100
|
-
"resolved": "RouterHistory",
|
|
101
|
-
"references": {
|
|
102
|
-
"RouterHistory": {
|
|
103
|
-
"location": "import",
|
|
104
|
-
"path": "@stencil/router"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": ""
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}; }
|
|
116
|
-
static get states() { return {
|
|
117
|
-
"formState": {},
|
|
118
|
-
"isSubmitDisabled": {}
|
|
119
|
-
}; }
|
|
120
|
-
}
|
|
121
|
-
injectHistory(SelfManagedFund);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
-
export class PromotedFundChoiceApi {
|
|
3
|
-
async submitChoiceAsync(dto) {
|
|
4
|
-
return buildBackendApiClient()
|
|
5
|
-
.url('super-choice/promoted-fund')
|
|
6
|
-
.post(dto)
|
|
7
|
-
.badRequest(() => {
|
|
8
|
-
throw new Error('Failed to process Promoted Fund choice request');
|
|
9
|
-
})
|
|
10
|
-
.text();
|
|
11
|
-
}
|
|
12
|
-
async submitDefaultChoiceAsync(dto) {
|
|
13
|
-
return buildBackendApiClient()
|
|
14
|
-
.url('super-choice/promoted-fund/default')
|
|
15
|
-
.post(dto)
|
|
16
|
-
.badRequest(() => {
|
|
17
|
-
throw new Error('Failed to process Promoted Default Fund choice request');
|
|
18
|
-
})
|
|
19
|
-
.text();
|
|
20
|
-
}
|
|
21
|
-
async submitDefaultChoiceWithJoinAsync(dto) {
|
|
22
|
-
return buildBackendApiClient()
|
|
23
|
-
.url('super-choice/promoted-fund/default-with-join')
|
|
24
|
-
.post(dto)
|
|
25
|
-
.badRequest(() => {
|
|
26
|
-
throw new Error('Failed to process Promoted Default Fund With Join choice request');
|
|
27
|
-
})
|
|
28
|
-
.text();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export default new PromotedFundChoiceApi();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/lib/collection/components/super-selection-app/funds/slate-super/api/slate-choice.api.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { buildBackendApiClient } from '../../../api/api-client';
|
|
2
|
-
export class SlateChoiceApi {
|
|
3
|
-
async submitSlateChoiceAsync(dto) {
|
|
4
|
-
return buildBackendApiClient()
|
|
5
|
-
.url('super-choice/slate')
|
|
6
|
-
.post(dto)
|
|
7
|
-
.badRequest(() => {
|
|
8
|
-
throw new Error('Failed to process Slate join request');
|
|
9
|
-
})
|
|
10
|
-
.text();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export default new SlateChoiceApi();
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Component, Fragment, h, Prop } from '@stencil/core';
|
|
2
|
-
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
3
|
-
import superSelectionAppService from '../services/super-selection-app.service';
|
|
4
|
-
const RouteLink = (props, children) => {
|
|
5
|
-
return (h("stencil-route-link", { exact: true, url: props.route },
|
|
6
|
-
h("div", { class: {
|
|
7
|
-
'block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full': true,
|
|
8
|
-
'bg-white shadow-sm text-primary-base': props.isActive,
|
|
9
|
-
'hover:bg-primary-hover text-white': !props.isActive
|
|
10
|
-
} }, children)));
|
|
11
|
-
};
|
|
12
|
-
const ChooseAnotherFundLink = (props) => {
|
|
13
|
-
let route = SuperSelectionAppRoutes.MyOwnFund;
|
|
14
|
-
if (window.location.href.includes(SuperSelectionAppRoutes.SelfManagedFund)) {
|
|
15
|
-
route = SuperSelectionAppRoutes.SelfManagedFund;
|
|
16
|
-
}
|
|
17
|
-
else if (window.location.href.includes(SuperSelectionAppRoutes.DefaultFund)) {
|
|
18
|
-
route = SuperSelectionAppRoutes.DefaultFund;
|
|
19
|
-
}
|
|
20
|
-
return (h(RouteLink, { route: route, isActive: props.isActive }, "Choose another fund"));
|
|
21
|
-
};
|
|
22
|
-
export class HeaderSection {
|
|
23
|
-
render() {
|
|
24
|
-
return (h("div", { class: "flex justify-center" },
|
|
25
|
-
h("div", { class: "text-center max-w-800" },
|
|
26
|
-
h("h3", { class: "font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl" }, "Nominate a super fund"),
|
|
27
|
-
h(Fragment, null,
|
|
28
|
-
h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" }, superSelectionAppService.isSuperCampaignFallbackActivated ? (h(Fragment, null, "You can choose any super fund, including your current fund/SMSF or your employer\u2019s default fund.")) : (h(Fragment, null, "You can choose any super fund, including your current fund/SMSF, your employer\u2019s default fund, or alternatively, you can select from one of the featured\u00A0funds."))),
|
|
29
|
-
!superSelectionAppService.isSuperCampaignFallbackActivated && (h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" },
|
|
30
|
-
h(RouteLink, { route: SuperSelectionAppRoutes.ChoicePage, isActive: this.currentPage === 'choice' }, "Featured super funds"),
|
|
31
|
-
h(ChooseAnotherFundLink, { isActive: this.currentPage === 'own-fund' })))))));
|
|
32
|
-
}
|
|
33
|
-
static get is() { return "sss-header-section"; }
|
|
34
|
-
static get properties() { return {
|
|
35
|
-
"currentPage": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"mutable": false,
|
|
38
|
-
"complexType": {
|
|
39
|
-
"original": "'choice' | 'own-fund'",
|
|
40
|
-
"resolved": "\"choice\" | \"own-fund\"",
|
|
41
|
-
"references": {}
|
|
42
|
-
},
|
|
43
|
-
"required": false,
|
|
44
|
-
"optional": false,
|
|
45
|
-
"docs": {
|
|
46
|
-
"tags": [],
|
|
47
|
-
"text": ""
|
|
48
|
-
},
|
|
49
|
-
"attribute": "current-page",
|
|
50
|
-
"reflect": false
|
|
51
|
-
}
|
|
52
|
-
}; }
|
|
53
|
-
}
|