@flarehr/apollo-super-selection 3.16.52608 → 3.19.53196

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 (39) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-a24a177c.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-a50e40ee.entry.js +14 -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 -99
  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 +2 -3
  10. package/dist/lib/collection/components/super-selection-app/funds/constants.js +4 -0
  11. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +2 -2
  12. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
  13. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
  14. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
  15. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
  16. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
  17. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
  18. package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +12 -12
  19. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +4 -0
  20. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +36 -15
  21. package/dist/lib/esm/apollo-super-selection.js +1 -1
  22. package/dist/lib/esm/{fl-button_44.entry.js → fl-button_46.entry.js} +280 -100
  23. package/dist/lib/esm/loader.js +1 -1
  24. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  25. package/dist/lib/esm-es5/{fl-button_44.entry.js → fl-button_46.entry.js} +4 -4
  26. package/dist/lib/esm-es5/loader.js +1 -1
  27. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +4 -0
  28. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.d.ts +1 -1
  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.d.ts +30 -0
  37. package/package.json +1 -1
  38. package/dist/lib/apollo-super-selection/p-5b540e03.entry.js +0 -14
  39. package/dist/lib/apollo-super-selection/p-d30f9e5e.system.entry.js +0 -69
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
261
261
  }
262
262
  }
263
263
 
264
- const AppVersion = '3.16.52608';
264
+ const AppVersion = '3.19.53196';
265
265
 
266
266
  // -------------------------------------------------------------------------------------
267
267
  // guards
@@ -3884,6 +3884,8 @@ var SuperSelectionAppRoutes;
3884
3884
  SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
3885
3885
  SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
3886
3886
  SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
3887
+ SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
3888
+ SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
3887
3889
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
3888
3890
  SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
3889
3891
  SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
@@ -3894,6 +3896,8 @@ const superSelectionAppStencilRoutes = [
3894
3896
  h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
3895
3897
  h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
3896
3898
  h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
3899
+ h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
3900
+ h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
3897
3901
  h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
3898
3902
  h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
3899
3903
  h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
@@ -4225,7 +4229,7 @@ const FooterSection = class {
4225
4229
  registerInstance(this, hostRef);
4226
4230
  }
4227
4231
  render() {
4228
- return (h("div", { class: "container mb-sm-0" }, h("div", { class: "row justify-content-center mt-5 mb-3" }, h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" }, h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), h("h5", { class: "font-weight-bold text-center mb-4" }, h("span", { class: "text-dark mr-1" }, "Simple Financial"), h("span", { class: "simple-choices-text" }, "Choices")))), h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" }, h("p", { class: "text-muted small" }, "Financial product content on this page is provided by Simple Financial Choices Pty Ltd, a wholly owned entity of Flare HR. 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). Flare HR does not endorse or accept responsibility for any financial product advice or services provided by Simple Financial Choices Pty Ltd.")), h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
4232
+ return (h("div", { class: "container mb-sm-0" }, h("div", { class: "row justify-content-center mt-5 mb-3" }, h("div", { class: "text-decoration-none" }, h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), h("h5", { class: "font-weight-bold text-center mb-4" }, h("span", { class: "text-dark mr-1" }, "Simple Financial"), h("span", { class: "simple-choices-text" }, "Choices")))), h("div", { class: "row justify-content-center pb-sm-0 px-3 px-sm-0" }, 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.")), h("div", { class: "row justify-content-end my-1 px-3 px-sm-0" }, this.appVersionBadge())));
4229
4233
  }
4230
4234
  appVersionBadge() {
4231
4235
  return (h("small", { style: { opacity: '0.5' }, class: "text-muted" }, "Powered by Flare, v", AppVersion));
@@ -4341,6 +4345,157 @@ const NotificationsSection = class {
4341
4345
  }
4342
4346
  };
4343
4347
 
4348
+ const initial = {
4349
+ fundId: '',
4350
+ memberNumber: '',
4351
+ usi: '',
4352
+ standardChoiceFormSignature: ''
4353
+ };
4354
+ const { state: state$1 } = createStore(initial);
4355
+
4356
+ class PromotedFundJoinIFrameBuilder {
4357
+ constructor() {
4358
+ this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
4359
+ this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
4360
+ this.environmentDiscriminator = () => {
4361
+ return this.hostIsLocalSuperSelection()
4362
+ ? 'autodev-partner'
4363
+ : window.location.hostname.toLowerCase().split('.')[0];
4364
+ };
4365
+ this.promotedFundJoinAppUrl = () => {
4366
+ return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
4367
+ };
4368
+ }
4369
+ build(iframe, history) {
4370
+ if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
4371
+ return;
4372
+ const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
4373
+ ? `${window.location.origin}/super-selection/embed/v1.0/app`
4374
+ : 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
4375
+ const redirectUrl = `${baseUrl}/promoted-fund-redirect.html`;
4376
+ 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 });
4377
+ const handleMessage = (event) => {
4378
+ const { data } = event;
4379
+ if (!data) {
4380
+ return;
4381
+ }
4382
+ if (data.sender === 'promoted-fund-redirect') {
4383
+ window.removeEventListener('message', handleMessage);
4384
+ switch (data.type) {
4385
+ case 'success':
4386
+ if (data.memberNumber) {
4387
+ state$1.memberNumber = data.memberNumber;
4388
+ state$1.usi = data.usi;
4389
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.PromotedFundStandardChoice);
4390
+ break;
4391
+ }
4392
+ /* falls through */
4393
+ default:
4394
+ navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
4395
+ break;
4396
+ }
4397
+ return;
4398
+ }
4399
+ if (data.sender === 'promoted-fund-join') {
4400
+ switch (data.type) {
4401
+ case 'contentResized':
4402
+ iframe.height = data.height > 0 ? data.height : iframe.height;
4403
+ iframe.width = data.width > 0 ? data.width : iframe.width;
4404
+ break;
4405
+ }
4406
+ }
4407
+ };
4408
+ window.addEventListener('message', handleMessage);
4409
+ const iframeDoc = iframe.contentDocument;
4410
+ iframeDoc.open();
4411
+ const form = iframeDoc.createElement('form');
4412
+ form.method = 'POST';
4413
+ form.target = '_self';
4414
+ form.action = this.promotedFundJoinAppUrl();
4415
+ let prop;
4416
+ for (prop in postData) {
4417
+ const value = postData[prop];
4418
+ if (value !== undefined) {
4419
+ const input = document.createElement('input');
4420
+ input.type = 'hidden';
4421
+ input.name = prop;
4422
+ input.value = value;
4423
+ form.append(input);
4424
+ }
4425
+ }
4426
+ iframeDoc.appendChild(form);
4427
+ iframeDoc.close();
4428
+ form.submit();
4429
+ }
4430
+ getMemberData() {
4431
+ var _a, _b;
4432
+ const superBuyer = superSelectionAppService.superBuyer;
4433
+ return {
4434
+ firstName: superBuyer.userProfile.firstName,
4435
+ middleName: superBuyer.userProfile.middleName,
4436
+ lastName: superBuyer.userProfile.lastName,
4437
+ dateOfBirth: superBuyer.userProfile.dateOfBirth,
4438
+ gender: superBuyer.userProfile.gender,
4439
+ email: superBuyer.userProfile.email,
4440
+ mobilePhone: superBuyer.userProfile.mobilePhone,
4441
+ taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
4442
+ addressLine1: superBuyer.userProfile.address.addressLine1,
4443
+ addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
4444
+ city: superBuyer.userProfile.address.city,
4445
+ state: superBuyer.userProfile.address.state,
4446
+ postCode: superBuyer.userProfile.address.postcode
4447
+ };
4448
+ }
4449
+ }
4450
+ const PromotedFundJoinIFrameBuilder$1 = new PromotedFundJoinIFrameBuilder();
4451
+
4452
+ const PromotedFundJoinPage = class {
4453
+ constructor(hostRef) {
4454
+ registerInstance(this, hostRef);
4455
+ }
4456
+ componentDidLoad() {
4457
+ PromotedFundJoinIFrameBuilder$1.build(this.iframeElement, this.history);
4458
+ }
4459
+ render() {
4460
+ return (h(Host, { class: "d-flex flex-fill" }, h("iframe", { width: "100%", height: window.innerHeight, style: { border: 'none' }, ref: (el) => (this.iframeElement = el) })));
4461
+ }
4462
+ };
4463
+
4464
+ class PromotedFundChoiceApi {
4465
+ async submitChoiceAsync(dto) {
4466
+ return buildBackendApiClient()
4467
+ .url('super-choice/promoted-fund')
4468
+ .post(dto)
4469
+ .badRequest(() => {
4470
+ throw new Error('Failed to process Promoted Fund choice request');
4471
+ })
4472
+ .text();
4473
+ }
4474
+ }
4475
+ const promotedFundChoiceApi = new PromotedFundChoiceApi();
4476
+
4477
+ const PromotedFundStandardChoicePage = class {
4478
+ constructor(hostRef) {
4479
+ registerInstance(this, hostRef);
4480
+ }
4481
+ render() {
4482
+ return (h(Host, { class: "d-flex flex-fill" }, h("div", { class: "container" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col col-sm-10 col-md-7" }, h("div", null, h("div", null, "You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."), h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
4483
+ 'was-validated': this.formState === 'validated'
4484
+ }, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
4485
+ state$1.standardChoiceFormSignature =
4486
+ event.detail.standardChoiceFormSignature;
4487
+ } })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Submit")))))))))));
4488
+ }
4489
+ async handleSubmitForm() {
4490
+ this.formState = 'validated';
4491
+ if (this.formElement.checkValidity()) {
4492
+ promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
4493
+ superSelectionAppService.markSuperSelectionAsSubmitted();
4494
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
4495
+ }
4496
+ }
4497
+ };
4498
+
4344
4499
  const QSuperFundUsi = '60905115063001';
4345
4500
  const QSuperFundId = 'qsuper';
4346
4501
  const QSuperFundName = 'QSuper';
@@ -4354,6 +4509,10 @@ const SlateFundUsi = '32367272075001';
4354
4509
  const SlateFundId = 'slate';
4355
4510
  const SlateFundName = 'Slate Super';
4356
4511
  const SlateAltFundName = 'Modern Digital Fund';
4512
+ const AustralianRetirementTrustFundUsi = 'australian-retirement-trust';
4513
+ const AustralianRetirementTrustFundId = 'australian-retirement-trust';
4514
+ const AustralianRetirementTrustFundName = 'AustralianRetirementTrust';
4515
+ const AustralianRetirementTrustAltFundName = 'TODO';
4357
4516
 
4358
4517
  const qsuperConfirmationCss = "";
4359
4518
 
@@ -4438,7 +4597,7 @@ const initialStateQSuper = {
4438
4597
  },
4439
4598
  standardChoiceFormSignature: ''
4440
4599
  };
4441
- const { state: state$1, reset: reset$1 } = createStore(initialStateQSuper);
4600
+ const { state: state$2, reset: reset$1 } = createStore(initialStateQSuper);
4442
4601
  const resetQSuperStore = reset$1;
4443
4602
 
4444
4603
  function getNextRoute() {
@@ -4447,64 +4606,64 @@ function getNextRoute() {
4447
4606
  const route = window.location.pathname.split(baseAppUrl)[1];
4448
4607
  const nextRoutes = {
4449
4608
  [SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
4450
- [SuperSelectionAppRoutes.QSuperQuestion1]: state$1.qSuperInsuranceQuestions.question1
4609
+ [SuperSelectionAppRoutes.QSuperQuestion1]: state$2.qSuperInsuranceQuestions.question1
4451
4610
  .answered
4452
- ? ((_a = state$1.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
4611
+ ? ((_a = state$2.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
4453
4612
  ? SuperSelectionAppRoutes.QSuperQuestion4
4454
4613
  : SuperSelectionAppRoutes.QSuperQuestion2
4455
4614
  : SuperSelectionAppRoutes.QSuperQuestion1,
4456
- [SuperSelectionAppRoutes.QSuperQuestion2]: state$1.qSuperInsuranceQuestions.question2
4615
+ [SuperSelectionAppRoutes.QSuperQuestion2]: state$2.qSuperInsuranceQuestions.question2
4457
4616
  .answered
4458
- ? ((_b = state$1.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
4617
+ ? ((_b = state$2.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
4459
4618
  ? SuperSelectionAppRoutes.QSuperQuestion4
4460
4619
  : SuperSelectionAppRoutes.QSuperQuestion3
4461
4620
  : SuperSelectionAppRoutes.QSuperQuestion2,
4462
- [SuperSelectionAppRoutes.QSuperQuestion3]: state$1.qSuperInsuranceQuestions.question3
4621
+ [SuperSelectionAppRoutes.QSuperQuestion3]: state$2.qSuperInsuranceQuestions.question3
4463
4622
  .answered
4464
4623
  ? SuperSelectionAppRoutes.QSuperQuestion4
4465
4624
  : SuperSelectionAppRoutes.QSuperQuestion3,
4466
- [SuperSelectionAppRoutes.QSuperQuestion4]: state$1.qSuperInsuranceQuestions.question4
4625
+ [SuperSelectionAppRoutes.QSuperQuestion4]: state$2.qSuperInsuranceQuestions.question4
4467
4626
  .answered
4468
4627
  ? SuperSelectionAppRoutes.QSuperQuestion5
4469
4628
  : SuperSelectionAppRoutes.QSuperQuestion4,
4470
- [SuperSelectionAppRoutes.QSuperQuestion5]: state$1.qSuperInsuranceQuestions.question5
4629
+ [SuperSelectionAppRoutes.QSuperQuestion5]: state$2.qSuperInsuranceQuestions.question5
4471
4630
  .answered
4472
4631
  ? SuperSelectionAppRoutes.QSuperQuestion6
4473
4632
  : SuperSelectionAppRoutes.QSuperQuestion5,
4474
- [SuperSelectionAppRoutes.QSuperQuestion6]: state$1.qSuperInsuranceQuestions.question6
4633
+ [SuperSelectionAppRoutes.QSuperQuestion6]: state$2.qSuperInsuranceQuestions.question6
4475
4634
  .answered
4476
4635
  ? SuperSelectionAppRoutes.QSuperQuestion7
4477
4636
  : SuperSelectionAppRoutes.QSuperQuestion6,
4478
- [SuperSelectionAppRoutes.QSuperQuestion7]: state$1.qSuperInsuranceQuestions.question7
4637
+ [SuperSelectionAppRoutes.QSuperQuestion7]: state$2.qSuperInsuranceQuestions.question7
4479
4638
  .answered
4480
4639
  ? SuperSelectionAppRoutes.QSuperQuestion8
4481
4640
  : SuperSelectionAppRoutes.QSuperQuestion7,
4482
- [SuperSelectionAppRoutes.QSuperQuestion8]: state$1.qSuperInsuranceQuestions.question8
4641
+ [SuperSelectionAppRoutes.QSuperQuestion8]: state$2.qSuperInsuranceQuestions.question8
4483
4642
  .answered
4484
4643
  ? SuperSelectionAppRoutes.QSuperConsent
4485
4644
  : SuperSelectionAppRoutes.QSuperQuestion8,
4486
- [SuperSelectionAppRoutes.QSuperConsent]: state$1.qSuperQuestionnaire.readDutyOfDisclosure &&
4487
- state$1.qSuperQuestionnaire.reviewedApplication
4645
+ [SuperSelectionAppRoutes.QSuperConsent]: state$2.qSuperQuestionnaire.readDutyOfDisclosure &&
4646
+ state$2.qSuperQuestionnaire.reviewedApplication
4488
4647
  ? SuperSelectionAppRoutes.QSuperJoin
4489
4648
  : SuperSelectionAppRoutes.QSuperConsent,
4490
- [SuperSelectionAppRoutes.QSuperJoin]: state$1.qSuperJoinPageCheckbox
4649
+ [SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox
4491
4650
  ? SuperSelectionAppRoutes.Success
4492
4651
  : SuperSelectionAppRoutes.QSuperJoin
4493
4652
  };
4494
4653
  // special cases
4495
4654
  // if question 3 or 5 are selected as Yes, show questions 6,7,8
4496
4655
  // if we are on question 5, and question 3 or 5 have been selected yes, go to question 6
4497
- const firstFiveQuestionsAnswered = state$1.qSuperInsuranceQuestions.question1.answered &&
4498
- state$1.qSuperInsuranceQuestions.question2.answered &&
4499
- state$1.qSuperInsuranceQuestions.question3.answered &&
4500
- state$1.qSuperInsuranceQuestions.question4.answered &&
4501
- state$1.qSuperInsuranceQuestions.question5.answered;
4656
+ const firstFiveQuestionsAnswered = state$2.qSuperInsuranceQuestions.question1.answered &&
4657
+ state$2.qSuperInsuranceQuestions.question2.answered &&
4658
+ state$2.qSuperInsuranceQuestions.question3.answered &&
4659
+ state$2.qSuperInsuranceQuestions.question4.answered &&
4660
+ state$2.qSuperInsuranceQuestions.question5.answered;
4502
4661
  // if we are on question 5 - check if question 3 or 5 have been answered yes
4503
4662
  // if they have then show questions 6,7,8 - otherwise go to the consent page
4504
4663
  if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
4505
4664
  if (firstFiveQuestionsAnswered &&
4506
- (((_c = state$1.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
4507
- ((_d = state$1.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
4665
+ (((_c = state$2.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
4666
+ ((_d = state$2.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
4508
4667
  return SuperSelectionAppRoutes.QSuperQuestion6;
4509
4668
  }
4510
4669
  return SuperSelectionAppRoutes.QSuperConsent;
@@ -4512,8 +4671,8 @@ function getNextRoute() {
4512
4671
  // if in opt in page
4513
4672
  if (route === SuperSelectionAppRoutes.QSuperOptIn) {
4514
4673
  // if checkbox is ticked and insurance selected - go to question 1
4515
- if (state$1.qSuperOptInPageCheckbox) {
4516
- if (state$1.qSuperQuestionnaire.insuranceChosen) {
4674
+ if (state$2.qSuperOptInPageCheckbox) {
4675
+ if (state$2.qSuperQuestionnaire.insuranceChosen) {
4517
4676
  return SuperSelectionAppRoutes.QSuperQuestion1;
4518
4677
  }
4519
4678
  else {
@@ -4537,18 +4696,18 @@ const QsuperConsent = class {
4537
4696
  }
4538
4697
  async componentDidLoad() {
4539
4698
  window.scroll(0, 0);
4540
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4699
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4541
4700
  }
4542
4701
  render() {
4543
4702
  return (h("sss-qsuper-layout", null, h("div", { class: "d-flex align-items-center justify-content-center" }, h("p", { class: "confirm-title font-weight-bold text-center" }, "Your QSuper Accumulation Account")), h("div", { class: "p-3 d-flex mt-4 checkbox-container" }, 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.", h("br", null), 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).", h("br", null), h("br", null), "I have read and agree to the terms and conditions in the QSuper", ' ', 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", ' ', h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf') }, "Your Privacy factsheet"), ", and the", ' ', h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf') }, "Financial Services Guide"), ".", h("br", null), 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.", h("br", null), 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.", h("br", null), h("br", null), "I confirm that the information I have given is true and correct.", h("br", null), h("br", null), "I confirm that I am the person identified as the applicant in this form.", h("br", null), 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.", h("br", null), h("br", null), "I understand that I will be placed into the default investment option QSuper Lifetime.", h("br", null), 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.", h("br", null), h("br", null), "I have read and accept the", ' ', h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/misc/tfn') }, "Privacy and Contact Information Statement"))), h("div", null, h("label", { class: "d-flex\u00A0mt-3\u00A0p-3\u00A0checkbox-container", htmlFor: "ackAllCheckBox" }, h("div", { class: "w-auto\u00A0px-2 fl-checkbox-container" }, h("input", { id: "ackAllCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })), h("div", { class: "pl-3" }, h("p", { class: "confirm-item-text\u00A0mb-0 mt-1" }, "I acknowledge all of the above. ", h("i", null, "(required)")))))));
4544
4703
  }
4545
4704
  handleCheckboxToggle() {
4546
- state$1.qSuperQuestionnaire.readDutyOfDisclosure = !state$1.qSuperQuestionnaire
4705
+ state$2.qSuperQuestionnaire.readDutyOfDisclosure = !state$2.qSuperQuestionnaire
4547
4706
  .readDutyOfDisclosure;
4548
- state$1.qSuperQuestionnaire.reviewedApplication = !state$1.qSuperQuestionnaire
4707
+ state$2.qSuperQuestionnaire.reviewedApplication = !state$2.qSuperQuestionnaire
4549
4708
  .reviewedApplication;
4550
- state$1.continueAllowed = !state$1.continueAllowed;
4551
- state$1.nextRoute = getNextRoute();
4709
+ state$2.continueAllowed = !state$2.continueAllowed;
4710
+ state$2.nextRoute = getNextRoute();
4552
4711
  }
4553
4712
  pdsViewedAsync() {
4554
4713
  return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
@@ -4566,16 +4725,16 @@ function continueEnabledCheck() {
4566
4725
  const baseAppUrl = superSelectionAppService.appBaseUrl;
4567
4726
  const currentRoute = window.location.pathname.split(baseAppUrl)[1];
4568
4727
  const continueValidConditions = {
4569
- [SuperSelectionAppRoutes.QSuperOptIn]: state$1.qSuperOptInPageCheckbox,
4570
- [SuperSelectionAppRoutes.QSuperJoin]: state$1.qSuperJoinPageCheckbox && state$1.standardChoiceFormSignature
4728
+ [SuperSelectionAppRoutes.QSuperOptIn]: state$2.qSuperOptInPageCheckbox,
4729
+ [SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox && state$2.standardChoiceFormSignature
4571
4730
  };
4572
- state$1.continueAllowed = continueValidConditions[currentRoute];
4731
+ state$2.continueAllowed = continueValidConditions[currentRoute];
4573
4732
  }
4574
4733
 
4575
4734
  function resetQSuperState() {
4576
4735
  resetQSuperStore();
4577
- state$1.qSuperQuestionnaire = Object.assign(Object.assign({}, state$1.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
4578
- state$1.qSuperInsuranceQuestions = {
4736
+ state$2.qSuperQuestionnaire = Object.assign(Object.assign({}, state$2.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
4737
+ state$2.qSuperInsuranceQuestions = {
4579
4738
  question1: {
4580
4739
  answered: false
4581
4740
  },
@@ -4644,14 +4803,14 @@ const QsuperInsuranceOptIn = class {
4644
4803
  });
4645
4804
  }
4646
4805
  handleInsuranceToggle(input) {
4647
- state$1.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
4648
- this.insuranceChosen = state$1.qSuperQuestionnaire.insuranceChosen;
4649
- state$1.nextRoute = getNextRoute();
4806
+ state$2.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
4807
+ this.insuranceChosen = state$2.qSuperQuestionnaire.insuranceChosen;
4808
+ state$2.nextRoute = getNextRoute();
4650
4809
  }
4651
4810
  handleCheckboxToggle() {
4652
- state$1.qSuperOptInPageCheckbox = !state$1.qSuperOptInPageCheckbox;
4811
+ state$2.qSuperOptInPageCheckbox = !state$2.qSuperOptInPageCheckbox;
4653
4812
  continueEnabledCheck();
4654
- state$1.nextRoute = getNextRoute();
4813
+ state$2.nextRoute = getNextRoute();
4655
4814
  }
4656
4815
  };
4657
4816
  QsuperInsuranceOptIn.style = qsuperCss$1;
@@ -4677,14 +4836,14 @@ const QSuperConfirmSelection = class {
4677
4836
  }
4678
4837
  render() {
4679
4838
  return (h("sss-qsuper-layout", null, h("img", { class: "ss-choice-logo mx-auto", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/logo-qsuper.png`) }), h("div", { class: "row" }, h("div", { class: "col text-center" }, h("p", { class: "confirm-title font-weight-bold mb-0" }, "You have chosen to join QSuper"))), h("div", { class: "my-3 card p-3" }, 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."), 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")), h("div", { class: "card p-3" }, h("p", { class: "text-center" }, "100 years strong"), h("p", { class: "text-center" }, "One of Australia's largest funds"), h("p", { class: "text-center mb-0" }, "Awarded SuperRatings highest performance rating")), h("div", { class: "mt-3" }, h("p", { class: "text-center confirm-text" }, "Your application to join the fund is subject to Trustee approval.")), h("div", null, h("label", { class: "d-flex\u00A0mt-4\u00A0p-3\u00A0checkbox-container", htmlFor: "confirmCheckBox" }, h("div", { class: "w-auto\u00A0px-2 py-2 fl-checkbox-container" }, h("input", { id: "confirmCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })), h("div", { class: "pl-3" }, h("p", { class: "confirm-item-text mb-0 mt-1" }, "I've read and understood the", ' ', 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.")))), h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
4680
- state$1.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
4839
+ state$2.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
4681
4840
  continueEnabledCheck();
4682
4841
  } })));
4683
4842
  }
4684
4843
  handleCheckboxToggle() {
4685
- state$1.qSuperJoinPageCheckbox = !state$1.qSuperJoinPageCheckbox;
4844
+ state$2.qSuperJoinPageCheckbox = !state$2.qSuperJoinPageCheckbox;
4686
4845
  continueEnabledCheck();
4687
- state$1.nextRoute = getNextRoute();
4846
+ state$2.nextRoute = getNextRoute();
4688
4847
  }
4689
4848
  pdsViewedAsync() {
4690
4849
  return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
@@ -4711,34 +4870,34 @@ class QSuperChoiceApi {
4711
4870
  const qsuperChoiceApi = new QSuperChoiceApi();
4712
4871
 
4713
4872
  async function handleConfirmClickAsync() {
4714
- if (!state$1.continueAllowed)
4873
+ if (!state$2.continueAllowed)
4715
4874
  return;
4716
- state$1.continueAllowed = false;
4717
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4718
- state$1.qSuperQuestionnaire.insuranceChosen) {
4719
- state$1.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
4875
+ state$2.continueAllowed = false;
4876
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4877
+ state$2.qSuperQuestionnaire.insuranceChosen) {
4878
+ state$2.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
4720
4879
  return;
4721
4880
  }
4722
4881
  // if insurance hasn't been chosen - skip the accumulation page
4723
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4724
- !state$1.qSuperQuestionnaire.insuranceChosen) {
4725
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4882
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
4883
+ !state$2.qSuperQuestionnaire.insuranceChosen) {
4884
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4726
4885
  return;
4727
4886
  }
4728
- if (state$1.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
4729
- state$1.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4887
+ if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
4888
+ state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
4730
4889
  return;
4731
4890
  }
4732
- if (state$1.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
4733
- state$1.qSuperFormValid = false;
4734
- state$1.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
4891
+ if (state$2.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
4892
+ state$2.qSuperFormValid = false;
4893
+ state$2.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
4735
4894
  return;
4736
4895
  }
4737
- if (state$1.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
4738
- state$1.qSuperQuestionnaire.acceptedDeclaration = true;
4896
+ if (state$2.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
4897
+ state$2.qSuperQuestionnaire.acceptedDeclaration = true;
4739
4898
  const qSuperJoinRequest = {
4740
- questionnaire: state$1.qSuperQuestionnaire,
4741
- standardChoiceFormSignature: state$1.standardChoiceFormSignature
4899
+ questionnaire: state$2.qSuperQuestionnaire,
4900
+ standardChoiceFormSignature: state$2.standardChoiceFormSignature
4742
4901
  };
4743
4902
  await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
4744
4903
  superSelectionAppService.markSuperSelectionAsSubmitted();
@@ -4749,7 +4908,7 @@ const QsuperLayout = class {
4749
4908
  constructor(hostRef) {
4750
4909
  registerInstance(this, hostRef);
4751
4910
  this.isEligible = false;
4752
- this.canContinue = () => this.isEligible && state$1.continueAllowed;
4911
+ this.canContinue = () => this.isEligible && state$2.continueAllowed;
4753
4912
  this.ensureEligibility = () => {
4754
4913
  if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < QSuperMinAge) {
4755
4914
  this.showIneligibleNotification(`People under the age of ${QSuperMinAge} are not able to open accounts.`);
@@ -4770,7 +4929,7 @@ const QsuperLayout = class {
4770
4929
  }
4771
4930
  async componentWillLoad() {
4772
4931
  this.ensureEligibility();
4773
- state$1.nextRoute = getNextRoute();
4932
+ state$2.nextRoute = getNextRoute();
4774
4933
  }
4775
4934
  render() {
4776
4935
  return (h("div", { class: "container" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col col-sm-10 col-md-7" }, h("slot", null), h("div", { class: "mt-4" }, h("sss-notifications-section", null)), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" }, h("span", null, "Back")))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, disabled: !this.canContinue(), promiseFn: () => this.tryAsync() }, h("span", null, "Continue")))))))));
@@ -4781,14 +4940,14 @@ const QsuperLayout = class {
4781
4940
  return;
4782
4941
  }
4783
4942
  await handleConfirmClickAsync();
4784
- navigationService.navigateInternally(this.history, state$1.nextRoute);
4943
+ navigationService.navigateInternally(this.history, state$2.nextRoute);
4785
4944
  }
4786
4945
  catch (error) {
4787
4946
  notificationsService.showErrorNotification({
4788
4947
  title: "Couldn't process your request",
4789
4948
  description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
4790
4949
  });
4791
- state$1.continueAllowed = true;
4950
+ state$2.continueAllowed = true;
4792
4951
  }
4793
4952
  }
4794
4953
  static get assetsDirs() { return ["assets"]; }
@@ -4880,8 +5039,8 @@ const QsuperQuestionYesNoButtons = class {
4880
5039
  const currentQuestion = window.location.pathname
4881
5040
  .split(baseAppUrl + '/qsuper/insurance/')[1]
4882
5041
  .replace(/\/+$/, '');
4883
- if (state$1.qSuperQuestionnaire.questions === undefined) {
4884
- state$1.qSuperQuestionnaire.questions = {
5042
+ if (state$2.qSuperQuestionnaire.questions === undefined) {
5043
+ state$2.qSuperQuestionnaire.questions = {
4885
5044
  question1: false,
4886
5045
  question2: false,
4887
5046
  question3: false,
@@ -4892,10 +5051,10 @@ const QsuperQuestionYesNoButtons = class {
4892
5051
  question8: false
4893
5052
  };
4894
5053
  }
4895
- state$1.qSuperQuestionnaire.questions[currentQuestion] = input;
4896
- state$1.qSuperInsuranceQuestions[currentQuestion].answered = true;
4897
- state$1.nextRoute = getNextRoute();
4898
- navigationService.navigateInternally(this.history, state$1.nextRoute);
5054
+ state$2.qSuperQuestionnaire.questions[currentQuestion] = input;
5055
+ state$2.qSuperInsuranceQuestions[currentQuestion].answered = true;
5056
+ state$2.nextRoute = getNextRoute();
5057
+ navigationService.navigateInternally(this.history, state$2.nextRoute);
4899
5058
  }
4900
5059
  };
4901
5060
  injectHistory(QsuperQuestionYesNoButtons);
@@ -5195,15 +5354,15 @@ const initialSlateSuper = {
5195
5354
  standardChoiceFormSignature: ''
5196
5355
  }
5197
5356
  };
5198
- const { state: state$2 } = createStore(initialSlateSuper);
5357
+ const { state: state$3 } = createStore(initialSlateSuper);
5199
5358
 
5200
5359
  class SlateIFrameBuilder {
5201
5360
  constructor() {
5202
- this.hostIsLocalSuperSelection = () => window.location.origin == "http://localhost:7100";
5203
- this.hostIsDeployed = () => window.location.origin.endsWith("partner.flarehr.com");
5204
- this.skipConsolidation = () => interopQuery.isReactNativeInteropEnabled() ? 'true' : 'false';
5361
+ this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
5362
+ this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
5363
+ this.skipConsolidation = () => (interopQuery.isReactNativeInteropEnabled() ? 'true' : 'false');
5205
5364
  this.environmentDiscriminator = () => {
5206
- let discriminator = window.location.hostname.toLowerCase().split('.')[0];
5365
+ const discriminator = window.location.hostname.toLowerCase().split('.')[0];
5207
5366
  switch (discriminator) {
5208
5367
  case 'autodev-partner':
5209
5368
  case 'test-partner':
@@ -5221,11 +5380,11 @@ class SlateIFrameBuilder {
5221
5380
  build(iframe, history) {
5222
5381
  if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
5223
5382
  return;
5224
- const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed() ?
5225
- `${window.location.origin}/super-selection/embed/v1.0/app` :
5226
- "https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app";
5383
+ const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
5384
+ ? `${window.location.origin}/super-selection/embed/v1.0/app`
5385
+ : 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
5227
5386
  const redirectUrl = `${baseUrl}/slate-redirect.html`;
5228
- const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation() });
5387
+ const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
5229
5388
  if (this.includeJwt()) {
5230
5389
  postData.authToken = superSelectionAppService.jwt;
5231
5390
  }
@@ -5235,11 +5394,11 @@ class SlateIFrameBuilder {
5235
5394
  return;
5236
5395
  }
5237
5396
  if (data.sender === 'slate-redirect') {
5238
- window.removeEventListener("message", handleMessage);
5397
+ window.removeEventListener('message', handleMessage);
5239
5398
  switch (data.type) {
5240
5399
  case 'success':
5241
5400
  if (data.memberNumber) {
5242
- state$2.slateFundForm.memberNumber = data.memberNumber;
5401
+ state$3.slateFundForm.memberNumber = data.memberNumber;
5243
5402
  navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
5244
5403
  break;
5245
5404
  }
@@ -5250,7 +5409,7 @@ class SlateIFrameBuilder {
5250
5409
  }
5251
5410
  return;
5252
5411
  }
5253
- if (data.sender === 'flare' && origin.endsWith("join.slatesuper.com.au")) {
5412
+ if (data.sender === 'flare' && origin.endsWith('join.slatesuper.com.au')) {
5254
5413
  switch (data.type) {
5255
5414
  case 'contentResized':
5256
5415
  iframe.height = data.height > 0 ? data.height : iframe.height;
@@ -5259,10 +5418,10 @@ class SlateIFrameBuilder {
5259
5418
  }
5260
5419
  }
5261
5420
  };
5262
- window.addEventListener("message", handleMessage);
5421
+ window.addEventListener('message', handleMessage);
5263
5422
  const iframeDoc = iframe.contentDocument;
5264
5423
  iframeDoc.open();
5265
- const form = iframeDoc.createElement("form");
5424
+ const form = iframeDoc.createElement('form');
5266
5425
  form.method = 'POST';
5267
5426
  form.target = '_self';
5268
5427
  form.action = this.slateJoinAppUrl();
@@ -5352,13 +5511,13 @@ const SlateStandardChoicePage = class {
5352
5511
  return (h(Host, { class: "d-flex flex-fill" }, h("div", { class: "container" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col col-sm-10 col-md-7" }, h("sss-slatesuper-header", null), h("div", null, h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
5353
5512
  'was-validated': this.formState === 'validated'
5354
5513
  }, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
5355
- state$2.slateFundForm = Object.assign(Object.assign({}, state$2.slateFundForm), event.detail);
5514
+ state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
5356
5515
  } })), h("div", { class: "d-flex mt-4" }, h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "mr-2" }, h("stencil-route-link", { url: "/" }, h("fl-button", { isBlockElement: true, variant: "secondary" }, h("span", null, "Back"))))), h("div", { class: "flex-grow-1 w-50" }, h("div", { class: "ml-2" }, h("fl-promise-button", { isBlockElement: true, promiseFn: () => this.handleSubmitForm() }, h("span", null, "Submit")))))))))));
5357
5516
  }
5358
5517
  async handleSubmitForm() {
5359
5518
  this.formState = 'validated';
5360
5519
  if (this.formElement.checkValidity()) {
5361
- await slateChoiceApi.submitSlateChoiceAsync(state$2.slateFundForm);
5520
+ await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
5362
5521
  superSelectionAppService.markSuperSelectionAsSubmitted();
5363
5522
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
5364
5523
  }
@@ -5384,13 +5543,13 @@ const SmsfNotSupportedDialog = class {
5384
5543
  constructor(hostRef) {
5385
5544
  registerInstance(this, hostRef);
5386
5545
  this.continue = createEvent(this, "continue", 7);
5387
- this.standardChoiceFormUrl = "/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf";
5546
+ this.standardChoiceFormUrl = '/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf';
5388
5547
  this.handleContinue = () => {
5389
5548
  this.continue.emit();
5390
5549
  };
5391
5550
  }
5392
5551
  render() {
5393
- return (h(Host, null, h("div", { class: "overlay" }), h("div", { class: "dialog" }, h("div", { class: "card p-4 mt-4 bg-light text-center" }, h("div", { style: { "text-align": "center" } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "orange", viewBox: "0 0 16 16" }, h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" }))), h("p", { class: "small mt-4 mb-0" }, "You\u2019ve selected a self-managed super fund (SMSF). Currently, SMSF information can\u2019t be sent via this form. You\u2019ll need to provide your employer with a", ' ', h("a", { target: "_blank", href: this.standardChoiceFormUrl }, "standard choice form"), ' ', "for your SMSF details."), h("div", { class: "d-flex mt-4" }, h("div", { class: "w-25" }), h("div", { class: "w-50" }, h("fl-button", { onClick: this.handleContinue, isBlockElement: true, variant: "primary" }, h("span", null, "Continue"))))))));
5552
+ return (h(Host, null, h("div", { class: "overlay" }), h("div", { class: "dialog" }, h("div", { class: "card p-4 mt-4 bg-light text-center" }, h("div", { style: { 'text-align': 'center' } }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "orange", viewBox: "0 0 16 16" }, h("path", { d: "M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" }))), h("p", { class: "small mt-4 mb-0" }, "You\u2019ve selected a self-managed super fund (SMSF). Currently, SMSF information can\u2019t be sent via this form. You\u2019ll need to provide your employer with a", ' ', h("a", { target: "_blank", href: this.standardChoiceFormUrl }, "standard choice form"), ' ', "for your SMSF details."), h("div", { class: "d-flex mt-4" }, h("div", { class: "w-25" }), h("div", { class: "w-50" }, h("fl-button", { onClick: this.handleContinue, isBlockElement: true, variant: "primary" }, h("span", null, "Continue"))))))));
5394
5553
  }
5395
5554
  };
5396
5555
  SmsfNotSupportedDialog.style = selfManagedNotSupportedCss;
@@ -5528,9 +5687,9 @@ const SuperChoicePage = class {
5528
5687
  }
5529
5688
  render() {
5530
5689
  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.`;
5531
- const superChoiceParagraphTwo = `The content on this page and on the following pages relating to superannuation is provided by Simple Financial Choices. The superannuation funds presented below are neither selected nor recommended by your employer nor by Flare HR.`;
5532
- const superChoiceParagraphThree = `We aren't 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.`;
5533
- return (h(Host, null, h("div", { class: "container mt-0 mb-0" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("a", { class: "text-decoration-none", href: navigationService.toExternalUrl('https://slatesuper.com.au/product-disclosure-statement-pdf'), target: "_blank" }, h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), h("h5", { class: "font-weight-bold text-center mb-4" }, h("span", { class: "text-dark mr-1" }, "Simple Financial"), h("span", { class: "simple-choices-text" }, "Choices"))))), h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("p", { class: "text-center" }, superChoiceParagraphOne), h("p", { class: "text-center small" }, superChoiceParagraphTwo), h("p", { class: "text-center small" }, superChoiceParagraphThree))), h("div", { class: "row" }, h("div", { class: "col" }, h("sss-notifications-section", null))), h("div", { class: "row justify-content-center mt-4" }, h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, h("div", { class: "row" }, h("div", { class: "col" }, h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" }, 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) }))))), h("div", { class: "row mt-3" }, h("div", { class: "col" }, h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
5690
+ 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.`;
5691
+ 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.`;
5692
+ return (h(Host, null, h("div", { class: "container mt-0 mb-0" }, h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("p", { class: "mt-3 small text-center mb-1 text-dark" }, "Powered by"), h("h5", { class: "font-weight-bold text-center mb-4" }, h("span", { class: "text-dark mr-1" }, "Simple Financial"), h("span", { class: "simple-choices-text" }, "Choices")))), h("div", { class: "row justify-content-center" }, h("div", { class: "col" }, h("p", { class: "text-center" }, superChoiceParagraphOne), h("p", { class: "text-center small" }, superChoiceParagraphTwo), h("p", { class: "text-center small" }, superChoiceParagraphThree))), h("div", { class: "row" }, h("div", { class: "col" }, h("sss-notifications-section", null))), h("div", { class: "row justify-content-center mt-4" }, h("div", { class: "col col-sm-10 col-md-8 col-xl-7" }, h("div", { class: "row" }, h("div", { class: "col" }, h("div", { class: "d-flex flex-fill" }, isSome(this.chosenFund) && !this.chosenFund.value.isPromoted && (h("sss-selected-super-choice-section", { fundType: this.chosenFund.value.type, fundName: this.chosenFund.value.name, class: "flex-fill position-relative" }))))), h("div", { class: "row mt-3" }, this.promotedFunds.map((fund) => (h("div", { class: "col-12 col-lg-6 d-flex" }, 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) }))))), h("div", { class: "row mt-3" }, h("div", { class: "col" }, h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund }, h("fl-button", { isBlockElement: true, variant: "secondary" }, "I prefer to select another fund")))))))));
5534
5693
  }
5535
5694
  getPromotedFunds() {
5536
5695
  return [
@@ -5563,6 +5722,21 @@ const SuperChoicePage = class {
5563
5722
  { order: 2, value: `One of Australia's largest funds` },
5564
5723
  { order: 3, value: 'Awarded SuperRatings highest performance rating' }
5565
5724
  ]
5725
+ },
5726
+ {
5727
+ fundId: AustralianRetirementTrustFundId,
5728
+ usi: AustralianRetirementTrustFundUsi,
5729
+ name: AustralianRetirementTrustFundName,
5730
+ heading: AustralianRetirementTrustAltFundName,
5731
+ logo: 'logo-qsuper-square.png',
5732
+ route: SuperSelectionAppRoutes.PromotedFundJoin,
5733
+ callToAction: 'Join AustralianRetirementTrust',
5734
+ pdsLink: 'https://google.com',
5735
+ features: [
5736
+ { order: 1, value: 'Placeholder #1' },
5737
+ { order: 2, value: 'Placeholder #2' },
5738
+ { order: 3, value: 'Placeholder #3' }
5739
+ ]
5566
5740
  }
5567
5741
  ];
5568
5742
  }
@@ -5574,14 +5748,20 @@ const SuperChoicePage = class {
5574
5748
  fundNameAlt: SlateAltFundName
5575
5749
  });
5576
5750
  }
5577
- else {
5578
- if (fund.fundId === QSuperFundId) {
5579
- await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5580
- fundUsi: QSuperFundUsi,
5581
- fundName: QSuperFundName,
5582
- fundNameAlt: QSuperAltFundName
5583
- });
5584
- }
5751
+ else if (fund.fundId === QSuperFundId) {
5752
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5753
+ fundUsi: QSuperFundUsi,
5754
+ fundName: QSuperFundName,
5755
+ fundNameAlt: QSuperAltFundName
5756
+ });
5757
+ }
5758
+ else if (fund.fundId === AustralianRetirementTrustFundId) {
5759
+ await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
5760
+ fundUsi: AustralianRetirementTrustFundUsi,
5761
+ fundName: AustralianRetirementTrustFundName,
5762
+ fundNameAlt: AustralianRetirementTrustAltFundName
5763
+ });
5764
+ state$1.fundId = fund.fundId;
5585
5765
  }
5586
5766
  return navigationService.navigateInternally(this.history, fund.route);
5587
5767
  }
@@ -16953,4 +17133,4 @@ const SuperSelectionAppHost = class {
16953
17133
  };
16954
17134
  SuperSelectionAppHost.style = superSelectionAppHostCss;
16955
17135
 
16956
- export { ButtonComponent as fl_button, Dropdown as fl_dropdown, SelectInputAsync as fl_dropdown_async, LoadingIndicator as fl_loading_indicator, PromiseButton as fl_promise_button, CustomFund as sss_custom_fund, DefaultFund as sss_default_fund, FooterSection as sss_footer_section, LoadingPage as sss_loading_page, MyOwnFund as sss_my_own_fund, MyOwnFundInputs as sss_my_own_fund_inputs, NotificationsSection as sss_notifications_section, QsuperConfirmHeader as sss_qsuper_confirm_header, QsuperConsent as sss_qsuper_consent, QsuperInsuranceOptIn as sss_qsuper_insurance_opt_in, QsuperInsuranceQuestions as sss_qsuper_insurance_questions, QSuperConfirmSelection as sss_qsuper_join, QsuperLayout as sss_qsuper_layout, Question1 as sss_qsuper_question_1, Question2 as sss_qsuper_question_2, Question3 as sss_qsuper_question_3, Question4 as sss_qsuper_question_4, Question5 as sss_qsuper_question_5, Question6 as sss_qsuper_question_6, Question7 as sss_qsuper_question_7, Question8 as sss_qsuper_question_8, QsuperQuestionYesNoButtons as sss_qsuper_question_yes_no_buttons, SelectedSuperChoiceSection as sss_selected_super_choice_section, SelfManagedFund as sss_self_managed_fund, SelfManagedFundInputs as sss_self_managed_fund_inputs, SlateJoinPage as sss_slate_join_page, SlateStandardChoicePage as sss_slate_standard_choice_page, SlatesuperHeader as sss_slatesuper_header, SmsfNotSupportedDialog as sss_smsf_not_supported_dialog, StandardChoiceFormInputDefaultFund as sss_standard_choice_form, Success as sss_success, SuperChoiceItem as sss_super_choice_item, SuperChoicePage as sss_super_choice_page, Route as stencil_route, RouteLink as stencil_route_link, RouteSwitch as stencil_route_switch, Router as stencil_router, SuperSelectionApp as super_selection_app, SuperSelectionAppHost as super_selection_app_host };
17136
+ export { ButtonComponent as fl_button, Dropdown as fl_dropdown, SelectInputAsync as fl_dropdown_async, LoadingIndicator as fl_loading_indicator, PromiseButton as fl_promise_button, CustomFund as sss_custom_fund, DefaultFund as sss_default_fund, FooterSection as sss_footer_section, LoadingPage as sss_loading_page, MyOwnFund as sss_my_own_fund, MyOwnFundInputs as sss_my_own_fund_inputs, NotificationsSection as sss_notifications_section, PromotedFundJoinPage as sss_promoted_fund_join_page, PromotedFundStandardChoicePage as sss_promoted_fund_standard_choice_page, QsuperConfirmHeader as sss_qsuper_confirm_header, QsuperConsent as sss_qsuper_consent, QsuperInsuranceOptIn as sss_qsuper_insurance_opt_in, QsuperInsuranceQuestions as sss_qsuper_insurance_questions, QSuperConfirmSelection as sss_qsuper_join, QsuperLayout as sss_qsuper_layout, Question1 as sss_qsuper_question_1, Question2 as sss_qsuper_question_2, Question3 as sss_qsuper_question_3, Question4 as sss_qsuper_question_4, Question5 as sss_qsuper_question_5, Question6 as sss_qsuper_question_6, Question7 as sss_qsuper_question_7, Question8 as sss_qsuper_question_8, QsuperQuestionYesNoButtons as sss_qsuper_question_yes_no_buttons, SelectedSuperChoiceSection as sss_selected_super_choice_section, SelfManagedFund as sss_self_managed_fund, SelfManagedFundInputs as sss_self_managed_fund_inputs, SlateJoinPage as sss_slate_join_page, SlateStandardChoicePage as sss_slate_standard_choice_page, SlatesuperHeader as sss_slatesuper_header, SmsfNotSupportedDialog as sss_smsf_not_supported_dialog, StandardChoiceFormInputDefaultFund as sss_standard_choice_form, Success as sss_success, SuperChoiceItem as sss_super_choice_item, SuperChoicePage as sss_super_choice_page, Route as stencil_route, RouteLink as stencil_route_link, RouteSwitch as stencil_route_switch, Router as stencil_router, SuperSelectionApp as super_selection_app, SuperSelectionAppHost as super_selection_app_host };