@flarehr/apollo-super-selection 1.3.40440 → 1.3.40525
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-6126259d.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-a5305364.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_40.cjs.entry.js +15 -3
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +7 -0
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +4 -0
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +3 -2
- package/dist/lib/esm/sss-button_40.entry.js +15 -3
- package/dist/lib/esm-es5/sss-button_40.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-6aa64179.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-dcea3249.entry.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,o;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){o=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){o();return i([["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(e,s){"use strict";var t,i,o;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){o=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){o();return i([["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-6126259d.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32],campaignConnectRequestInProgress:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-consent-page",{history:[16]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[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"],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[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-loading-super-indicator"],[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],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-loading-page"],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16],isMultiFund:[4,"is-multi-fund"],isPromotedDefault:[4,"is-promoted-default"]}],[4,"sss-loading-component",{header:[1]}],[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-prefill-warning-box",{notificationList:[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]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[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"]}]]]],e)}))}}}));
|
|
@@ -264,7 +264,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
const AppVersion = '1.3.
|
|
267
|
+
const AppVersion = '1.3.40525';
|
|
268
268
|
|
|
269
269
|
// -------------------------------------------------------------------------------------
|
|
270
270
|
// guards
|
|
@@ -3305,6 +3305,9 @@ function hydratePromotedFundChoiceDtoKind(dto) {
|
|
|
3305
3305
|
else if ('mercerMyChoice' in dto) {
|
|
3306
3306
|
dto.kind = 'mercerMyChoice';
|
|
3307
3307
|
}
|
|
3308
|
+
else if ('generic' in dto) {
|
|
3309
|
+
dto.kind = 'generic';
|
|
3310
|
+
}
|
|
3308
3311
|
}
|
|
3309
3312
|
function getPromotedFundUsi(dto) {
|
|
3310
3313
|
switch (dto.kind) {
|
|
@@ -3326,6 +3329,8 @@ function getPromotedFundUsi(dto) {
|
|
|
3326
3329
|
return some(dto.firstSuper.usi);
|
|
3327
3330
|
case 'mercerMyChoice':
|
|
3328
3331
|
return some(dto.mercerMyChoice.usi);
|
|
3332
|
+
case 'generic':
|
|
3333
|
+
return some(dto.generic.usi);
|
|
3329
3334
|
default:
|
|
3330
3335
|
return none;
|
|
3331
3336
|
}
|
|
@@ -3366,6 +3371,8 @@ function getPromotedFundMemberNumber(dto) {
|
|
|
3366
3371
|
return some(dto.firstSuper.memberNumber);
|
|
3367
3372
|
case 'mercerMyChoice':
|
|
3368
3373
|
return some(dto.mercerMyChoice.memberNumber);
|
|
3374
|
+
case 'generic':
|
|
3375
|
+
return some(dto.generic.memberNumber);
|
|
3369
3376
|
default:
|
|
3370
3377
|
return none;
|
|
3371
3378
|
}
|
|
@@ -4628,6 +4635,10 @@ const getFundByDtoPropName = (dtoPropName) => {
|
|
|
4628
4635
|
const fund = allPromotedFunds.find((f) => f.dtoPropName == dtoPropName);
|
|
4629
4636
|
return fund ? some(fund) : none;
|
|
4630
4637
|
};
|
|
4638
|
+
const getFundByFundId = (fundId) => {
|
|
4639
|
+
const fund = allPromotedFunds.find((f) => f.fundId == fundId);
|
|
4640
|
+
return fund ? some(fund) : none;
|
|
4641
|
+
};
|
|
4631
4642
|
const getFundNameByFundId = (fundId) => fundsById[fundId] != undefined ? some(fundsById[fundId].name) : none;
|
|
4632
4643
|
const getFooterTextOverrideByFundId = (fundId) => { var _a, _b; return (_b = (_a = fundsById[fundId]) === null || _a === void 0 ? void 0 : _a.footnoteTextOverride) !== null && _b !== void 0 ? _b : none; };
|
|
4633
4644
|
const getFundUsiByFundId = (fundId) => fundId == fund$7.fundId ? some(slateUsi) : none;
|
|
@@ -4647,8 +4658,9 @@ class ExistingFundService {
|
|
|
4647
4658
|
const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
|
|
4648
4659
|
switch (choiceDetails.kind) {
|
|
4649
4660
|
case 'Promoted': {
|
|
4650
|
-
const
|
|
4651
|
-
|
|
4661
|
+
const fund = choiceDetails.promoted['generic']
|
|
4662
|
+
? getFundByFundId(choiceDetails.promoted['generic'].fundId)
|
|
4663
|
+
: getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
|
|
4652
4664
|
if (isNone(fund))
|
|
4653
4665
|
return none;
|
|
4654
4666
|
return some({
|
|
@@ -28,6 +28,9 @@ export function hydratePromotedFundChoiceDtoKind(dto) {
|
|
|
28
28
|
else if ('mercerMyChoice' in dto) {
|
|
29
29
|
dto.kind = 'mercerMyChoice';
|
|
30
30
|
}
|
|
31
|
+
else if ('generic' in dto) {
|
|
32
|
+
dto.kind = 'generic';
|
|
33
|
+
}
|
|
31
34
|
}
|
|
32
35
|
function getPromotedFundUsi(dto) {
|
|
33
36
|
switch (dto.kind) {
|
|
@@ -49,6 +52,8 @@ function getPromotedFundUsi(dto) {
|
|
|
49
52
|
return some(dto.firstSuper.usi);
|
|
50
53
|
case 'mercerMyChoice':
|
|
51
54
|
return some(dto.mercerMyChoice.usi);
|
|
55
|
+
case 'generic':
|
|
56
|
+
return some(dto.generic.usi);
|
|
52
57
|
default:
|
|
53
58
|
assertExhaustive(dto);
|
|
54
59
|
return none;
|
|
@@ -91,6 +96,8 @@ function getPromotedFundMemberNumber(dto) {
|
|
|
91
96
|
return some(dto.firstSuper.memberNumber);
|
|
92
97
|
case 'mercerMyChoice':
|
|
93
98
|
return some(dto.mercerMyChoice.memberNumber);
|
|
99
|
+
case 'generic':
|
|
100
|
+
return some(dto.generic.memberNumber);
|
|
94
101
|
default:
|
|
95
102
|
assertExhaustive(dto);
|
|
96
103
|
return none;
|
|
@@ -29,6 +29,10 @@ export const getFundByDtoPropName = (dtoPropName) => {
|
|
|
29
29
|
const fund = allPromotedFunds.find((f) => f.dtoPropName == dtoPropName);
|
|
30
30
|
return fund ? some(fund) : none;
|
|
31
31
|
};
|
|
32
|
+
export const getFundByFundId = (fundId) => {
|
|
33
|
+
const fund = allPromotedFunds.find((f) => f.fundId == fundId);
|
|
34
|
+
return fund ? some(fund) : none;
|
|
35
|
+
};
|
|
32
36
|
export const getFundNameByFundId = (fundId) => fundsById[fundId] != undefined ? some(fundsById[fundId].name) : none;
|
|
33
37
|
export const getFooterTextOverrideByFundId = (fundId) => { var _a, _b; return (_b = (_a = fundsById[fundId]) === null || _a === void 0 ? void 0 : _a.footnoteTextOverride) !== null && _b !== void 0 ? _b : none; };
|
|
34
38
|
export const getFundUsiByFundId = (fundId) => fundId == slate.fundId ? some(slateUsi) : none;
|
|
@@ -27,8 +27,9 @@ export class ExistingFundService {
|
|
|
27
27
|
const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
|
|
28
28
|
switch (choiceDetails.kind) {
|
|
29
29
|
case 'Promoted': {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const fund = choiceDetails.promoted['generic']
|
|
31
|
+
? constants.getFundByFundId(choiceDetails.promoted['generic'].fundId)
|
|
32
|
+
: constants.getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
|
|
32
33
|
if (isNone(fund))
|
|
33
34
|
return none;
|
|
34
35
|
return some({
|
|
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
const AppVersion = '1.3.
|
|
263
|
+
const AppVersion = '1.3.40525';
|
|
264
264
|
|
|
265
265
|
// -------------------------------------------------------------------------------------
|
|
266
266
|
// guards
|
|
@@ -3301,6 +3301,9 @@ function hydratePromotedFundChoiceDtoKind(dto) {
|
|
|
3301
3301
|
else if ('mercerMyChoice' in dto) {
|
|
3302
3302
|
dto.kind = 'mercerMyChoice';
|
|
3303
3303
|
}
|
|
3304
|
+
else if ('generic' in dto) {
|
|
3305
|
+
dto.kind = 'generic';
|
|
3306
|
+
}
|
|
3304
3307
|
}
|
|
3305
3308
|
function getPromotedFundUsi(dto) {
|
|
3306
3309
|
switch (dto.kind) {
|
|
@@ -3322,6 +3325,8 @@ function getPromotedFundUsi(dto) {
|
|
|
3322
3325
|
return some(dto.firstSuper.usi);
|
|
3323
3326
|
case 'mercerMyChoice':
|
|
3324
3327
|
return some(dto.mercerMyChoice.usi);
|
|
3328
|
+
case 'generic':
|
|
3329
|
+
return some(dto.generic.usi);
|
|
3325
3330
|
default:
|
|
3326
3331
|
return none;
|
|
3327
3332
|
}
|
|
@@ -3362,6 +3367,8 @@ function getPromotedFundMemberNumber(dto) {
|
|
|
3362
3367
|
return some(dto.firstSuper.memberNumber);
|
|
3363
3368
|
case 'mercerMyChoice':
|
|
3364
3369
|
return some(dto.mercerMyChoice.memberNumber);
|
|
3370
|
+
case 'generic':
|
|
3371
|
+
return some(dto.generic.memberNumber);
|
|
3365
3372
|
default:
|
|
3366
3373
|
return none;
|
|
3367
3374
|
}
|
|
@@ -4624,6 +4631,10 @@ const getFundByDtoPropName = (dtoPropName) => {
|
|
|
4624
4631
|
const fund = allPromotedFunds.find((f) => f.dtoPropName == dtoPropName);
|
|
4625
4632
|
return fund ? some(fund) : none;
|
|
4626
4633
|
};
|
|
4634
|
+
const getFundByFundId = (fundId) => {
|
|
4635
|
+
const fund = allPromotedFunds.find((f) => f.fundId == fundId);
|
|
4636
|
+
return fund ? some(fund) : none;
|
|
4637
|
+
};
|
|
4627
4638
|
const getFundNameByFundId = (fundId) => fundsById[fundId] != undefined ? some(fundsById[fundId].name) : none;
|
|
4628
4639
|
const getFooterTextOverrideByFundId = (fundId) => { var _a, _b; return (_b = (_a = fundsById[fundId]) === null || _a === void 0 ? void 0 : _a.footnoteTextOverride) !== null && _b !== void 0 ? _b : none; };
|
|
4629
4640
|
const getFundUsiByFundId = (fundId) => fundId == fund$7.fundId ? some(slateUsi) : none;
|
|
@@ -4643,8 +4654,9 @@ class ExistingFundService {
|
|
|
4643
4654
|
const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
|
|
4644
4655
|
switch (choiceDetails.kind) {
|
|
4645
4656
|
case 'Promoted': {
|
|
4646
|
-
const
|
|
4647
|
-
|
|
4657
|
+
const fund = choiceDetails.promoted['generic']
|
|
4658
|
+
? getFundByFundId(choiceDetails.promoted['generic'].fundId)
|
|
4659
|
+
: getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
|
|
4648
4660
|
if (isNone(fund))
|
|
4649
4661
|
return none;
|
|
4650
4662
|
return some({
|