@flarehr/apollo-super-selection 1.2.27856 → 1.2.27914
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/assets/logo-mercer-mychoice.svg +1 -0
- package/dist/lib/apollo-super-selection/p-1910eb21.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-4635a623.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_30.cjs.entry.js +79 -12
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +6 -0
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +27 -2
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +3 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +15 -3
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +15 -3
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +2 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-mercer-mychoice.svg +1 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +26 -0
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +1 -3
- package/dist/lib/esm/sss-button_30.entry.js +79 -12
- package/dist/lib/esm-es5/sss-button_30.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-0bc7e74b.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-1472a495.entry.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(s,e){"use strict";var t,o,i;return{setters:[function(s){t=s.p;o=s.b},function(){},function(s){i=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){i();return o([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-
|
|
1
|
+
System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(s,e){"use strict";var t,o,i;return{setters:[function(s){t=s.p;o=s.b},function(){},function(s){i=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){i();return o([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-4635a623.system",[[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-consent-page",{history:[16]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-promoted-fund-join-v1-page",{history:[16]}],[0,"sss-promoted-fund-join-v2-page",{history:[16]}],[0,"sss-slate-join-page",{history:[16]}],[0,"sss-success"],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],isAbnUsedForRegulated:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16]}],[0,"sss-dropdown-async",{placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section",{textOverride:[16]}],[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],showFundOptionsSelection:[32]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[0,"sss-name-input",{value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[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,"sss-button",{fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[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)}))}}}));
|
|
@@ -264,7 +264,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
const AppVersion = '1.2.
|
|
267
|
+
const AppVersion = '1.2.27914';
|
|
268
268
|
|
|
269
269
|
// -------------------------------------------------------------------------------------
|
|
270
270
|
// guards
|
|
@@ -4070,6 +4070,15 @@ const First = {
|
|
|
4070
4070
|
Abn: '56 286 625 181',
|
|
4071
4071
|
FooterTextOverride: none
|
|
4072
4072
|
};
|
|
4073
|
+
const MercerMyChoice = {
|
|
4074
|
+
Id: 'mercermychoice',
|
|
4075
|
+
Name: 'Mercer MyChoice',
|
|
4076
|
+
Logo: 'logo-mercer-mychoice.svg',
|
|
4077
|
+
PdsUrl: 'https://www.google.com.au',
|
|
4078
|
+
TmdUrl: 'https://www.google.com.au',
|
|
4079
|
+
Abn: '79 004 717 533',
|
|
4080
|
+
FooterTextOverride: some(PoweredByFlareFS)
|
|
4081
|
+
};
|
|
4073
4082
|
const PromotedFundIdList = [
|
|
4074
4083
|
{ dtoPropName: 'slate', id: Slate.Id },
|
|
4075
4084
|
{ dtoPropName: 'australianRetirementTrust', id: AustralianRetirementTrust.Id },
|
|
@@ -4078,7 +4087,8 @@ const PromotedFundIdList = [
|
|
|
4078
4087
|
{ dtoPropName: 'australianEthical', id: AustralianEthical.Id },
|
|
4079
4088
|
{ dtoPropName: 'virgin', id: Virgin.Id },
|
|
4080
4089
|
{ dtoPropName: 'spirit', id: Spirit.Id },
|
|
4081
|
-
{ dtoPropName: 'firstSuper', id: First.Id }
|
|
4090
|
+
{ dtoPropName: 'firstSuper', id: First.Id },
|
|
4091
|
+
{ dtoPropName: 'mercerMyChoice', id: MercerMyChoice.Id }
|
|
4082
4092
|
];
|
|
4083
4093
|
const getFundNameById = (id) => {
|
|
4084
4094
|
switch (id) {
|
|
@@ -4098,11 +4108,23 @@ const getFundNameById = (id) => {
|
|
|
4098
4108
|
return Spirit.Name;
|
|
4099
4109
|
case First.Id:
|
|
4100
4110
|
return First.Name;
|
|
4111
|
+
case MercerMyChoice.Id:
|
|
4112
|
+
return MercerMyChoice.Name;
|
|
4101
4113
|
default:
|
|
4102
4114
|
return;
|
|
4103
4115
|
}
|
|
4104
4116
|
};
|
|
4105
|
-
const getFooterTextOverrideByFundId = (id) => { var _a, _b; return (_b = (_a = [
|
|
4117
|
+
const getFooterTextOverrideByFundId = (id) => { var _a, _b; return (_b = (_a = [
|
|
4118
|
+
Slate,
|
|
4119
|
+
AustralianRetirementTrust,
|
|
4120
|
+
Aware,
|
|
4121
|
+
Active,
|
|
4122
|
+
AustralianEthical,
|
|
4123
|
+
Virgin,
|
|
4124
|
+
Spirit,
|
|
4125
|
+
First,
|
|
4126
|
+
MercerMyChoice
|
|
4127
|
+
].find((fund) => fund.Id == id)) === null || _a === void 0 ? void 0 : _a.FooterTextOverride) !== null && _b !== void 0 ? _b : none; };
|
|
4106
4128
|
const getFundUsiById = (id) => {
|
|
4107
4129
|
switch (id) {
|
|
4108
4130
|
case Slate.Id:
|
|
@@ -4138,6 +4160,9 @@ const getLogoSrc = (id) => {
|
|
|
4138
4160
|
case First.Id:
|
|
4139
4161
|
logo = First.Logo;
|
|
4140
4162
|
break;
|
|
4163
|
+
case MercerMyChoice.Id:
|
|
4164
|
+
logo = MercerMyChoice.Logo;
|
|
4165
|
+
break;
|
|
4141
4166
|
default:
|
|
4142
4167
|
return;
|
|
4143
4168
|
}
|
|
@@ -4170,6 +4195,9 @@ function getPromotedFundUsi(dto) {
|
|
|
4170
4195
|
else if ('firstSuper' in dto) {
|
|
4171
4196
|
return some(dto.firstSuper.usi);
|
|
4172
4197
|
}
|
|
4198
|
+
else if ('mercerMyChoice' in dto) {
|
|
4199
|
+
return some(dto.mercerMyChoice.usi);
|
|
4200
|
+
}
|
|
4173
4201
|
else {
|
|
4174
4202
|
return none;
|
|
4175
4203
|
}
|
|
@@ -4216,6 +4244,9 @@ function getPromotedFundMemberNumber(dto) {
|
|
|
4216
4244
|
else if ('firstSuper' in dto) {
|
|
4217
4245
|
return some(dto.firstSuper.memberNumber);
|
|
4218
4246
|
}
|
|
4247
|
+
else if ('mercerMyChoice' in dto) {
|
|
4248
|
+
return some(dto.mercerMyChoice.memberNumber);
|
|
4249
|
+
}
|
|
4219
4250
|
else {
|
|
4220
4251
|
return none;
|
|
4221
4252
|
}
|
|
@@ -4656,6 +4687,9 @@ const initial$1 = {
|
|
|
4656
4687
|
fundId: ''
|
|
4657
4688
|
};
|
|
4658
4689
|
const { state: state$2 } = createStore(initial$1);
|
|
4690
|
+
function reset$1() {
|
|
4691
|
+
state$2.fundId = initial$1.fundId;
|
|
4692
|
+
}
|
|
4659
4693
|
|
|
4660
4694
|
class PromotedFundJoinV1IFrameBuilder {
|
|
4661
4695
|
constructor() {
|
|
@@ -4687,11 +4721,21 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
4687
4721
|
break;
|
|
4688
4722
|
case 'success':
|
|
4689
4723
|
if (data.memberNumber) {
|
|
4724
|
+
const promotedFundId = state$2.fundId;
|
|
4690
4725
|
navigationService.navigateInternallyToStandardChoice({
|
|
4691
4726
|
history,
|
|
4692
|
-
fundName: (_a = getFundNameById(
|
|
4693
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(
|
|
4694
|
-
|
|
4727
|
+
fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
|
|
4728
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
|
|
4729
|
+
fundId: promotedFundId,
|
|
4730
|
+
memberNumber: data.memberNumber,
|
|
4731
|
+
memberFirstName: data.memberFirstName,
|
|
4732
|
+
memberFamilyName: data.memberFamilyName,
|
|
4733
|
+
usi: data.usi.replace(/ /g, ''),
|
|
4734
|
+
standardChoiceFormSignature,
|
|
4735
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
4736
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4737
|
+
}),
|
|
4738
|
+
promotedFundId
|
|
4695
4739
|
});
|
|
4696
4740
|
break;
|
|
4697
4741
|
}
|
|
@@ -4700,6 +4744,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
4700
4744
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
4701
4745
|
break;
|
|
4702
4746
|
}
|
|
4747
|
+
reset$1();
|
|
4703
4748
|
return;
|
|
4704
4749
|
}
|
|
4705
4750
|
if (data.sender === 'promoted-fund-join') {
|
|
@@ -4805,11 +4850,21 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4805
4850
|
break;
|
|
4806
4851
|
case 'success':
|
|
4807
4852
|
if (data.memberNumber) {
|
|
4853
|
+
const promotedFundId = state$2.fundId;
|
|
4808
4854
|
navigationService.navigateInternallyToStandardChoice({
|
|
4809
4855
|
history,
|
|
4810
|
-
fundName: (_a = getFundNameById(
|
|
4811
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(
|
|
4812
|
-
|
|
4856
|
+
fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
|
|
4857
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
|
|
4858
|
+
fundId: promotedFundId,
|
|
4859
|
+
memberNumber: data.memberNumber,
|
|
4860
|
+
memberFirstName: data.memberFirstName,
|
|
4861
|
+
memberFamilyName: data.memberFamilyName,
|
|
4862
|
+
usi: data.usi.replace(/ /g, ''),
|
|
4863
|
+
standardChoiceFormSignature,
|
|
4864
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
4865
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4866
|
+
}),
|
|
4867
|
+
promotedFundId
|
|
4813
4868
|
});
|
|
4814
4869
|
break;
|
|
4815
4870
|
}
|
|
@@ -4818,6 +4873,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4818
4873
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
4819
4874
|
break;
|
|
4820
4875
|
}
|
|
4876
|
+
reset$1();
|
|
4821
4877
|
return;
|
|
4822
4878
|
}
|
|
4823
4879
|
if (data.sender === 'promoted-fund-join') {
|
|
@@ -5316,6 +5372,7 @@ class SlateIFrameBuilder {
|
|
|
5316
5372
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
5317
5373
|
break;
|
|
5318
5374
|
}
|
|
5375
|
+
reset$1();
|
|
5319
5376
|
return;
|
|
5320
5377
|
}
|
|
5321
5378
|
if (data.sender === 'flare' && origin.endsWith('join.slatesuper.com.au')) {
|
|
@@ -5604,6 +5661,18 @@ const SuperChoicePage = class {
|
|
|
5604
5661
|
index.h("p", null, "Established super fund \u2013 anyone can join including KiwiSaver members")
|
|
5605
5662
|
],
|
|
5606
5663
|
disclaimer: (index.h("div", null, index.h("p", null, "General advice only which has been prepared without taking into account your objectives, financial situation or needs. Consider whether the advice is appropriate for you and read the Product Disclosure Statement (PDS) before making any investment decisions. PDS and Target Market Determination are available at our", ' ', index.h(Link, { onClick: () => this.pdsViewedAsync(First.Name), href: First.PdsUrl }, "website"), ". Past performance is not a reliable indicator of future performance."), index.h("br", null), index.h("p", null, "Issued by First Super Pty Ltd ABN 42 053 498 472, AFSL 223988 (Trustee) as Trustee of First Super ABN 56 286 625 181.")))
|
|
5664
|
+
},
|
|
5665
|
+
{
|
|
5666
|
+
fundId: MercerMyChoice.Id,
|
|
5667
|
+
name: MercerMyChoice.Name,
|
|
5668
|
+
logo: MercerMyChoice.Logo,
|
|
5669
|
+
route: SuperSelectionAppRoutes.PromotedFundJoinV2,
|
|
5670
|
+
features: [
|
|
5671
|
+
index.h("p", null, "Save more super with our low fees"),
|
|
5672
|
+
index.h("p", null, "Take control with 6 MyChoice investment options"),
|
|
5673
|
+
index.h("p", null, "Join 850,000 Australians who trust our global expertise")
|
|
5674
|
+
],
|
|
5675
|
+
disclaimer: (index.h("div", null, index.h("p", null, "You should consider the", ' ', index.h(Link, { href: MercerMyChoice.PdsUrl, onClick: () => this.pdsViewedAsync(MercerMyChoice.Name) }, "Product Disclosure Statement"), ' ', "and", ' ', index.h(Link, { href: MercerMyChoice.TmdUrl }, "Target Market Determination"), ' ', "before deciding to invest in or apply to become a member of the fund."), index.h("br", null), index.h("p", null, "Issued by Mercer Superannuation (Australia) Limited (\u2018Mercer Super\u2019) ABN: ", MercerMyChoice.Abn)))
|
|
5607
5676
|
}
|
|
5608
5677
|
];
|
|
5609
5678
|
}
|
|
@@ -6648,9 +6717,7 @@ const SuperSelectionApp = class {
|
|
|
6648
6717
|
window.location.pathname.includes(SuperSelectionAppRoutes.PromotedFundJoinV2));
|
|
6649
6718
|
}
|
|
6650
6719
|
getFooterTextOverride() {
|
|
6651
|
-
return
|
|
6652
|
-
? getFooterTextOverrideByFundId(state$2.fundId)
|
|
6653
|
-
: Option.none;
|
|
6720
|
+
return getFooterTextOverrideByFundId(state$2.fundId);
|
|
6654
6721
|
}
|
|
6655
6722
|
routerBaseUrl() {
|
|
6656
6723
|
var _a;
|
|
@@ -24,6 +24,9 @@ function getPromotedFundUsi(dto) {
|
|
|
24
24
|
else if ('firstSuper' in dto) {
|
|
25
25
|
return some(dto.firstSuper.usi);
|
|
26
26
|
}
|
|
27
|
+
else if ('mercerMyChoice' in dto) {
|
|
28
|
+
return some(dto.mercerMyChoice.usi);
|
|
29
|
+
}
|
|
27
30
|
else {
|
|
28
31
|
return none;
|
|
29
32
|
}
|
|
@@ -70,6 +73,9 @@ function getPromotedFundMemberNumber(dto) {
|
|
|
70
73
|
else if ('firstSuper' in dto) {
|
|
71
74
|
return some(dto.firstSuper.memberNumber);
|
|
72
75
|
}
|
|
76
|
+
else if ('mercerMyChoice' in dto) {
|
|
77
|
+
return some(dto.mercerMyChoice.memberNumber);
|
|
78
|
+
}
|
|
73
79
|
else {
|
|
74
80
|
return none;
|
|
75
81
|
}
|
|
@@ -66,6 +66,15 @@ export const First = {
|
|
|
66
66
|
Abn: '56 286 625 181',
|
|
67
67
|
FooterTextOverride: none
|
|
68
68
|
};
|
|
69
|
+
export const MercerMyChoice = {
|
|
70
|
+
Id: 'mercermychoice',
|
|
71
|
+
Name: 'Mercer MyChoice',
|
|
72
|
+
Logo: 'logo-mercer-mychoice.svg',
|
|
73
|
+
PdsUrl: 'https://www.google.com.au',
|
|
74
|
+
TmdUrl: 'https://www.google.com.au',
|
|
75
|
+
Abn: '79 004 717 533',
|
|
76
|
+
FooterTextOverride: some(PoweredByFlareFS)
|
|
77
|
+
};
|
|
69
78
|
export const PromotedFundIdList = [
|
|
70
79
|
{ dtoPropName: 'slate', id: Slate.Id },
|
|
71
80
|
{ dtoPropName: 'australianRetirementTrust', id: AustralianRetirementTrust.Id },
|
|
@@ -74,7 +83,8 @@ export const PromotedFundIdList = [
|
|
|
74
83
|
{ dtoPropName: 'australianEthical', id: AustralianEthical.Id },
|
|
75
84
|
{ dtoPropName: 'virgin', id: Virgin.Id },
|
|
76
85
|
{ dtoPropName: 'spirit', id: Spirit.Id },
|
|
77
|
-
{ dtoPropName: 'firstSuper', id: First.Id }
|
|
86
|
+
{ dtoPropName: 'firstSuper', id: First.Id },
|
|
87
|
+
{ dtoPropName: 'mercerMyChoice', id: MercerMyChoice.Id }
|
|
78
88
|
];
|
|
79
89
|
export const getFundNameById = (id) => {
|
|
80
90
|
switch (id) {
|
|
@@ -94,11 +104,23 @@ export const getFundNameById = (id) => {
|
|
|
94
104
|
return Spirit.Name;
|
|
95
105
|
case First.Id:
|
|
96
106
|
return First.Name;
|
|
107
|
+
case MercerMyChoice.Id:
|
|
108
|
+
return MercerMyChoice.Name;
|
|
97
109
|
default:
|
|
98
110
|
return;
|
|
99
111
|
}
|
|
100
112
|
};
|
|
101
|
-
export const getFooterTextOverrideByFundId = (id) => { var _a, _b; return (_b = (_a = [
|
|
113
|
+
export const getFooterTextOverrideByFundId = (id) => { var _a, _b; return (_b = (_a = [
|
|
114
|
+
Slate,
|
|
115
|
+
AustralianRetirementTrust,
|
|
116
|
+
Aware,
|
|
117
|
+
Active,
|
|
118
|
+
AustralianEthical,
|
|
119
|
+
Virgin,
|
|
120
|
+
Spirit,
|
|
121
|
+
First,
|
|
122
|
+
MercerMyChoice
|
|
123
|
+
].find((fund) => fund.Id == id)) === null || _a === void 0 ? void 0 : _a.FooterTextOverride) !== null && _b !== void 0 ? _b : none; };
|
|
102
124
|
export const getFundUsiById = (id) => {
|
|
103
125
|
switch (id) {
|
|
104
126
|
case Slate.Id:
|
|
@@ -134,6 +156,9 @@ export const getLogoSrc = (id) => {
|
|
|
134
156
|
case First.Id:
|
|
135
157
|
logo = First.Logo;
|
|
136
158
|
break;
|
|
159
|
+
case MercerMyChoice.Id:
|
|
160
|
+
logo = MercerMyChoice.Logo;
|
|
161
|
+
break;
|
|
137
162
|
default:
|
|
138
163
|
return;
|
|
139
164
|
}
|
|
@@ -6,6 +6,7 @@ import superSelectionAppService from '../../../services/super-selection-app.serv
|
|
|
6
6
|
import { getFundNameById } from '../../constants';
|
|
7
7
|
import promotedFundChoiceApi from '../api/promoted-fund-choice.api';
|
|
8
8
|
import promotedFundState from '../promoted-fund.store';
|
|
9
|
+
import { reset as resetPromotedFundState } from '../promoted-fund.store';
|
|
9
10
|
class PromotedFundJoinV1IFrameBuilder {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.hostIsLocalSuperSelection = () => window.location.origin === 'http://localhost:7100';
|
|
@@ -36,11 +37,21 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
36
37
|
break;
|
|
37
38
|
case 'success':
|
|
38
39
|
if (data.memberNumber) {
|
|
40
|
+
const promotedFundId = promotedFundState.fundId;
|
|
39
41
|
navigationService.navigateInternallyToStandardChoice({
|
|
40
42
|
history,
|
|
41
|
-
fundName: (_a = getFundNameById(
|
|
42
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(
|
|
43
|
-
|
|
43
|
+
fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
|
|
44
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
|
|
45
|
+
fundId: promotedFundId,
|
|
46
|
+
memberNumber: data.memberNumber,
|
|
47
|
+
memberFirstName: data.memberFirstName,
|
|
48
|
+
memberFamilyName: data.memberFamilyName,
|
|
49
|
+
usi: data.usi.replace(/ /g, ''),
|
|
50
|
+
standardChoiceFormSignature,
|
|
51
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
52
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
53
|
+
}),
|
|
54
|
+
promotedFundId
|
|
44
55
|
});
|
|
45
56
|
break;
|
|
46
57
|
}
|
|
@@ -49,6 +60,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
49
60
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
50
61
|
break;
|
|
51
62
|
}
|
|
63
|
+
resetPromotedFundState();
|
|
52
64
|
return;
|
|
53
65
|
}
|
|
54
66
|
if (data.sender === 'promoted-fund-join') {
|
|
@@ -6,6 +6,7 @@ import superSelectionAppService from '../../../services/super-selection-app.serv
|
|
|
6
6
|
import { getFundNameById } from '../../constants';
|
|
7
7
|
import promotedFundChoiceApi from '../api/promoted-fund-choice.api';
|
|
8
8
|
import promotedFundState from '../promoted-fund.store';
|
|
9
|
+
import { reset as resetPromotedFundState } from '../promoted-fund.store';
|
|
9
10
|
class PromotedFundJoinV2IFrameBuilder {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.environmentDiscriminator = () => {
|
|
@@ -42,11 +43,21 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
42
43
|
break;
|
|
43
44
|
case 'success':
|
|
44
45
|
if (data.memberNumber) {
|
|
46
|
+
const promotedFundId = promotedFundState.fundId;
|
|
45
47
|
navigationService.navigateInternallyToStandardChoice({
|
|
46
48
|
history,
|
|
47
|
-
fundName: (_a = getFundNameById(
|
|
48
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(
|
|
49
|
-
|
|
49
|
+
fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
|
|
50
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
|
|
51
|
+
fundId: promotedFundId,
|
|
52
|
+
memberNumber: data.memberNumber,
|
|
53
|
+
memberFirstName: data.memberFirstName,
|
|
54
|
+
memberFamilyName: data.memberFamilyName,
|
|
55
|
+
usi: data.usi.replace(/ /g, ''),
|
|
56
|
+
standardChoiceFormSignature,
|
|
57
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
58
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
59
|
+
}),
|
|
60
|
+
promotedFundId
|
|
50
61
|
});
|
|
51
62
|
break;
|
|
52
63
|
}
|
|
@@ -55,6 +66,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
55
66
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
56
67
|
break;
|
|
57
68
|
}
|
|
69
|
+
resetPromotedFundState();
|
|
58
70
|
return;
|
|
59
71
|
}
|
|
60
72
|
if (data.sender === 'promoted-fund-join') {
|
|
@@ -4,6 +4,7 @@ import navigationService from '../../../services/navigation.service';
|
|
|
4
4
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
5
5
|
import superSelectionAppService from '../../../services/super-selection-app.service';
|
|
6
6
|
import { Slate } from '../../constants';
|
|
7
|
+
import { reset as resetPromotedFundState } from '../../promoted-fund/promoted-fund.store';
|
|
7
8
|
import slateChoiceApi from '../api/slate-choice.api';
|
|
8
9
|
class SlateIFrameBuilder {
|
|
9
10
|
constructor() {
|
|
@@ -68,6 +69,7 @@ class SlateIFrameBuilder {
|
|
|
68
69
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
72
|
+
resetPromotedFundState();
|
|
71
73
|
return;
|
|
72
74
|
}
|
|
73
75
|
if (data.sender === 'flare' && origin.endsWith('join.slatesuper.com.au')) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Mercer" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 473.89 73.8"><defs><style>.cls-1{fill:#002c77;}</style></defs><path class="cls-1" d="M157.17,69.88V4.14H170l22.67,35.3,22.92-35.3H228V69.88H216.08V22.31L192.55,58.73,169.11,22.4V69.88Z"/><path class="cls-1" d="M266.37,71.44a33,33,0,0,1-14.44-3,23.15,23.15,0,0,1-10-8.91q-3.63-5.88-3.63-14.44a28.55,28.55,0,0,1,3.24-13.84,24.21,24.21,0,0,1,8.95-9.39,25,25,0,0,1,13.06-3.41,23.72,23.72,0,0,1,12.24,3.07,20.73,20.73,0,0,1,8.09,8.6,28,28,0,0,1,2.86,13c0,.69,0,1.37-.09,2s-.14,1.66-.26,3H249.76a15,15,0,0,0,5.54,9.73q4.5,3.49,12.11,3.5a29.22,29.22,0,0,0,17.82-6V65.56a33.79,33.79,0,0,1-8.87,4.28A32.3,32.3,0,0,1,266.37,71.44Zm-3.29-44a12.22,12.22,0,0,0-9,3.42q-3.47,3.42-4.33,9.56h25.95a9.91,9.91,0,0,0-.17-2,13.31,13.31,0,0,0-4.06-8.18A12.31,12.31,0,0,0,263.08,27.41Z"/><path class="cls-1" d="M297.25,69.88V20h11.16l.09,10.38a18,18,0,0,1,6.05-8.13,15,15,0,0,1,9.17-3,25.23,25.23,0,0,1,3.29.25,14.23,14.23,0,0,1,3,.7V31.3a31.73,31.73,0,0,0-7.79-1.12c-4.32,0-7.63,1.4-9.9,4.2s-3.42,6.84-3.42,12.15V69.88Z"/><path class="cls-1" d="M361,71.44a29.28,29.28,0,0,1-14-3.2,22.2,22.2,0,0,1-9.21-9.13,28.44,28.44,0,0,1-3.24-13.88,28.51,28.51,0,0,1,3.33-14,23.93,23.93,0,0,1,9.25-9.39,27.21,27.21,0,0,1,13.71-3.37,25.51,25.51,0,0,1,7.18.95,48.18,48.18,0,0,1,6.23,2.25V32.43a25.27,25.27,0,0,0-12.54-3.55q-7,0-11.2,4.28t-4.2,11.64q0,7.7,4.2,12t11.63,4.28a22.54,22.54,0,0,0,5.8-.73A44.65,44.65,0,0,0,374.2,58v10.3a31.58,31.58,0,0,1-6.1,2.25A28.61,28.61,0,0,1,361,71.44Z"/><path class="cls-1" d="M409.23,71.44a32.94,32.94,0,0,1-14.44-3,23.15,23.15,0,0,1-10-8.91q-3.63-5.88-3.63-14.44a28.55,28.55,0,0,1,3.24-13.84,24.21,24.21,0,0,1,8.95-9.39,25,25,0,0,1,13.06-3.41,23.72,23.72,0,0,1,12.24,3.07,20.73,20.73,0,0,1,8.09,8.6,28,28,0,0,1,2.86,13c0,.69,0,1.37-.09,2s-.15,1.66-.26,3H392.62a15,15,0,0,0,5.54,9.73q4.5,3.49,12.11,3.5a29.22,29.22,0,0,0,17.82-6V65.56a33.79,33.79,0,0,1-8.87,4.28A32.3,32.3,0,0,1,409.23,71.44Zm-3.29-44a12.22,12.22,0,0,0-9,3.42q-3.46,3.42-4.33,9.56h25.95a9.91,9.91,0,0,0-.17-2,13.27,13.27,0,0,0-4.07-8.18A12.26,12.26,0,0,0,405.94,27.41Z"/><path class="cls-1" d="M441.11,69.88V20h11.16l.09,10.38a18,18,0,0,1,6.05-8.13,15,15,0,0,1,9.17-3,25.23,25.23,0,0,1,3.29.25,14.26,14.26,0,0,1,3,.7V31.3a26.81,26.81,0,0,0-3.63-.77,27.53,27.53,0,0,0-4.15-.35q-6.5,0-9.9,4.2t-3.42,12.15V69.88Z"/><path class="cls-1" d="M120.93,15.94,94.65.8a7.46,7.46,0,0,0-6.73,0L15.4,42.57,55.53,11.83,36.38.8a7.46,7.46,0,0,0-6.73,0L3.36,15.94A7.46,7.46,0,0,0,0,21.76V52a7.46,7.46,0,0,0,3.36,5.82L29.65,73a7.46,7.46,0,0,0,6.73,0L108.9,31.23,68.77,62,87.92,73a7.46,7.46,0,0,0,6.73,0l26.28-15.14A7.47,7.47,0,0,0,124.3,52V21.77A7.47,7.47,0,0,0,120.93,15.94Z"/></svg>
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -298,6 +298,32 @@ export class SuperChoicePage {
|
|
|
298
298
|
". Past performance is not a reliable indicator of future performance."),
|
|
299
299
|
h("br", null),
|
|
300
300
|
h("p", null, "Issued by First Super Pty Ltd ABN 42 053 498 472, AFSL 223988 (Trustee) as Trustee of First Super ABN 56 286 625 181.")))
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
fundId: constants.MercerMyChoice.Id,
|
|
304
|
+
name: constants.MercerMyChoice.Name,
|
|
305
|
+
logo: constants.MercerMyChoice.Logo,
|
|
306
|
+
route: SuperSelectionAppRoutes.PromotedFundJoinV2,
|
|
307
|
+
features: [
|
|
308
|
+
h("p", null, "Save more super with our low fees"),
|
|
309
|
+
h("p", null, "Take control with 6 MyChoice investment options"),
|
|
310
|
+
h("p", null, "Join 850,000 Australians who trust our global expertise")
|
|
311
|
+
],
|
|
312
|
+
disclaimer: (h("div", null,
|
|
313
|
+
h("p", null,
|
|
314
|
+
"You should consider the",
|
|
315
|
+
' ',
|
|
316
|
+
h(Link, { href: constants.MercerMyChoice.PdsUrl, onClick: () => this.pdsViewedAsync(constants.MercerMyChoice.Name) }, "Product Disclosure Statement"),
|
|
317
|
+
' ',
|
|
318
|
+
"and",
|
|
319
|
+
' ',
|
|
320
|
+
h(Link, { href: constants.MercerMyChoice.TmdUrl }, "Target Market Determination"),
|
|
321
|
+
' ',
|
|
322
|
+
"before deciding to invest in or apply to become a member of the fund."),
|
|
323
|
+
h("br", null),
|
|
324
|
+
h("p", null,
|
|
325
|
+
"Issued by Mercer Superannuation (Australia) Limited (\u2018Mercer Super\u2019) ABN: ",
|
|
326
|
+
constants.MercerMyChoice.Abn)))
|
|
301
327
|
}
|
|
302
328
|
];
|
|
303
329
|
}
|
|
@@ -82,9 +82,7 @@ export class SuperSelectionApp {
|
|
|
82
82
|
window.location.pathname.includes(SuperSelectionAppRoutes.PromotedFundJoinV2));
|
|
83
83
|
}
|
|
84
84
|
getFooterTextOverride() {
|
|
85
|
-
return
|
|
86
|
-
? constants.getFooterTextOverrideByFundId(promotedFundState.fundId)
|
|
87
|
-
: O.none;
|
|
85
|
+
return constants.getFooterTextOverrideByFundId(promotedFundState.fundId);
|
|
88
86
|
}
|
|
89
87
|
routerBaseUrl() {
|
|
90
88
|
var _a;
|