@flarehr/apollo-super-selection 3.95.13475 → 4.0.14518

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.
Files changed (29) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/assets/logo-first.svg +15 -0
  3. package/dist/lib/apollo-super-selection/p-2d18a805.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/apollo-super-selection/p-e367fcf2.entry.js +14 -0
  6. package/dist/lib/cjs/sss-button_29.cjs.entry.js +54 -11
  7. package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +6 -0
  8. package/dist/lib/collection/components/super-selection-app/funds/constants.js +14 -1
  9. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +3 -2
  10. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +2 -1
  11. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +3 -1
  12. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +2 -1
  13. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +2 -1
  14. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +3 -1
  15. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +5 -0
  16. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
  17. package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-first.svg +15 -0
  18. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +29 -2
  19. package/dist/lib/esm/sss-button_29.entry.js +54 -11
  20. package/dist/lib/esm-es5/sss-button_29.entry.js +3 -3
  21. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +5 -0
  22. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +9 -0
  23. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +7 -0
  24. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +1 -0
  25. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +1 -0
  26. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -1
  27. package/package.json +1 -1
  28. package/dist/lib/apollo-super-selection/p-898aa97e.entry.js +0 -14
  29. package/dist/lib/apollo-super-selection/p-ef84114b.system.entry.js +0 -69
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '3.95.13475';
263
+ const AppVersion = '4.0.14518';
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 defaut 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"))))))));
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) {
@@ -4019,6 +4026,13 @@ const Spirit = {
4019
4026
  PdsUrl: 'https://www.spiritsuper.com.au/pds',
4020
4027
  Abn: '74 559 365 913'
4021
4028
  };
4029
+ const First = {
4030
+ Id: 'first-super',
4031
+ Name: 'First Super',
4032
+ Logo: 'logo-first.svg',
4033
+ PdsUrl: 'https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/',
4034
+ Abn: '56 286 625 181'
4035
+ };
4022
4036
  const PromotedFundIdList = [
4023
4037
  { dtoPropName: 'slate', id: Slate.Id },
4024
4038
  { dtoPropName: 'australianRetirementTrust', id: AustralianRetirementTrust.Id },
@@ -4026,7 +4040,8 @@ const PromotedFundIdList = [
4026
4040
  { dtoPropName: 'active', id: Active.Id },
4027
4041
  { dtoPropName: 'australianEthical', id: AustralianEthical.Id },
4028
4042
  { dtoPropName: 'virgin', id: Virgin.Id },
4029
- { dtoPropName: 'spirit', id: Spirit.Id }
4043
+ { dtoPropName: 'spirit', id: Spirit.Id },
4044
+ { dtoPropName: 'firstSuper', id: First.Id }
4030
4045
  ];
4031
4046
  const getFundNameById = (id) => {
4032
4047
  switch (id) {
@@ -4044,6 +4059,8 @@ const getFundNameById = (id) => {
4044
4059
  return Virgin.Name;
4045
4060
  case Spirit.Id:
4046
4061
  return Spirit.Name;
4062
+ case First.Id:
4063
+ return First.Name;
4047
4064
  default:
4048
4065
  return;
4049
4066
  }
@@ -4080,6 +4097,9 @@ const getLogoSrc = (id) => {
4080
4097
  case Spirit.Id:
4081
4098
  logo = Spirit.Logo;
4082
4099
  break;
4100
+ case First.Id:
4101
+ logo = First.Logo;
4102
+ break;
4083
4103
  default:
4084
4104
  return;
4085
4105
  }
@@ -4109,6 +4129,9 @@ function getPromotedFundUsi(dto) {
4109
4129
  else if ('spirit' in dto) {
4110
4130
  return some(dto.spirit.usi);
4111
4131
  }
4132
+ else if ('firstSuper' in dto) {
4133
+ return some(dto.firstSuper.usi);
4134
+ }
4112
4135
  else {
4113
4136
  return none;
4114
4137
  }
@@ -4152,6 +4175,9 @@ function getPromotedFundMemberNumber(dto) {
4152
4175
  else if ('spirit' in dto) {
4153
4176
  return some(dto.spirit.memberNumber);
4154
4177
  }
4178
+ else if ('firstSuper' in dto) {
4179
+ return some(dto.firstSuper.memberNumber);
4180
+ }
4155
4181
  else {
4156
4182
  return none;
4157
4183
  }
@@ -4407,7 +4433,8 @@ const MyOwnFund = class {
4407
4433
  }
4408
4434
  componentDidLoad() {
4409
4435
  return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({
4410
- promotedFundsShown: superSelectionAppService.promotedFunds
4436
+ promotedFundsShown: superSelectionAppService.promotedFunds,
4437
+ defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
4411
4438
  });
4412
4439
  }
4413
4440
  render() {
@@ -4535,7 +4562,7 @@ class PromotedFundJoinV1IFrameBuilder {
4535
4562
  navigationService.navigateInternallyToStandardChoice({
4536
4563
  history,
4537
4564
  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 })),
4565
+ 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
4566
  promotedFundId: state$2.fundId
4540
4567
  });
4541
4568
  break;
@@ -4653,7 +4680,7 @@ class PromotedFundJoinV2IFrameBuilder {
4653
4680
  navigationService.navigateInternallyToStandardChoice({
4654
4681
  history,
4655
4682
  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 })),
4683
+ 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
4684
  promotedFundId: state$2.fundId
4658
4685
  });
4659
4686
  break;
@@ -4781,7 +4808,8 @@ const SelfManagedFund = class {
4781
4808
  componentDidLoad() {
4782
4809
  this.updateIsSubmitDisabled();
4783
4810
  return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
4784
- promotedFundsShown: superSelectionAppService.promotedFunds
4811
+ promotedFundsShown: superSelectionAppService.promotedFunds,
4812
+ defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
4785
4813
  });
4786
4814
  }
4787
4815
  render() {
@@ -5125,7 +5153,8 @@ class SlateIFrameBuilder {
5125
5153
  handleSubmitFn: (standardChoiceFormSignature) => slateChoiceApi.submitSlateChoiceAsync({
5126
5154
  memberNumber: data.memberNumber,
5127
5155
  standardChoiceFormSignature,
5128
- shownFunds: superSelectionAppService.promotedFunds
5156
+ shownFunds: superSelectionAppService.promotedFunds,
5157
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
5129
5158
  }),
5130
5159
  promotedFundId: Slate.Id
5131
5160
  });
@@ -5286,7 +5315,8 @@ const SuperChoicePage = class {
5286
5315
  componentDidLoad() {
5287
5316
  const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
5288
5317
  return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
5289
- promotedFundsShown
5318
+ promotedFundsShown,
5319
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
5290
5320
  });
5291
5321
  }
5292
5322
  render() {
@@ -5411,6 +5441,18 @@ const SuperChoicePage = class {
5411
5441
  ],
5412
5442
  featureSubText: (h("div", { class: "m-4 pt-2" }, h("ol", { class: "list-decimal space-y-2" }, h("li", null, h("span", null, "CSBA SenseCX Benchmark 2021-22")), h("li", null, h("span", null, "Awarded Best for Value in the WeMoney Superannuation Awards 2022")), h("li", null, h("span", null, "Just $67.60 + 0.15% pa admin fees, capped at $517.60")), h("li", null, h("span", null, "Rainmaker ESG Leader Rating 2022"))))),
5413
5443
  disclaimer: (h("p", null, "Past performance isn\u2019t a reliable indicator of future performance. Consider the PDS and TMD at", ' ', h(Link, { href: Spirit.PdsUrl, onClick: () => this.pdsViewedAsync(Spirit.Name) }, "www.spiritsuper.com.au/pds"), ' ', "before making a decision. Issuer is Motor Trades Association of Australia Superannuation Fund Pty Ltd (AFSL 238 718, ABN 14 008 650 628), the trustee of Spirit Super (ABN 74 559 365 913). Advice is provided by Quadrant First Pty Ltd (ABN 78 102 167 877, AFSL 284443)."))
5444
+ },
5445
+ {
5446
+ fundId: First.Id,
5447
+ name: First.Name,
5448
+ logo: First.Logo,
5449
+ route: SuperSelectionAppRoutes.PromotedFundJoinV2,
5450
+ features: [
5451
+ h("p", null, "Industry SuperFund that puts members FIRST"),
5452
+ h("p", null, "Strong long-term investment returns and superior customer service"),
5453
+ h("p", null, "Established super fund \u2013 anyone can join including KiwiSaver members")
5454
+ ],
5455
+ disclaimer: (h("div", null, h("p", null, "You should consider the", ' ', h(Link, { onClick: () => this.pdsViewedAsync(First.Name), href: First.PdsUrl }, "Product Disclosure Statement"), ' ', "and", ' ', h(Link, { href: "https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/" }, "Target Market Determination"), ' ', "before deciding to invest in or apply to become a member of the fund."), h("br", null), h("p", null, "Issued by First Super Pty Limited (ABN 42 053 498 472, AFSL 223988) as trustee of First Super (ABN 56 286 625 181).")))
5414
5456
  }
5415
5457
  ];
5416
5458
  }
@@ -5431,7 +5473,8 @@ const SuperChoicePage = class {
5431
5473
  fundUsi: getFundUsiById(fund.fundId),
5432
5474
  fundName: (_a = getFundNameById(fund.fundId)) !== null && _a !== void 0 ? _a : '',
5433
5475
  promotedFundId: fund.fundId,
5434
- promotedFundsShown
5476
+ promotedFundsShown,
5477
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
5435
5478
  });
5436
5479
  state$2.fundId = fund.fundId;
5437
5480
  return navigationService.navigateInternally(this.history, fund.route);