@flarehr/apollo-super-selection 4.27.29425 → 4.29.30453
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-16367be3.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/{p-77f20abe.entry.js → p-29a35f2a.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- 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_30.cjs.entry.js +248 -199
- package/dist/lib/collection/apollo-super-selection.css +1 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +71 -86
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +12 -0
- package/dist/lib/collection/components/super-selection-app/consent/consent.js +2 -6
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +1 -7
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +2 -5
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/funds/hesta-default.js +23 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +4 -5
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +1 -10
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +14 -14
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +1 -8
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +61 -45
- package/dist/lib/collection/components/super-selection-app/services/misc.service.js +7 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +33 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +4 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +19 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +39 -11
- package/dist/lib/collection/utils/index.js +3 -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_30.entry.js +248 -199
- 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_30.entry.js +4 -4
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +2 -6
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +3 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +35 -0
- package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +11 -7
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/member-name-input.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/funds/hesta-default.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +3 -2
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/types.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +9 -1
- package/dist/lib/types/components/super-selection-app/services/misc.service.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +9 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +4 -1
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -0
- package/dist/lib/types/components.d.ts +2 -0
- package/dist/lib/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-3457c8b6.system.entry.js +0 -69
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isNone, isSome, none, some } from 'fp-ts/Option';
|
|
2
|
+
import { assertExhaustive } from '../../../utils';
|
|
2
3
|
import { buildBackendApiClient } from '../api/api-client';
|
|
3
4
|
import { getSuperChoiceMemberNumber, getSuperChoiceUsi } from '../api/super-selection.api.dto';
|
|
4
5
|
import * as constants from '../funds/constants';
|
|
@@ -24,53 +25,68 @@ export class ExistingFundService {
|
|
|
24
25
|
const dateSubmitted = choice.dateSubmitted == undefined ? none : some(new Date(choice.dateSubmitted));
|
|
25
26
|
const usi = getSuperChoiceUsi(choiceDetails);
|
|
26
27
|
const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
switch (choiceDetails.kind) {
|
|
29
|
+
case 'Promoted': {
|
|
30
|
+
const dtoPropName = Object.keys(choiceDetails.promoted)[0];
|
|
31
|
+
const fund = constants.getFundByDtoPropName(dtoPropName);
|
|
32
|
+
if (isNone(fund))
|
|
33
|
+
return none;
|
|
34
|
+
return some({
|
|
35
|
+
type: 'Promoted Fund',
|
|
36
|
+
id: fund.value.fundId,
|
|
37
|
+
name: fund.value.name,
|
|
38
|
+
usi: usi,
|
|
39
|
+
valid: 'Active',
|
|
40
|
+
memberNumber: memberNumber,
|
|
41
|
+
lastNominatedAt: dateSubmitted
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
case 'MyOwnFund': {
|
|
45
|
+
const fundUsi = choiceDetails.myOwnFund.usi;
|
|
46
|
+
const fund = await this.getFundByUsiAsync(fundUsi);
|
|
47
|
+
return some({
|
|
48
|
+
type: 'My Own Fund',
|
|
49
|
+
name: isSome(fund) ? fund.value.productName : fundUsi,
|
|
50
|
+
usi: usi,
|
|
51
|
+
valid: this.toFundValidState(fund),
|
|
52
|
+
memberNumber: memberNumber,
|
|
53
|
+
lastNominatedAt: dateSubmitted
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
case 'SMSF':
|
|
57
|
+
return some({
|
|
58
|
+
type: 'Self Managed Fund',
|
|
59
|
+
name: choiceDetails.smsf.fundName,
|
|
60
|
+
valid: 'Unknown',
|
|
61
|
+
lastNominatedAt: dateSubmitted
|
|
62
|
+
});
|
|
63
|
+
case 'Default': {
|
|
64
|
+
const defaultUsi = choiceDetails.default.usi;
|
|
65
|
+
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
66
|
+
return some({
|
|
67
|
+
type: 'Default Fund',
|
|
68
|
+
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
69
|
+
usi: usi,
|
|
70
|
+
valid: this.toFundValidState(defaultFund),
|
|
71
|
+
lastNominatedAt: dateSubmitted
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
case 'PromotedDefault': {
|
|
75
|
+
const defaultUsi = choiceDetails.promotedDefault.usi;
|
|
76
|
+
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
77
|
+
return some({
|
|
78
|
+
type: 'Promoted Default Fund',
|
|
79
|
+
id: choiceDetails.promotedDefault.fundId,
|
|
80
|
+
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
81
|
+
usi: usi,
|
|
82
|
+
valid: this.toFundValidState(defaultFund),
|
|
83
|
+
lastNominatedAt: dateSubmitted
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
default:
|
|
87
|
+
assertExhaustive(choiceDetails);
|
|
31
88
|
return none;
|
|
32
|
-
return some({
|
|
33
|
-
type: 'Promoted Fund',
|
|
34
|
-
id: fund.value.fundId,
|
|
35
|
-
name: fund.value.name,
|
|
36
|
-
usi: usi,
|
|
37
|
-
valid: 'Active',
|
|
38
|
-
memberNumber: memberNumber,
|
|
39
|
-
lastNominatedAt: dateSubmitted
|
|
40
|
-
});
|
|
41
89
|
}
|
|
42
|
-
else if ('smsf' in choiceDetails) {
|
|
43
|
-
return some({
|
|
44
|
-
type: 'Self Managed Fund',
|
|
45
|
-
name: choiceDetails.smsf.fundName,
|
|
46
|
-
valid: 'Unknown',
|
|
47
|
-
lastNominatedAt: dateSubmitted
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
else if ('myOwnFund' in choiceDetails) {
|
|
51
|
-
const fundUsi = choiceDetails.myOwnFund.usi;
|
|
52
|
-
const fund = await this.getFundByUsiAsync(fundUsi);
|
|
53
|
-
return some({
|
|
54
|
-
type: 'My Own Fund',
|
|
55
|
-
name: isSome(fund) ? fund.value.productName : fundUsi,
|
|
56
|
-
usi: usi,
|
|
57
|
-
valid: this.toFundValidState(fund),
|
|
58
|
-
memberNumber: memberNumber,
|
|
59
|
-
lastNominatedAt: dateSubmitted
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
else if ('default' in choiceDetails) {
|
|
63
|
-
const defaultUsi = choiceDetails.default.usi;
|
|
64
|
-
const defaultFund = await this.getFundByUsiAsync(defaultUsi);
|
|
65
|
-
return some({
|
|
66
|
-
type: 'Default Fund',
|
|
67
|
-
name: isSome(defaultFund) ? defaultFund.value.productName : defaultUsi,
|
|
68
|
-
usi: usi,
|
|
69
|
-
valid: this.toFundValidState(defaultFund),
|
|
70
|
-
lastNominatedAt: dateSubmitted
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
return none;
|
|
74
90
|
}
|
|
75
91
|
async submitRetainSuperFundAsync(dto) {
|
|
76
92
|
return buildBackendApiClient()
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
CHANGED
|
@@ -38,11 +38,29 @@ export class SuperSelectionAppService {
|
|
|
38
38
|
return this._state.appBaseUrl.value;
|
|
39
39
|
}
|
|
40
40
|
get promotedFunds() {
|
|
41
|
+
if (this._state.campaignConnectEnabled && O.isSome(this._state.campaignConnect)) {
|
|
42
|
+
return this._state.campaignConnect.value.promotedFunds;
|
|
43
|
+
}
|
|
41
44
|
if (O.isNone(this._state.promotedFunds)) {
|
|
42
45
|
throw Error('Promoted Funds is not set');
|
|
43
46
|
}
|
|
44
47
|
return this._state.promotedFunds.value;
|
|
45
48
|
}
|
|
49
|
+
get promotedDefaultFundPosition() {
|
|
50
|
+
if (this._state.campaignConnectEnabled && O.isSome(this._state.campaignConnect)) {
|
|
51
|
+
return O.fromNullable(this._state.campaignConnect.value.promotedDefaultFundPosition);
|
|
52
|
+
}
|
|
53
|
+
return O.none;
|
|
54
|
+
}
|
|
55
|
+
get promotedFundsConfig() {
|
|
56
|
+
return {
|
|
57
|
+
shownFunds: this.promotedFunds,
|
|
58
|
+
promotedDefaultFundPosition: O.toUndefined(this.promotedDefaultFundPosition),
|
|
59
|
+
promotedFundsConfigSource: O.isSome(this._state.campaignConnect)
|
|
60
|
+
? 'campaignConnect'
|
|
61
|
+
: 'superSelection'
|
|
62
|
+
};
|
|
63
|
+
}
|
|
46
64
|
get profileId() {
|
|
47
65
|
if (O.isNone(this._state.profileId)) {
|
|
48
66
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -80,6 +98,21 @@ export class SuperSelectionAppService {
|
|
|
80
98
|
this._state.profileConfiguration = O.fromNullable(appStateResponse.profileConfiguration);
|
|
81
99
|
this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
|
|
82
100
|
this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
|
|
101
|
+
this._state.campaignConnectEnabled = appStateResponse.campaignConnectEnabled;
|
|
102
|
+
if (this._state.campaignConnectEnabled) {
|
|
103
|
+
this._state.campaignConnectPromise = O.fromNullable(superSelectionApi.getCampaignConnectAsync());
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async completeCampaignConnectRequestSafe() {
|
|
107
|
+
if (this._state.campaignConnectEnabled) {
|
|
108
|
+
try {
|
|
109
|
+
const campaignConnect = await pipe(this._state.campaignConnectPromise, O.getOrElse(() => superSelectionApi.getCampaignConnectAsync()));
|
|
110
|
+
this._state.campaignConnect = O.fromNullable(campaignConnect);
|
|
111
|
+
}
|
|
112
|
+
catch (_a) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
83
116
|
}
|
|
84
117
|
}
|
|
85
118
|
export default new SuperSelectionAppService();
|
package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js
CHANGED
|
@@ -9,5 +9,8 @@ export const initialState = {
|
|
|
9
9
|
accountConfiguration: O.none,
|
|
10
10
|
profileConfiguration: O.none,
|
|
11
11
|
hasSuccessPageBeenAcknowledged: false,
|
|
12
|
-
hasSuperSelectionBeenSubmitted: false
|
|
12
|
+
hasSuperSelectionBeenSubmitted: false,
|
|
13
|
+
campaignConnectEnabled: false,
|
|
14
|
+
campaignConnectPromise: O.none,
|
|
15
|
+
campaignConnect: O.none
|
|
13
16
|
};
|
|
@@ -4,9 +4,10 @@ export class SuperChoiceItemTop {
|
|
|
4
4
|
return (h(Host, null,
|
|
5
5
|
h("div", { class: "px-4 lg:px-6 pt-6" },
|
|
6
6
|
h("div", { class: "text-right w-100 -mt-5 -mr-3.5 lg:-mr-5" },
|
|
7
|
+
this.isPromotedDefault && (h("span", { class: "text-xs bg-blue-100 text-blue-800 font-medium rounded-xl py-0.5 px-2.5 mr-1" }, "Employer Default")),
|
|
7
8
|
h("span", { class: "text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5" }, "Featured")),
|
|
8
9
|
h("div", { class: "flex lg:block mt-2 md:mt-0 lg:mt-4" },
|
|
9
|
-
h("img", { class: "h-12 md:h-14 lg:h-16 object-contain w-
|
|
10
|
+
h("img", { class: "h-12 md:h-14 lg:h-16 object-contain w-[80px] md:w-[96px] lg:w-[140px] md:hidden lg:block lg:object-left", alt: this.name, src: getAssetPath(`assets/${this.logo}`) }),
|
|
10
11
|
h("div", { class: "grid content-center" },
|
|
11
12
|
h("p", { class: "text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0 lg:mt-4" }, this.name))),
|
|
12
13
|
h("div", { class: "mt-4 sm:mt-2 text-sm space-y-2" }, this.features.map((feature) => (h("div", { class: "flex" },
|
|
@@ -90,6 +91,23 @@ export class SuperChoiceItemTop {
|
|
|
90
91
|
"tags": [],
|
|
91
92
|
"text": ""
|
|
92
93
|
}
|
|
94
|
+
},
|
|
95
|
+
"isPromotedDefault": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"mutable": false,
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "boolean",
|
|
100
|
+
"resolved": "boolean | undefined",
|
|
101
|
+
"references": {}
|
|
102
|
+
},
|
|
103
|
+
"required": false,
|
|
104
|
+
"optional": true,
|
|
105
|
+
"docs": {
|
|
106
|
+
"tags": [],
|
|
107
|
+
"text": ""
|
|
108
|
+
},
|
|
109
|
+
"attribute": "is-promoted-default",
|
|
110
|
+
"reflect": false
|
|
93
111
|
}
|
|
94
112
|
}; }
|
|
95
113
|
}
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -3,15 +3,19 @@ import * as O from 'fp-ts/lib/Option';
|
|
|
3
3
|
import * as constants from '../funds/constants';
|
|
4
4
|
import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
|
|
5
5
|
import { EventTrackingService } from '../services/event-tracking.service';
|
|
6
|
+
import miscService from '../services/misc.service';
|
|
6
7
|
import navigationService from '../services/navigation.service';
|
|
7
8
|
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
8
9
|
import SuperSelectionAppService from '../services/super-selection-app.service';
|
|
9
10
|
export class SuperChoicePage {
|
|
10
11
|
constructor() {
|
|
11
|
-
this.
|
|
12
|
+
this.campaignConnectRequestInProgress = true;
|
|
12
13
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
13
14
|
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
+
async componentDidLoad() {
|
|
16
|
+
await SuperSelectionAppService.completeCampaignConnectRequestSafe();
|
|
17
|
+
this.promotedFunds = this.getPromotedFunds();
|
|
18
|
+
this.campaignConnectRequestInProgress = false;
|
|
15
19
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
16
20
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
17
21
|
promotedFundsShown,
|
|
@@ -23,6 +27,14 @@ export class SuperChoicePage {
|
|
|
23
27
|
const mygovLinkDisplay = 'www.my.gov.au';
|
|
24
28
|
const superfundsLink = 'https://www.apra.gov.au/register-of-superannuation-institutions';
|
|
25
29
|
const superfundsLinkDisplay = 'www.apra.gov.au';
|
|
30
|
+
if (this.campaignConnectRequestInProgress) {
|
|
31
|
+
return (h("div", { class: "w-[327px] sm:w-full bg-white flex flex-col items-center" },
|
|
32
|
+
h("div", { class: "w-full sm:w-[440px] h-9 bg-gray-200 animate-pulse rounded" }),
|
|
33
|
+
h("div", { class: "mt-6 w-full sm:w-[720px] h-6 bg-gray-200 animate-pulse rounded" }),
|
|
34
|
+
h("div", { class: "mt-2 w-[220px] sm:w-[560px] h-6 bg-gray-200 animate-pulse rounded" }),
|
|
35
|
+
h("div", { class: "mt-10 w-full sm:w-[560px] h-80 bg-gray-200 animate-pulse rounded" }),
|
|
36
|
+
h("div", { class: "mt-10 w-full sm:w-[200px] h-11 bg-gray-200 animate-pulse rounded" })));
|
|
37
|
+
}
|
|
26
38
|
return (h(Host, null,
|
|
27
39
|
h("div", null,
|
|
28
40
|
h("sss-header-section", { currentPage: "choice" }),
|
|
@@ -53,7 +65,7 @@ export class SuperChoicePage {
|
|
|
53
65
|
h("div", { class: "hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6" },
|
|
54
66
|
h("img", { class: "h-16 object-contain w-full max-w-[96px]", alt: fund.name, src: getAssetPath(`assets/${fund.logo}`) })),
|
|
55
67
|
h("div", { class: "w-full" },
|
|
56
|
-
h("sss-super-choice-item-top", { logo: fund.logo, name: fund.name, features: fund.features, featureSubText: fund.featureSubText }),
|
|
68
|
+
h("sss-super-choice-item-top", { logo: fund.logo, name: fund.name, features: fund.features, featureSubText: fund.featureSubText, isPromotedDefault: fund.isPromotedDefault }),
|
|
57
69
|
h("div", { class: "lg:hidden" },
|
|
58
70
|
h("sss-super-choice-item-bottom", { disclaimer: fund.disclaimer, abnInfo: fund.abnInfo, abn: fund.abn, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))))),
|
|
59
71
|
this.promotedFunds.map((fund, index) => (h("div", { class: {
|
|
@@ -97,17 +109,32 @@ export class SuperChoicePage {
|
|
|
97
109
|
return fundTiles;
|
|
98
110
|
}
|
|
99
111
|
async handleJoinSuperClickAsync(fund) {
|
|
112
|
+
var _a;
|
|
100
113
|
const promotedFundsShown = SuperSelectionAppService.promotedFunds;
|
|
101
114
|
const fundUsi = constants.getFundUsiByFundId(fund.fundId);
|
|
102
115
|
const fundName = constants.getFundNameByFundId(fund.fundId);
|
|
103
|
-
await
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
116
|
+
await Promise.all([
|
|
117
|
+
this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
118
|
+
fundUsi: O.isSome(fundUsi) ? fundUsi.value : undefined,
|
|
119
|
+
fundName: O.isSome(fundName) ? fundName.value : '',
|
|
120
|
+
promotedFundId: fund.fundId,
|
|
121
|
+
promotedFundsShown,
|
|
122
|
+
defaultFundUsiSet: O.toUndefined(SuperSelectionAppService.defaultFundUsi)
|
|
123
|
+
}),
|
|
124
|
+
miscService.trackClickPromotedTileAsync(fund.isPromotedDefault
|
|
125
|
+
? {
|
|
126
|
+
promotedDefault: {
|
|
127
|
+
fundId: fund.fundId
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
: {
|
|
131
|
+
promoted: {
|
|
132
|
+
fundId: fund.fundId
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
]);
|
|
110
136
|
promotedFundState.fundId = fund.fundId;
|
|
137
|
+
promotedFundState.isPromotedDefault = (_a = fund.isPromotedDefault) !== null && _a !== void 0 ? _a : false;
|
|
111
138
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
112
139
|
}
|
|
113
140
|
static get is() { return "sss-super-choice-page"; }
|
|
@@ -135,6 +162,7 @@ export class SuperChoicePage {
|
|
|
135
162
|
}
|
|
136
163
|
}; }
|
|
137
164
|
static get states() { return {
|
|
138
|
-
"promotedFunds": {}
|
|
165
|
+
"promotedFunds": {},
|
|
166
|
+
"campaignConnectRequestInProgress": {}
|
|
139
167
|
}; }
|
|
140
168
|
}
|
|
@@ -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_30",[[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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[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"],[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]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16]}],[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-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]}],[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);
|
|
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_30",[[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-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[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"],[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]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"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-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]}],[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_30",[[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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[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"],[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]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16]}],[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-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]}],[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);
|
|
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_30",[[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-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[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"],[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]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"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-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]}],[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
|
|