@flarehr/apollo-super-selection 3.18.52782 → 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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-a24a177c.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-a50e40ee.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/{fl-button_44.cjs.entry.js → fl-button_46.cjs.entry.js} +266 -84
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/collection/collection-manifest.json +4 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +1 -2
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +4 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.js +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.js +13 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +34 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +62 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +9 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +101 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +1 -1
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +4 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +34 -13
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{fl-button_44.entry.js → fl-button_46.entry.js} +265 -85
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/{fl-button_44.entry.js → fl-button_46.entry.js} +4 -4
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +2 -0
- package/dist/lib/types/components.d.ts +30 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-31bdba35.system.entry.js +0 -69
- 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.
|
|
268
|
+
const AppVersion = '3.19.53196';
|
|
269
269
|
|
|
270
270
|
// -------------------------------------------------------------------------------------
|
|
271
271
|
// guards
|
|
@@ -3888,6 +3888,8 @@ var SuperSelectionAppRoutes;
|
|
|
3888
3888
|
SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
|
|
3889
3889
|
SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
|
|
3890
3890
|
SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
|
|
3891
|
+
SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
|
|
3892
|
+
SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
|
|
3891
3893
|
SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
|
|
3892
3894
|
SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
|
|
3893
3895
|
SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
|
|
@@ -3898,6 +3900,8 @@ const superSelectionAppStencilRoutes = [
|
|
|
3898
3900
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
|
|
3899
3901
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
|
|
3900
3902
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
|
|
3903
|
+
index.h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
|
|
3904
|
+
index.h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
|
|
3901
3905
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
|
|
3902
3906
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
|
|
3903
3907
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
|
|
@@ -4229,7 +4233,7 @@ const FooterSection = class {
|
|
|
4229
4233
|
index.registerInstance(this, hostRef);
|
|
4230
4234
|
}
|
|
4231
4235
|
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("
|
|
4236
|
+
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
4237
|
}
|
|
4234
4238
|
appVersionBadge() {
|
|
4235
4239
|
return (index.h("small", { style: { opacity: '0.5' }, class: "text-muted" }, "Powered by Flare, v", AppVersion));
|
|
@@ -4345,6 +4349,157 @@ const NotificationsSection = class {
|
|
|
4345
4349
|
}
|
|
4346
4350
|
};
|
|
4347
4351
|
|
|
4352
|
+
const initial = {
|
|
4353
|
+
fundId: '',
|
|
4354
|
+
memberNumber: '',
|
|
4355
|
+
usi: '',
|
|
4356
|
+
standardChoiceFormSignature: ''
|
|
4357
|
+
};
|
|
4358
|
+
const { state: state$1 } = createStore(initial);
|
|
4359
|
+
|
|
4360
|
+
class PromotedFundJoinIFrameBuilder {
|
|
4361
|
+
constructor() {
|
|
4362
|
+
this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
|
|
4363
|
+
this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
|
|
4364
|
+
this.environmentDiscriminator = () => {
|
|
4365
|
+
return this.hostIsLocalSuperSelection()
|
|
4366
|
+
? 'autodev-partner'
|
|
4367
|
+
: window.location.hostname.toLowerCase().split('.')[0];
|
|
4368
|
+
};
|
|
4369
|
+
this.promotedFundJoinAppUrl = () => {
|
|
4370
|
+
return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
|
|
4371
|
+
};
|
|
4372
|
+
}
|
|
4373
|
+
build(iframe, history) {
|
|
4374
|
+
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
|
|
4375
|
+
return;
|
|
4376
|
+
const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
|
|
4377
|
+
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
4378
|
+
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
4379
|
+
const redirectUrl = `${baseUrl}/promoted-fund-redirect.html`;
|
|
4380
|
+
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 });
|
|
4381
|
+
const handleMessage = (event) => {
|
|
4382
|
+
const { data } = event;
|
|
4383
|
+
if (!data) {
|
|
4384
|
+
return;
|
|
4385
|
+
}
|
|
4386
|
+
if (data.sender === 'promoted-fund-redirect') {
|
|
4387
|
+
window.removeEventListener('message', handleMessage);
|
|
4388
|
+
switch (data.type) {
|
|
4389
|
+
case 'success':
|
|
4390
|
+
if (data.memberNumber) {
|
|
4391
|
+
state$1.memberNumber = data.memberNumber;
|
|
4392
|
+
state$1.usi = data.usi;
|
|
4393
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.PromotedFundStandardChoice);
|
|
4394
|
+
break;
|
|
4395
|
+
}
|
|
4396
|
+
/* falls through */
|
|
4397
|
+
default:
|
|
4398
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
4399
|
+
break;
|
|
4400
|
+
}
|
|
4401
|
+
return;
|
|
4402
|
+
}
|
|
4403
|
+
if (data.sender === 'promoted-fund-join') {
|
|
4404
|
+
switch (data.type) {
|
|
4405
|
+
case 'contentResized':
|
|
4406
|
+
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
4407
|
+
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
4408
|
+
break;
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
};
|
|
4412
|
+
window.addEventListener('message', handleMessage);
|
|
4413
|
+
const iframeDoc = iframe.contentDocument;
|
|
4414
|
+
iframeDoc.open();
|
|
4415
|
+
const form = iframeDoc.createElement('form');
|
|
4416
|
+
form.method = 'POST';
|
|
4417
|
+
form.target = '_self';
|
|
4418
|
+
form.action = this.promotedFundJoinAppUrl();
|
|
4419
|
+
let prop;
|
|
4420
|
+
for (prop in postData) {
|
|
4421
|
+
const value = postData[prop];
|
|
4422
|
+
if (value !== undefined) {
|
|
4423
|
+
const input = document.createElement('input');
|
|
4424
|
+
input.type = 'hidden';
|
|
4425
|
+
input.name = prop;
|
|
4426
|
+
input.value = value;
|
|
4427
|
+
form.append(input);
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
iframeDoc.appendChild(form);
|
|
4431
|
+
iframeDoc.close();
|
|
4432
|
+
form.submit();
|
|
4433
|
+
}
|
|
4434
|
+
getMemberData() {
|
|
4435
|
+
var _a, _b;
|
|
4436
|
+
const superBuyer = superSelectionAppService.superBuyer;
|
|
4437
|
+
return {
|
|
4438
|
+
firstName: superBuyer.userProfile.firstName,
|
|
4439
|
+
middleName: superBuyer.userProfile.middleName,
|
|
4440
|
+
lastName: superBuyer.userProfile.lastName,
|
|
4441
|
+
dateOfBirth: superBuyer.userProfile.dateOfBirth,
|
|
4442
|
+
gender: superBuyer.userProfile.gender,
|
|
4443
|
+
email: superBuyer.userProfile.email,
|
|
4444
|
+
mobilePhone: superBuyer.userProfile.mobilePhone,
|
|
4445
|
+
taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
|
|
4446
|
+
addressLine1: superBuyer.userProfile.address.addressLine1,
|
|
4447
|
+
addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
|
|
4448
|
+
city: superBuyer.userProfile.address.city,
|
|
4449
|
+
state: superBuyer.userProfile.address.state,
|
|
4450
|
+
postCode: superBuyer.userProfile.address.postcode
|
|
4451
|
+
};
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
const PromotedFundJoinIFrameBuilder$1 = new PromotedFundJoinIFrameBuilder();
|
|
4455
|
+
|
|
4456
|
+
const PromotedFundJoinPage = class {
|
|
4457
|
+
constructor(hostRef) {
|
|
4458
|
+
index.registerInstance(this, hostRef);
|
|
4459
|
+
}
|
|
4460
|
+
componentDidLoad() {
|
|
4461
|
+
PromotedFundJoinIFrameBuilder$1.build(this.iframeElement, this.history);
|
|
4462
|
+
}
|
|
4463
|
+
render() {
|
|
4464
|
+
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) })));
|
|
4465
|
+
}
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4468
|
+
class PromotedFundChoiceApi {
|
|
4469
|
+
async submitChoiceAsync(dto) {
|
|
4470
|
+
return buildBackendApiClient()
|
|
4471
|
+
.url('super-choice/promoted-fund')
|
|
4472
|
+
.post(dto)
|
|
4473
|
+
.badRequest(() => {
|
|
4474
|
+
throw new Error('Failed to process Promoted Fund choice request');
|
|
4475
|
+
})
|
|
4476
|
+
.text();
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
const promotedFundChoiceApi = new PromotedFundChoiceApi();
|
|
4480
|
+
|
|
4481
|
+
const PromotedFundStandardChoicePage = class {
|
|
4482
|
+
constructor(hostRef) {
|
|
4483
|
+
index.registerInstance(this, hostRef);
|
|
4484
|
+
}
|
|
4485
|
+
render() {
|
|
4486
|
+
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: {
|
|
4487
|
+
'was-validated': this.formState === 'validated'
|
|
4488
|
+
}, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4489
|
+
state$1.standardChoiceFormSignature =
|
|
4490
|
+
event.detail.standardChoiceFormSignature;
|
|
4491
|
+
} })), 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")))))))))));
|
|
4492
|
+
}
|
|
4493
|
+
async handleSubmitForm() {
|
|
4494
|
+
this.formState = 'validated';
|
|
4495
|
+
if (this.formElement.checkValidity()) {
|
|
4496
|
+
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4497
|
+
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
4498
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
};
|
|
4502
|
+
|
|
4348
4503
|
const QSuperFundUsi = '60905115063001';
|
|
4349
4504
|
const QSuperFundId = 'qsuper';
|
|
4350
4505
|
const QSuperFundName = 'QSuper';
|
|
@@ -4358,6 +4513,10 @@ const SlateFundUsi = '32367272075001';
|
|
|
4358
4513
|
const SlateFundId = 'slate';
|
|
4359
4514
|
const SlateFundName = 'Slate Super';
|
|
4360
4515
|
const SlateAltFundName = 'Modern Digital Fund';
|
|
4516
|
+
const AustralianRetirementTrustFundUsi = 'australian-retirement-trust';
|
|
4517
|
+
const AustralianRetirementTrustFundId = 'australian-retirement-trust';
|
|
4518
|
+
const AustralianRetirementTrustFundName = 'AustralianRetirementTrust';
|
|
4519
|
+
const AustralianRetirementTrustAltFundName = 'TODO';
|
|
4361
4520
|
|
|
4362
4521
|
const qsuperConfirmationCss = "";
|
|
4363
4522
|
|
|
@@ -4442,7 +4601,7 @@ const initialStateQSuper = {
|
|
|
4442
4601
|
},
|
|
4443
4602
|
standardChoiceFormSignature: ''
|
|
4444
4603
|
};
|
|
4445
|
-
const { state: state$
|
|
4604
|
+
const { state: state$2, reset: reset$1 } = createStore(initialStateQSuper);
|
|
4446
4605
|
const resetQSuperStore = reset$1;
|
|
4447
4606
|
|
|
4448
4607
|
function getNextRoute() {
|
|
@@ -4451,64 +4610,64 @@ function getNextRoute() {
|
|
|
4451
4610
|
const route = window.location.pathname.split(baseAppUrl)[1];
|
|
4452
4611
|
const nextRoutes = {
|
|
4453
4612
|
[SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
|
|
4454
|
-
[SuperSelectionAppRoutes.QSuperQuestion1]: state$
|
|
4613
|
+
[SuperSelectionAppRoutes.QSuperQuestion1]: state$2.qSuperInsuranceQuestions.question1
|
|
4455
4614
|
.answered
|
|
4456
|
-
? ((_a = state$
|
|
4615
|
+
? ((_a = state$2.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
|
|
4457
4616
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4458
4617
|
: SuperSelectionAppRoutes.QSuperQuestion2
|
|
4459
4618
|
: SuperSelectionAppRoutes.QSuperQuestion1,
|
|
4460
|
-
[SuperSelectionAppRoutes.QSuperQuestion2]: state$
|
|
4619
|
+
[SuperSelectionAppRoutes.QSuperQuestion2]: state$2.qSuperInsuranceQuestions.question2
|
|
4461
4620
|
.answered
|
|
4462
|
-
? ((_b = state$
|
|
4621
|
+
? ((_b = state$2.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
|
|
4463
4622
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4464
4623
|
: SuperSelectionAppRoutes.QSuperQuestion3
|
|
4465
4624
|
: SuperSelectionAppRoutes.QSuperQuestion2,
|
|
4466
|
-
[SuperSelectionAppRoutes.QSuperQuestion3]: state$
|
|
4625
|
+
[SuperSelectionAppRoutes.QSuperQuestion3]: state$2.qSuperInsuranceQuestions.question3
|
|
4467
4626
|
.answered
|
|
4468
4627
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4469
4628
|
: SuperSelectionAppRoutes.QSuperQuestion3,
|
|
4470
|
-
[SuperSelectionAppRoutes.QSuperQuestion4]: state$
|
|
4629
|
+
[SuperSelectionAppRoutes.QSuperQuestion4]: state$2.qSuperInsuranceQuestions.question4
|
|
4471
4630
|
.answered
|
|
4472
4631
|
? SuperSelectionAppRoutes.QSuperQuestion5
|
|
4473
4632
|
: SuperSelectionAppRoutes.QSuperQuestion4,
|
|
4474
|
-
[SuperSelectionAppRoutes.QSuperQuestion5]: state$
|
|
4633
|
+
[SuperSelectionAppRoutes.QSuperQuestion5]: state$2.qSuperInsuranceQuestions.question5
|
|
4475
4634
|
.answered
|
|
4476
4635
|
? SuperSelectionAppRoutes.QSuperQuestion6
|
|
4477
4636
|
: SuperSelectionAppRoutes.QSuperQuestion5,
|
|
4478
|
-
[SuperSelectionAppRoutes.QSuperQuestion6]: state$
|
|
4637
|
+
[SuperSelectionAppRoutes.QSuperQuestion6]: state$2.qSuperInsuranceQuestions.question6
|
|
4479
4638
|
.answered
|
|
4480
4639
|
? SuperSelectionAppRoutes.QSuperQuestion7
|
|
4481
4640
|
: SuperSelectionAppRoutes.QSuperQuestion6,
|
|
4482
|
-
[SuperSelectionAppRoutes.QSuperQuestion7]: state$
|
|
4641
|
+
[SuperSelectionAppRoutes.QSuperQuestion7]: state$2.qSuperInsuranceQuestions.question7
|
|
4483
4642
|
.answered
|
|
4484
4643
|
? SuperSelectionAppRoutes.QSuperQuestion8
|
|
4485
4644
|
: SuperSelectionAppRoutes.QSuperQuestion7,
|
|
4486
|
-
[SuperSelectionAppRoutes.QSuperQuestion8]: state$
|
|
4645
|
+
[SuperSelectionAppRoutes.QSuperQuestion8]: state$2.qSuperInsuranceQuestions.question8
|
|
4487
4646
|
.answered
|
|
4488
4647
|
? SuperSelectionAppRoutes.QSuperConsent
|
|
4489
4648
|
: SuperSelectionAppRoutes.QSuperQuestion8,
|
|
4490
|
-
[SuperSelectionAppRoutes.QSuperConsent]: state$
|
|
4491
|
-
state$
|
|
4649
|
+
[SuperSelectionAppRoutes.QSuperConsent]: state$2.qSuperQuestionnaire.readDutyOfDisclosure &&
|
|
4650
|
+
state$2.qSuperQuestionnaire.reviewedApplication
|
|
4492
4651
|
? SuperSelectionAppRoutes.QSuperJoin
|
|
4493
4652
|
: SuperSelectionAppRoutes.QSuperConsent,
|
|
4494
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
4653
|
+
[SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox
|
|
4495
4654
|
? SuperSelectionAppRoutes.Success
|
|
4496
4655
|
: SuperSelectionAppRoutes.QSuperJoin
|
|
4497
4656
|
};
|
|
4498
4657
|
// special cases
|
|
4499
4658
|
// if question 3 or 5 are selected as Yes, show questions 6,7,8
|
|
4500
4659
|
// if we are on question 5, and question 3 or 5 have been selected yes, go to question 6
|
|
4501
|
-
const firstFiveQuestionsAnswered = state$
|
|
4502
|
-
state$
|
|
4503
|
-
state$
|
|
4504
|
-
state$
|
|
4505
|
-
state$
|
|
4660
|
+
const firstFiveQuestionsAnswered = state$2.qSuperInsuranceQuestions.question1.answered &&
|
|
4661
|
+
state$2.qSuperInsuranceQuestions.question2.answered &&
|
|
4662
|
+
state$2.qSuperInsuranceQuestions.question3.answered &&
|
|
4663
|
+
state$2.qSuperInsuranceQuestions.question4.answered &&
|
|
4664
|
+
state$2.qSuperInsuranceQuestions.question5.answered;
|
|
4506
4665
|
// if we are on question 5 - check if question 3 or 5 have been answered yes
|
|
4507
4666
|
// if they have then show questions 6,7,8 - otherwise go to the consent page
|
|
4508
4667
|
if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
|
|
4509
4668
|
if (firstFiveQuestionsAnswered &&
|
|
4510
|
-
(((_c = state$
|
|
4511
|
-
((_d = state$
|
|
4669
|
+
(((_c = state$2.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
|
|
4670
|
+
((_d = state$2.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
|
|
4512
4671
|
return SuperSelectionAppRoutes.QSuperQuestion6;
|
|
4513
4672
|
}
|
|
4514
4673
|
return SuperSelectionAppRoutes.QSuperConsent;
|
|
@@ -4516,8 +4675,8 @@ function getNextRoute() {
|
|
|
4516
4675
|
// if in opt in page
|
|
4517
4676
|
if (route === SuperSelectionAppRoutes.QSuperOptIn) {
|
|
4518
4677
|
// if checkbox is ticked and insurance selected - go to question 1
|
|
4519
|
-
if (state$
|
|
4520
|
-
if (state$
|
|
4678
|
+
if (state$2.qSuperOptInPageCheckbox) {
|
|
4679
|
+
if (state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4521
4680
|
return SuperSelectionAppRoutes.QSuperQuestion1;
|
|
4522
4681
|
}
|
|
4523
4682
|
else {
|
|
@@ -4541,18 +4700,18 @@ const QsuperConsent = class {
|
|
|
4541
4700
|
}
|
|
4542
4701
|
async componentDidLoad() {
|
|
4543
4702
|
window.scroll(0, 0);
|
|
4544
|
-
state$
|
|
4703
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4545
4704
|
}
|
|
4546
4705
|
render() {
|
|
4547
4706
|
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
4707
|
}
|
|
4549
4708
|
handleCheckboxToggle() {
|
|
4550
|
-
state$
|
|
4709
|
+
state$2.qSuperQuestionnaire.readDutyOfDisclosure = !state$2.qSuperQuestionnaire
|
|
4551
4710
|
.readDutyOfDisclosure;
|
|
4552
|
-
state$
|
|
4711
|
+
state$2.qSuperQuestionnaire.reviewedApplication = !state$2.qSuperQuestionnaire
|
|
4553
4712
|
.reviewedApplication;
|
|
4554
|
-
state$
|
|
4555
|
-
state$
|
|
4713
|
+
state$2.continueAllowed = !state$2.continueAllowed;
|
|
4714
|
+
state$2.nextRoute = getNextRoute();
|
|
4556
4715
|
}
|
|
4557
4716
|
pdsViewedAsync() {
|
|
4558
4717
|
return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
|
|
@@ -4570,16 +4729,16 @@ function continueEnabledCheck() {
|
|
|
4570
4729
|
const baseAppUrl = superSelectionAppService.appBaseUrl;
|
|
4571
4730
|
const currentRoute = window.location.pathname.split(baseAppUrl)[1];
|
|
4572
4731
|
const continueValidConditions = {
|
|
4573
|
-
[SuperSelectionAppRoutes.QSuperOptIn]: state$
|
|
4574
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
4732
|
+
[SuperSelectionAppRoutes.QSuperOptIn]: state$2.qSuperOptInPageCheckbox,
|
|
4733
|
+
[SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox && state$2.standardChoiceFormSignature
|
|
4575
4734
|
};
|
|
4576
|
-
state$
|
|
4735
|
+
state$2.continueAllowed = continueValidConditions[currentRoute];
|
|
4577
4736
|
}
|
|
4578
4737
|
|
|
4579
4738
|
function resetQSuperState() {
|
|
4580
4739
|
resetQSuperStore();
|
|
4581
|
-
state$
|
|
4582
|
-
state$
|
|
4740
|
+
state$2.qSuperQuestionnaire = Object.assign(Object.assign({}, state$2.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
|
|
4741
|
+
state$2.qSuperInsuranceQuestions = {
|
|
4583
4742
|
question1: {
|
|
4584
4743
|
answered: false
|
|
4585
4744
|
},
|
|
@@ -4648,14 +4807,14 @@ const QsuperInsuranceOptIn = class {
|
|
|
4648
4807
|
});
|
|
4649
4808
|
}
|
|
4650
4809
|
handleInsuranceToggle(input) {
|
|
4651
|
-
state$
|
|
4652
|
-
this.insuranceChosen = state$
|
|
4653
|
-
state$
|
|
4810
|
+
state$2.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
|
|
4811
|
+
this.insuranceChosen = state$2.qSuperQuestionnaire.insuranceChosen;
|
|
4812
|
+
state$2.nextRoute = getNextRoute();
|
|
4654
4813
|
}
|
|
4655
4814
|
handleCheckboxToggle() {
|
|
4656
|
-
state$
|
|
4815
|
+
state$2.qSuperOptInPageCheckbox = !state$2.qSuperOptInPageCheckbox;
|
|
4657
4816
|
continueEnabledCheck();
|
|
4658
|
-
state$
|
|
4817
|
+
state$2.nextRoute = getNextRoute();
|
|
4659
4818
|
}
|
|
4660
4819
|
};
|
|
4661
4820
|
QsuperInsuranceOptIn.style = qsuperCss$1;
|
|
@@ -4681,14 +4840,14 @@ const QSuperConfirmSelection = class {
|
|
|
4681
4840
|
}
|
|
4682
4841
|
render() {
|
|
4683
4842
|
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$
|
|
4843
|
+
state$2.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
|
|
4685
4844
|
continueEnabledCheck();
|
|
4686
4845
|
} })));
|
|
4687
4846
|
}
|
|
4688
4847
|
handleCheckboxToggle() {
|
|
4689
|
-
state$
|
|
4848
|
+
state$2.qSuperJoinPageCheckbox = !state$2.qSuperJoinPageCheckbox;
|
|
4690
4849
|
continueEnabledCheck();
|
|
4691
|
-
state$
|
|
4850
|
+
state$2.nextRoute = getNextRoute();
|
|
4692
4851
|
}
|
|
4693
4852
|
pdsViewedAsync() {
|
|
4694
4853
|
return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
|
|
@@ -4715,34 +4874,34 @@ class QSuperChoiceApi {
|
|
|
4715
4874
|
const qsuperChoiceApi = new QSuperChoiceApi();
|
|
4716
4875
|
|
|
4717
4876
|
async function handleConfirmClickAsync() {
|
|
4718
|
-
if (!state$
|
|
4877
|
+
if (!state$2.continueAllowed)
|
|
4719
4878
|
return;
|
|
4720
|
-
state$
|
|
4721
|
-
if (state$
|
|
4722
|
-
state$
|
|
4723
|
-
state$
|
|
4879
|
+
state$2.continueAllowed = false;
|
|
4880
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
|
|
4881
|
+
state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4882
|
+
state$2.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
|
|
4724
4883
|
return;
|
|
4725
4884
|
}
|
|
4726
4885
|
// if insurance hasn't been chosen - skip the accumulation page
|
|
4727
|
-
if (state$
|
|
4728
|
-
!state$
|
|
4729
|
-
state$
|
|
4886
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
|
|
4887
|
+
!state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4888
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4730
4889
|
return;
|
|
4731
4890
|
}
|
|
4732
|
-
if (state$
|
|
4733
|
-
state$
|
|
4891
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
|
|
4892
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4734
4893
|
return;
|
|
4735
4894
|
}
|
|
4736
|
-
if (state$
|
|
4737
|
-
state$
|
|
4738
|
-
state$
|
|
4895
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
|
|
4896
|
+
state$2.qSuperFormValid = false;
|
|
4897
|
+
state$2.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
|
|
4739
4898
|
return;
|
|
4740
4899
|
}
|
|
4741
|
-
if (state$
|
|
4742
|
-
state$
|
|
4900
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
|
|
4901
|
+
state$2.qSuperQuestionnaire.acceptedDeclaration = true;
|
|
4743
4902
|
const qSuperJoinRequest = {
|
|
4744
|
-
questionnaire: state$
|
|
4745
|
-
standardChoiceFormSignature: state$
|
|
4903
|
+
questionnaire: state$2.qSuperQuestionnaire,
|
|
4904
|
+
standardChoiceFormSignature: state$2.standardChoiceFormSignature
|
|
4746
4905
|
};
|
|
4747
4906
|
await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
|
|
4748
4907
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
@@ -4753,7 +4912,7 @@ const QsuperLayout = class {
|
|
|
4753
4912
|
constructor(hostRef) {
|
|
4754
4913
|
index.registerInstance(this, hostRef);
|
|
4755
4914
|
this.isEligible = false;
|
|
4756
|
-
this.canContinue = () => this.isEligible && state$
|
|
4915
|
+
this.canContinue = () => this.isEligible && state$2.continueAllowed;
|
|
4757
4916
|
this.ensureEligibility = () => {
|
|
4758
4917
|
if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < QSuperMinAge) {
|
|
4759
4918
|
this.showIneligibleNotification(`People under the age of ${QSuperMinAge} are not able to open accounts.`);
|
|
@@ -4774,7 +4933,7 @@ const QsuperLayout = class {
|
|
|
4774
4933
|
}
|
|
4775
4934
|
async componentWillLoad() {
|
|
4776
4935
|
this.ensureEligibility();
|
|
4777
|
-
state$
|
|
4936
|
+
state$2.nextRoute = getNextRoute();
|
|
4778
4937
|
}
|
|
4779
4938
|
render() {
|
|
4780
4939
|
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 +4944,14 @@ const QsuperLayout = class {
|
|
|
4785
4944
|
return;
|
|
4786
4945
|
}
|
|
4787
4946
|
await handleConfirmClickAsync();
|
|
4788
|
-
navigationService.navigateInternally(this.history, state$
|
|
4947
|
+
navigationService.navigateInternally(this.history, state$2.nextRoute);
|
|
4789
4948
|
}
|
|
4790
4949
|
catch (error) {
|
|
4791
4950
|
notificationsService.showErrorNotification({
|
|
4792
4951
|
title: "Couldn't process your request",
|
|
4793
4952
|
description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
|
|
4794
4953
|
});
|
|
4795
|
-
state$
|
|
4954
|
+
state$2.continueAllowed = true;
|
|
4796
4955
|
}
|
|
4797
4956
|
}
|
|
4798
4957
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -4884,8 +5043,8 @@ const QsuperQuestionYesNoButtons = class {
|
|
|
4884
5043
|
const currentQuestion = window.location.pathname
|
|
4885
5044
|
.split(baseAppUrl + '/qsuper/insurance/')[1]
|
|
4886
5045
|
.replace(/\/+$/, '');
|
|
4887
|
-
if (state$
|
|
4888
|
-
state$
|
|
5046
|
+
if (state$2.qSuperQuestionnaire.questions === undefined) {
|
|
5047
|
+
state$2.qSuperQuestionnaire.questions = {
|
|
4889
5048
|
question1: false,
|
|
4890
5049
|
question2: false,
|
|
4891
5050
|
question3: false,
|
|
@@ -4896,10 +5055,10 @@ const QsuperQuestionYesNoButtons = class {
|
|
|
4896
5055
|
question8: false
|
|
4897
5056
|
};
|
|
4898
5057
|
}
|
|
4899
|
-
state$
|
|
4900
|
-
state$
|
|
4901
|
-
state$
|
|
4902
|
-
navigationService.navigateInternally(this.history, state$
|
|
5058
|
+
state$2.qSuperQuestionnaire.questions[currentQuestion] = input;
|
|
5059
|
+
state$2.qSuperInsuranceQuestions[currentQuestion].answered = true;
|
|
5060
|
+
state$2.nextRoute = getNextRoute();
|
|
5061
|
+
navigationService.navigateInternally(this.history, state$2.nextRoute);
|
|
4903
5062
|
}
|
|
4904
5063
|
};
|
|
4905
5064
|
injectHistory(QsuperQuestionYesNoButtons);
|
|
@@ -5199,7 +5358,7 @@ const initialSlateSuper = {
|
|
|
5199
5358
|
standardChoiceFormSignature: ''
|
|
5200
5359
|
}
|
|
5201
5360
|
};
|
|
5202
|
-
const { state: state$
|
|
5361
|
+
const { state: state$3 } = createStore(initialSlateSuper);
|
|
5203
5362
|
|
|
5204
5363
|
class SlateIFrameBuilder {
|
|
5205
5364
|
constructor() {
|
|
@@ -5229,7 +5388,7 @@ class SlateIFrameBuilder {
|
|
|
5229
5388
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
5230
5389
|
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
5231
5390
|
const redirectUrl = `${baseUrl}/slate-redirect.html`;
|
|
5232
|
-
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation() });
|
|
5391
|
+
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
|
|
5233
5392
|
if (this.includeJwt()) {
|
|
5234
5393
|
postData.authToken = superSelectionAppService.jwt;
|
|
5235
5394
|
}
|
|
@@ -5243,7 +5402,7 @@ class SlateIFrameBuilder {
|
|
|
5243
5402
|
switch (data.type) {
|
|
5244
5403
|
case 'success':
|
|
5245
5404
|
if (data.memberNumber) {
|
|
5246
|
-
state$
|
|
5405
|
+
state$3.slateFundForm.memberNumber = data.memberNumber;
|
|
5247
5406
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
|
|
5248
5407
|
break;
|
|
5249
5408
|
}
|
|
@@ -5356,13 +5515,13 @@ const SlateStandardChoicePage = class {
|
|
|
5356
5515
|
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
5516
|
'was-validated': this.formState === 'validated'
|
|
5358
5517
|
}, ref: (el) => (this.formElement = el) }, index.h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5359
|
-
state$
|
|
5518
|
+
state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
|
|
5360
5519
|
} })), 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
5520
|
}
|
|
5362
5521
|
async handleSubmitForm() {
|
|
5363
5522
|
this.formState = 'validated';
|
|
5364
5523
|
if (this.formElement.checkValidity()) {
|
|
5365
|
-
await slateChoiceApi.submitSlateChoiceAsync(state$
|
|
5524
|
+
await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
|
|
5366
5525
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
5367
5526
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
5368
5527
|
}
|
|
@@ -5534,7 +5693,7 @@ const SuperChoicePage = class {
|
|
|
5534
5693
|
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
5694
|
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
5695
|
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("
|
|
5696
|
+
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
5697
|
}
|
|
5539
5698
|
getPromotedFunds() {
|
|
5540
5699
|
return [
|
|
@@ -5567,6 +5726,21 @@ const SuperChoicePage = class {
|
|
|
5567
5726
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
5568
5727
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
5569
5728
|
]
|
|
5729
|
+
},
|
|
5730
|
+
{
|
|
5731
|
+
fundId: AustralianRetirementTrustFundId,
|
|
5732
|
+
usi: AustralianRetirementTrustFundUsi,
|
|
5733
|
+
name: AustralianRetirementTrustFundName,
|
|
5734
|
+
heading: AustralianRetirementTrustAltFundName,
|
|
5735
|
+
logo: 'logo-qsuper-square.png',
|
|
5736
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5737
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
5738
|
+
pdsLink: 'https://google.com',
|
|
5739
|
+
features: [
|
|
5740
|
+
{ order: 1, value: 'Placeholder #1' },
|
|
5741
|
+
{ order: 2, value: 'Placeholder #2' },
|
|
5742
|
+
{ order: 3, value: 'Placeholder #3' }
|
|
5743
|
+
]
|
|
5570
5744
|
}
|
|
5571
5745
|
];
|
|
5572
5746
|
}
|
|
@@ -5578,14 +5752,20 @@ const SuperChoicePage = class {
|
|
|
5578
5752
|
fundNameAlt: SlateAltFundName
|
|
5579
5753
|
});
|
|
5580
5754
|
}
|
|
5581
|
-
else {
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5755
|
+
else if (fund.fundId === QSuperFundId) {
|
|
5756
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5757
|
+
fundUsi: QSuperFundUsi,
|
|
5758
|
+
fundName: QSuperFundName,
|
|
5759
|
+
fundNameAlt: QSuperAltFundName
|
|
5760
|
+
});
|
|
5761
|
+
}
|
|
5762
|
+
else if (fund.fundId === AustralianRetirementTrustFundId) {
|
|
5763
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5764
|
+
fundUsi: AustralianRetirementTrustFundUsi,
|
|
5765
|
+
fundName: AustralianRetirementTrustFundName,
|
|
5766
|
+
fundNameAlt: AustralianRetirementTrustAltFundName
|
|
5767
|
+
});
|
|
5768
|
+
state$1.fundId = fund.fundId;
|
|
5589
5769
|
}
|
|
5590
5770
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
5591
5771
|
}
|
|
@@ -16969,6 +17149,8 @@ exports.sss_loading_page = LoadingPage;
|
|
|
16969
17149
|
exports.sss_my_own_fund = MyOwnFund;
|
|
16970
17150
|
exports.sss_my_own_fund_inputs = MyOwnFundInputs;
|
|
16971
17151
|
exports.sss_notifications_section = NotificationsSection;
|
|
17152
|
+
exports.sss_promoted_fund_join_page = PromotedFundJoinPage;
|
|
17153
|
+
exports.sss_promoted_fund_standard_choice_page = PromotedFundStandardChoicePage;
|
|
16972
17154
|
exports.sss_qsuper_confirm_header = QsuperConfirmHeader;
|
|
16973
17155
|
exports.sss_qsuper_consent = QsuperConsent;
|
|
16974
17156
|
exports.sss_qsuper_insurance_opt_in = QsuperInsuranceOptIn;
|