@flarehr/apollo-super-selection 3.95.13475 → 3.96.14021
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-253a24c3.entry.js +14 -0
- package/dist/lib/apollo-super-selection/{p-ef84114b.system.entry.js → p-9e145635.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_29.cjs.entry.js +22 -10
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +3 -2
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +2 -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/services/promoted-fund-join-v1-iframe-builder.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +3 -1
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +5 -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 +5 -2
- package/dist/lib/esm/sss-button_29.entry.js +22 -10
- package/dist/lib/esm-es5/sss-button_29.entry.js +3 -3
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -1
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-898aa97e.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-9e145635.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]}],[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",{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-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],currentBank:[32],addressErrorMessage:[32]}],[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"],[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"]}],[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 = '3.
|
|
267
|
+
const AppVersion = '3.96.14021';
|
|
268
268
|
|
|
269
269
|
// -------------------------------------------------------------------------------------
|
|
270
270
|
// guards
|
|
@@ -3320,6 +3320,7 @@ const initialState = {
|
|
|
3320
3320
|
superBuyer: Option.none,
|
|
3321
3321
|
promotedFunds: Option.none,
|
|
3322
3322
|
accountConfiguration: Option.none,
|
|
3323
|
+
profileConfiguration: Option.none,
|
|
3323
3324
|
hasSuccessPageBeenAcknowledged: false,
|
|
3324
3325
|
hasSuperSelectionBeenSubmitted: false
|
|
3325
3326
|
};
|
|
@@ -3370,6 +3371,10 @@ class SuperSelectionAppService {
|
|
|
3370
3371
|
return this._state.profileId.value;
|
|
3371
3372
|
}
|
|
3372
3373
|
get defaultFundUsi() {
|
|
3374
|
+
const profileConfigDefaultFundUsi = _function.pipe(this._state.profileConfiguration, Option.map((config) => Option.fromNullable(config.defaultFundUsi)), Option.flatten);
|
|
3375
|
+
if (Option.isSome(profileConfigDefaultFundUsi)) {
|
|
3376
|
+
return profileConfigDefaultFundUsi;
|
|
3377
|
+
}
|
|
3373
3378
|
return _function.pipe(this._state.accountConfiguration, Option.map((config) => Option.fromNullable(config.defaultFundUsi)), Option.flatten);
|
|
3374
3379
|
}
|
|
3375
3380
|
get accountIdOrDefault() {
|
|
@@ -3393,6 +3398,7 @@ class SuperSelectionAppService {
|
|
|
3393
3398
|
async loadAppStateAsync() {
|
|
3394
3399
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
3395
3400
|
this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
|
|
3401
|
+
this._state.profileConfiguration = Option.fromNullable(appStateResponse.profileConfiguration);
|
|
3396
3402
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3397
3403
|
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3398
3404
|
}
|
|
@@ -3801,11 +3807,12 @@ const DefaultFund = class {
|
|
|
3801
3807
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
3802
3808
|
fundUsi: (_b = (_a = this.defaultFund) === null || _a === void 0 ? void 0 : _a.usi) !== null && _b !== void 0 ? _b : '',
|
|
3803
3809
|
fundName: (_d = (_c = this.defaultFund) === null || _c === void 0 ? void 0 : _c.productName) !== null && _d !== void 0 ? _d : '',
|
|
3804
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
3810
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
3811
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
3805
3812
|
});
|
|
3806
3813
|
}
|
|
3807
3814
|
render() {
|
|
3808
|
-
return (index.h(index.Host, null, index.h("sss-header-section", { currentPage: "own-fund" }), index.h("div", { class: "flex justify-center mt-11" }, index.h("sss-custom-fund", null, index.h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg" }, index.h("p", { class: "sm:text-lg font-bold mb-3" }, "Fund details"), index.h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" }, index.h("div", { class: "flex" }, index.h("div", { class: "flex-shrink-0" }, index.h("img", { class: "h-5 w-5", src: index.getAssetPath('assets/icon-exclamation.svg') })), index.h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (index.h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (index.h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s
|
|
3815
|
+
return (index.h(index.Host, null, index.h("sss-header-section", { currentPage: "own-fund" }), index.h("div", { class: "flex justify-center mt-11" }, index.h("sss-custom-fund", null, index.h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg" }, index.h("p", { class: "sm:text-lg font-bold mb-3" }, "Fund details"), index.h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" }, index.h("div", { class: "flex" }, index.h("div", { class: "flex-shrink-0" }, index.h("img", { class: "h-5 w-5", src: index.getAssetPath('assets/icon-exclamation.svg') })), index.h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (index.h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (index.h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s default fund."))))), this.isDefaultFundExists && !this.isInvalidDefaultFund && (index.h("div", null, index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Fund Name"), index.h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm" }, this.defaultFundProductName)), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Fund USI"), index.h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm" }, this.defaultFund.usi))))), index.h("div", { class: "flex justify-center mt-8" }, index.h("div", { class: "sm:max-w-320 w-full" }, this.isDefaultFundExists && !this.isInvalidDefaultFund && (index.h("div", { class: "mb-4" }, index.h("sss-button", { fillWidth: true, promiseFn: () => this.handleSubmitForm() }, "Continue"))), index.h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage }, index.h("sss-button", { fillWidth: true, variant: "secondary" }, "Back"))))))));
|
|
3809
3816
|
}
|
|
3810
3817
|
async handleSubmitForm() {
|
|
3811
3818
|
if (this.isInvalidDefaultFund) {
|
|
@@ -4411,7 +4418,8 @@ const MyOwnFund = class {
|
|
|
4411
4418
|
}
|
|
4412
4419
|
componentDidLoad() {
|
|
4413
4420
|
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
4414
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4421
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
4422
|
+
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4415
4423
|
});
|
|
4416
4424
|
}
|
|
4417
4425
|
render() {
|
|
@@ -4539,7 +4547,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
4539
4547
|
navigationService.navigateInternallyToStandardChoice({
|
|
4540
4548
|
history,
|
|
4541
4549
|
fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
4542
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
4550
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
4543
4551
|
promotedFundId: state$2.fundId
|
|
4544
4552
|
});
|
|
4545
4553
|
break;
|
|
@@ -4657,7 +4665,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4657
4665
|
navigationService.navigateInternallyToStandardChoice({
|
|
4658
4666
|
history,
|
|
4659
4667
|
fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
4660
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
4668
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
4661
4669
|
promotedFundId: state$2.fundId
|
|
4662
4670
|
});
|
|
4663
4671
|
break;
|
|
@@ -4785,7 +4793,8 @@ const SelfManagedFund = class {
|
|
|
4785
4793
|
componentDidLoad() {
|
|
4786
4794
|
this.updateIsSubmitDisabled();
|
|
4787
4795
|
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
4788
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4796
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
4797
|
+
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4789
4798
|
});
|
|
4790
4799
|
}
|
|
4791
4800
|
render() {
|
|
@@ -5129,7 +5138,8 @@ class SlateIFrameBuilder {
|
|
|
5129
5138
|
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
|
|
5130
5139
|
memberNumber: data.memberNumber,
|
|
5131
5140
|
standardChoiceFormSignature,
|
|
5132
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
5141
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
5142
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5133
5143
|
}),
|
|
5134
5144
|
promotedFundId: Slate.Id
|
|
5135
5145
|
});
|
|
@@ -5290,7 +5300,8 @@ const SuperChoicePage = class {
|
|
|
5290
5300
|
componentDidLoad() {
|
|
5291
5301
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
5292
5302
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
5293
|
-
promotedFundsShown
|
|
5303
|
+
promotedFundsShown,
|
|
5304
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5294
5305
|
});
|
|
5295
5306
|
}
|
|
5296
5307
|
render() {
|
|
@@ -5435,7 +5446,8 @@ const SuperChoicePage = class {
|
|
|
5435
5446
|
fundUsi: getFundUsiById(fund.fundId),
|
|
5436
5447
|
fundName: (_a = getFundNameById(fund.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
5437
5448
|
promotedFundId: fund.fundId,
|
|
5438
|
-
promotedFundsShown
|
|
5449
|
+
promotedFundsShown,
|
|
5450
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5439
5451
|
});
|
|
5440
5452
|
state$2.fundId = fund.fundId;
|
|
5441
5453
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
@@ -30,7 +30,8 @@ export class DefaultFund {
|
|
|
30
30
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
31
31
|
fundUsi: (_b = (_a = this.defaultFund) === null || _a === void 0 ? void 0 : _a.usi) !== null && _b !== void 0 ? _b : '',
|
|
32
32
|
fundName: (_d = (_c = this.defaultFund) === null || _c === void 0 ? void 0 : _c.productName) !== null && _d !== void 0 ? _d : '',
|
|
33
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
33
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
34
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
render() {
|
|
@@ -44,7 +45,7 @@ export class DefaultFund {
|
|
|
44
45
|
h("div", { class: "flex" },
|
|
45
46
|
h("div", { class: "flex-shrink-0" },
|
|
46
47
|
h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-exclamation.svg') })),
|
|
47
|
-
h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s
|
|
48
|
+
h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s default fund."))))),
|
|
48
49
|
this.isDefaultFundExists && !this.isInvalidDefaultFund && (h("div", null,
|
|
49
50
|
h("div", { class: "mt-3" },
|
|
50
51
|
h("label", { class: "text-sm font-medium text-gray-700" }, "Fund Name"),
|
|
@@ -16,7 +16,8 @@ export class MyOwnFund {
|
|
|
16
16
|
}
|
|
17
17
|
componentDidLoad() {
|
|
18
18
|
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
19
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
19
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
20
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
23
|
render() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
|
|
2
2
|
import { injectHistory } from '@stencil/router';
|
|
3
|
+
import * as O from 'fp-ts/Option';
|
|
3
4
|
import { EventTrackingService } from '../../../services/event-tracking.service';
|
|
4
5
|
import navigationService from '../../../services/navigation.service';
|
|
5
6
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
@@ -43,7 +44,8 @@ export class SelfManagedFund {
|
|
|
43
44
|
componentDidLoad() {
|
|
44
45
|
this.updateIsSubmitDisabled();
|
|
45
46
|
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
46
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
47
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
48
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
47
49
|
});
|
|
48
50
|
}
|
|
49
51
|
render() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as O from 'fp-ts/lib/Option';
|
|
1
2
|
import iframeUtil from '../../../../../utils/iframe';
|
|
2
3
|
import navigationService from '../../../services/navigation.service';
|
|
3
4
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
@@ -38,7 +39,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
38
39
|
navigationService.navigateInternallyToStandardChoice({
|
|
39
40
|
history,
|
|
40
41
|
fundName: (_a = getFundNameById(promotedFundState.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
41
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
42
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
42
43
|
promotedFundId: promotedFundState.fundId
|
|
43
44
|
});
|
|
44
45
|
break;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as O from 'fp-ts/lib/Option';
|
|
1
2
|
import iframeUtil from '../../../../../utils/iframe';
|
|
2
3
|
import navigationService from '../../../services/navigation.service';
|
|
3
4
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
@@ -44,7 +45,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
44
45
|
navigationService.navigateInternallyToStandardChoice({
|
|
45
46
|
history,
|
|
46
47
|
fundName: (_a = getFundNameById(promotedFundState.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
47
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
48
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, promotedFundState), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
48
49
|
promotedFundId: promotedFundState.fundId
|
|
49
50
|
});
|
|
50
51
|
break;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as O from 'fp-ts/lib/Option';
|
|
1
2
|
import interopQuery from '../../../../app-host/services/interop.query';
|
|
2
3
|
import navigationService from '../../../services/navigation.service';
|
|
3
4
|
import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
|
|
@@ -53,7 +54,8 @@ class SlateIFrameBuilder {
|
|
|
53
54
|
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
|
|
54
55
|
memberNumber: data.memberNumber,
|
|
55
56
|
standardChoiceFormSignature,
|
|
56
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
57
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
58
|
+
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
57
59
|
}),
|
|
58
60
|
promotedFundId: Slate.Id
|
|
59
61
|
});
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
CHANGED
|
@@ -50,6 +50,10 @@ export class SuperSelectionAppService {
|
|
|
50
50
|
return this._state.profileId.value;
|
|
51
51
|
}
|
|
52
52
|
get defaultFundUsi() {
|
|
53
|
+
const profileConfigDefaultFundUsi = pipe(this._state.profileConfiguration, O.map((config) => O.fromNullable(config.defaultFundUsi)), O.flatten);
|
|
54
|
+
if (O.isSome(profileConfigDefaultFundUsi)) {
|
|
55
|
+
return profileConfigDefaultFundUsi;
|
|
56
|
+
}
|
|
53
57
|
return pipe(this._state.accountConfiguration, O.map((config) => O.fromNullable(config.defaultFundUsi)), O.flatten);
|
|
54
58
|
}
|
|
55
59
|
get accountIdOrDefault() {
|
|
@@ -73,6 +77,7 @@ export class SuperSelectionAppService {
|
|
|
73
77
|
async loadAppStateAsync() {
|
|
74
78
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
75
79
|
this._state.accountConfiguration = O.fromNullable(appStateResponse.accountConfiguration);
|
|
80
|
+
this._state.profileConfiguration = O.fromNullable(appStateResponse.profileConfiguration);
|
|
76
81
|
this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
|
|
77
82
|
this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
|
|
78
83
|
}
|
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
+
import * as O from 'fp-ts/lib/Option';
|
|
2
3
|
import * as constants from '../funds/constants';
|
|
3
4
|
import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
|
|
4
5
|
import { EventTrackingService } from '../services/event-tracking.service';
|
|
@@ -14,7 +15,8 @@ export class SuperChoicePage {
|
|
|
14
15
|
componentDidLoad() {
|
|
15
16
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
16
17
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
17
|
-
promotedFundsShown
|
|
18
|
+
promotedFundsShown,
|
|
19
|
+
defaultFundUsiSet: O.toUndefined(SuperSelectionAppService.defaultFundUsi)
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
render() {
|
|
@@ -297,7 +299,8 @@ export class SuperChoicePage {
|
|
|
297
299
|
fundUsi: constants.getFundUsiById(fund.fundId),
|
|
298
300
|
fundName: (_a = constants.getFundNameById(fund.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
299
301
|
promotedFundId: fund.fundId,
|
|
300
|
-
promotedFundsShown
|
|
302
|
+
promotedFundsShown,
|
|
303
|
+
defaultFundUsiSet: O.toUndefined(SuperSelectionAppService.defaultFundUsi)
|
|
301
304
|
});
|
|
302
305
|
promotedFundState.fundId = fund.fundId;
|
|
303
306
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '3.
|
|
263
|
+
const AppVersion = '3.96.14021';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -3316,6 +3316,7 @@ const initialState = {
|
|
|
3316
3316
|
superBuyer: Option.none,
|
|
3317
3317
|
promotedFunds: Option.none,
|
|
3318
3318
|
accountConfiguration: Option.none,
|
|
3319
|
+
profileConfiguration: Option.none,
|
|
3319
3320
|
hasSuccessPageBeenAcknowledged: false,
|
|
3320
3321
|
hasSuperSelectionBeenSubmitted: false
|
|
3321
3322
|
};
|
|
@@ -3366,6 +3367,10 @@ class SuperSelectionAppService {
|
|
|
3366
3367
|
return this._state.profileId.value;
|
|
3367
3368
|
}
|
|
3368
3369
|
get defaultFundUsi() {
|
|
3370
|
+
const profileConfigDefaultFundUsi = _function.pipe(this._state.profileConfiguration, Option.map((config) => Option.fromNullable(config.defaultFundUsi)), Option.flatten);
|
|
3371
|
+
if (Option.isSome(profileConfigDefaultFundUsi)) {
|
|
3372
|
+
return profileConfigDefaultFundUsi;
|
|
3373
|
+
}
|
|
3369
3374
|
return _function.pipe(this._state.accountConfiguration, Option.map((config) => Option.fromNullable(config.defaultFundUsi)), Option.flatten);
|
|
3370
3375
|
}
|
|
3371
3376
|
get accountIdOrDefault() {
|
|
@@ -3389,6 +3394,7 @@ class SuperSelectionAppService {
|
|
|
3389
3394
|
async loadAppStateAsync() {
|
|
3390
3395
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
3391
3396
|
this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
|
|
3397
|
+
this._state.profileConfiguration = Option.fromNullable(appStateResponse.profileConfiguration);
|
|
3392
3398
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3393
3399
|
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3394
3400
|
}
|
|
@@ -3797,11 +3803,12 @@ const DefaultFund = class {
|
|
|
3797
3803
|
return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({
|
|
3798
3804
|
fundUsi: (_b = (_a = this.defaultFund) === null || _a === void 0 ? void 0 : _a.usi) !== null && _b !== void 0 ? _b : '',
|
|
3799
3805
|
fundName: (_d = (_c = this.defaultFund) === null || _c === void 0 ? void 0 : _c.productName) !== null && _d !== void 0 ? _d : '',
|
|
3800
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
3806
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
3807
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
3801
3808
|
});
|
|
3802
3809
|
}
|
|
3803
3810
|
render() {
|
|
3804
|
-
return (h(Host, null, h("sss-header-section", { currentPage: "own-fund" }), h("div", { class: "flex justify-center mt-11" }, h("sss-custom-fund", null, h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg" }, h("p", { class: "sm:text-lg font-bold mb-3" }, "Fund details"), h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" }, h("div", { class: "flex" }, h("div", { class: "flex-shrink-0" }, h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-exclamation.svg') })), h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s
|
|
3811
|
+
return (h(Host, null, h("sss-header-section", { currentPage: "own-fund" }), h("div", { class: "flex justify-center mt-11" }, h("sss-custom-fund", null, h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg" }, h("p", { class: "sm:text-lg font-bold mb-3" }, "Fund details"), h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" }, h("div", { class: "flex" }, h("div", { class: "flex-shrink-0" }, h("img", { class: "h-5 w-5", src: getAssetPath('assets/icon-exclamation.svg') })), h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, this.isDefaultFundExists && !this.isInvalidDefaultFund ? (h("span", null, "By choosing to join your employer\u2019s default super fund, you acknowledge that your application to join is subject to Trustee approval.")) : (h("span", null, "It looks like your employer has not specified a default fund, please contact them if you\u2019d like to use your company\u2019s default fund."))))), this.isDefaultFundExists && !this.isInvalidDefaultFund && (h("div", null, h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Fund Name"), h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm" }, this.defaultFundProductName)), h("div", { class: "mt-3" }, h("label", { class: "text-sm font-medium text-gray-700" }, "Fund USI"), h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm" }, this.defaultFund.usi))))), h("div", { class: "flex justify-center mt-8" }, h("div", { class: "sm:max-w-320 w-full" }, this.isDefaultFundExists && !this.isInvalidDefaultFund && (h("div", { class: "mb-4" }, h("sss-button", { fillWidth: true, promiseFn: () => this.handleSubmitForm() }, "Continue"))), h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage }, h("sss-button", { fillWidth: true, variant: "secondary" }, "Back"))))))));
|
|
3805
3812
|
}
|
|
3806
3813
|
async handleSubmitForm() {
|
|
3807
3814
|
if (this.isInvalidDefaultFund) {
|
|
@@ -4407,7 +4414,8 @@ const MyOwnFund = class {
|
|
|
4407
4414
|
}
|
|
4408
4415
|
componentDidLoad() {
|
|
4409
4416
|
return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
|
|
4410
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4417
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
4418
|
+
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4411
4419
|
});
|
|
4412
4420
|
}
|
|
4413
4421
|
render() {
|
|
@@ -4535,7 +4543,7 @@ class PromotedFundJoinV1IFrameBuilder {
|
|
|
4535
4543
|
navigationService.navigateInternallyToStandardChoice({
|
|
4536
4544
|
history,
|
|
4537
4545
|
fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
4538
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
4546
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
4539
4547
|
promotedFundId: state$2.fundId
|
|
4540
4548
|
});
|
|
4541
4549
|
break;
|
|
@@ -4653,7 +4661,7 @@ class PromotedFundJoinV2IFrameBuilder {
|
|
|
4653
4661
|
navigationService.navigateInternallyToStandardChoice({
|
|
4654
4662
|
history,
|
|
4655
4663
|
fundName: (_a = getFundNameById(state$2.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
4656
|
-
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds })),
|
|
4664
|
+
handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync(Object.assign(Object.assign({}, state$2), { memberNumber: data.memberNumber, usi: data.usi.replace(/ /g, ''), standardChoiceFormSignature, shownFunds: superSelectionAppService.promotedFunds, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) })),
|
|
4657
4665
|
promotedFundId: state$2.fundId
|
|
4658
4666
|
});
|
|
4659
4667
|
break;
|
|
@@ -4781,7 +4789,8 @@ const SelfManagedFund = class {
|
|
|
4781
4789
|
componentDidLoad() {
|
|
4782
4790
|
this.updateIsSubmitDisabled();
|
|
4783
4791
|
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
4784
|
-
promotedFundsShown: superSelectionAppService.promotedFunds
|
|
4792
|
+
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
4793
|
+
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
4785
4794
|
});
|
|
4786
4795
|
}
|
|
4787
4796
|
render() {
|
|
@@ -5125,7 +5134,8 @@ class SlateIFrameBuilder {
|
|
|
5125
5134
|
handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
|
|
5126
5135
|
memberNumber: data.memberNumber,
|
|
5127
5136
|
standardChoiceFormSignature,
|
|
5128
|
-
shownFunds: superSelectionAppService.promotedFunds
|
|
5137
|
+
shownFunds: superSelectionAppService.promotedFunds,
|
|
5138
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5129
5139
|
}),
|
|
5130
5140
|
promotedFundId: Slate.Id
|
|
5131
5141
|
});
|
|
@@ -5286,7 +5296,8 @@ const SuperChoicePage = class {
|
|
|
5286
5296
|
componentDidLoad() {
|
|
5287
5297
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
5288
5298
|
return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
5289
|
-
promotedFundsShown
|
|
5299
|
+
promotedFundsShown,
|
|
5300
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5290
5301
|
});
|
|
5291
5302
|
}
|
|
5292
5303
|
render() {
|
|
@@ -5431,7 +5442,8 @@ const SuperChoicePage = class {
|
|
|
5431
5442
|
fundUsi: getFundUsiById(fund.fundId),
|
|
5432
5443
|
fundName: (_a = getFundNameById(fund.fundId)) !== null && _a !== void 0 ? _a : '',
|
|
5433
5444
|
promotedFundId: fund.fundId,
|
|
5434
|
-
promotedFundsShown
|
|
5445
|
+
promotedFundsShown,
|
|
5446
|
+
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5435
5447
|
});
|
|
5436
5448
|
state$2.fundId = fund.fundId;
|
|
5437
5449
|
return navigationService.navigateInternally(this.history, fund.route);
|