@flarehr/apollo-super-selection 3.18.52782 → 3.22.53760

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 (42) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-54a2d842.entry.js +14 -0
  3. package/dist/lib/apollo-super-selection/p-a493ed28.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
  5. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  6. package/dist/lib/cjs/{fl-button_44.cjs.entry.js → fl-button_46.cjs.entry.js} +281 -85
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/collection/collection-manifest.json +4 -0
  9. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +1 -2
  10. package/dist/lib/collection/components/super-selection-app/funds/constants.js +4 -0
  11. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
  12. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
  13. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
  14. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
  15. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
  16. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
  17. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +1 -1
  18. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +4 -0
  19. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +7 -0
  20. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
  21. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +42 -14
  22. package/dist/lib/esm/apollo-super-selection.js +1 -1
  23. package/dist/lib/esm/{fl-button_44.entry.js → fl-button_46.entry.js} +280 -86
  24. package/dist/lib/esm/loader.js +1 -1
  25. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  26. package/dist/lib/esm-es5/{fl-button_44.entry.js → fl-button_46.entry.js} +4 -4
  27. package/dist/lib/esm-es5/loader.js +1 -1
  28. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +4 -0
  29. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +6 -0
  30. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +6 -0
  31. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.d.ts +7 -0
  32. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +8 -0
  33. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +9 -0
  34. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.d.ts +11 -0
  35. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +2 -0
  36. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  37. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  38. package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -0
  39. package/dist/lib/types/components.d.ts +30 -0
  40. package/package.json +1 -1
  41. package/dist/lib/apollo-super-selection/p-31bdba35.system.entry.js +0 -69
  42. package/dist/lib/apollo-super-selection/p-bd258159.entry.js +0 -14
@@ -265,7 +265,7 @@ class TapSubscriber extends delay.Subscriber {
265
265
  }
266
266
  }
267
267
 
268
- const AppVersion = '3.18.52782';
268
+ const AppVersion = '3.22.53760';
269
269
 
270
270
  // -------------------------------------------------------------------------------------
271
271
  // guards
@@ -3775,6 +3775,7 @@ const initialState = {
3775
3775
  profileId: Option.none,
3776
3776
  jwt: Option.none,
3777
3777
  superBuyer: Option.none,
3778
+ promotedFunds: Option.none,
3778
3779
  accountConfiguration: Option.none,
3779
3780
  hasSuccessPageBeenAcknowledged: false,
3780
3781
  hasSuperSelectionBeenSubmitted: false
@@ -3813,6 +3814,12 @@ class SuperSelectionAppService {
3813
3814
  }
3814
3815
  return this._state.appBaseUrl.value;
3815
3816
  }
3817
+ get promotedFunds() {
3818
+ if (Option.isNone(this._state.promotedFunds)) {
3819
+ throw Error('Promoted Funds is not set');
3820
+ }
3821
+ return this._state.promotedFunds.value;
3822
+ }
3816
3823
  get profileId() {
3817
3824
  if (Option.isNone(this._state.profileId)) {
3818
3825
  throw Error('Failed to get Profile ID from JWT');
@@ -3847,6 +3854,7 @@ class SuperSelectionAppService {
3847
3854
  const appStateResponse = await superSelectionApi.getAppStateAsync();
3848
3855
  this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
3849
3856
  this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
3857
+ this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
3850
3858
  }
3851
3859
  }
3852
3860
  const superSelectionAppService = new SuperSelectionAppService();
@@ -3888,6 +3896,8 @@ var SuperSelectionAppRoutes;
3888
3896
  SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
3889
3897
  SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
3890
3898
  SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
3899
+ SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
3900
+ SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
3891
3901
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
3892
3902
  SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
3893
3903
  SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
@@ -3898,6 +3908,8 @@ const superSelectionAppStencilRoutes = [
3898
3908
  index.h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
3899
3909
  index.h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
3900
3910
  index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
3911
+ index.h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
3912
+ index.h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
3901
3913
  index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
3902
3914
  index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
3903
3915
  index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
@@ -4229,7 +4241,7 @@ const FooterSection = class {
4229
4241
  index.registerInstance(this, hostRef);
4230
4242
  }
4231
4243
  render() {
4232
- return (index.h("div", { class: "container mb-sm-0" }, index.h("div", { class: "row justify-content-center mt-5 mb-3" }, index.h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" }, index.h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), index.h("h5", { class: "font-weight-bold text-center mb-4" }, index.h("span", { class: "text-dark mr-1" }, "Simple Financial"), index.h("span", { class: "simple-choices-text" }, "Choices")))), index.h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" }, index.h("p", { class: "text-muted small" }, "Simple Financial Choices Pty Ltd is a wholly owned entity of Flare HR. SFC is not acting as a Corporate Authorised Representative for the purposes of any information provided about QSuper. Simple Financial Choices Pty Ltd (ABN 58 629 890 900; AFS Representative No. 001269407), is a Corporate Authorised Representative of True Oak Investments Ltd (ABN 81 002 558 956; AFS Licence No. 238184). Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by Simple Financial Choices Pty Ltd. SFC does not endorse or accept responsibility for any of the QSuper content shown as it is merely passing on QSuper Board's content as provided without any changes. SFC does not express any opinion or make any recommendation about QSuper.")), index.h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
4244
+ return (index.h("div", { class: "container mb-sm-0" }, index.h("div", { class: "row justify-content-center mt-5 mb-3" }, index.h("div", { class: "text-decoration-none" }, index.h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), index.h("h5", { class: "font-weight-bold text-center mb-4" }, index.h("span", { class: "text-dark mr-1" }, "Simple Financial"), index.h("span", { class: "simple-choices-text" }, "Choices")))), index.h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" }, index.h("p", { class: "text-muted small" }, "Simple Financial Choices Pty Ltd is a wholly owned entity of Flare HR. SFC is not acting as a Corporate Authorised Representative for the purposes of any information provided about QSuper. Simple Financial Choices Pty Ltd (ABN 58 629 890 900; AFS Representative No. 001269407), is a Corporate Authorised Representative of True Oak Investments Ltd (ABN 81 002 558 956; AFS Licence No. 238184). Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by Simple Financial Choices Pty Ltd. SFC does not endorse or accept responsibility for any of the QSuper content shown as it is merely passing on QSuper Board's content as provided without any changes. SFC does not express any opinion or make any recommendation about QSuper.")), index.h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
4233
4245
  }
4234
4246
  appVersionBadge() {
4235
4247
  return (index.h("small", { style: { opacity: '0.5' }, class: "text-muted" }, "Powered by Flare, v", AppVersion));
@@ -4345,6 +4357,157 @@ const NotificationsSection = class {
4345
4357
  }
4346
4358
  };
4347
4359
 
4360
+ const initial = {
4361
+ fundId: '',
4362
+ memberNumber: '',
4363
+ usi: '',
4364
+ standardChoiceFormSignature: ''
4365
+ };
4366
+ const { state: state$1 } = createStore(initial);
4367
+
4368
+ class PromotedFundJoinIFrameBuilder {
4369
+ constructor() {
4370
+ this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
4371
+ this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
4372
+ this.environmentDiscriminator = () => {
4373
+ return this.hostIsLocalSuperSelection()
4374
+ ? 'autodev-partner'
4375
+ : window.location.hostname.toLowerCase().split('.')[0];
4376
+ };
4377
+ this.promotedFundJoinAppUrl = () => {
4378
+ return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
4379
+ };
4380
+ }
4381
+ build(iframe, history) {
4382
+ if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
4383
+ return;
4384
+ const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
4385
+ ? `${window.location.origin}/super-selection/embed/v1.0/app`
4386
+ : 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
4387
+ const redirectUrl = `${baseUrl}/promoted-fund-redirect.html`;
4388
+ const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: state$1.fundId, successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, authToken: superSelectionAppService.jwt });
4389
+ const handleMessage = (event) => {
4390
+ const { data } = event;
4391
+ if (!data) {
4392
+ return;
4393
+ }
4394
+ if (data.sender === 'promoted-fund-redirect') {
4395
+ window.removeEventListener('message', handleMessage);
4396
+ switch (data.type) {
4397
+ case 'success':
4398
+ if (data.memberNumber) {
4399
+ state$1.memberNumber = data.memberNumber;
4400
+ state$1.usi = data.usi;
4401
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.PromotedFundStandardChoice);
4402
+ break;
4403
+ }
4404
+ /* falls through */
4405
+ default:
4406
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
4407
+ break;
4408
+ }
4409
+ return;
4410
+ }
4411
+ if (data.sender === 'promoted-fund-join') {
4412
+ switch (data.type) {
4413
+ case 'contentResized':
4414
+ iframe.height = data.height > 0 ? data.height : iframe.height;
4415
+ iframe.width = data.width > 0 ? data.width : iframe.width;
4416
+ break;
4417
+ }
4418
+ }
4419
+ };
4420
+ window.addEventListener('message', handleMessage);
4421
+ const iframeDoc = iframe.contentDocument;
4422
+ iframeDoc.open();
4423
+ const form = iframeDoc.createElement('form');
4424
+ form.method = 'POST';
4425
+ form.target = '_self';
4426
+ form.action = this.promotedFundJoinAppUrl();
4427
+ let prop;
4428
+ for (prop in postData) {
4429
+ const value = postData[prop];
4430
+ if (value !== undefined) {
4431
+ const input = document.createElement('input');
4432
+ input.type = 'hidden';
4433
+ input.name = prop;
4434
+ input.value = value;
4435
+ form.append(input);
4436
+ }
4437
+ }
4438
+ iframeDoc.appendChild(form);
4439
+ iframeDoc.close();
4440
+ form.submit();
4441
+ }
4442
+ getMemberData() {
4443
+ var _a, _b;
4444
+ const superBuyer = superSelectionAppService.superBuyer;
4445
+ return {
4446
+ firstName: superBuyer.userProfile.firstName,
4447
+ middleName: superBuyer.userProfile.middleName,
4448
+ lastName: superBuyer.userProfile.lastName,
4449
+ dateOfBirth: superBuyer.userProfile.dateOfBirth,
4450
+ gender: superBuyer.userProfile.gender,
4451
+ email: superBuyer.userProfile.email,
4452
+ mobilePhone: superBuyer.userProfile.mobilePhone,
4453
+ taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
4454
+ addressLine1: superBuyer.userProfile.address.addressLine1,
4455
+ addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
4456
+ city: superBuyer.userProfile.address.city,
4457
+ state: superBuyer.userProfile.address.state,
4458
+ postCode: superBuyer.userProfile.address.postcode
4459
+ };
4460
+ }
4461
+ }
4462
+ const PromotedFundJoinIFrameBuilder$1 = new PromotedFundJoinIFrameBuilder();
4463
+
4464
+ const PromotedFundJoinPage = class {
4465
+ constructor(hostRef) {
4466
+ index.registerInstance(this, hostRef);
4467
+ }
4468
+ componentDidLoad() {
4469
+ PromotedFundJoinIFrameBuilder$1.build(this.iframeElement, this.history);
4470
+ }
4471
+ render() {
4472
+ return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("iframe", { width: "100%", height: window.innerHeight, style: { border: 'none' }, ref: (el) => (this.iframeElement = el) })));
4473
+ }
4474
+ };
4475
+
4476
+ class PromotedFundChoiceApi {
4477
+ async submitChoiceAsync(dto) {
4478
+ return buildBackendApiClient()
4479
+ .url('super-choice/promoted-fund')
4480
+ .post(dto)
4481
+ .badRequest(() => {
4482
+ throw new Error('Failed to process Promoted Fund choice request');
4483
+ })
4484
+ .text();
4485
+ }
4486
+ }
4487
+ const promotedFundChoiceApi = new PromotedFundChoiceApi();
4488
+
4489
+ const PromotedFundStandardChoicePage = class {
4490
+ constructor(hostRef) {
4491
+ index.registerInstance(this, hostRef);
4492
+ }
4493
+ render() {
4494
+ return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("div", { class: "container" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col col-sm-10 col-md-7" }, index.h("div", null, index.h("div", null, "You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."), index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
4495
+ 'was-validated': this.formState === 'validated'
4496
+ }, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
4497
+ state$1.standardChoiceFormSignature =
4498
+ event.detail.standardChoiceFormSignature;
4499
+ } })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Submit")))))))))));
4500
+ }
4501
+ async handleSubmitForm() {
4502
+ this.formState = 'validated';
4503
+ if (this.formElement.checkValidity()) {
4504
+ promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
4505
+ superSelectionAppService.markSuperSelectionAsSubmitted();
4506
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
4507
+ }
4508
+ }
4509
+ };
4510
+
4348
4511
  const QSuperFundUsi = '60905115063001';
4349
4512
  const QSuperFundId = 'qsuper';
4350
4513
  const QSuperFundName = 'QSuper';
@@ -4358,6 +4521,10 @@ const SlateFundUsi = '32367272075001';
4358
4521
  const SlateFundId = 'slate';
4359
4522
  const SlateFundName = 'Slate Super';
4360
4523
  const SlateAltFundName = 'Modern Digital Fund';
4524
+ const AustralianRetirementTrustFundUsi = 'australian-retirement-trust';
4525
+ const AustralianRetirementTrustFundId = 'australian-retirement-trust';
4526
+ const AustralianRetirementTrustFundName = 'AustralianRetirementTrust';
4527
+ const AustralianRetirementTrustAltFundName = 'TODO';
4361
4528
 
4362
4529
  const qsuperConfirmationCss = "";
4363
4530
 
@@ -4442,7 +4609,7 @@ const initialStateQSuper = {
4442
4609
  },
4443
4610
  standardChoiceFormSignature: ''
4444
4611
  };
4445
- const { state: state$1, reset: reset$1 } = createStore(initialStateQSuper);
4612
+ const { state: state$2, reset: reset$1 } = createStore(initialStateQSuper);
4446
4613
  const resetQSuperStore = reset$1;
4447
4614
 
4448
4615
  function getNextRoute() {
@@ -4451,64 +4618,64 @@ function getNextRoute() {
4451
4618
  const route = window.location.pathname.split(baseAppUrl)[1];
4452
4619
  const nextRoutes = {
4453
4620
  [SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
4454
- [SuperSelectionAppRoutes.QSuperQuestion1]: state$1.qSuperInsuranceQuestions.question1
4621
+ [SuperSelectionAppRoutes.QSuperQuestion1]: state$2.qSuperInsuranceQuestions.question1
4455
4622
  .answered
4456
- ? ((_a = state$1.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
4623
+ ? ((_a = state$2.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
4457
4624
  ? SuperSelectionAppRoutes.QSuperQuestion4
4458
4625
  : SuperSelectionAppRoutes.QSuperQuestion2
4459
4626
  : SuperSelectionAppRoutes.QSuperQuestion1,
4460
- [SuperSelectionAppRoutes.QSuperQuestion2]: state$1.qSuperInsuranceQuestions.question2
4627
+ [SuperSelectionAppRoutes.QSuperQuestion2]: state$2.qSuperInsuranceQuestions.question2
4461
4628
  .answered
4462
- ? ((_b = state$1.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
4629
+ ? ((_b = state$2.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
4463
4630
  ? SuperSelectionAppRoutes.QSuperQuestion4
4464
4631
  : SuperSelectionAppRoutes.QSuperQuestion3
4465
4632
  : SuperSelectionAppRoutes.QSuperQuestion2,
4466
- [SuperSelectionAppRoutes.QSuperQuestion3]: state$1.qSuperInsuranceQuestions.question3
4633
+ [SuperSelectionAppRoutes.QSuperQuestion3]: state$2.qSuperInsuranceQuestions.question3
4467
4634
  .answered
4468
4635
  ? SuperSelectionAppRoutes.QSuperQuestion4
4469
4636
  : SuperSelectionAppRoutes.QSuperQuestion3,
4470
- [SuperSelectionAppRoutes.QSuperQuestion4]: state$1.qSuperInsuranceQuestions.question4
4637
+ [SuperSelectionAppRoutes.QSuperQuestion4]: state$2.qSuperInsuranceQuestions.question4
4471
4638
  .answered
4472
4639
  ? SuperSelectionAppRoutes.QSuperQuestion5
4473
4640
  : SuperSelectionAppRoutes.QSuperQuestion4,
4474
- [SuperSelectionAppRoutes.QSuperQuestion5]: state$1.qSuperInsuranceQuestions.question5
4641
+ [SuperSelectionAppRoutes.QSuperQuestion5]: state$2.qSuperInsuranceQuestions.question5
4475
4642
  .answered
4476
4643
  ? SuperSelectionAppRoutes.QSuperQuestion6
4477
4644
  : SuperSelectionAppRoutes.QSuperQuestion5,
4478
- [SuperSelectionAppRoutes.QSuperQuestion6]: state$1.qSuperInsuranceQuestions.question6
4645
+ [SuperSelectionAppRoutes.QSuperQuestion6]: state$2.qSuperInsuranceQuestions.question6
4479
4646
  .answered
4480
4647
  ? SuperSelectionAppRoutes.QSuperQuestion7
4481
4648
  : SuperSelectionAppRoutes.QSuperQuestion6,
4482
- [SuperSelectionAppRoutes.QSuperQuestion7]: state$1.qSuperInsuranceQuestions.question7
4649
+ [SuperSelectionAppRoutes.QSuperQuestion7]: state$2.qSuperInsuranceQuestions.question7
4483
4650
  .answered
4484
4651
  ? SuperSelectionAppRoutes.QSuperQuestion8
4485
4652
  : SuperSelectionAppRoutes.QSuperQuestion7,
4486
- [SuperSelectionAppRoutes.QSuperQuestion8]: state$1.qSuperInsuranceQuestions.question8
4653
+ [SuperSelectionAppRoutes.QSuperQuestion8]: state$2.qSuperInsuranceQuestions.question8
4487
4654
  .answered
4488
4655
  ? SuperSelectionAppRoutes.QSuperConsent
4489
4656
  : SuperSelectionAppRoutes.QSuperQuestion8,
4490
- [SuperSelectionAppRoutes.QSuperConsent]: state$1.qSuperQuestionnaire.readDutyOfDisclosure &&
4491
- state$1.qSuperQuestionnaire.reviewedApplication
4657
+ [SuperSelectionAppRoutes.QSuperConsent]: state$2.qSuperQuestionnaire.readDutyOfDisclosure &&
4658
+ state$2.qSuperQuestionnaire.reviewedApplication
4492
4659
  ? SuperSelectionAppRoutes.QSuperJoin
4493
4660
  : SuperSelectionAppRoutes.QSuperConsent,
4494
- [SuperSelectionAppRoutes.QSuperJoin]: state$1.qSuperJoinPageCheckbox
4661
+ [SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox
4495
4662
  ? SuperSelectionAppRoutes.Success
4496
4663
  : SuperSelectionAppRoutes.QSuperJoin
4497
4664
  };
4498
4665
  // special cases
4499
4666
  // if question 3 or 5 are selected as Yes, show questions 6,7,8
4500
4667
  // if we are on question 5, and question 3 or 5 have been selected yes, go to question 6
4501
- const firstFiveQuestionsAnswered = state$1.qSuperInsuranceQuestions.question1.answered &&
4502
- state$1.qSuperInsuranceQuestions.question2.answered &&
4503
- state$1.qSuperInsuranceQuestions.question3.answered &&
4504
- state$1.qSuperInsuranceQuestions.question4.answered &&
4505
- state$1.qSuperInsuranceQuestions.question5.answered;
4668
+ const firstFiveQuestionsAnswered = state$2.qSuperInsuranceQuestions.question1.answered &&
4669
+ state$2.qSuperInsuranceQuestions.question2.answered &&
4670
+ state$2.qSuperInsuranceQuestions.question3.answered &&
4671
+ state$2.qSuperInsuranceQuestions.question4.answered &&
4672
+ state$2.qSuperInsuranceQuestions.question5.answered;
4506
4673
  // if we are on question 5 - check if question 3 or 5 have been answered yes
4507
4674
  // if they have then show questions 6,7,8 - otherwise go to the consent page
4508
4675
  if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
4509
4676
  if (firstFiveQuestionsAnswered &&
4510
- (((_c = state$1.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
4511
- ((_d = state$1.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
4677
+ (((_c = state$2.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
4678
+ ((_d = state$2.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
4512
4679
  return SuperSelectionAppRoutes.QSuperQuestion6;
4513
4680
  }
4514
4681
  return SuperSelectionAppRoutes.QSuperConsent;
@@ -4516,8 +4683,8 @@ function getNextRoute() {
4516
4683
  // if in opt in page
4517
4684
  if (route === SuperSelectionAppRoutes.QSuperOptIn) {
4518
4685
  // if checkbox is ticked and insurance selected - go to question 1
4519
- if (state$1.qSuperOptInPageCheckbox) {
4520
- if (state$1.qSuperQuestionnaire.insuranceChosen) {
4686
+ if (state$2.qSuperOptInPageCheckbox) {
4687
+ if (state$2.qSuperQuestionnaire.insuranceChosen) {
4521
4688
  return SuperSelectionAppRoutes.QSuperQuestion1;
4522
4689
  }
4523
4690
  else {
@@ -4541,18 +4708,18 @@ const QsuperConsent = class {
4541
4708
  }
4542
4709
  async componentDidLoad() {
4543
4710
  window.scroll(0, 0);
4544
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4711
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4545
4712
  }
4546
4713
  render() {
4547
4714
  return (index.h("sss-qsuper-layout", null, index.h("div", { class: "d-flex align-items-center justify-content-center" }, index.h("p", { class: "confirm-title font-weight-bold text-center" }, "Your QSuper Accumulation Account")), index.h("div", { class: "p-3 d-flex mt-4 checkbox-container" }, index.h("p", null, "Just finally, we need you to confirm that you understand the declarations below and the product you've applied for by ticking the box below.", index.h("br", null), index.h("br", null), "This form and all products are issued by the QSuper Board (ABN 32 125 059 006 AFSL 489650) as trustee for QSuper (ABN 60 905 115 063).", index.h("br", null), index.h("br", null), "I have read and agree to the terms and conditions in the QSuper", ' ', index.h("a", { target: "_blank", onClick: () => this.pdsViewedAsync(), href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf') }, "Product Disclosure Statement for Accumulation and Income Accounts"), ", QSuper's", ' ', index.h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf') }, "Your Privacy factsheet"), ", and the", ' ', index.h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf') }, "Financial Services Guide"), ".", index.h("br", null), index.h("br", null), "I understand that any insurance cover I might have as a result of this application, commences when the first contribution is received into my account. Once I am a member I can cancel, or, subject to eligibility conditions, vary, my cover at any time. Premiums are deducted in accordance with the PDS.", index.h("br", null), index.h("br", null), "I also agree to be bound by the Trust Deed and the governing rules of QSuper in relation to the operation of my Accumulation account.", index.h("br", null), index.h("br", null), "I confirm that the information I have given is true and correct.", index.h("br", null), index.h("br", null), "I confirm that I am the person identified as the applicant in this form.", index.h("br", null), index.h("br", null), "I consent to the QSuper Board paying Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, a fee of $300 on receipt of the first contribution into my account, for the provision of technology services.", index.h("br", null), index.h("br", null), "I understand that I will be placed into the default investment option QSuper Lifetime.", index.h("br", null), index.h("br", null), "I understand that my Tax File Number will be provided to QSuper. NB - if you have your Tax File Number available, this will help speed up the processing of this application and we may be able to Find your Super.", index.h("br", null), index.h("br", null), "I have read and accept the", ' ', index.h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/misc/tfn') }, "Privacy and Contact Information Statement"))), index.h("div", null, index.h("label", { class: "d-flex\u00A0mt-3\u00A0p-3\u00A0checkbox-container", htmlFor: "ackAllCheckBox" }, index.h("div", { class: "w-auto\u00A0px-2 fl-checkbox-container" }, index.h("input", { id: "ackAllCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })), index.h("div", { class: "pl-3" }, index.h("p", { class: "confirm-item-text\u00A0mb-0 mt-1" }, "I acknowledge all of the above. ", index.h("i", null, "(required)")))))));
4548
4715
  }
4549
4716
  handleCheckboxToggle() {
4550
- state$1.qSuperQuestionnaire.readDutyOfDisclosure = !state$1.qSuperQuestionnaire
4717
+ state$2.qSuperQuestionnaire.readDutyOfDisclosure = !state$2.qSuperQuestionnaire
4551
4718
  .readDutyOfDisclosure;
4552
- state$1.qSuperQuestionnaire.reviewedApplication = !state$1.qSuperQuestionnaire
4719
+ state$2.qSuperQuestionnaire.reviewedApplication = !state$2.qSuperQuestionnaire
4553
4720
  .reviewedApplication;
4554
- state$1.continueAllowed = !state$1.continueAllowed;
4555
- state$1.nextRoute = getNextRoute();
4721
+ state$2.continueAllowed = !state$2.continueAllowed;
4722
+ state$2.nextRoute = getNextRoute();
4556
4723
  }
4557
4724
  pdsViewedAsync() {
4558
4725
  return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
@@ -4570,16 +4737,16 @@ function continueEnabledCheck() {
4570
4737
  const baseAppUrl = superSelectionAppService.appBaseUrl;
4571
4738
  const currentRoute = window.location.pathname.split(baseAppUrl)[1];
4572
4739
  const continueValidConditions = {
4573
- [SuperSelectionAppRoutes.QSuperOptIn]: state$1.qSuperOptInPageCheckbox,
4574
- [SuperSelectionAppRoutes.QSuperJoin]: state$1.qSuperJoinPageCheckbox && state$1.standardChoiceFormSignature
4740
+ [SuperSelectionAppRoutes.QSuperOptIn]: state$2.qSuperOptInPageCheckbox,
4741
+ [SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox && state$2.standardChoiceFormSignature
4575
4742
  };
4576
- state$1.continueAllowed = continueValidConditions[currentRoute];
4743
+ state$2.continueAllowed = continueValidConditions[currentRoute];
4577
4744
  }
4578
4745
 
4579
4746
  function resetQSuperState() {
4580
4747
  resetQSuperStore();
4581
- state$1.qSuperQuestionnaire = Object.assign(Object.assign({}, state$1.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
4582
- state$1.qSuperInsuranceQuestions = {
4748
+ state$2.qSuperQuestionnaire = Object.assign(Object.assign({}, state$2.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
4749
+ state$2.qSuperInsuranceQuestions = {
4583
4750
  question1: {
4584
4751
  answered: false
4585
4752
  },
@@ -4648,14 +4815,14 @@ const QsuperInsuranceOptIn = class {
4648
4815
  });
4649
4816
  }
4650
4817
  handleInsuranceToggle(input) {
4651
- state$1.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
4652
- this.insuranceChosen = state$1.qSuperQuestionnaire.insuranceChosen;
4653
- state$1.nextRoute = getNextRoute();
4818
+ state$2.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
4819
+ this.insuranceChosen = state$2.qSuperQuestionnaire.insuranceChosen;
4820
+ state$2.nextRoute = getNextRoute();
4654
4821
  }
4655
4822
  handleCheckboxToggle() {
4656
- state$1.qSuperOptInPageCheckbox = !state$1.qSuperOptInPageCheckbox;
4823
+ state$2.qSuperOptInPageCheckbox = !state$2.qSuperOptInPageCheckbox;
4657
4824
  continueEnabledCheck();
4658
- state$1.nextRoute = getNextRoute();
4825
+ state$2.nextRoute = getNextRoute();
4659
4826
  }
4660
4827
  };
4661
4828
  QsuperInsuranceOptIn.style = qsuperCss$1;
@@ -4681,14 +4848,14 @@ const QSuperConfirmSelection = class {
4681
4848
  }
4682
4849
  render() {
4683
4850
  return (index.h("sss-qsuper-layout", null, index.h("img", { class: "ss-choice-logo mx-auto", alt: "Simple Financial Choices Pty Ltd", src: index.getAssetPath(`assets/logo-qsuper.png`) }), index.h("div", { class: "row" }, index.h("div", { class: "col text-center" }, index.h("p", { class: "confirm-title font-weight-bold mb-0" }, "You have chosen to join QSuper"))), index.h("div", { class: "my-3 card p-3" }, index.h("p", { class: "confirm-text" }, "We are almost there... All you have to do now is sign the super choice form. We'll prefill it for you. Make sure the info is correct. Your application to join the fund is subject to Trustee approval."), index.h("p", { class: "confirm-text mb-0" }, "You've chosen to stay with your existing fund. Review the details below and click continue to confirm your choice")), index.h("div", { class: "card p-3" }, index.h("p", { class: "text-center" }, "100 years strong"), index.h("p", { class: "text-center" }, "One of Australia's largest funds"), index.h("p", { class: "text-center mb-0" }, "Awarded SuperRatings highest performance rating")), index.h("div", { class: "mt-3" }, index.h("p", { class: "text-center confirm-text" }, "Your application to join the fund is subject to Trustee approval.")), index.h("div", null, index.h("label", { class: "d-flex\u00A0mt-4\u00A0p-3\u00A0checkbox-container", htmlFor: "confirmCheckBox" }, index.h("div", { class: "w-auto\u00A0px-2 py-2 fl-checkbox-container" }, index.h("input", { id: "confirmCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })), index.h("div", { class: "pl-3" }, index.h("p", { class: "confirm-item-text mb-0 mt-1" }, "I've read and understood the", ' ', index.h("a", { target: "_blank", onClick: () => this.pdsViewedAsync(), href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/') }, "PDS"), ' ', "and confirm all information I have provided is true and correct. I understand that my information will be sent to the trustee of this fund to process my request to join and I consent to my TFN, as currently held on the Flare HR Platform, being given to the trustee in order to open and administer my account.")))), index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
4684
- state$1.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
4851
+ state$2.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
4685
4852
  continueEnabledCheck();
4686
4853
  } })));
4687
4854
  }
4688
4855
  handleCheckboxToggle() {
4689
- state$1.qSuperJoinPageCheckbox = !state$1.qSuperJoinPageCheckbox;
4856
+ state$2.qSuperJoinPageCheckbox = !state$2.qSuperJoinPageCheckbox;
4690
4857
  continueEnabledCheck();
4691
- state$1.nextRoute = getNextRoute();
4858
+ state$2.nextRoute = getNextRoute();
4692
4859
  }
4693
4860
  pdsViewedAsync() {
4694
4861
  return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
@@ -4715,34 +4882,34 @@ class QSuperChoiceApi {
4715
4882
  const qsuperChoiceApi = new QSuperChoiceApi();
4716
4883
 
4717
4884
  async function handleConfirmClickAsync() {
4718
- if (!state$1.continueAllowed)
4885
+ if (!state$2.continueAllowed)
4719
4886
  return;
4720
- state$1.continueAllowed = false;
4721
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4722
- state$1.qSuperQuestionnaire.insuranceChosen) {
4723
- state$1.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
4887
+ state$2.continueAllowed = false;
4888
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4889
+ state$2.qSuperQuestionnaire.insuranceChosen) {
4890
+ state$2.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
4724
4891
  return;
4725
4892
  }
4726
4893
  // if insurance hasn't been chosen - skip the accumulation page
4727
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4728
- !state$1.qSuperQuestionnaire.insuranceChosen) {
4729
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4894
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4895
+ !state$2.qSuperQuestionnaire.insuranceChosen) {
4896
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4730
4897
  return;
4731
4898
  }
4732
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
4733
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4899
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
4900
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4734
4901
  return;
4735
4902
  }
4736
- if (state$1.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
4737
- state$1.qSuperFormValid = false;
4738
- state$1.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
4903
+ if (state$2.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
4904
+ state$2.qSuperFormValid = false;
4905
+ state$2.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
4739
4906
  return;
4740
4907
  }
4741
- if (state$1.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
4742
- state$1.qSuperQuestionnaire.acceptedDeclaration = true;
4908
+ if (state$2.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
4909
+ state$2.qSuperQuestionnaire.acceptedDeclaration = true;
4743
4910
  const qSuperJoinRequest = {
4744
- questionnaire: state$1.qSuperQuestionnaire,
4745
- standardChoiceFormSignature: state$1.standardChoiceFormSignature
4911
+ questionnaire: state$2.qSuperQuestionnaire,
4912
+ standardChoiceFormSignature: state$2.standardChoiceFormSignature
4746
4913
  };
4747
4914
  await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
4748
4915
  superSelectionAppService.markSuperSelectionAsSubmitted();
@@ -4753,7 +4920,7 @@ const QsuperLayout = class {
4753
4920
  constructor(hostRef) {
4754
4921
  index.registerInstance(this, hostRef);
4755
4922
  this.isEligible = false;
4756
- this.canContinue = () => this.isEligible && state$1.continueAllowed;
4923
+ this.canContinue = () => this.isEligible && state$2.continueAllowed;
4757
4924
  this.ensureEligibility = () => {
4758
4925
  if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < QSuperMinAge) {
4759
4926
  this.showIneligibleNotification(`People under the age of ${QSuperMinAge} are not able to open accounts.`);
@@ -4774,7 +4941,7 @@ const QsuperLayout = class {
4774
4941
  }
4775
4942
  async componentWillLoad() {
4776
4943
  this.ensureEligibility();
4777
- state$1.nextRoute = getNextRoute();
4944
+ state$2.nextRoute = getNextRoute();
4778
4945
  }
4779
4946
  render() {
4780
4947
  return (index.h("div", { class: "container" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col col-sm-10 col-md-7" }, index.h("slot", null), index.h("div", { class: "mt-4" }, index.h("sss-notifications-section", null)), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back")))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, disabled: !this.canContinue(), promiseFn: () => this.tryAsync() }, index.h("span", null, "Continue")))))))));
@@ -4785,14 +4952,14 @@ const QsuperLayout = class {
4785
4952
  return;
4786
4953
  }
4787
4954
  await handleConfirmClickAsync();
4788
- navigationService.navigateInternally(this.history, state$1.nextRoute);
4955
+ navigationService.navigateInternally(this.history, state$2.nextRoute);
4789
4956
  }
4790
4957
  catch (error) {
4791
4958
  notificationsService.showErrorNotification({
4792
4959
  title: "Couldn't process your request",
4793
4960
  description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
4794
4961
  });
4795
- state$1.continueAllowed = true;
4962
+ state$2.continueAllowed = true;
4796
4963
  }
4797
4964
  }
4798
4965
  static get assetsDirs() { return ["assets"]; }
@@ -4884,8 +5051,8 @@ const QsuperQuestionYesNoButtons = class {
4884
5051
  const currentQuestion = window.location.pathname
4885
5052
  .split(baseAppUrl + '/qsuper/insurance/')[1]
4886
5053
  .replace(/\/+$/, '');
4887
- if (state$1.qSuperQuestionnaire.questions === undefined) {
4888
- state$1.qSuperQuestionnaire.questions = {
5054
+ if (state$2.qSuperQuestionnaire.questions === undefined) {
5055
+ state$2.qSuperQuestionnaire.questions = {
4889
5056
  question1: false,
4890
5057
  question2: false,
4891
5058
  question3: false,
@@ -4896,10 +5063,10 @@ const QsuperQuestionYesNoButtons = class {
4896
5063
  question8: false
4897
5064
  };
4898
5065
  }
4899
- state$1.qSuperQuestionnaire.questions[currentQuestion] = input;
4900
- state$1.qSuperInsuranceQuestions[currentQuestion].answered = true;
4901
- state$1.nextRoute = getNextRoute();
4902
- navigationService.navigateInternally(this.history, state$1.nextRoute);
5066
+ state$2.qSuperQuestionnaire.questions[currentQuestion] = input;
5067
+ state$2.qSuperInsuranceQuestions[currentQuestion].answered = true;
5068
+ state$2.nextRoute = getNextRoute();
5069
+ navigationService.navigateInternally(this.history, state$2.nextRoute);
4903
5070
  }
4904
5071
  };
4905
5072
  injectHistory(QsuperQuestionYesNoButtons);
@@ -5199,7 +5366,7 @@ const initialSlateSuper = {
5199
5366
  standardChoiceFormSignature: ''
5200
5367
  }
5201
5368
  };
5202
- const { state: state$2 } = createStore(initialSlateSuper);
5369
+ const { state: state$3 } = createStore(initialSlateSuper);
5203
5370
 
5204
5371
  class SlateIFrameBuilder {
5205
5372
  constructor() {
@@ -5229,7 +5396,7 @@ class SlateIFrameBuilder {
5229
5396
  ? `${window.location.origin}/super-selection/embed/v1.0/app`
5230
5397
  : 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
5231
5398
  const redirectUrl = `${baseUrl}/slate-redirect.html`;
5232
- const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation() });
5399
+ const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
5233
5400
  if (this.includeJwt()) {
5234
5401
  postData.authToken = superSelectionAppService.jwt;
5235
5402
  }
@@ -5243,7 +5410,7 @@ class SlateIFrameBuilder {
5243
5410
  switch (data.type) {
5244
5411
  case 'success':
5245
5412
  if (data.memberNumber) {
5246
- state$2.slateFundForm.memberNumber = data.memberNumber;
5413
+ state$3.slateFundForm.memberNumber = data.memberNumber;
5247
5414
  navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
5248
5415
  break;
5249
5416
  }
@@ -5356,13 +5523,13 @@ const SlateStandardChoicePage = class {
5356
5523
  return (index.h(index.Host, { class: "d-flex flex-fill" }, index.h("div", { class: "container" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col col-sm-10 col-md-7" }, index.h("sss-slatesuper-header", null), index.h("div", null, index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
5357
5524
  'was-validated': this.formState === 'validated'
5358
5525
  }, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
5359
- state$2.slateFundForm = Object.assign(Object.assign({}, state$2.slateFundForm), event.detail);
5526
+ state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
5360
5527
  } })), index.h("div", { class: "d-flex mt-4" }, index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "mr-2" }, index.h("stencil-route-link", { url: "/" }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, index.h("span", null, "Back"))))), index.h("div", { class: "flex-grow-1 w-50" }, index.h("div", { class: "ml-2" }, index.h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, index.h("span", null, "Submit")))))))))));
5361
5528
  }
5362
5529
  async handleSubmitForm() {
5363
5530
  this.formState = 'validated';
5364
5531
  if (this.formElement.checkValidity()) {
5365
- await slateChoiceApi.submitSlateChoiceAsync(state$2.slateFundForm);
5532
+ await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
5366
5533
  superSelectionAppService.markSuperSelectionAsSubmitted();
5367
5534
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
5368
5535
  }
@@ -5534,9 +5701,9 @@ const SuperChoicePage = class {
5534
5701
  const superChoiceParagraphOne = `Selecting the right super fund is very important. Simple Financial Choices have provided you with easy access to the below funds to make your choice an easy one, if you think that one of them might suit your needs.`;
5535
5702
  const superChoiceParagraphTwo = `The content on this page and on the following pages relating to superannuation is provided by Simple Financial Choices (SFC), except for any content in relation to QSuper which is prepared, and provided to SFC, by QSuper Board ABN 32 125 059 006. The superannuation funds presented below are neither selected nor recommended by your employer nor by Flare HR.`;
5536
5703
  const superChoiceParagraphThree = `Simple Financial Choices is not recommending these funds as being suitable for you because there are many super funds out there and you will need to choose what is best for you. If you are unsure, obtain your own advice. You should be aware that, if you do choose one of these funds, Flare and its associated entities will normally receive a fee for you doing so.`;
5537
- return (index.h(index.Host, null, index.h("div", { class: "container mt-0 mb-0" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" }, index.h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), index.h("h5", { class: "font-weight-bold text-center mb-4" }, index.h("span", { class: "text-dark mr-1" }, "Simple Financial"), index.h("span", { class: "simple-choices-text" }, "Choices"))))), index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("p", { class: "text-center" }, superChoiceParagraphOne), index.h("p", { class: "text-center small" }, superChoiceParagraphTwo), index.h("p", { class: "text-center small" }, superChoiceParagraphThree))), index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("sss-notifications-section", null))), index.h("div", { class: "row justify-content-center mt-4" }, index.h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (index.h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), index.h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (index.h("div", { class: "col-12 col-lg-6 d-flex" }, index.h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))), index.h("div", { class: "row mt-3" }, index.h("div", { class: "col" }, index.h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
5704
+ return (index.h(index.Host, null, index.h("div", { class: "container mt-0 mb-0" }, index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), index.h("h5", { class: "font-weight-bold text-center mb-4" }, index.h("span", { class: "text-dark mr-1" }, "Simple Financial"), index.h("span", { class: "simple-choices-text" }, "Choices")))), index.h("div", { class: "row justify-content-center" }, index.h("div", { class: "col" }, index.h("p", { class: "text-center" }, superChoiceParagraphOne), index.h("p", { class: "text-center small" }, superChoiceParagraphTwo), index.h("p", { class: "text-center small" }, superChoiceParagraphThree))), index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("sss-notifications-section", null))), index.h("div", { class: "row justify-content-center mt-4" }, index.h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, index.h("div", { class: "row" }, index.h("div", { class: "col" }, index.h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (index.h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), index.h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (index.h("div", { class: "col-12 col-lg-6 d-flex" }, index.h("sss-super-choice-item", { class: "card mb-3 mb-lg-0 mx-0 flex-grow-1", logo: fund.logo, isSelected: this.isPromotedFundSelected(fund.fundId), usi: fund.usi, name: fund.name, heading: fund.heading, pdsLink: navigationService.toExternalUrl(fund.pdsLink), features: JSON.stringify(fund.features), callToAction: fund.callToAction, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))), index.h("div", { class: "row mt-3" }, index.h("div", { class: "col" }, index.h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, index.h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
5538
5705
  }
5539
- getPromotedFunds() {
5706
+ allFunds() {
5540
5707
  return [
5541
5708
  {
5542
5709
  fundId: SlateFundId,
@@ -5567,9 +5734,30 @@ const SuperChoicePage = class {
5567
5734
  { order: 2, value: `One of Australia's largest funds` },
5568
5735
  { order: 3, value: 'Awarded SuperRatings highest performance rating' }
5569
5736
  ]
5737
+ },
5738
+ {
5739
+ fundId: AustralianRetirementTrustFundId,
5740
+ usi: AustralianRetirementTrustFundUsi,
5741
+ name: AustralianRetirementTrustFundName,
5742
+ heading: AustralianRetirementTrustAltFundName,
5743
+ logo: 'logo-qsuper-square.png',
5744
+ route: SuperSelectionAppRoutes.PromotedFundJoin,
5745
+ callToAction: 'Join AustralianRetirementTrust',
5746
+ pdsLink: 'https://google.com',
5747
+ features: []
5570
5748
  }
5571
5749
  ];
5572
5750
  }
5751
+ getPromotedFunds() {
5752
+ const fundTiles = [];
5753
+ superSelectionAppService.promotedFunds.forEach((fundId) => {
5754
+ const fund = this.allFunds().find((fund) => fundId == fund.fundId);
5755
+ if (fund !== undefined) {
5756
+ fundTiles.push(fund);
5757
+ }
5758
+ });
5759
+ return fundTiles;
5760
+ }
5573
5761
  async handleJoinSuperClickAsync(fund) {
5574
5762
  if (fund.fundId === SlateFundId) {
5575
5763
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
@@ -5578,14 +5766,20 @@ const SuperChoicePage = class {
5578
5766
  fundNameAlt: SlateAltFundName
5579
5767
  });
5580
5768
  }
5581
- else {
5582
- if (fund.fundId === QSuperFundId) {
5583
- await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5584
- fundUsi: QSuperFundUsi,
5585
- fundName: QSuperFundName,
5586
- fundNameAlt: QSuperAltFundName
5587
- });
5588
- }
5769
+ else if (fund.fundId === QSuperFundId) {
5770
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5771
+ fundUsi: QSuperFundUsi,
5772
+ fundName: QSuperFundName,
5773
+ fundNameAlt: QSuperAltFundName
5774
+ });
5775
+ }
5776
+ else if (fund.fundId === AustralianRetirementTrustFundId) {
5777
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5778
+ fundUsi: AustralianRetirementTrustFundUsi,
5779
+ fundName: AustralianRetirementTrustFundName,
5780
+ fundNameAlt: AustralianRetirementTrustAltFundName
5781
+ });
5782
+ state$1.fundId = fund.fundId;
5589
5783
  }
5590
5784
  return navigationService.navigateInternally(this.history, fund.route);
5591
5785
  }
@@ -16969,6 +17163,8 @@ exports.sss_loading_page = LoadingPage;
16969
17163
  exports.sss_my_own_fund = MyOwnFund;
16970
17164
  exports.sss_my_own_fund_inputs = MyOwnFundInputs;
16971
17165
  exports.sss_notifications_section = NotificationsSection;
17166
+ exports.sss_promoted_fund_join_page = PromotedFundJoinPage;
17167
+ exports.sss_promoted_fund_standard_choice_page = PromotedFundStandardChoicePage;
16972
17168
  exports.sss_qsuper_confirm_header = QsuperConfirmHeader;
16973
17169
  exports.sss_qsuper_consent = QsuperConsent;
16974
17170
  exports.sss_qsuper_insurance_opt_in = QsuperInsuranceOptIn;