@flarehr/apollo-super-selection 1.3.35879 → 1.3.35969
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-617fdfce.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-00a3516a.system.entry.js → p-d9aab5a4.system.entry.js} +12 -12
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/sss-button_38.cjs.entry.js +118 -15
- package/dist/lib/collection/apollo-super-selection.css +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +5 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +6 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +5 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +13 -3
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +20 -3
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +8 -1
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js +2 -1
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js +6 -0
- package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-smsf.js +5 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +5 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +1 -0
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +50 -10
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +1 -0
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_38.entry.js +118 -15
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_38.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +22 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +2 -2
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +28 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-f3eba39c.entry.js +0 -14
package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-display-field.js
CHANGED
|
@@ -7,7 +7,8 @@ export class DisplayField {
|
|
|
7
7
|
'text-red-600': !this.field.isValid
|
|
8
8
|
} }, this.field.name),
|
|
9
9
|
h("div", { class: {
|
|
10
|
-
'sm:w-3/5 max-w-[300px]
|
|
10
|
+
'sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words': true,
|
|
11
|
+
'h-5 sm:h-auto': this.field.isEmpty,
|
|
11
12
|
'text-red-600': !this.field.isValid
|
|
12
13
|
} }, this.field.value)));
|
|
13
14
|
}
|
package/dist/lib/collection/components/super-selection-app/prefill-fund/prefill-my-own-fund.js
CHANGED
|
@@ -150,6 +150,12 @@ export class PrefillMyOwnFund {
|
|
|
150
150
|
navigationService.navigateInternallyToStandardChoice({
|
|
151
151
|
history: this.history,
|
|
152
152
|
fundName: this.fundName.value,
|
|
153
|
+
fundDetails: {
|
|
154
|
+
type: 'myOwnFund',
|
|
155
|
+
fundName: this.fundName.value,
|
|
156
|
+
fundUsi: this.fundUsi.value,
|
|
157
|
+
memberNumber: this.memberNumber.value
|
|
158
|
+
},
|
|
153
159
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
154
160
|
const customFundChoiceDto = Object.assign({ fundUsi: this.fundUsi.value, memberNumber: this.memberNumber.value, memberFirstName: this.memberGivenNames.value, memberFamilyName: this.memberLastName.value, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
155
161
|
await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
|
|
@@ -278,6 +278,11 @@ export class PrefillSMSF {
|
|
|
278
278
|
navigationService.navigateInternallyToStandardChoice({
|
|
279
279
|
history: this.history,
|
|
280
280
|
fundName: 'Self-managed super fund',
|
|
281
|
+
fundDetails: {
|
|
282
|
+
type: 'smsf',
|
|
283
|
+
fundName: this.fundName.value,
|
|
284
|
+
fundEsa: this.fundEsa.value
|
|
285
|
+
},
|
|
281
286
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
282
287
|
const smsfChoiceDto = Object.assign({ smsfChoice: {
|
|
283
288
|
abn: this.fundAbn.value,
|
package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js
CHANGED
|
@@ -101,6 +101,11 @@ export class EventTrackingService {
|
|
|
101
101
|
SuperFundPrefillDeclined: detail
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
+
async TrackSuperFundDetailChangeRequestedAsync(detail) {
|
|
105
|
+
return this.trackEventAsync({
|
|
106
|
+
SuperFundDetailChangeRequested: detail
|
|
107
|
+
});
|
|
108
|
+
}
|
|
104
109
|
async trackEventAsync(event) {
|
|
105
110
|
try {
|
|
106
111
|
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
@@ -11,6 +11,7 @@ class NavigationService {
|
|
|
11
11
|
navigateInternallyToStandardChoice(options) {
|
|
12
12
|
standardChoiceFormState.handleSubmitFn = options.handleSubmitFn;
|
|
13
13
|
standardChoiceFormState.fundName = options.fundName;
|
|
14
|
+
standardChoiceFormState.fundDetails = options.fundDetails;
|
|
14
15
|
standardChoiceFormState.promotedFundId = options.promotedFundId;
|
|
15
16
|
this.navigateInternally(options.history, SuperSelectionAppRoutes.StandardChoice);
|
|
16
17
|
}
|
package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
|
|
2
2
|
import { isSome } from 'fp-ts/lib/Option';
|
|
3
|
+
import * as O from 'fp-ts/Option';
|
|
4
|
+
import { assertExhaustive } from '../../../utils';
|
|
3
5
|
import { getLogoSrcByFundId } from '../funds/constants';
|
|
6
|
+
import { EventTrackingService } from '../services/event-tracking.service';
|
|
7
|
+
import navigationService from '../services/navigation.service';
|
|
4
8
|
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
5
9
|
import superSelectionAppService from '../services/super-selection-app.service';
|
|
6
10
|
import standardChoiceFormState from './standard-choice-form.store';
|
|
@@ -8,7 +12,7 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
8
12
|
constructor() {
|
|
9
13
|
this.standardChoiceFormSignature = '';
|
|
10
14
|
this.isSubmitDisabled = true;
|
|
11
|
-
this.
|
|
15
|
+
this.eventTrackingService = EventTrackingService.Instance;
|
|
12
16
|
this.ignorePopState = () => window.history.pushState(null, '', null);
|
|
13
17
|
}
|
|
14
18
|
connectedCallback() {
|
|
@@ -18,11 +22,6 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
18
22
|
disconnectedCallback() {
|
|
19
23
|
window.removeEventListener('popstate', this.ignorePopState);
|
|
20
24
|
}
|
|
21
|
-
async componentWillLoad() {
|
|
22
|
-
if (isSome(superSelectionAppService.state.superChoicePrefill)) {
|
|
23
|
-
this.changeFundUrl = SuperSelectionAppRoutes.ConsentPage;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
25
|
render() {
|
|
27
26
|
return (h(Host, null,
|
|
28
27
|
h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"),
|
|
@@ -36,8 +35,13 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
36
35
|
h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"),
|
|
37
36
|
h("div", { class: "text-sm mt-2" }, standardChoiceFormState.fundName)),
|
|
38
37
|
h("div", { class: "grid content-center ml-4" },
|
|
39
|
-
h("
|
|
40
|
-
|
|
38
|
+
h("sss-button", { size: "xs", variant: "secondary", promiseFn: async () => {
|
|
39
|
+
await this.trackChangeRequestedAsync();
|
|
40
|
+
const changeFundRoute = isSome(superSelectionAppService.state.superChoicePrefill)
|
|
41
|
+
? SuperSelectionAppRoutes.ConsentPage
|
|
42
|
+
: SuperSelectionAppRoutes.ChoicePage;
|
|
43
|
+
navigationService.navigateInternally(this.history, changeFundRoute);
|
|
44
|
+
} }, "Change")))),
|
|
41
45
|
h("div", { class: "mt-4 p-4 sm:p-6 border shadow-sm rounded-lg" },
|
|
42
46
|
h("div", { class: "sm:text-lg font-bold" }, "Superannuation Standard Choice Form"),
|
|
43
47
|
h("div", { class: "bg-blue-50 border-l-4 border-blue-400 p-4 mt-3" },
|
|
@@ -68,6 +72,43 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
68
72
|
h("img", { class: "h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain", alt: standardChoiceFormState.fundName, src: logoSource.value })));
|
|
69
73
|
}
|
|
70
74
|
}
|
|
75
|
+
async trackChangeRequestedAsync() {
|
|
76
|
+
const common = {
|
|
77
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
78
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
79
|
+
};
|
|
80
|
+
switch (standardChoiceFormState.fundDetails.type) {
|
|
81
|
+
case 'default':
|
|
82
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
83
|
+
DefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
84
|
+
});
|
|
85
|
+
break;
|
|
86
|
+
case 'myOwnFund':
|
|
87
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
88
|
+
MyOwnFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
89
|
+
});
|
|
90
|
+
break;
|
|
91
|
+
case 'smsf':
|
|
92
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
93
|
+
Smsf: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
94
|
+
});
|
|
95
|
+
break;
|
|
96
|
+
case 'promoted':
|
|
97
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
98
|
+
PromotedFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
99
|
+
});
|
|
100
|
+
break;
|
|
101
|
+
case 'promotedDefault':
|
|
102
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
103
|
+
PromotedDefaultFund: Object.assign(Object.assign({}, standardChoiceFormState.fundDetails), common)
|
|
104
|
+
});
|
|
105
|
+
break;
|
|
106
|
+
case 'null':
|
|
107
|
+
throw 'standardChoiceFormState.fundDetails was not set';
|
|
108
|
+
default:
|
|
109
|
+
assertExhaustive(standardChoiceFormState.fundDetails);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
71
112
|
async handleSubmitForm() {
|
|
72
113
|
this.formState = 'validated';
|
|
73
114
|
if (this.formElement.checkValidity()) {
|
|
@@ -101,7 +142,6 @@ export class StandardChoiceFormInputDefaultFund {
|
|
|
101
142
|
static get states() { return {
|
|
102
143
|
"standardChoiceFormSignature": {},
|
|
103
144
|
"formState": {},
|
|
104
|
-
"isSubmitDisabled": {}
|
|
105
|
-
"changeFundUrl": {}
|
|
145
|
+
"isSubmitDisabled": {}
|
|
106
146
|
}; }
|
|
107
147
|
}
|
|
@@ -16,5 +16,5 @@ const patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
18
|
globalScripts();
|
|
19
|
-
return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_38",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"campaignConnectRequestInProgress":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-
|
|
19
|
+
return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_38",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"campaignConnectRequestInProgress":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"isMultiFund":[4,"is-multi-fund"],"isPromotedDefault":[4,"is-promoted-default"]}],[0,"sss-dropdown-async",{"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section",{"textOverride":[16]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
|
|
20
20
|
});
|
package/dist/lib/esm/loader.js
CHANGED
|
@@ -13,7 +13,7 @@ const defineCustomElements = (win, options) => {
|
|
|
13
13
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
14
14
|
return patchEsm().then(() => {
|
|
15
15
|
globalScripts();
|
|
16
|
-
return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_38",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"campaignConnectRequestInProgress":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-
|
|
16
|
+
return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_38",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32],"campaignConnectRequestInProgress":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"isMultiFund":[4,"is-multi-fund"],"isPromotedDefault":[4,"is-promoted-default"]}],[0,"sss-dropdown-async",{"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section",{"textOverride":[16]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '1.3.
|
|
263
|
+
const AppVersion = '1.3.35969';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -3717,6 +3717,11 @@ class EventTrackingService {
|
|
|
3717
3717
|
SuperFundPrefillDeclined: detail
|
|
3718
3718
|
});
|
|
3719
3719
|
}
|
|
3720
|
+
async TrackSuperFundDetailChangeRequestedAsync(detail) {
|
|
3721
|
+
return this.trackEventAsync({
|
|
3722
|
+
SuperFundDetailChangeRequested: detail
|
|
3723
|
+
});
|
|
3724
|
+
}
|
|
3720
3725
|
async trackEventAsync(event) {
|
|
3721
3726
|
try {
|
|
3722
3727
|
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
@@ -3766,6 +3771,7 @@ const initial = {
|
|
|
3766
3771
|
return;
|
|
3767
3772
|
},
|
|
3768
3773
|
fundName: '',
|
|
3774
|
+
fundDetails: { type: 'null' },
|
|
3769
3775
|
promotedFundId: undefined
|
|
3770
3776
|
};
|
|
3771
3777
|
const { state } = createStore(initial);
|
|
@@ -3817,6 +3823,7 @@ class NavigationService {
|
|
|
3817
3823
|
navigateInternallyToStandardChoice(options) {
|
|
3818
3824
|
state.handleSubmitFn = options.handleSubmitFn;
|
|
3819
3825
|
state.fundName = options.fundName;
|
|
3826
|
+
state.fundDetails = options.fundDetails;
|
|
3820
3827
|
state.promotedFundId = options.promotedFundId;
|
|
3821
3828
|
this.navigateInternally(options.history, SuperSelectionAppRoutes.StandardChoice);
|
|
3822
3829
|
}
|
|
@@ -4036,6 +4043,11 @@ const DefaultFund = class {
|
|
|
4036
4043
|
navigationService.navigateInternallyToStandardChoice({
|
|
4037
4044
|
history: this.history,
|
|
4038
4045
|
fundName: `Employer’s default fund`,
|
|
4046
|
+
fundDetails: {
|
|
4047
|
+
type: 'default',
|
|
4048
|
+
fundName: this.defaultFundProductName,
|
|
4049
|
+
fundUsi: this.defaultFund.usi
|
|
4050
|
+
},
|
|
4039
4051
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
4040
4052
|
await customFundChoiceApi.submitDefaultFundChoiceAsync(Object.assign({ standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig));
|
|
4041
4053
|
}
|
|
@@ -4898,6 +4910,12 @@ const MyOwnFund = class {
|
|
|
4898
4910
|
navigationService.navigateInternallyToStandardChoice({
|
|
4899
4911
|
history: this.history,
|
|
4900
4912
|
fundName: this.getOrError(state$1.myOwnFundForm.fundName),
|
|
4913
|
+
fundDetails: {
|
|
4914
|
+
type: 'myOwnFund',
|
|
4915
|
+
fundName: this.getOrError(state$1.myOwnFundForm.fundName),
|
|
4916
|
+
fundUsi: this.getOrError(state$1.myOwnFundForm.fundUsi),
|
|
4917
|
+
memberNumber: this.getOrError(state$1.myOwnFundForm.memberNumber)
|
|
4918
|
+
},
|
|
4901
4919
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
4902
4920
|
const customFundChoiceDto = Object.assign({ fundUsi: this.getOrError(state$1.myOwnFundForm.fundUsi), memberNumber: this.getOrError(state$1.myOwnFundForm.memberNumber), memberFirstName: this.getOrError(state$1.myOwnFundForm.memberFirstName), memberFamilyName: this.getOrError(state$1.myOwnFundForm.memberFamilyName), standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
4903
4921
|
await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
|
|
@@ -5081,7 +5099,8 @@ const DisplayField = class {
|
|
|
5081
5099
|
'sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5': true,
|
|
5082
5100
|
'text-red-600': !this.field.isValid
|
|
5083
5101
|
} }, this.field.name), h("div", { class: {
|
|
5084
|
-
'sm:w-3/5 max-w-[300px]
|
|
5102
|
+
'sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words': true,
|
|
5103
|
+
'h-5 sm:h-auto': this.field.isEmpty,
|
|
5085
5104
|
'text-red-600': !this.field.isValid
|
|
5086
5105
|
} }, this.field.value)));
|
|
5087
5106
|
}
|
|
@@ -5629,6 +5648,12 @@ const PrefillMyOwnFund = class {
|
|
|
5629
5648
|
navigationService.navigateInternallyToStandardChoice({
|
|
5630
5649
|
history: this.history,
|
|
5631
5650
|
fundName: this.fundName.value,
|
|
5651
|
+
fundDetails: {
|
|
5652
|
+
type: 'myOwnFund',
|
|
5653
|
+
fundName: this.fundName.value,
|
|
5654
|
+
fundUsi: this.fundUsi.value,
|
|
5655
|
+
memberNumber: this.memberNumber.value
|
|
5656
|
+
},
|
|
5632
5657
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
5633
5658
|
const customFundChoiceDto = Object.assign({ fundUsi: this.fundUsi.value, memberNumber: this.memberNumber.value, memberFirstName: this.memberGivenNames.value, memberFamilyName: this.memberLastName.value, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
5634
5659
|
await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
|
|
@@ -5943,6 +5968,11 @@ const PrefillSMSF = class {
|
|
|
5943
5968
|
navigationService.navigateInternallyToStandardChoice({
|
|
5944
5969
|
history: this.history,
|
|
5945
5970
|
fundName: 'Self-managed super fund',
|
|
5971
|
+
fundDetails: {
|
|
5972
|
+
type: 'smsf',
|
|
5973
|
+
fundName: this.fundName.value,
|
|
5974
|
+
fundEsa: this.fundEsa.value
|
|
5975
|
+
},
|
|
5946
5976
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
5947
5977
|
const smsfChoiceDto = Object.assign({ smsfChoice: {
|
|
5948
5978
|
abn: this.fundAbn.value,
|
|
@@ -6063,11 +6093,20 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
6063
6093
|
case 'success':
|
|
6064
6094
|
if (data.memberNumber) {
|
|
6065
6095
|
const promotedFundId = state$2.fundId;
|
|
6066
|
-
const fundName = getFundNameByFundId(promotedFundId);
|
|
6096
|
+
const fundName = _function.pipe(getFundNameByFundId(promotedFundId), Option.getOrElse(() => ''));
|
|
6097
|
+
const usi = data.usi.replace(/ /g, '');
|
|
6067
6098
|
navigationService.navigateInternallyToStandardChoice({
|
|
6068
6099
|
history,
|
|
6069
|
-
fundName
|
|
6070
|
-
|
|
6100
|
+
fundName,
|
|
6101
|
+
fundDetails: {
|
|
6102
|
+
type: 'promoted',
|
|
6103
|
+
fundName,
|
|
6104
|
+
fundUsi: usi,
|
|
6105
|
+
memberNumber: data.memberNumber,
|
|
6106
|
+
promotedFundId
|
|
6107
|
+
},
|
|
6108
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: promotedFundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
|
|
6109
|
+
standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig)),
|
|
6071
6110
|
promotedFundId
|
|
6072
6111
|
});
|
|
6073
6112
|
break;
|
|
@@ -6184,13 +6223,29 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
6184
6223
|
if (state$2.isPromotedDefault ||
|
|
6185
6224
|
(!state$2.isPromotedDefault && data.memberNumber)) {
|
|
6186
6225
|
const promotedFundId = state$2.fundId;
|
|
6187
|
-
const fundName = getFundNameByFundId(promotedFundId);
|
|
6226
|
+
const fundName = _function.pipe(getFundNameByFundId(promotedFundId), Option.getOrElse(() => ''));
|
|
6227
|
+
const usi = data.usi.replace(/ /g, '');
|
|
6188
6228
|
navigationService.navigateInternallyToStandardChoice({
|
|
6189
6229
|
history,
|
|
6190
|
-
fundName
|
|
6230
|
+
fundName,
|
|
6191
6231
|
promotedFundId,
|
|
6232
|
+
fundDetails: state$2.isPromotedDefault
|
|
6233
|
+
? {
|
|
6234
|
+
type: 'promotedDefault',
|
|
6235
|
+
fundName,
|
|
6236
|
+
fundUsi: usi,
|
|
6237
|
+
promotedFundId
|
|
6238
|
+
}
|
|
6239
|
+
: {
|
|
6240
|
+
type: 'promoted',
|
|
6241
|
+
fundName,
|
|
6242
|
+
fundUsi: usi,
|
|
6243
|
+
memberNumber: data.memberNumber,
|
|
6244
|
+
promotedFundId
|
|
6245
|
+
},
|
|
6192
6246
|
handleSubmitFn: state$2.isPromotedDefault
|
|
6193
|
-
? (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: promotedFundId, usi
|
|
6247
|
+
? (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: promotedFundId, usi,
|
|
6248
|
+
standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
6194
6249
|
: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: promotedFundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
6195
6250
|
});
|
|
6196
6251
|
break;
|
|
@@ -6299,6 +6354,11 @@ const SelfManagedFund = class {
|
|
|
6299
6354
|
navigationService.navigateInternallyToStandardChoice({
|
|
6300
6355
|
history: this.history,
|
|
6301
6356
|
fundName: 'Self-managed super fund',
|
|
6357
|
+
fundDetails: {
|
|
6358
|
+
type: 'smsf',
|
|
6359
|
+
fundName: state$1.selfManagedFundForm.fundName,
|
|
6360
|
+
fundEsa: state$1.selfManagedFundForm.fundEsa
|
|
6361
|
+
},
|
|
6302
6362
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
6303
6363
|
const requestDto = Object.assign({ smsfChoice: {
|
|
6304
6364
|
abn: state$1.selfManagedFundForm.fundAbn,
|
|
@@ -6574,6 +6634,13 @@ class SlateIFrameBuilder {
|
|
|
6574
6634
|
navigationService.navigateInternallyToStandardChoice({
|
|
6575
6635
|
history,
|
|
6576
6636
|
fundName: fund$7.name,
|
|
6637
|
+
fundDetails: {
|
|
6638
|
+
type: 'promoted',
|
|
6639
|
+
fundName: fund$7.name,
|
|
6640
|
+
fundUsi: slateUsi,
|
|
6641
|
+
memberNumber: data.memberNumber,
|
|
6642
|
+
promotedFundId: fund$7.fundId
|
|
6643
|
+
},
|
|
6577
6644
|
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync(Object.assign({ memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig)),
|
|
6578
6645
|
promotedFundId: fund$7.fundId
|
|
6579
6646
|
});
|
|
@@ -6669,7 +6736,7 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
6669
6736
|
registerInstance(this, hostRef);
|
|
6670
6737
|
this.standardChoiceFormSignature = '';
|
|
6671
6738
|
this.isSubmitDisabled = true;
|
|
6672
|
-
this.
|
|
6739
|
+
this.eventTrackingService = EventTrackingService.Instance;
|
|
6673
6740
|
this.ignorePopState = () => window.history.pushState(null, '', null);
|
|
6674
6741
|
}
|
|
6675
6742
|
connectedCallback() {
|
|
@@ -6679,13 +6746,14 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
6679
6746
|
disconnectedCallback() {
|
|
6680
6747
|
window.removeEventListener('popstate', this.ignorePopState);
|
|
6681
6748
|
}
|
|
6682
|
-
async componentWillLoad() {
|
|
6683
|
-
if (Option.isSome(superSelectionAppService.state.superChoicePrefill)) {
|
|
6684
|
-
this.changeFundUrl = SuperSelectionAppRoutes.ConsentPage;
|
|
6685
|
-
}
|
|
6686
|
-
}
|
|
6687
6749
|
render() {
|
|
6688
|
-
return (h(Host, null, h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"), h("div", { class: "sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8" }, "Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."), h("div", { class: "flex justify-center mt-8 sm:mt-12" }, h("div", { class: "max-w-560" }, h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" }, this.renderLogo(), h("div", { class: "flex justify-between w-full" }, h("div", null, h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"), h("div", { class: "text-sm mt-2" }, state.fundName)), h("div", { class: "grid content-center ml-4" }, h("
|
|
6750
|
+
return (h(Host, null, h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"), h("div", { class: "sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8" }, "Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."), h("div", { class: "flex justify-center mt-8 sm:mt-12" }, h("div", { class: "max-w-560" }, h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" }, this.renderLogo(), h("div", { class: "flex justify-between w-full" }, h("div", null, h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"), h("div", { class: "text-sm mt-2" }, state.fundName)), h("div", { class: "grid content-center ml-4" }, h("sss-button", { size: "xs", variant: "secondary", promiseFn: async () => {
|
|
6751
|
+
await this.trackChangeRequestedAsync();
|
|
6752
|
+
const changeFundRoute = Option.isSome(superSelectionAppService.state.superChoicePrefill)
|
|
6753
|
+
? SuperSelectionAppRoutes.ConsentPage
|
|
6754
|
+
: SuperSelectionAppRoutes.ChoicePage;
|
|
6755
|
+
navigationService.navigateInternally(this.history, changeFundRoute);
|
|
6756
|
+
} }, "Change")))), h("div", { class: "mt-4 p-4 sm:p-6 border shadow-sm rounded-lg" }, h("div", { class: "sm:text-lg font-bold" }, "Superannuation Standard Choice Form"), h("div", { class: "bg-blue-50 border-l-4 border-blue-400 p-4 mt-3" }, h("div", { class: "flex" }, h("div", { class: "flex-shrink-0" }, h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-information-circle.svg') })), h("div", { class: "ml-2" }, h("p", { class: "text-sm text-blue-800 leading-5" }, "Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))), h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
6689
6757
|
'mt-3': true,
|
|
6690
6758
|
'was-validated': this.formState === 'validated'
|
|
6691
6759
|
}, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = !this.formElement.checkValidity()) }, h("label", { class: "text-sm font-medium text-gray-700" }, "Type your full name"), h("input", { type: "text", autocomplete: "off", class: {
|
|
@@ -6701,6 +6769,41 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
6701
6769
|
return (h("div", { class: "pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start" }, h("img", { class: "h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain", alt: state.fundName, src: logoSource.value })));
|
|
6702
6770
|
}
|
|
6703
6771
|
}
|
|
6772
|
+
async trackChangeRequestedAsync() {
|
|
6773
|
+
const common = {
|
|
6774
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
6775
|
+
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
6776
|
+
};
|
|
6777
|
+
switch (state.fundDetails.type) {
|
|
6778
|
+
case 'default':
|
|
6779
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
6780
|
+
DefaultFund: Object.assign(Object.assign({}, state.fundDetails), common)
|
|
6781
|
+
});
|
|
6782
|
+
break;
|
|
6783
|
+
case 'myOwnFund':
|
|
6784
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
6785
|
+
MyOwnFund: Object.assign(Object.assign({}, state.fundDetails), common)
|
|
6786
|
+
});
|
|
6787
|
+
break;
|
|
6788
|
+
case 'smsf':
|
|
6789
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
6790
|
+
Smsf: Object.assign(Object.assign({}, state.fundDetails), common)
|
|
6791
|
+
});
|
|
6792
|
+
break;
|
|
6793
|
+
case 'promoted':
|
|
6794
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
6795
|
+
PromotedFund: Object.assign(Object.assign({}, state.fundDetails), common)
|
|
6796
|
+
});
|
|
6797
|
+
break;
|
|
6798
|
+
case 'promotedDefault':
|
|
6799
|
+
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
6800
|
+
PromotedDefaultFund: Object.assign(Object.assign({}, state.fundDetails), common)
|
|
6801
|
+
});
|
|
6802
|
+
break;
|
|
6803
|
+
case 'null':
|
|
6804
|
+
throw 'standardChoiceFormState.fundDetails was not set';
|
|
6805
|
+
}
|
|
6806
|
+
}
|
|
6704
6807
|
async handleSubmitForm() {
|
|
6705
6808
|
this.formState = 'validated';
|
|
6706
6809
|
if (this.formElement.checkValidity()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-189b2180.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchBrowser=function(){var e=import.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return promiseResolve(s)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_38",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],campaignConnectRequestInProgress:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-189b2180.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchBrowser=function(){var e=import.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return promiseResolve(s)};patchBrowser().then((function(e){globalScripts();return bootstrapLazy([["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_38",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],campaignConnectRequestInProgress:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-consent-page",{history:[16]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-promoted-fund-join-v1-page",{history:[16]}],[0,"sss-promoted-fund-join-v2-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"sss-success"],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],isAbnUsedForRegulated:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16],isMultiFund:[4,"is-multi-fund"],isPromotedDefault:[4,"is-promoted-default"]}],[0,"sss-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section",{textOverride:[16]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[0,"sss-name-input",{value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-189b2180.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,s){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_38",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],campaignConnectRequestInProgress:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-189b2180.js";import"./datorama-akita-127aea91.js";import{g as globalScripts}from"./app-globals-c1f89805.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,s){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["context-consumer",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["sss-button_38",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],campaignConnectRequestInProgress:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-consent-page",{history:[16]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-promoted-fund-join-v1-page",{history:[16]}],[0,"sss-promoted-fund-join-v2-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"sss-success"],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],isAbnUsedForRegulated:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16],isMultiFund:[4,"is-multi-fund"],isPromotedDefault:[4,"is-promoted-default"]}],[0,"sss-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section",{textOverride:[16]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[0,"sss-name-input",{value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],s)}))};export{defineCustomElements};
|