@flarehr/apollo-super-selection 3.33.55127 → 3.36.55466
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-bfe1d719.entry.js → p-0f661d83.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-f49bd303.system.entry.js → p-fd83f589.system.entry.js} +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +47 -25
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +4 -3
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +4 -2
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +4 -2
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +5 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +8 -4
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +15 -6
- package/dist/lib/esm/fl-button_46.entry.js +47 -25
- package/dist/lib/esm-es5/fl-button_46.entry.js +9 -9
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +15 -10
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -265,7 +265,7 @@ class TapSubscriber extends delay.Subscriber {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
const AppVersion = '3.
|
|
268
|
+
const AppVersion = '3.36.55466';
|
|
269
269
|
|
|
270
270
|
// -------------------------------------------------------------------------------------
|
|
271
271
|
// guards
|
|
@@ -4078,14 +4078,18 @@ class EventTrackingService {
|
|
|
4078
4078
|
}
|
|
4079
4079
|
});
|
|
4080
4080
|
}
|
|
4081
|
-
async TrackMyOwnSuperFundDetailViewedAsync() {
|
|
4081
|
+
async TrackMyOwnSuperFundDetailViewedAsync(detail) {
|
|
4082
4082
|
return this.trackEventAsync({
|
|
4083
|
-
SuperFundDetailViewed:
|
|
4083
|
+
SuperFundDetailViewed: {
|
|
4084
|
+
MyOwnFund: detail
|
|
4085
|
+
}
|
|
4084
4086
|
});
|
|
4085
4087
|
}
|
|
4086
|
-
async TrackSmsfSuperFundDetailViewedAsync() {
|
|
4088
|
+
async TrackSmsfSuperFundDetailViewedAsync(detail) {
|
|
4087
4089
|
return this.trackEventAsync({
|
|
4088
|
-
SuperFundDetailViewed:
|
|
4090
|
+
SuperFundDetailViewed: {
|
|
4091
|
+
Smsf: detail
|
|
4092
|
+
}
|
|
4089
4093
|
});
|
|
4090
4094
|
}
|
|
4091
4095
|
async TrackDefaultSuperFundDetailViewedAsync(detail) {
|
|
@@ -4208,20 +4212,21 @@ const DefaultFund = class {
|
|
|
4208
4212
|
componentDidLoad() {
|
|
4209
4213
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
4210
4214
|
fundUsi: this.defaultFund.usi,
|
|
4211
|
-
fundName: this.defaultFund.productName
|
|
4215
|
+
fundName: this.defaultFund.productName,
|
|
4216
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4212
4217
|
});
|
|
4213
4218
|
}
|
|
4214
4219
|
render() {
|
|
4215
4220
|
const NoDefaultFundBlock = () => (index.h("div", { class: "card p-4" }, index.h("p", { class: "font-weight-bold" }, "No Default Fund"), index.h("p", { class: "mb-4 small" }, "It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund.")));
|
|
4216
4221
|
const DefaultFundBlock = (props) => [
|
|
4217
|
-
index.h("div", { class: "card p-4" }, index.h("p", { class: "font-weight-bold" }, "Default Fund"), index.h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and
|
|
4222
|
+
index.h("div", { class: "card p-4" }, index.h("p", { class: "font-weight-bold" }, "Default Fund"), index.h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."), index.h("p", { class: "font-weight-bold mt-3" }, "Default Fund Name"), index.h("p", null, props.defaultFundName)),
|
|
4218
4223
|
index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4219
4224
|
state.defaultFundForm = Object.assign(Object.assign({}, state.defaultFundForm), event.detail);
|
|
4220
4225
|
} })
|
|
4221
4226
|
];
|
|
4222
4227
|
return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("sss-custom-fund", { class: "flex-fill" }, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
4223
4228
|
'was-validated': this.formState === 'validated'
|
|
4224
|
-
}, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (index.h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (index.h(NoDefaultFundBlock, null))), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "
|
|
4229
|
+
}, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (index.h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (index.h(NoDefaultFundBlock, null))), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Save and continue")))))))));
|
|
4225
4230
|
}
|
|
4226
4231
|
async handleSubmitForm() {
|
|
4227
4232
|
if (this.isInvalidDefaultFund) {
|
|
@@ -4267,7 +4272,9 @@ const MyOwnFund = class {
|
|
|
4267
4272
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
4268
4273
|
}
|
|
4269
4274
|
componentDidLoad() {
|
|
4270
|
-
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync(
|
|
4275
|
+
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
4276
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4277
|
+
});
|
|
4271
4278
|
}
|
|
4272
4279
|
render() {
|
|
4273
4280
|
return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("sss-custom-fund", { class: "flex-fill" }, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
@@ -4277,7 +4284,7 @@ const MyOwnFund = class {
|
|
|
4277
4284
|
this.isNotAllInformationProvidedMessageVisible = false;
|
|
4278
4285
|
} })), index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4279
4286
|
state.myOwnFundForm = Object.assign(Object.assign({}, state.myOwnFundForm), { standardChoiceFormSignature: fromNullable(event.detail.standardChoiceFormSignature) });
|
|
4280
|
-
} })), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), this.isNotAllInformationProvidedMessageVisible && (index.h("div", { class: "mt-4 alert alert-danger", role: "alert" }, "All fields are required to complete submission. Make sure you have selected a fund.")), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "
|
|
4287
|
+
} })), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), this.isNotAllInformationProvidedMessageVisible && (index.h("div", { class: "mt-4 alert alert-danger", role: "alert" }, "All fields are required to complete submission. Make sure you have selected a fund.")), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Save and continue"))))))));
|
|
4281
4288
|
}
|
|
4282
4289
|
async handleSubmitForm() {
|
|
4283
4290
|
this.formState = 'validated';
|
|
@@ -4380,8 +4387,8 @@ class PromotedFundJoinIFrameBuilder {
|
|
|
4380
4387
|
return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
|
|
4381
4388
|
};
|
|
4382
4389
|
}
|
|
4383
|
-
build(iframe, history) {
|
|
4384
|
-
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
|
|
4390
|
+
build(iframe$1, history) {
|
|
4391
|
+
if (!(iframe$1 === null || iframe$1 === void 0 ? void 0 : iframe$1.contentDocument))
|
|
4385
4392
|
return;
|
|
4386
4393
|
const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
|
|
4387
4394
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
@@ -4413,14 +4420,18 @@ class PromotedFundJoinIFrameBuilder {
|
|
|
4413
4420
|
if (data.sender === 'promoted-fund-join') {
|
|
4414
4421
|
switch (data.type) {
|
|
4415
4422
|
case 'contentResized':
|
|
4416
|
-
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
4417
|
-
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
4423
|
+
iframe$1.height = data.height > 0 ? data.height : iframe$1.height;
|
|
4424
|
+
iframe$1.width = data.width > 0 ? data.width : iframe$1.width;
|
|
4425
|
+
break;
|
|
4426
|
+
case 'pageNavigated':
|
|
4427
|
+
window.scroll(iframe$1.offsetLeft, iframe$1.offsetTop);
|
|
4428
|
+
iframe.navigation(window.location.href);
|
|
4418
4429
|
break;
|
|
4419
4430
|
}
|
|
4420
4431
|
}
|
|
4421
4432
|
};
|
|
4422
4433
|
window.addEventListener('message', handleMessage);
|
|
4423
|
-
const iframeDoc = iframe.contentDocument;
|
|
4434
|
+
const iframeDoc = iframe$1.contentDocument;
|
|
4424
4435
|
iframeDoc.open();
|
|
4425
4436
|
const form = iframeDoc.createElement('form');
|
|
4426
4437
|
form.method = 'POST';
|
|
@@ -4499,7 +4510,7 @@ const PromotedFundStandardChoicePage = class {
|
|
|
4499
4510
|
}, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4500
4511
|
state$1.standardChoiceFormSignature =
|
|
4501
4512
|
event.detail.standardChoiceFormSignature;
|
|
4502
|
-
} })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "
|
|
4513
|
+
} })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Save and continue")))))))))));
|
|
4503
4514
|
}
|
|
4504
4515
|
async handleSubmitForm() {
|
|
4505
4516
|
this.formState = 'validated';
|
|
@@ -5113,7 +5124,9 @@ const SelfManagedFund = class {
|
|
|
5113
5124
|
};
|
|
5114
5125
|
}
|
|
5115
5126
|
componentDidLoad() {
|
|
5116
|
-
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync(
|
|
5127
|
+
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
5128
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
5129
|
+
});
|
|
5117
5130
|
}
|
|
5118
5131
|
render() {
|
|
5119
5132
|
return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("sss-custom-fund", { class: "flex-fill" }, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
@@ -5122,7 +5135,7 @@ const SelfManagedFund = class {
|
|
|
5122
5135
|
state.selfManagedFundForm = Object.assign(Object.assign({}, state.selfManagedFundForm), event.detail);
|
|
5123
5136
|
} })), index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5124
5137
|
state.selfManagedFundForm = Object.assign(Object.assign({}, state.selfManagedFundForm), event.detail);
|
|
5125
|
-
} }), this.showSmsfNotSupported && (index.h("sss-smsf-not-supported-dialog", { ref: (el) => (this.notSupportedDialog = el), onContinue: this.success }))), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "
|
|
5138
|
+
} }), this.showSmsfNotSupported && (index.h("sss-smsf-not-supported-dialog", { ref: (el) => (this.notSupportedDialog = el), onContinue: this.success }))), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Save and continue"))))))));
|
|
5126
5139
|
}
|
|
5127
5140
|
componentDidRender() {
|
|
5128
5141
|
var _a;
|
|
@@ -5543,7 +5556,7 @@ const SlateStandardChoicePage = class {
|
|
|
5543
5556
|
'was-validated': this.formState === 'validated'
|
|
5544
5557
|
}, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5545
5558
|
state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
|
|
5546
|
-
} })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("stencil-route-link", { url: "/" }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back"))))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "
|
|
5559
|
+
} })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("stencil-route-link", { url: "/" }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back"))))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Save and continue")))))))))));
|
|
5547
5560
|
}
|
|
5548
5561
|
async handleSubmitForm() {
|
|
5549
5562
|
this.formState = 'validated';
|
|
@@ -5703,9 +5716,9 @@ const SuperChoicePage = class {
|
|
|
5703
5716
|
}
|
|
5704
5717
|
componentDidLoad() {
|
|
5705
5718
|
iframe.appReady();
|
|
5706
|
-
const
|
|
5719
|
+
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
5707
5720
|
this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
5708
|
-
|
|
5721
|
+
promotedFundsShown
|
|
5709
5722
|
});
|
|
5710
5723
|
}
|
|
5711
5724
|
async componentWillLoad() {
|
|
@@ -5797,27 +5810,36 @@ const SuperChoicePage = class {
|
|
|
5797
5810
|
return fundTiles;
|
|
5798
5811
|
}
|
|
5799
5812
|
async handleJoinSuperClickAsync(fund) {
|
|
5813
|
+
const promotedFundsShown = superSelectionAppService.promotedFunds;
|
|
5800
5814
|
if (fund.fundId === Slate.Id) {
|
|
5801
5815
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5802
5816
|
fundUsi: Slate.Usi,
|
|
5803
|
-
fundName: Slate.Name
|
|
5817
|
+
fundName: Slate.Name,
|
|
5818
|
+
promotedFundId: Slate.Id,
|
|
5819
|
+
promotedFundsShown
|
|
5804
5820
|
});
|
|
5805
5821
|
}
|
|
5806
5822
|
else if (fund.fundId === QSuper.Id) {
|
|
5807
5823
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5808
5824
|
fundUsi: QSuper.Usi,
|
|
5809
|
-
fundName: QSuper.Name
|
|
5825
|
+
fundName: QSuper.Name,
|
|
5826
|
+
promotedFundId: QSuper.Id,
|
|
5827
|
+
promotedFundsShown
|
|
5810
5828
|
});
|
|
5811
5829
|
}
|
|
5812
5830
|
else if (fund.fundId === AustralianRetirementTrust.Id) {
|
|
5813
5831
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5814
|
-
fundName: AustralianRetirementTrust.Name
|
|
5832
|
+
fundName: AustralianRetirementTrust.Name,
|
|
5833
|
+
promotedFundId: AustralianRetirementTrust.Id,
|
|
5834
|
+
promotedFundsShown
|
|
5815
5835
|
});
|
|
5816
5836
|
state$1.fundId = fund.fundId;
|
|
5817
5837
|
}
|
|
5818
5838
|
else if (fund.fundId === Aware.Id) {
|
|
5819
5839
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5820
|
-
fundName: Aware.Name
|
|
5840
|
+
fundName: Aware.Name,
|
|
5841
|
+
promotedFundId: Aware.Id,
|
|
5842
|
+
promotedFundsShown
|
|
5821
5843
|
});
|
|
5822
5844
|
state$1.fundId = fund.fundId;
|
|
5823
5845
|
}
|
|
@@ -34,7 +34,8 @@ export class DefaultFund {
|
|
|
34
34
|
componentDidLoad() {
|
|
35
35
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
36
36
|
fundUsi: this.defaultFund.usi,
|
|
37
|
-
fundName: this.defaultFund.productName
|
|
37
|
+
fundName: this.defaultFund.productName,
|
|
38
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
render() {
|
|
@@ -44,7 +45,7 @@ export class DefaultFund {
|
|
|
44
45
|
const DefaultFundBlock = (props) => [
|
|
45
46
|
h("div", { class: "card p-4" },
|
|
46
47
|
h("p", { class: "font-weight-bold" }, "Default Fund"),
|
|
47
|
-
h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and
|
|
48
|
+
h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),
|
|
48
49
|
h("p", { class: "font-weight-bold mt-3" }, "Default Fund Name"),
|
|
49
50
|
h("p", null, props.defaultFundName)),
|
|
50
51
|
h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
@@ -65,7 +66,7 @@ export class DefaultFund {
|
|
|
65
66
|
h("span", null, "Back")))),
|
|
66
67
|
h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (h("div", { class: "ml-2" },
|
|
67
68
|
h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() },
|
|
68
|
-
h("span", null, "
|
|
69
|
+
h("span", null, "Save and continue")))))))));
|
|
69
70
|
}
|
|
70
71
|
async handleSubmitForm() {
|
|
71
72
|
if (this.isInvalidDefaultFund) {
|
|
@@ -14,7 +14,9 @@ export class MyOwnFund {
|
|
|
14
14
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
15
15
|
}
|
|
16
16
|
componentDidLoad() {
|
|
17
|
-
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync(
|
|
17
|
+
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
18
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
19
|
+
});
|
|
18
20
|
}
|
|
19
21
|
render() {
|
|
20
22
|
return (h(Host, { class: "d-flex flex-fill" },
|
|
@@ -43,7 +45,7 @@ export class MyOwnFund {
|
|
|
43
45
|
h("div", { class: "flex-grow-1 w-50" },
|
|
44
46
|
h("div", { class: "ml-2" },
|
|
45
47
|
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
46
|
-
h("span", null, "
|
|
48
|
+
h("span", null, "Save and continue"))))))));
|
|
47
49
|
}
|
|
48
50
|
async handleSubmitForm() {
|
|
49
51
|
this.formState = 'validated';
|
|
@@ -16,7 +16,9 @@ export class SelfManagedFund {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
componentDidLoad() {
|
|
19
|
-
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync(
|
|
19
|
+
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
20
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
21
|
+
});
|
|
20
22
|
}
|
|
21
23
|
render() {
|
|
22
24
|
return (h(Host, { class: "d-flex flex-fill" },
|
|
@@ -44,7 +46,7 @@ export class SelfManagedFund {
|
|
|
44
46
|
h("div", { class: "flex-grow-1 w-50" },
|
|
45
47
|
h("div", { class: "ml-2" },
|
|
46
48
|
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
47
|
-
h("span", null, "
|
|
49
|
+
h("span", null, "Save and continue"))))))));
|
|
48
50
|
}
|
|
49
51
|
componentDidRender() {
|
|
50
52
|
var _a;
|
|
@@ -23,7 +23,7 @@ export class PromotedFundStandardChoicePage {
|
|
|
23
23
|
h("div", { class: "flex-grow-1 w-50" },
|
|
24
24
|
h("div", { class: "ml-2" },
|
|
25
25
|
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
26
|
-
h("span", null, "
|
|
26
|
+
h("span", null, "Save and continue")))))))))));
|
|
27
27
|
}
|
|
28
28
|
async handleSubmitForm() {
|
|
29
29
|
this.formState = 'validated';
|
|
@@ -2,6 +2,7 @@ import navigationService from '../../../services/navigation.service';
|
|
|
2
2
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
3
3
|
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
4
4
|
import promotedFundState from '../promoted-fund.store';
|
|
5
|
+
import iframeUtil from '../../../../../utils/iframe';
|
|
5
6
|
class PromotedFundJoinIFrameBuilder {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
|
|
@@ -51,6 +52,10 @@ class PromotedFundJoinIFrameBuilder {
|
|
|
51
52
|
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
52
53
|
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
53
54
|
break;
|
|
55
|
+
case 'pageNavigated':
|
|
56
|
+
window.scroll(iframe.offsetLeft, iframe.offsetTop);
|
|
57
|
+
iframeUtil.navigation(window.location.href);
|
|
58
|
+
break;
|
|
54
59
|
default:
|
|
55
60
|
break;
|
|
56
61
|
}
|
|
@@ -28,7 +28,7 @@ export class SlateStandardChoicePage {
|
|
|
28
28
|
h("div", { class: "flex-grow-1 w-50" },
|
|
29
29
|
h("div", { class: "ml-2" },
|
|
30
30
|
h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() },
|
|
31
|
-
h("span", null, "
|
|
31
|
+
h("span", null, "Save and continue")))))))))));
|
|
32
32
|
}
|
|
33
33
|
async handleSubmitForm() {
|
|
34
34
|
this.formState = 'validated';
|
package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js
CHANGED
|
@@ -38,14 +38,18 @@ export class EventTrackingService {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
async TrackMyOwnSuperFundDetailViewedAsync() {
|
|
41
|
+
async TrackMyOwnSuperFundDetailViewedAsync(detail) {
|
|
42
42
|
return this.trackEventAsync({
|
|
43
|
-
SuperFundDetailViewed:
|
|
43
|
+
SuperFundDetailViewed: {
|
|
44
|
+
MyOwnFund: detail
|
|
45
|
+
}
|
|
44
46
|
});
|
|
45
47
|
}
|
|
46
|
-
async TrackSmsfSuperFundDetailViewedAsync() {
|
|
48
|
+
async TrackSmsfSuperFundDetailViewedAsync(detail) {
|
|
47
49
|
return this.trackEventAsync({
|
|
48
|
-
SuperFundDetailViewed:
|
|
50
|
+
SuperFundDetailViewed: {
|
|
51
|
+
Smsf: detail
|
|
52
|
+
}
|
|
49
53
|
});
|
|
50
54
|
}
|
|
51
55
|
async TrackDefaultSuperFundDetailViewedAsync(detail) {
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -22,9 +22,9 @@ export class SuperChoicePage {
|
|
|
22
22
|
}
|
|
23
23
|
componentDidLoad() {
|
|
24
24
|
iframe.appReady();
|
|
25
|
-
const
|
|
25
|
+
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
26
26
|
this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
27
|
-
|
|
27
|
+
promotedFundsShown
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
async componentWillLoad() {
|
|
@@ -183,27 +183,36 @@ export class SuperChoicePage {
|
|
|
183
183
|
return fundTiles;
|
|
184
184
|
}
|
|
185
185
|
async handleJoinSuperClickAsync(fund) {
|
|
186
|
+
const promotedFundsShown = SuperSelectionAppService.promotedFunds;
|
|
186
187
|
if (fund.fundId === constants.Slate.Id) {
|
|
187
188
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
188
189
|
fundUsi: constants.Slate.Usi,
|
|
189
|
-
fundName: constants.Slate.Name
|
|
190
|
+
fundName: constants.Slate.Name,
|
|
191
|
+
promotedFundId: constants.Slate.Id,
|
|
192
|
+
promotedFundsShown
|
|
190
193
|
});
|
|
191
194
|
}
|
|
192
195
|
else if (fund.fundId === constants.QSuper.Id) {
|
|
193
196
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
194
197
|
fundUsi: constants.QSuper.Usi,
|
|
195
|
-
fundName: constants.QSuper.Name
|
|
198
|
+
fundName: constants.QSuper.Name,
|
|
199
|
+
promotedFundId: constants.QSuper.Id,
|
|
200
|
+
promotedFundsShown
|
|
196
201
|
});
|
|
197
202
|
}
|
|
198
203
|
else if (fund.fundId === constants.AustralianRetirementTrust.Id) {
|
|
199
204
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
200
|
-
fundName: constants.AustralianRetirementTrust.Name
|
|
205
|
+
fundName: constants.AustralianRetirementTrust.Name,
|
|
206
|
+
promotedFundId: constants.AustralianRetirementTrust.Id,
|
|
207
|
+
promotedFundsShown
|
|
201
208
|
});
|
|
202
209
|
promotedFundState.fundId = fund.fundId;
|
|
203
210
|
}
|
|
204
211
|
else if (fund.fundId === constants.Aware.Id) {
|
|
205
212
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
206
|
-
fundName: constants.Aware.Name
|
|
213
|
+
fundName: constants.Aware.Name,
|
|
214
|
+
promotedFundId: constants.Aware.Id,
|
|
215
|
+
promotedFundsShown
|
|
207
216
|
});
|
|
208
217
|
promotedFundState.fundId = fund.fundId;
|
|
209
218
|
}
|
|
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
const AppVersion = '3.
|
|
264
|
+
const AppVersion = '3.36.55466';
|
|
265
265
|
|
|
266
266
|
// -------------------------------------------------------------------------------------
|
|
267
267
|
// guards
|
|
@@ -4074,14 +4074,18 @@ class EventTrackingService {
|
|
|
4074
4074
|
}
|
|
4075
4075
|
});
|
|
4076
4076
|
}
|
|
4077
|
-
async TrackMyOwnSuperFundDetailViewedAsync() {
|
|
4077
|
+
async TrackMyOwnSuperFundDetailViewedAsync(detail) {
|
|
4078
4078
|
return this.trackEventAsync({
|
|
4079
|
-
SuperFundDetailViewed:
|
|
4079
|
+
SuperFundDetailViewed: {
|
|
4080
|
+
MyOwnFund: detail
|
|
4081
|
+
}
|
|
4080
4082
|
});
|
|
4081
4083
|
}
|
|
4082
|
-
async TrackSmsfSuperFundDetailViewedAsync() {
|
|
4084
|
+
async TrackSmsfSuperFundDetailViewedAsync(detail) {
|
|
4083
4085
|
return this.trackEventAsync({
|
|
4084
|
-
SuperFundDetailViewed:
|
|
4086
|
+
SuperFundDetailViewed: {
|
|
4087
|
+
Smsf: detail
|
|
4088
|
+
}
|
|
4085
4089
|
});
|
|
4086
4090
|
}
|
|
4087
4091
|
async TrackDefaultSuperFundDetailViewedAsync(detail) {
|
|
@@ -4204,20 +4208,21 @@ const DefaultFund = class {
|
|
|
4204
4208
|
componentDidLoad() {
|
|
4205
4209
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
4206
4210
|
fundUsi: this.defaultFund.usi,
|
|
4207
|
-
fundName: this.defaultFund.productName
|
|
4211
|
+
fundName: this.defaultFund.productName,
|
|
4212
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4208
4213
|
});
|
|
4209
4214
|
}
|
|
4210
4215
|
render() {
|
|
4211
4216
|
const NoDefaultFundBlock = () => (h("div", { class: "card p-4" }, h("p", { class: "font-weight-bold" }, "No Default Fund"), h("p", { class: "mb-4 small" }, "It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund.")));
|
|
4212
4217
|
const DefaultFundBlock = (props) => [
|
|
4213
|
-
h("div", { class: "card p-4" }, h("p", { class: "font-weight-bold" }, "Default Fund"), h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and
|
|
4218
|
+
h("div", { class: "card p-4" }, h("p", { class: "font-weight-bold" }, "Default Fund"), h("p", { class: "mb-4 small" }, "Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."), h("p", { class: "font-weight-bold mt-3" }, "Default Fund Name"), h("p", null, props.defaultFundName)),
|
|
4214
4219
|
h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4215
4220
|
state.defaultFundForm = Object.assign(Object.assign({}, state.defaultFundForm), event.detail);
|
|
4216
4221
|
} })
|
|
4217
4222
|
];
|
|
4218
4223
|
return (h(Host, { class: "d-flex flex-fill" }, h("sss-custom-fund", { class: "flex-fill" }, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
4219
4224
|
'was-validated': this.formState === 'validated'
|
|
4220
|
-
}, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (h(NoDefaultFundBlock, null))), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() }, h("span", null, "
|
|
4225
|
+
}, ref: (el) => (this.formElement = el) }, this.isDefaultFundExists ? (h(DefaultFundBlock, { defaultFundName: this.defaultFundProductName })) : (h(NoDefaultFundBlock, null))), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, this.isDefaultFundExists && (h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, disabled: this.isInvalidDefaultFund, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Save and continue")))))))));
|
|
4221
4226
|
}
|
|
4222
4227
|
async handleSubmitForm() {
|
|
4223
4228
|
if (this.isInvalidDefaultFund) {
|
|
@@ -4263,7 +4268,9 @@ const MyOwnFund = class {
|
|
|
4263
4268
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
4264
4269
|
}
|
|
4265
4270
|
componentDidLoad() {
|
|
4266
|
-
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync(
|
|
4271
|
+
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
4272
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4273
|
+
});
|
|
4267
4274
|
}
|
|
4268
4275
|
render() {
|
|
4269
4276
|
return (h(Host, { class: "d-flex flex-fill" }, h("sss-custom-fund", { class: "flex-fill" }, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
@@ -4273,7 +4280,7 @@ const MyOwnFund = class {
|
|
|
4273
4280
|
this.isNotAllInformationProvidedMessageVisible = false;
|
|
4274
4281
|
} })), h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4275
4282
|
state.myOwnFundForm = Object.assign(Object.assign({}, state.myOwnFundForm), { standardChoiceFormSignature: fromNullable(event.detail.standardChoiceFormSignature) });
|
|
4276
|
-
} })), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), this.isNotAllInformationProvidedMessageVisible && (h("div", { class: "mt-4 alert alert-danger", role: "alert" }, "All fields are required to complete submission. Make sure you have selected a fund.")), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "
|
|
4283
|
+
} })), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), this.isNotAllInformationProvidedMessageVisible && (h("div", { class: "mt-4 alert alert-danger", role: "alert" }, "All fields are required to complete submission. Make sure you have selected a fund.")), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Save and continue"))))))));
|
|
4277
4284
|
}
|
|
4278
4285
|
async handleSubmitForm() {
|
|
4279
4286
|
this.formState = 'validated';
|
|
@@ -4376,8 +4383,8 @@ class PromotedFundJoinIFrameBuilder {
|
|
|
4376
4383
|
return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
|
|
4377
4384
|
};
|
|
4378
4385
|
}
|
|
4379
|
-
build(iframe, history) {
|
|
4380
|
-
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
|
|
4386
|
+
build(iframe$1, history) {
|
|
4387
|
+
if (!(iframe$1 === null || iframe$1 === void 0 ? void 0 : iframe$1.contentDocument))
|
|
4381
4388
|
return;
|
|
4382
4389
|
const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
|
|
4383
4390
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
@@ -4409,14 +4416,18 @@ class PromotedFundJoinIFrameBuilder {
|
|
|
4409
4416
|
if (data.sender === 'promoted-fund-join') {
|
|
4410
4417
|
switch (data.type) {
|
|
4411
4418
|
case 'contentResized':
|
|
4412
|
-
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
4413
|
-
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
4419
|
+
iframe$1.height = data.height > 0 ? data.height : iframe$1.height;
|
|
4420
|
+
iframe$1.width = data.width > 0 ? data.width : iframe$1.width;
|
|
4421
|
+
break;
|
|
4422
|
+
case 'pageNavigated':
|
|
4423
|
+
window.scroll(iframe$1.offsetLeft, iframe$1.offsetTop);
|
|
4424
|
+
iframe.navigation(window.location.href);
|
|
4414
4425
|
break;
|
|
4415
4426
|
}
|
|
4416
4427
|
}
|
|
4417
4428
|
};
|
|
4418
4429
|
window.addEventListener('message', handleMessage);
|
|
4419
|
-
const iframeDoc = iframe.contentDocument;
|
|
4430
|
+
const iframeDoc = iframe$1.contentDocument;
|
|
4420
4431
|
iframeDoc.open();
|
|
4421
4432
|
const form = iframeDoc.createElement('form');
|
|
4422
4433
|
form.method = 'POST';
|
|
@@ -4495,7 +4506,7 @@ const PromotedFundStandardChoicePage = class {
|
|
|
4495
4506
|
}, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4496
4507
|
state$1.standardChoiceFormSignature =
|
|
4497
4508
|
event.detail.standardChoiceFormSignature;
|
|
4498
|
-
} })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "
|
|
4509
|
+
} })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Save and continue")))))))))));
|
|
4499
4510
|
}
|
|
4500
4511
|
async handleSubmitForm() {
|
|
4501
4512
|
this.formState = 'validated';
|
|
@@ -5109,7 +5120,9 @@ const SelfManagedFund = class {
|
|
|
5109
5120
|
};
|
|
5110
5121
|
}
|
|
5111
5122
|
componentDidLoad() {
|
|
5112
|
-
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync(
|
|
5123
|
+
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
5124
|
+
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
5125
|
+
});
|
|
5113
5126
|
}
|
|
5114
5127
|
render() {
|
|
5115
5128
|
return (h(Host, { class: "d-flex flex-fill" }, h("sss-custom-fund", { class: "flex-fill" }, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
@@ -5118,7 +5131,7 @@ const SelfManagedFund = class {
|
|
|
5118
5131
|
state.selfManagedFundForm = Object.assign(Object.assign({}, state.selfManagedFundForm), event.detail);
|
|
5119
5132
|
} })), h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5120
5133
|
state.selfManagedFundForm = Object.assign(Object.assign({}, state.selfManagedFundForm), event.detail);
|
|
5121
|
-
} }), this.showSmsfNotSupported && (h("sss-smsf-not-supported-dialog", { ref: (el) => (this.notSupportedDialog = el), onContinue: this.success }))), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "
|
|
5134
|
+
} }), this.showSmsfNotSupported && (h("sss-smsf-not-supported-dialog", { ref: (el) => (this.notSupportedDialog = el), onContinue: this.success }))), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Save and continue"))))))));
|
|
5122
5135
|
}
|
|
5123
5136
|
componentDidRender() {
|
|
5124
5137
|
var _a;
|
|
@@ -5539,7 +5552,7 @@ const SlateStandardChoicePage = class {
|
|
|
5539
5552
|
'was-validated': this.formState === 'validated'
|
|
5540
5553
|
}, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5541
5554
|
state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
|
|
5542
|
-
} })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("stencil-route-link", { url: "/" }, h("fl-button", { isBlockElement: true, variant: "secondary" }, h("span", null, "Back"))))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "
|
|
5555
|
+
} })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("stencil-route-link", { url: "/" }, h("fl-button", { isBlockElement: true, variant: "secondary" }, h("span", null, "Back"))))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Save and continue")))))))))));
|
|
5543
5556
|
}
|
|
5544
5557
|
async handleSubmitForm() {
|
|
5545
5558
|
this.formState = 'validated';
|
|
@@ -5699,9 +5712,9 @@ const SuperChoicePage = class {
|
|
|
5699
5712
|
}
|
|
5700
5713
|
componentDidLoad() {
|
|
5701
5714
|
iframe.appReady();
|
|
5702
|
-
const
|
|
5715
|
+
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
5703
5716
|
this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
5704
|
-
|
|
5717
|
+
promotedFundsShown
|
|
5705
5718
|
});
|
|
5706
5719
|
}
|
|
5707
5720
|
async componentWillLoad() {
|
|
@@ -5793,27 +5806,36 @@ const SuperChoicePage = class {
|
|
|
5793
5806
|
return fundTiles;
|
|
5794
5807
|
}
|
|
5795
5808
|
async handleJoinSuperClickAsync(fund) {
|
|
5809
|
+
const promotedFundsShown = superSelectionAppService.promotedFunds;
|
|
5796
5810
|
if (fund.fundId === Slate.Id) {
|
|
5797
5811
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5798
5812
|
fundUsi: Slate.Usi,
|
|
5799
|
-
fundName: Slate.Name
|
|
5813
|
+
fundName: Slate.Name,
|
|
5814
|
+
promotedFundId: Slate.Id,
|
|
5815
|
+
promotedFundsShown
|
|
5800
5816
|
});
|
|
5801
5817
|
}
|
|
5802
5818
|
else if (fund.fundId === QSuper.Id) {
|
|
5803
5819
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5804
5820
|
fundUsi: QSuper.Usi,
|
|
5805
|
-
fundName: QSuper.Name
|
|
5821
|
+
fundName: QSuper.Name,
|
|
5822
|
+
promotedFundId: QSuper.Id,
|
|
5823
|
+
promotedFundsShown
|
|
5806
5824
|
});
|
|
5807
5825
|
}
|
|
5808
5826
|
else if (fund.fundId === AustralianRetirementTrust.Id) {
|
|
5809
5827
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5810
|
-
fundName: AustralianRetirementTrust.Name
|
|
5828
|
+
fundName: AustralianRetirementTrust.Name,
|
|
5829
|
+
promotedFundId: AustralianRetirementTrust.Id,
|
|
5830
|
+
promotedFundsShown
|
|
5811
5831
|
});
|
|
5812
5832
|
state$1.fundId = fund.fundId;
|
|
5813
5833
|
}
|
|
5814
5834
|
else if (fund.fundId === Aware.Id) {
|
|
5815
5835
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5816
|
-
fundName: Aware.Name
|
|
5836
|
+
fundName: Aware.Name,
|
|
5837
|
+
promotedFundId: Aware.Id,
|
|
5838
|
+
promotedFundsShown
|
|
5817
5839
|
});
|
|
5818
5840
|
state$1.fundId = fund.fundId;
|
|
5819
5841
|
}
|