@flarehr/apollo-super-selection 5.23.54085 → 5.24.54264

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.
@@ -1 +1 @@
1
- System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(s,e){"use strict";var t,i,o;return{setters:[function(s){t=s.p;i=s.b},function(){},function(s){o=s.g}],execute:function(){var s=function(){var s=e.meta.url;var i={};if(s!==""){i.resourcesUrl=new URL(".",s).href}return t(i)};s().then((function(s){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-8e24008c.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-wrapper",{history:[16]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-consent-page-wrapper",{history:[16]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[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-super-choice-page",{history:[16],promotedFunds:[32]}],[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-consent-page",{history:[16],campaignConnectRequestInProgress:[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-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],abnValidationStatus:[32],isAbnTouched:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],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]}],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16],customContent:[16],isMultiFund:[4,"is-multi-fund"],isPromotedDefault:[4,"is-promoted-default"],extraBadge:[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]}],[4,"sss-loading-component",{header:[1]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[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",{testid:[1],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)}))}}}));
1
+ System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(s,e){"use strict";var t,i,o;return{setters:[function(s){t=s.p;i=s.b},function(){},function(s){o=s.g}],execute:function(){var s=function(){var s=e.meta.url;var i={};if(s!==""){i.resourcesUrl=new URL(".",s).href}return t(i)};s().then((function(s){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-b0120851.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-wrapper",{history:[16]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-consent-page-wrapper",{history:[16]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[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-super-choice-page",{history:[16],promotedFunds:[32]}],[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-consent-page",{history:[16],campaignConnectRequestInProgress:[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-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],abnValidationStatus:[32],isAbnTouched:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],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]}],[0,"sss-super-choice-item-top",{name:[1],logo:[1],features:[16],featureSubText:[16],customContent:[16],isMultiFund:[4,"is-multi-fund"],isPromotedDefault:[4,"is-promoted-default"],extraBadge:[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]}],[4,"sss-loading-component",{header:[1]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[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",{testid:[1],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)}))}}}));
@@ -284,7 +284,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
284
284
  }
285
285
  }
286
286
 
287
- const AppVersion = '5.23.54085';
287
+ const AppVersion = '5.24.54264';
288
288
 
289
289
  // -------------------------------------------------------------------------------------
290
290
  // guards
@@ -3368,6 +3368,32 @@ function getPromotedFundUsi(dto) {
3368
3368
  return none;
3369
3369
  }
3370
3370
  }
3371
+ function getPromotedFundId(dto) {
3372
+ switch (dto.kind) {
3373
+ case 'slate':
3374
+ return 'slate';
3375
+ case 'australianRetirementTrust':
3376
+ return 'australian-retirement-trust';
3377
+ case 'aware':
3378
+ return 'aware';
3379
+ case 'active':
3380
+ return 'active';
3381
+ case 'australianEthical':
3382
+ return 'australian-ethical';
3383
+ case 'virgin':
3384
+ return 'virgin';
3385
+ case 'spirit':
3386
+ return 'spirit';
3387
+ case 'firstSuper':
3388
+ return 'first-super';
3389
+ case 'mercerMyChoice':
3390
+ return 'mercermychoice';
3391
+ case 'generic':
3392
+ return dto.generic.fundId;
3393
+ default:
3394
+ return '';
3395
+ }
3396
+ }
3371
3397
  function getSuperChoiceUsi(dto) {
3372
3398
  switch (dto.kind) {
3373
3399
  case 'Promoted':
@@ -4893,12 +4919,21 @@ class ExistingFundService {
4893
4919
  const fund = choiceDetails.promoted['generic']
4894
4920
  ? getFundByFundId(choiceDetails.promoted['generic'].fundId)
4895
4921
  : getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
4896
- if (isNone(fund))
4922
+ let fundName = '';
4923
+ if (isSome(fund)) {
4924
+ fundName = fund.value.name;
4925
+ }
4926
+ else if (isSome(usi)) {
4927
+ const fundLookup = await this.getFundByUsiAsync(usi.value);
4928
+ fundName = isSome(fundLookup) ? fundLookup.value.productName : usi.value;
4929
+ }
4930
+ else {
4897
4931
  return none;
4932
+ }
4898
4933
  return some({
4899
4934
  type: 'Promoted Fund',
4900
- id: fund.value.fundId,
4901
- name: fund.value.name,
4935
+ id: getPromotedFundId(choiceDetails.promoted),
4936
+ name: fundName,
4902
4937
  usi: usi,
4903
4938
  valid: 'Active',
4904
4939
  memberNumber: memberNumber,
@@ -59,6 +59,33 @@ function getPromotedFundUsi(dto) {
59
59
  return none;
60
60
  }
61
61
  }
62
+ export function getPromotedFundId(dto) {
63
+ switch (dto.kind) {
64
+ case 'slate':
65
+ return 'slate';
66
+ case 'australianRetirementTrust':
67
+ return 'australian-retirement-trust';
68
+ case 'aware':
69
+ return 'aware';
70
+ case 'active':
71
+ return 'active';
72
+ case 'australianEthical':
73
+ return 'australian-ethical';
74
+ case 'virgin':
75
+ return 'virgin';
76
+ case 'spirit':
77
+ return 'spirit';
78
+ case 'firstSuper':
79
+ return 'first-super';
80
+ case 'mercerMyChoice':
81
+ return 'mercermychoice';
82
+ case 'generic':
83
+ return dto.generic.fundId;
84
+ default:
85
+ assertExhaustive(dto);
86
+ return '';
87
+ }
88
+ }
62
89
  export function getSuperChoiceUsi(dto) {
63
90
  switch (dto.kind) {
64
91
  case 'Promoted':
@@ -1,7 +1,7 @@
1
- import { isNone, isSome, none, some } from 'fp-ts/Option';
1
+ import { isSome, none, some } from 'fp-ts/Option';
2
2
  import { assertExhaustive } from '../../../utils';
3
3
  import { buildBackendApiClient } from '../api/api-client';
4
- import { getSuperChoiceMemberNumber, getSuperChoiceUsi } from '../api/super-selection.api.dto';
4
+ import { getPromotedFundId, getSuperChoiceMemberNumber, getSuperChoiceUsi } from '../api/super-selection.api.dto';
5
5
  import * as constants from '../funds/constants';
6
6
  import australianFundLookupService from './australian-fund-lookup.service';
7
7
  import superSelectionAppService from './super-selection-app.service';
@@ -30,12 +30,21 @@ export class ExistingFundService {
30
30
  const fund = choiceDetails.promoted['generic']
31
31
  ? constants.getFundByFundId(choiceDetails.promoted['generic'].fundId)
32
32
  : constants.getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
33
- if (isNone(fund))
33
+ let fundName = '';
34
+ if (isSome(fund)) {
35
+ fundName = fund.value.name;
36
+ }
37
+ else if (isSome(usi)) {
38
+ const fundLookup = await this.getFundByUsiAsync(usi.value);
39
+ fundName = isSome(fundLookup) ? fundLookup.value.productName : usi.value;
40
+ }
41
+ else {
34
42
  return none;
43
+ }
35
44
  return some({
36
45
  type: 'Promoted Fund',
37
- id: fund.value.fundId,
38
- name: fund.value.name,
46
+ id: getPromotedFundId(choiceDetails.promoted),
47
+ name: fundName,
39
48
  usi: usi,
40
49
  valid: 'Active',
41
50
  memberNumber: memberNumber,
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '5.23.54085';
263
+ const AppVersion = '5.24.54264';
264
264
 
265
265
  // -------------------------------------------------------------------------------------
266
266
  // guards
@@ -3344,6 +3344,32 @@ function getPromotedFundUsi(dto) {
3344
3344
  return none;
3345
3345
  }
3346
3346
  }
3347
+ function getPromotedFundId(dto) {
3348
+ switch (dto.kind) {
3349
+ case 'slate':
3350
+ return 'slate';
3351
+ case 'australianRetirementTrust':
3352
+ return 'australian-retirement-trust';
3353
+ case 'aware':
3354
+ return 'aware';
3355
+ case 'active':
3356
+ return 'active';
3357
+ case 'australianEthical':
3358
+ return 'australian-ethical';
3359
+ case 'virgin':
3360
+ return 'virgin';
3361
+ case 'spirit':
3362
+ return 'spirit';
3363
+ case 'firstSuper':
3364
+ return 'first-super';
3365
+ case 'mercerMyChoice':
3366
+ return 'mercermychoice';
3367
+ case 'generic':
3368
+ return dto.generic.fundId;
3369
+ default:
3370
+ return '';
3371
+ }
3372
+ }
3347
3373
  function getSuperChoiceUsi(dto) {
3348
3374
  switch (dto.kind) {
3349
3375
  case 'Promoted':
@@ -4869,12 +4895,21 @@ class ExistingFundService {
4869
4895
  const fund = choiceDetails.promoted['generic']
4870
4896
  ? getFundByFundId(choiceDetails.promoted['generic'].fundId)
4871
4897
  : getFundByDtoPropName(Object.keys(choiceDetails.promoted)[0]);
4872
- if (isNone(fund))
4898
+ let fundName = '';
4899
+ if (isSome(fund)) {
4900
+ fundName = fund.value.name;
4901
+ }
4902
+ else if (isSome(usi)) {
4903
+ const fundLookup = await this.getFundByUsiAsync(usi.value);
4904
+ fundName = isSome(fundLookup) ? fundLookup.value.productName : usi.value;
4905
+ }
4906
+ else {
4873
4907
  return none;
4908
+ }
4874
4909
  return some({
4875
4910
  type: 'Promoted Fund',
4876
- id: fund.value.fundId,
4877
- name: fund.value.name,
4911
+ id: getPromotedFundId(choiceDetails.promoted),
4912
+ name: fundName,
4878
4913
  usi: usi,
4879
4914
  valid: 'Active',
4880
4915
  memberNumber: memberNumber,