@flarehr/apollo-super-selection 3.34.55209 → 3.36.55647
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-d49edf54.entry.js → p-1396ea0a.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-5983f429.system.entry.js → p-9560e2d5.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +42 -20
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +3 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +3 -1
- 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/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 +42 -20
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-381262c1.system.js"],(function(s,e){"use strict";var t,o,n;return{setters:[function(s){t=s.p;o=s.b},function(){},function(){},function(s){n=s.g}],execute:function(){var s=function(){var s=e.meta.url;var o={};if(s!==""){o.resourcesUrl=new URL(".",s).href}return t(o)};s().then((function(s){n();return o([["p-64ebe17d.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-cd49a6b7.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-8cbfc343.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-642db1f7.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-285da037.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-f15bf700.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-
|
|
1
|
+
System.register(["./p-38ee2795.system.js","./p-13573238.system.js","./p-7dbe5a2f.system.js","./p-381262c1.system.js"],(function(s,e){"use strict";var t,o,n;return{setters:[function(s){t=s.p;o=s.b},function(){},function(){},function(s){n=s.g}],execute:function(){var s=function(){var s=e.meta.url;var o={};if(s!==""){o.resourcesUrl=new URL(".",s).href}return t(o)};s().then((function(s){n();return o([["p-64ebe17d.system",[[1,"fl-style-guide",{themeCssUrl:[1,"theme-css-url"]}]]],["p-cd49a6b7.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-8cbfc343.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-642db1f7.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-285da037.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-f15bf700.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-9560e2d5.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32]}],[0,"sss-qsuper-question-1"],[0,"sss-qsuper-question-2"],[0,"sss-qsuper-question-3"],[0,"sss-qsuper-question-4"],[0,"sss-qsuper-question-5"],[0,"sss-qsuper-question-6"],[0,"sss-qsuper-question-7"],[0,"sss-qsuper-question-8"],[0,"sss-self-managed-fund",{history:[16],formState:[32],showSmsfNotSupported:[32]}],[0,"sss-default-fund",{history:[16],formState:[32],defaultFundProductName:[32]}],[0,"sss-qsuper-insurance-opt-in",{insuranceChosen:[32]}],[0,"sss-qsuper-join"],[0,"sss-slate-standard-choice-page",{history:[16],formState:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],areStylesLoaded:[32]}],[0,"sss-qsuper-consent"],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],chosenFund:[32]}],[0,"sss-promoted-fund-standard-choice-page",{history:[16],formState:[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"super-selection-app",{accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],selectedOption:[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],currentBank:[32]}],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{isSelected:[4,"is-selected"],usi:[1],name:[1],subText:[1,"sub-text"],logo:[1],pdsLink:[1,"pds-link"],features:[1],disclaimer:[16],abnInfo:[1,"abn-info"],history:[16]}],[0,"fl-dropdown",{placeholder:[1],options:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-selected-super-choice-section",{fundType:[1,"fund-type"],fundName:[1,"fund-name"]}],[0,"sss-slatesuper-header"],[0,"sss-footer-section"],[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,"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]}],[0,"fl-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-standard-choice-form",{standardChoiceFormSignature:[32]}],[4,"sss-qsuper-insurance-questions"],[0,"sss-qsuper-question-yes-no-buttons",{history:[16]}],[0,"sss-qsuper-confirm-header"],[4,"sss-qsuper-layout",{history:[16]}],[0,"sss-notifications-section"],[4,"fl-promise-button",{isBlockElement:[4,"is-block-element"],isRounded:[4,"is-rounded"],disabled:[4],variant:[1],promiseFn:[16],state:[32]}],[4,"fl-button",{isBlockElement:[4,"is-block-element"],disabled:[4],variant:[1]}],[0,"fl-loading-indicator",{theme:[1]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],s)}))}}}));
|
|
@@ -265,7 +265,7 @@ class TapSubscriber extends delay.Subscriber {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
const AppVersion = '3.
|
|
268
|
+
const AppVersion = '3.36.55647';
|
|
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,7 +4212,8 @@ 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() {
|
|
@@ -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: {
|
|
@@ -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';
|
|
@@ -4504,7 +4515,7 @@ const PromotedFundStandardChoicePage = class {
|
|
|
4504
4515
|
async handleSubmitForm() {
|
|
4505
4516
|
this.formState = 'validated';
|
|
4506
4517
|
if (this.formElement.checkValidity()) {
|
|
4507
|
-
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4518
|
+
await promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4508
4519
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
4509
4520
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
4510
4521
|
}
|
|
@@ -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: {
|
|
@@ -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() {
|
|
@@ -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" },
|
|
@@ -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" },
|
|
@@ -28,7 +28,7 @@ export class PromotedFundStandardChoicePage {
|
|
|
28
28
|
async handleSubmitForm() {
|
|
29
29
|
this.formState = 'validated';
|
|
30
30
|
if (this.formElement.checkValidity()) {
|
|
31
|
-
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, promotedFundState));
|
|
31
|
+
await promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, promotedFundState));
|
|
32
32
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
33
33
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
34
34
|
}
|
|
@@ -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
|
}
|
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.55647';
|
|
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,7 +4208,8 @@ 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() {
|
|
@@ -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: {
|
|
@@ -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';
|
|
@@ -4500,7 +4511,7 @@ const PromotedFundStandardChoicePage = class {
|
|
|
4500
4511
|
async handleSubmitForm() {
|
|
4501
4512
|
this.formState = 'validated';
|
|
4502
4513
|
if (this.formElement.checkValidity()) {
|
|
4503
|
-
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4514
|
+
await promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4504
4515
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
4505
4516
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
4506
4517
|
}
|
|
@@ -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: {
|
|
@@ -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
|
}
|