@flarehr/apollo-super-selection 3.19.53196 → 3.23.53810
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-a50e40ee.entry.js → p-540abd08.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-a24a177c.system.entry.js → p-e5ccebd1.system.entry.js} +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +21 -7
- 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 +13 -6
- package/dist/lib/esm/fl-button_46.entry.js +21 -7
- 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
|
@@ -265,7 +265,7 @@ class TapSubscriber extends delay.Subscriber {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
const AppVersion = '3.
|
|
268
|
+
const AppVersion = '3.23.53810';
|
|
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,
|
|
@@ -5736,14 +5744,20 @@ const SuperChoicePage = class {
|
|
|
5736
5744
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5737
5745
|
callToAction: 'Join AustralianRetirementTrust',
|
|
5738
5746
|
pdsLink: 'https://google.com',
|
|
5739
|
-
features: [
|
|
5740
|
-
{ order: 1, value: 'Placeholder #1' },
|
|
5741
|
-
{ order: 2, value: 'Placeholder #2' },
|
|
5742
|
-
{ order: 3, value: 'Placeholder #3' }
|
|
5743
|
-
]
|
|
5747
|
+
features: []
|
|
5744
5748
|
}
|
|
5745
5749
|
];
|
|
5746
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
|
+
}
|
|
5747
5761
|
async handleJoinSuperClickAsync(fund) {
|
|
5748
5762
|
if (fund.fundId === SlateFundId) {
|
|
5749
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,
|
|
@@ -103,14 +104,20 @@ export class SuperChoicePage {
|
|
|
103
104
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
104
105
|
callToAction: 'Join AustralianRetirementTrust',
|
|
105
106
|
pdsLink: 'https://google.com',
|
|
106
|
-
features: [
|
|
107
|
-
{ order: 1, value: 'Placeholder #1' },
|
|
108
|
-
{ order: 2, value: 'Placeholder #2' },
|
|
109
|
-
{ order: 3, value: 'Placeholder #3' }
|
|
110
|
-
]
|
|
107
|
+
features: []
|
|
111
108
|
}
|
|
112
109
|
];
|
|
113
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
|
+
}
|
|
114
121
|
async handleJoinSuperClickAsync(fund) {
|
|
115
122
|
if (fund.fundId === constants.SlateFundId) {
|
|
116
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.23.53810';
|
|
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,
|
|
@@ -5732,14 +5740,20 @@ const SuperChoicePage = class {
|
|
|
5732
5740
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5733
5741
|
callToAction: 'Join AustralianRetirementTrust',
|
|
5734
5742
|
pdsLink: 'https://google.com',
|
|
5735
|
-
features: [
|
|
5736
|
-
{ order: 1, value: 'Placeholder #1' },
|
|
5737
|
-
{ order: 2, value: 'Placeholder #2' },
|
|
5738
|
-
{ order: 3, value: 'Placeholder #3' }
|
|
5739
|
-
]
|
|
5743
|
+
features: []
|
|
5740
5744
|
}
|
|
5741
5745
|
];
|
|
5742
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
|
+
}
|
|
5743
5757
|
async handleJoinSuperClickAsync(fund) {
|
|
5744
5758
|
if (fund.fundId === SlateFundId) {
|
|
5745
5759
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|