@flarehr/apollo-super-selection 3.20.53240 → 3.21.53721
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-b5b36366.system.entry.js → p-9eff6951.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-c284a0de.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +31 -2
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +7 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +23 -1
- package/dist/lib/esm/fl-button_46.entry.js +31 -2
- package/dist/lib/esm-es5/fl-button_46.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-89119ef3.entry.js +0 -14
|
@@ -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-9eff6951.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],showSmsfNotSupported:[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-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-self-managed-fund-inputs",{fundForm:[16],currentBank:[32]}],[0,"sss-loading-page"],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item",{heading:[1],isSelected:[4,"is-selected"],usi:[1],name:[1],logo:[1],pdsLink:[1,"pds-link"],callToAction:[1,"call-to-action"],features:[1],history:[16]}],[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,"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-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.21.53721';
|
|
269
269
|
|
|
270
270
|
// -------------------------------------------------------------------------------------
|
|
271
271
|
// guards
|
|
@@ -3775,6 +3775,7 @@ const initialState = {
|
|
|
3775
3775
|
profileId: Option.none,
|
|
3776
3776
|
jwt: Option.none,
|
|
3777
3777
|
superBuyer: Option.none,
|
|
3778
|
+
promotedFunds: Option.none,
|
|
3778
3779
|
accountConfiguration: Option.none,
|
|
3779
3780
|
hasSuccessPageBeenAcknowledged: false,
|
|
3780
3781
|
hasSuperSelectionBeenSubmitted: false
|
|
@@ -3813,6 +3814,12 @@ class SuperSelectionAppService {
|
|
|
3813
3814
|
}
|
|
3814
3815
|
return this._state.appBaseUrl.value;
|
|
3815
3816
|
}
|
|
3817
|
+
get promotedFunds() {
|
|
3818
|
+
if (Option.isNone(this._state.promotedFunds)) {
|
|
3819
|
+
throw Error('Promoted Funds is not set');
|
|
3820
|
+
}
|
|
3821
|
+
return this._state.promotedFunds.value;
|
|
3822
|
+
}
|
|
3816
3823
|
get profileId() {
|
|
3817
3824
|
if (Option.isNone(this._state.profileId)) {
|
|
3818
3825
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -3847,6 +3854,7 @@ class SuperSelectionAppService {
|
|
|
3847
3854
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
3848
3855
|
this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
|
|
3849
3856
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3857
|
+
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3850
3858
|
}
|
|
3851
3859
|
}
|
|
3852
3860
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
@@ -5695,7 +5703,7 @@ const SuperChoicePage = class {
|
|
|
5695
5703
|
const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
|
|
5696
5704
|
return (index.h(index.Host, null, index.h("div", { class: "container mt-0 mb-0" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), index.h("h5", { class: "font-weight-bold text-center mb-4" }, index.h("span", { class: "text-dark mr-1" }, "Simple Financial"), index.h("span", { class: "simple-choices-text" }, "Choices")))), index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("p", { class: "text-center" }, superChoiceParagraphOne), index.h("p", { class: "text-center small" }, superChoiceParagraphTwo), index.h("p", { class: "text-center small" }, superChoiceParagraphThree))), index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("sss-notifications-section", null))), index.h("div", { class: "row justify-content-center mt-4" }, index.h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (index.h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), index.h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (index.h("div", { class: "col-12 col-lg-6 d-flex" }, index.h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))), index.h("div", { class: "row mt-3" }, index.h("div", { class: "col" }, index.h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
|
|
5697
5705
|
}
|
|
5698
|
-
|
|
5706
|
+
allFunds() {
|
|
5699
5707
|
return [
|
|
5700
5708
|
{
|
|
5701
5709
|
fundId: SlateFundId,
|
|
@@ -5726,9 +5734,30 @@ const SuperChoicePage = class {
|
|
|
5726
5734
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
5727
5735
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
5728
5736
|
]
|
|
5737
|
+
},
|
|
5738
|
+
{
|
|
5739
|
+
fundId: AustralianRetirementTrustFundId,
|
|
5740
|
+
usi: AustralianRetirementTrustFundUsi,
|
|
5741
|
+
name: AustralianRetirementTrustFundName,
|
|
5742
|
+
heading: AustralianRetirementTrustAltFundName,
|
|
5743
|
+
logo: 'logo-qsuper-square.png',
|
|
5744
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5745
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
5746
|
+
pdsLink: 'https://google.com',
|
|
5747
|
+
features: []
|
|
5729
5748
|
}
|
|
5730
5749
|
];
|
|
5731
5750
|
}
|
|
5751
|
+
getPromotedFunds() {
|
|
5752
|
+
const fundTiles = [];
|
|
5753
|
+
superSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
5754
|
+
const fund = this.allFunds().find((fund) => fundId == fund.fundId);
|
|
5755
|
+
if (fund !== undefined) {
|
|
5756
|
+
fundTiles.push(fund);
|
|
5757
|
+
}
|
|
5758
|
+
});
|
|
5759
|
+
return fundTiles;
|
|
5760
|
+
}
|
|
5732
5761
|
async handleJoinSuperClickAsync(fund) {
|
|
5733
5762
|
if (fund.fundId === SlateFundId) {
|
|
5734
5763
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
CHANGED
|
@@ -37,6 +37,12 @@ export class SuperSelectionAppService {
|
|
|
37
37
|
}
|
|
38
38
|
return this._state.appBaseUrl.value;
|
|
39
39
|
}
|
|
40
|
+
get promotedFunds() {
|
|
41
|
+
if (O.isNone(this._state.promotedFunds)) {
|
|
42
|
+
throw Error('Promoted Funds is not set');
|
|
43
|
+
}
|
|
44
|
+
return this._state.promotedFunds.value;
|
|
45
|
+
}
|
|
40
46
|
get profileId() {
|
|
41
47
|
if (O.isNone(this._state.profileId)) {
|
|
42
48
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -71,6 +77,7 @@ export class SuperSelectionAppService {
|
|
|
71
77
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
72
78
|
this._state.accountConfiguration = O.fromNullable(appStateResponse.accountConfiguration);
|
|
73
79
|
this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
|
|
80
|
+
this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
export default new SuperSelectionAppService();
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -8,6 +8,7 @@ import { EventTrackingService } from '../services/event-tracking.service';
|
|
|
8
8
|
import navigationService from '../services/navigation.service';
|
|
9
9
|
import chosenFundService from '../services/selected-super-choice-info.service';
|
|
10
10
|
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
11
|
+
import SuperSelectionAppService from '../services/super-selection-app.service';
|
|
11
12
|
export class SuperChoicePage {
|
|
12
13
|
constructor() {
|
|
13
14
|
this.promotedFunds = this.getPromotedFunds();
|
|
@@ -62,7 +63,7 @@ export class SuperChoicePage {
|
|
|
62
63
|
h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
|
|
63
64
|
h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
+
allFunds() {
|
|
66
67
|
return [
|
|
67
68
|
{
|
|
68
69
|
fundId: constants.SlateFundId,
|
|
@@ -93,9 +94,30 @@ export class SuperChoicePage {
|
|
|
93
94
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
94
95
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
95
96
|
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
fundId: constants.AustralianRetirementTrustFundId,
|
|
100
|
+
usi: constants.AustralianRetirementTrustFundUsi,
|
|
101
|
+
name: constants.AustralianRetirementTrustFundName,
|
|
102
|
+
heading: constants.AustralianRetirementTrustAltFundName,
|
|
103
|
+
logo: 'logo-qsuper-square.png',
|
|
104
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
105
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
106
|
+
pdsLink: 'https://google.com',
|
|
107
|
+
features: []
|
|
96
108
|
}
|
|
97
109
|
];
|
|
98
110
|
}
|
|
111
|
+
getPromotedFunds() {
|
|
112
|
+
const fundTiles = [];
|
|
113
|
+
SuperSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
114
|
+
const fund = this.allFunds().find((fund) => fundId == fund.fundId);
|
|
115
|
+
if (fund !== undefined) {
|
|
116
|
+
fundTiles.push(fund);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return fundTiles;
|
|
120
|
+
}
|
|
99
121
|
async handleJoinSuperClickAsync(fund) {
|
|
100
122
|
if (fund.fundId === constants.SlateFundId) {
|
|
101
123
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
const AppVersion = '3.
|
|
264
|
+
const AppVersion = '3.21.53721';
|
|
265
265
|
|
|
266
266
|
// -------------------------------------------------------------------------------------
|
|
267
267
|
// guards
|
|
@@ -3771,6 +3771,7 @@ const initialState = {
|
|
|
3771
3771
|
profileId: Option.none,
|
|
3772
3772
|
jwt: Option.none,
|
|
3773
3773
|
superBuyer: Option.none,
|
|
3774
|
+
promotedFunds: Option.none,
|
|
3774
3775
|
accountConfiguration: Option.none,
|
|
3775
3776
|
hasSuccessPageBeenAcknowledged: false,
|
|
3776
3777
|
hasSuperSelectionBeenSubmitted: false
|
|
@@ -3809,6 +3810,12 @@ class SuperSelectionAppService {
|
|
|
3809
3810
|
}
|
|
3810
3811
|
return this._state.appBaseUrl.value;
|
|
3811
3812
|
}
|
|
3813
|
+
get promotedFunds() {
|
|
3814
|
+
if (Option.isNone(this._state.promotedFunds)) {
|
|
3815
|
+
throw Error('Promoted Funds is not set');
|
|
3816
|
+
}
|
|
3817
|
+
return this._state.promotedFunds.value;
|
|
3818
|
+
}
|
|
3812
3819
|
get profileId() {
|
|
3813
3820
|
if (Option.isNone(this._state.profileId)) {
|
|
3814
3821
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -3843,6 +3850,7 @@ class SuperSelectionAppService {
|
|
|
3843
3850
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
3844
3851
|
this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
|
|
3845
3852
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3853
|
+
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3846
3854
|
}
|
|
3847
3855
|
}
|
|
3848
3856
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
@@ -5691,7 +5699,7 @@ const SuperChoicePage = class {
|
|
|
5691
5699
|
const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
|
|
5692
5700
|
return (h(Host, null, h("div", { class: "container mt-0 mb-0" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), h("h5", { class: "font-weight-bold text-center mb-4" }, h("span", { class: "text-dark mr-1" }, "Simple Financial"), h("span", { class: "simple-choices-text" }, "Choices")))), h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("p", { class: "text-center" }, superChoiceParagraphOne), h("p", { class: "text-center small" }, superChoiceParagraphTwo), h("p", { class: "text-center small" }, superChoiceParagraphThree))), h("div", { class: "row" }, h("div", { class: "col" }, h("sss-notifications-section", null))), h("div", { class: "row justify-content-center mt-4" }, h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, h("div", { class: "row" }, h("div", { class: "col" }, h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" }, h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))), h("div", { class: "row mt-3" }, h("div", { class: "col" }, h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
|
|
5693
5701
|
}
|
|
5694
|
-
|
|
5702
|
+
allFunds() {
|
|
5695
5703
|
return [
|
|
5696
5704
|
{
|
|
5697
5705
|
fundId: SlateFundId,
|
|
@@ -5722,9 +5730,30 @@ const SuperChoicePage = class {
|
|
|
5722
5730
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
5723
5731
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
5724
5732
|
]
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
fundId: AustralianRetirementTrustFundId,
|
|
5736
|
+
usi: AustralianRetirementTrustFundUsi,
|
|
5737
|
+
name: AustralianRetirementTrustFundName,
|
|
5738
|
+
heading: AustralianRetirementTrustAltFundName,
|
|
5739
|
+
logo: 'logo-qsuper-square.png',
|
|
5740
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5741
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
5742
|
+
pdsLink: 'https://google.com',
|
|
5743
|
+
features: []
|
|
5725
5744
|
}
|
|
5726
5745
|
];
|
|
5727
5746
|
}
|
|
5747
|
+
getPromotedFunds() {
|
|
5748
|
+
const fundTiles = [];
|
|
5749
|
+
superSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
5750
|
+
const fund = this.allFunds().find((fund) => fundId == fund.fundId);
|
|
5751
|
+
if (fund !== undefined) {
|
|
5752
|
+
fundTiles.push(fund);
|
|
5753
|
+
}
|
|
5754
|
+
});
|
|
5755
|
+
return fundTiles;
|
|
5756
|
+
}
|
|
5728
5757
|
async handleJoinSuperClickAsync(fund) {
|
|
5729
5758
|
if (fund.fundId === SlateFundId) {
|
|
5730
5759
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|