@flarehr/apollo-super-selection 1.2.29920 → 1.2.29974
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.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-d4911431.entry.js → p-91b5cadd.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/p-a9fa8eaf.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_30.cjs.entry.js +109 -70
- 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 -4
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +1 -8
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +2 -6
- 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/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/misc.service.js +7 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +27 -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-page.js +25 -8
- package/dist/lib/esm/sss-button_30.entry.js +109 -70
- 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 +15 -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 +3 -0
- 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/promoted-fund.store.d.ts +3 -2
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/types.d.ts +1 -0
- 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/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/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-89c33b9e.system.entry.js +0 -69
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -3,6 +3,7 @@ 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';
|
|
@@ -11,7 +12,8 @@ export class SuperChoicePage {
|
|
|
11
12
|
this.promotedFunds = this.getPromotedFunds();
|
|
12
13
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
13
14
|
}
|
|
14
|
-
componentDidLoad() {
|
|
15
|
+
async componentDidLoad() {
|
|
16
|
+
await SuperSelectionAppService.completeCampaignConnectRequest();
|
|
15
17
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
16
18
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
17
19
|
promotedFundsShown,
|
|
@@ -97,17 +99,32 @@ export class SuperChoicePage {
|
|
|
97
99
|
return fundTiles;
|
|
98
100
|
}
|
|
99
101
|
async handleJoinSuperClickAsync(fund) {
|
|
102
|
+
var _a;
|
|
100
103
|
const promotedFundsShown = SuperSelectionAppService.promotedFunds;
|
|
101
104
|
const fundUsi = constants.getFundUsiByFundId(fund.fundId);
|
|
102
105
|
const fundName = constants.getFundNameByFundId(fund.fundId);
|
|
103
|
-
await
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
await Promise.all([
|
|
107
|
+
this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
108
|
+
fundUsi: O.isSome(fundUsi) ? fundUsi.value : undefined,
|
|
109
|
+
fundName: O.isSome(fundName) ? fundName.value : '',
|
|
110
|
+
promotedFundId: fund.fundId,
|
|
111
|
+
promotedFundsShown,
|
|
112
|
+
defaultFundUsiSet: O.toUndefined(SuperSelectionAppService.defaultFundUsi)
|
|
113
|
+
}),
|
|
114
|
+
miscService.trackClickPromotedTileAsync(fund.isPromotedDefault
|
|
115
|
+
? {
|
|
116
|
+
promotedDefault: {
|
|
117
|
+
fundId: fund.fundId
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
: {
|
|
121
|
+
promoted: {
|
|
122
|
+
fundId: fund.fundId
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
]);
|
|
110
126
|
promotedFundState.fundId = fund.fundId;
|
|
127
|
+
promotedFundState.isPromotedDefault = (_a = fund.isPromotedDefault) !== null && _a !== void 0 ? _a : false;
|
|
111
128
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
112
129
|
}
|
|
113
130
|
static get is() { return "sss-super-choice-page"; }
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '1.2.
|
|
263
|
+
const AppVersion = '1.2.29974';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -3301,6 +3301,18 @@ class SuperSelectionApi {
|
|
|
3301
3301
|
})
|
|
3302
3302
|
.json();
|
|
3303
3303
|
}
|
|
3304
|
+
async getCampaignConnectAsync() {
|
|
3305
|
+
return buildBackendApiClient()
|
|
3306
|
+
.url('compaign-connect')
|
|
3307
|
+
.get()
|
|
3308
|
+
.notFound(() => {
|
|
3309
|
+
throw new Error('Failed to fetch campaign connect.');
|
|
3310
|
+
})
|
|
3311
|
+
.json();
|
|
3312
|
+
}
|
|
3313
|
+
async clickPromotedTileAsync(payload) {
|
|
3314
|
+
return buildBackendApiClient().url('click-promoted-tile').post(payload).res();
|
|
3315
|
+
}
|
|
3304
3316
|
toSearchFilterQueryString(searchFilter) {
|
|
3305
3317
|
return (`search=${searchFilter.searchString}` +
|
|
3306
3318
|
(searchFilter.maxRecordCount > 0 ? '&maxRecordCount=' + searchFilter.maxRecordCount : ''));
|
|
@@ -3324,7 +3336,10 @@ const initialState = {
|
|
|
3324
3336
|
accountConfiguration: Option.none,
|
|
3325
3337
|
profileConfiguration: Option.none,
|
|
3326
3338
|
hasSuccessPageBeenAcknowledged: false,
|
|
3327
|
-
hasSuperSelectionBeenSubmitted: false
|
|
3339
|
+
hasSuperSelectionBeenSubmitted: false,
|
|
3340
|
+
campaignConnectEnabled: false,
|
|
3341
|
+
campaignConnectPromise: Option.none,
|
|
3342
|
+
campaignConnect: Option.none
|
|
3328
3343
|
};
|
|
3329
3344
|
|
|
3330
3345
|
class SuperSelectionAppService {
|
|
@@ -3361,11 +3376,29 @@ class SuperSelectionAppService {
|
|
|
3361
3376
|
return this._state.appBaseUrl.value;
|
|
3362
3377
|
}
|
|
3363
3378
|
get promotedFunds() {
|
|
3379
|
+
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3380
|
+
return this._state.campaignConnect.value.promotedFunds;
|
|
3381
|
+
}
|
|
3364
3382
|
if (Option.isNone(this._state.promotedFunds)) {
|
|
3365
3383
|
throw Error('Promoted Funds is not set');
|
|
3366
3384
|
}
|
|
3367
3385
|
return this._state.promotedFunds.value;
|
|
3368
3386
|
}
|
|
3387
|
+
get promotedDefaultFundPosition() {
|
|
3388
|
+
if (this._state.campaignConnectEnabled && Option.isSome(this._state.campaignConnect)) {
|
|
3389
|
+
return Option.fromNullable(this._state.campaignConnect.value.promotedDefaultFundPosition);
|
|
3390
|
+
}
|
|
3391
|
+
return Option.none;
|
|
3392
|
+
}
|
|
3393
|
+
get promotedFundsConfig() {
|
|
3394
|
+
return {
|
|
3395
|
+
shownFunds: this.promotedFunds,
|
|
3396
|
+
promotedDefaultFundPosition: Option.toUndefined(this.promotedDefaultFundPosition),
|
|
3397
|
+
promotedFundsConfigSource: Option.isSome(this._state.campaignConnect)
|
|
3398
|
+
? 'campaignConnect'
|
|
3399
|
+
: 'superSelection'
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3369
3402
|
get profileId() {
|
|
3370
3403
|
if (Option.isNone(this._state.profileId)) {
|
|
3371
3404
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -3403,6 +3436,15 @@ class SuperSelectionAppService {
|
|
|
3403
3436
|
this._state.profileConfiguration = Option.fromNullable(appStateResponse.profileConfiguration);
|
|
3404
3437
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3405
3438
|
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3439
|
+
if (this._state.campaignConnectEnabled) {
|
|
3440
|
+
this._state.campaignConnectPromise = Option.fromNullable(superSelectionApi.getCampaignConnectAsync());
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
async completeCampaignConnectRequest() {
|
|
3444
|
+
if (this._state.campaignConnectEnabled) {
|
|
3445
|
+
const campaignConnect = await _function.pipe(this._state.campaignConnectPromise, Option.getOrElse(() => superSelectionApi.getCampaignConnectAsync()));
|
|
3446
|
+
this._state.campaignConnect = Option.fromNullable(campaignConnect);
|
|
3447
|
+
}
|
|
3406
3448
|
}
|
|
3407
3449
|
}
|
|
3408
3450
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
@@ -3625,19 +3667,16 @@ const navigationService = new NavigationService();
|
|
|
3625
3667
|
const Consent = class {
|
|
3626
3668
|
constructor(hostRef) {
|
|
3627
3669
|
registerInstance(this, hostRef);
|
|
3628
|
-
this.promotedFunds = superSelectionAppService.promotedFunds;
|
|
3629
3670
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
3630
3671
|
}
|
|
3631
3672
|
componentDidLoad() {
|
|
3632
|
-
|
|
3633
|
-
return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync(detail);
|
|
3673
|
+
return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync({});
|
|
3634
3674
|
}
|
|
3635
3675
|
render() {
|
|
3636
3676
|
return (h("div", null, h("div", { class: "text-2xl sm:text-3xl font-bold text-center leading-8" }, "Important information about super"), h("div", { class: "sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7 sm:leading-8" }, "The choice of superannuation fund is an important personal financial decision. Next, you\u2019ll be asked to nominate a super fund to receive your employer contributions."), h("div", { class: "flex justify-center mt-8 sm:mt-12" }, h("div", { class: "border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg" }, h("div", { class: "sm:text-lg font-bold leading-6" }, "By clicking \u201CContinue\u201D you acknowledge that:"), h("ul", { class: "list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6" }, h("li", null, "Flare (we/us) provides this paperless employee management service, will feature superannuation funds and offer you employee benefits that you may be interested in;"), h("li", null, "all content contained in the following pages does not take into account any of your objectives, financial situation or needs and does not constitute financial product advice;"), h("li", null, "in featuring any superannuation funds, we, the technology partner you are accessing us via, or your employer, are not providing any opinion or recommendation (actual or implied) in relation to the suitability or appropriateness of the featured funds;"), h("li", null, "if you do choose one of the featured superannuation funds, we and our associates will normally receive a fee for you doing so;"), h("li", null, "in the event that you choose one of the featured superannuation funds, we may pass on your personal information and TFN to a related party for the purpose of completing your chosen fund's application form.")), h("sss-button", { fillWidth: true, promiseFn: () => this.handleSuperFundDisclaimerAccepted() }, "Continue")))));
|
|
3637
3677
|
}
|
|
3638
3678
|
async handleSuperFundDisclaimerAccepted() {
|
|
3639
|
-
|
|
3640
|
-
await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync(detail);
|
|
3679
|
+
await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync({});
|
|
3641
3680
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
3642
3681
|
}
|
|
3643
3682
|
};
|
|
@@ -3827,10 +3866,7 @@ const DefaultFund = class {
|
|
|
3827
3866
|
history: this.history,
|
|
3828
3867
|
fundName: `Employer’s default fund`,
|
|
3829
3868
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
3830
|
-
await customFundChoiceApi.submitDefaultFundChoiceAsync({
|
|
3831
|
-
standardChoiceFormSignature,
|
|
3832
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
3833
|
-
});
|
|
3869
|
+
await customFundChoiceApi.submitDefaultFundChoiceAsync(Object.assign({ standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig));
|
|
3834
3870
|
}
|
|
3835
3871
|
});
|
|
3836
3872
|
}
|
|
@@ -4671,14 +4707,7 @@ const MyOwnFund = class {
|
|
|
4671
4707
|
history: this.history,
|
|
4672
4708
|
fundName: this.getOrError(state$1.myOwnFundForm.fundName),
|
|
4673
4709
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
4674
|
-
const customFundChoiceDto = {
|
|
4675
|
-
fundUsi: this.getOrError(state$1.myOwnFundForm.fundUsi),
|
|
4676
|
-
memberNumber: this.getOrError(state$1.myOwnFundForm.memberNumber),
|
|
4677
|
-
memberFirstName: this.getOrError(state$1.myOwnFundForm.memberFirstName),
|
|
4678
|
-
memberFamilyName: this.getOrError(state$1.myOwnFundForm.memberFamilyName),
|
|
4679
|
-
standardChoiceFormSignature,
|
|
4680
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
4681
|
-
};
|
|
4710
|
+
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);
|
|
4682
4711
|
await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
|
|
4683
4712
|
}
|
|
4684
4713
|
});
|
|
@@ -4809,16 +4838,23 @@ class PromotedFundChoiceApi {
|
|
|
4809
4838
|
})
|
|
4810
4839
|
.text();
|
|
4811
4840
|
}
|
|
4841
|
+
async submitDefaultChoiceAsync(dto) {
|
|
4842
|
+
return buildBackendApiClient()
|
|
4843
|
+
.url('super-choice/promoted-fund/default')
|
|
4844
|
+
.post(dto)
|
|
4845
|
+
.badRequest(() => {
|
|
4846
|
+
throw new Error('Failed to process Promoted Default Fund choice request');
|
|
4847
|
+
})
|
|
4848
|
+
.text();
|
|
4849
|
+
}
|
|
4812
4850
|
}
|
|
4813
4851
|
const promotedFundChoiceApi = new PromotedFundChoiceApi();
|
|
4814
4852
|
|
|
4815
4853
|
const initial$1 = {
|
|
4816
|
-
fundId: ''
|
|
4854
|
+
fundId: '',
|
|
4855
|
+
isPromotedDefault: false
|
|
4817
4856
|
};
|
|
4818
|
-
const { state: state$2 } = createStore(initial$1);
|
|
4819
|
-
function reset$1() {
|
|
4820
|
-
state$2.fundId = initial$1.fundId;
|
|
4821
|
-
}
|
|
4857
|
+
const { state: state$2, reset: reset$1 } = createStore(initial$1);
|
|
4822
4858
|
|
|
4823
4859
|
class PromotedFundJoinV1IFrameBuilder {
|
|
4824
4860
|
constructor() {
|
|
@@ -4854,16 +4890,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
4854
4890
|
navigationService.navigateInternallyToStandardChoice({
|
|
4855
4891
|
history,
|
|
4856
4892
|
fundName: Option.isSome(fundName) ? fundName.value : '',
|
|
4857
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
|
|
4858
|
-
fundId: promotedFundId,
|
|
4859
|
-
memberNumber: data.memberNumber,
|
|
4860
|
-
memberFirstName: data.memberFirstName,
|
|
4861
|
-
memberFamilyName: data.memberFamilyName,
|
|
4862
|
-
usi: data.usi.replace(/ /g, ''),
|
|
4863
|
-
standardChoiceFormSignature,
|
|
4864
|
-
shownFunds: superSelectionAppService.promotedFunds,
|
|
4865
|
-
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4866
|
-
}),
|
|
4893
|
+
handleSubmitFn: (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)),
|
|
4867
4894
|
promotedFundId
|
|
4868
4895
|
});
|
|
4869
4896
|
break;
|
|
@@ -4964,7 +4991,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4964
4991
|
build(iframe$1, history) {
|
|
4965
4992
|
if (!(iframe$1 === null || iframe$1 === void 0 ? void 0 : iframe$1.contentDocument))
|
|
4966
4993
|
return;
|
|
4967
|
-
const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: state$2.fundId, authToken: superSelectionAppService.jwt });
|
|
4994
|
+
const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: state$2.fundId, authToken: superSelectionAppService.jwt, employerDefault: state$2.isPromotedDefault });
|
|
4968
4995
|
const handleMessage = (event) => {
|
|
4969
4996
|
const { data } = event;
|
|
4970
4997
|
if (!data) {
|
|
@@ -4983,17 +5010,10 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4983
5010
|
navigationService.navigateInternallyToStandardChoice({
|
|
4984
5011
|
history,
|
|
4985
5012
|
fundName: Option.isSome(fundName) ? fundName.value : '',
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
memberFirstName: data.memberFirstName,
|
|
4990
|
-
memberFamilyName: data.memberFamilyName,
|
|
4991
|
-
usi: data.usi.replace(/ /g, ''),
|
|
4992
|
-
standardChoiceFormSignature,
|
|
4993
|
-
shownFunds: superSelectionAppService.promotedFunds,
|
|
4994
|
-
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4995
|
-
}),
|
|
4996
|
-
promotedFundId
|
|
5013
|
+
promotedFundId,
|
|
5014
|
+
handleSubmitFn: state$2.isPromotedDefault
|
|
5015
|
+
? (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: promotedFundId, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig))
|
|
5016
|
+
: (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))
|
|
4997
5017
|
});
|
|
4998
5018
|
break;
|
|
4999
5019
|
}
|
|
@@ -5030,9 +5050,16 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
5030
5050
|
const value = postData[prop];
|
|
5031
5051
|
if (value !== undefined) {
|
|
5032
5052
|
const input = document.createElement('input');
|
|
5033
|
-
input.type = 'hidden';
|
|
5034
5053
|
input.name = prop;
|
|
5035
|
-
|
|
5054
|
+
if (typeof value === 'boolean') {
|
|
5055
|
+
input.type = 'checkbox';
|
|
5056
|
+
input.checked = value;
|
|
5057
|
+
input.style.visibility = 'hidden';
|
|
5058
|
+
}
|
|
5059
|
+
else {
|
|
5060
|
+
input.type = 'hidden';
|
|
5061
|
+
input.value = value;
|
|
5062
|
+
}
|
|
5036
5063
|
form.append(input);
|
|
5037
5064
|
}
|
|
5038
5065
|
}
|
|
@@ -5095,8 +5122,7 @@ const SelfManagedFund = class {
|
|
|
5095
5122
|
history: this.history,
|
|
5096
5123
|
fundName: 'Self-managed super fund',
|
|
5097
5124
|
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
5098
|
-
const requestDto = {
|
|
5099
|
-
smsfChoice: {
|
|
5125
|
+
const requestDto = Object.assign({ smsfChoice: {
|
|
5100
5126
|
abn: state$1.selfManagedFundForm.fundAbn,
|
|
5101
5127
|
fundName: state$1.selfManagedFundForm.fundName,
|
|
5102
5128
|
fundAddress: {
|
|
@@ -5112,10 +5138,7 @@ const SelfManagedFund = class {
|
|
|
5112
5138
|
electronicServiceAddress: state$1.selfManagedFundForm.fundEsa,
|
|
5113
5139
|
memberFirstName: state$1.selfManagedFundForm.memberFirstName,
|
|
5114
5140
|
memberFamilyName: state$1.selfManagedFundForm.memberFamilyName
|
|
5115
|
-
},
|
|
5116
|
-
standardChoiceFormSignature,
|
|
5117
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
5118
|
-
};
|
|
5141
|
+
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
5119
5142
|
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
|
|
5120
5143
|
}
|
|
5121
5144
|
});
|
|
@@ -5485,14 +5508,7 @@ class SlateIFrameBuilder {
|
|
|
5485
5508
|
navigationService.navigateInternallyToStandardChoice({
|
|
5486
5509
|
history,
|
|
5487
5510
|
fundName: fund$6.name,
|
|
5488
|
-
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
|
|
5489
|
-
memberNumber: data.memberNumber,
|
|
5490
|
-
memberFirstName: data.memberFirstName,
|
|
5491
|
-
memberFamilyName: data.memberFamilyName,
|
|
5492
|
-
standardChoiceFormSignature,
|
|
5493
|
-
shownFunds: superSelectionAppService.promotedFunds,
|
|
5494
|
-
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5495
|
-
}),
|
|
5511
|
+
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync(Object.assign({ memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, superSelectionAppService.promotedFundsConfig)),
|
|
5496
5512
|
promotedFundId: fund$6.fundId
|
|
5497
5513
|
});
|
|
5498
5514
|
break;
|
|
@@ -5651,13 +5667,21 @@ const SuperChoiceItemTop = class {
|
|
|
5651
5667
|
}
|
|
5652
5668
|
};
|
|
5653
5669
|
|
|
5670
|
+
class MiscService {
|
|
5671
|
+
trackClickPromotedTileAsync(payload) {
|
|
5672
|
+
return superSelectionApi.clickPromotedTileAsync(payload);
|
|
5673
|
+
}
|
|
5674
|
+
}
|
|
5675
|
+
const miscService = new MiscService();
|
|
5676
|
+
|
|
5654
5677
|
const SuperChoicePage = class {
|
|
5655
5678
|
constructor(hostRef) {
|
|
5656
5679
|
registerInstance(this, hostRef);
|
|
5657
5680
|
this.promotedFunds = this.getPromotedFunds();
|
|
5658
5681
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
5659
5682
|
}
|
|
5660
|
-
componentDidLoad() {
|
|
5683
|
+
async componentDidLoad() {
|
|
5684
|
+
await superSelectionAppService.completeCampaignConnectRequest();
|
|
5661
5685
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
5662
5686
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
5663
5687
|
promotedFundsShown,
|
|
@@ -5698,17 +5722,32 @@ const SuperChoicePage = class {
|
|
|
5698
5722
|
return fundTiles;
|
|
5699
5723
|
}
|
|
5700
5724
|
async handleJoinSuperClickAsync(fund) {
|
|
5725
|
+
var _a;
|
|
5701
5726
|
const promotedFundsShown = superSelectionAppService.promotedFunds;
|
|
5702
5727
|
const fundUsi = getFundUsiByFundId(fund.fundId);
|
|
5703
5728
|
const fundName = getFundNameByFundId(fund.fundId);
|
|
5704
|
-
await
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5729
|
+
await Promise.all([
|
|
5730
|
+
this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5731
|
+
fundUsi: Option.isSome(fundUsi) ? fundUsi.value : undefined,
|
|
5732
|
+
fundName: Option.isSome(fundName) ? fundName.value : '',
|
|
5733
|
+
promotedFundId: fund.fundId,
|
|
5734
|
+
promotedFundsShown,
|
|
5735
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5736
|
+
}),
|
|
5737
|
+
miscService.trackClickPromotedTileAsync(fund.isPromotedDefault
|
|
5738
|
+
? {
|
|
5739
|
+
promotedDefault: {
|
|
5740
|
+
fundId: fund.fundId
|
|
5741
|
+
}
|
|
5742
|
+
}
|
|
5743
|
+
: {
|
|
5744
|
+
promoted: {
|
|
5745
|
+
fundId: fund.fundId
|
|
5746
|
+
}
|
|
5747
|
+
})
|
|
5748
|
+
]);
|
|
5711
5749
|
state$2.fundId = fund.fundId;
|
|
5750
|
+
state$2.isPromotedDefault = (_a = fund.isPromotedDefault) !== null && _a !== void 0 ? _a : false;
|
|
5712
5751
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
5713
5752
|
}
|
|
5714
5753
|
static get assetsDirs() { return ["assets"]; }
|