@flarehr/apollo-super-selection 3.17.52693 → 3.20.53240
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-89119ef3.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-b5b36366.system.entry.js +69 -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} +251 -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 +19 -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} +250 -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-574c7d9b.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-89495496.entry.js +0 -14
|
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
const AppVersion = '3.
|
|
264
|
+
const AppVersion = '3.20.53240';
|
|
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("
|
|
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$
|
|
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$
|
|
4609
|
+
[SuperSelectionAppRoutes.QSuperQuestion1]: state$2.qSuperInsuranceQuestions.question1
|
|
4451
4610
|
.answered
|
|
4452
|
-
? ((_a = state$
|
|
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$
|
|
4615
|
+
[SuperSelectionAppRoutes.QSuperQuestion2]: state$2.qSuperInsuranceQuestions.question2
|
|
4457
4616
|
.answered
|
|
4458
|
-
? ((_b = state$
|
|
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$
|
|
4621
|
+
[SuperSelectionAppRoutes.QSuperQuestion3]: state$2.qSuperInsuranceQuestions.question3
|
|
4463
4622
|
.answered
|
|
4464
4623
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4465
4624
|
: SuperSelectionAppRoutes.QSuperQuestion3,
|
|
4466
|
-
[SuperSelectionAppRoutes.QSuperQuestion4]: state$
|
|
4625
|
+
[SuperSelectionAppRoutes.QSuperQuestion4]: state$2.qSuperInsuranceQuestions.question4
|
|
4467
4626
|
.answered
|
|
4468
4627
|
? SuperSelectionAppRoutes.QSuperQuestion5
|
|
4469
4628
|
: SuperSelectionAppRoutes.QSuperQuestion4,
|
|
4470
|
-
[SuperSelectionAppRoutes.QSuperQuestion5]: state$
|
|
4629
|
+
[SuperSelectionAppRoutes.QSuperQuestion5]: state$2.qSuperInsuranceQuestions.question5
|
|
4471
4630
|
.answered
|
|
4472
4631
|
? SuperSelectionAppRoutes.QSuperQuestion6
|
|
4473
4632
|
: SuperSelectionAppRoutes.QSuperQuestion5,
|
|
4474
|
-
[SuperSelectionAppRoutes.QSuperQuestion6]: state$
|
|
4633
|
+
[SuperSelectionAppRoutes.QSuperQuestion6]: state$2.qSuperInsuranceQuestions.question6
|
|
4475
4634
|
.answered
|
|
4476
4635
|
? SuperSelectionAppRoutes.QSuperQuestion7
|
|
4477
4636
|
: SuperSelectionAppRoutes.QSuperQuestion6,
|
|
4478
|
-
[SuperSelectionAppRoutes.QSuperQuestion7]: state$
|
|
4637
|
+
[SuperSelectionAppRoutes.QSuperQuestion7]: state$2.qSuperInsuranceQuestions.question7
|
|
4479
4638
|
.answered
|
|
4480
4639
|
? SuperSelectionAppRoutes.QSuperQuestion8
|
|
4481
4640
|
: SuperSelectionAppRoutes.QSuperQuestion7,
|
|
4482
|
-
[SuperSelectionAppRoutes.QSuperQuestion8]: state$
|
|
4641
|
+
[SuperSelectionAppRoutes.QSuperQuestion8]: state$2.qSuperInsuranceQuestions.question8
|
|
4483
4642
|
.answered
|
|
4484
4643
|
? SuperSelectionAppRoutes.QSuperConsent
|
|
4485
4644
|
: SuperSelectionAppRoutes.QSuperQuestion8,
|
|
4486
|
-
[SuperSelectionAppRoutes.QSuperConsent]: state$
|
|
4487
|
-
state$
|
|
4645
|
+
[SuperSelectionAppRoutes.QSuperConsent]: state$2.qSuperQuestionnaire.readDutyOfDisclosure &&
|
|
4646
|
+
state$2.qSuperQuestionnaire.reviewedApplication
|
|
4488
4647
|
? SuperSelectionAppRoutes.QSuperJoin
|
|
4489
4648
|
: SuperSelectionAppRoutes.QSuperConsent,
|
|
4490
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
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$
|
|
4498
|
-
state$
|
|
4499
|
-
state$
|
|
4500
|
-
state$
|
|
4501
|
-
state$
|
|
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$
|
|
4507
|
-
((_d = state$
|
|
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$
|
|
4516
|
-
if (state$
|
|
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$
|
|
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$
|
|
4705
|
+
state$2.qSuperQuestionnaire.readDutyOfDisclosure = !state$2.qSuperQuestionnaire
|
|
4547
4706
|
.readDutyOfDisclosure;
|
|
4548
|
-
state$
|
|
4707
|
+
state$2.qSuperQuestionnaire.reviewedApplication = !state$2.qSuperQuestionnaire
|
|
4549
4708
|
.reviewedApplication;
|
|
4550
|
-
state$
|
|
4551
|
-
state$
|
|
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$
|
|
4570
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
4728
|
+
[SuperSelectionAppRoutes.QSuperOptIn]: state$2.qSuperOptInPageCheckbox,
|
|
4729
|
+
[SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox && state$2.standardChoiceFormSignature
|
|
4571
4730
|
};
|
|
4572
|
-
state$
|
|
4731
|
+
state$2.continueAllowed = continueValidConditions[currentRoute];
|
|
4573
4732
|
}
|
|
4574
4733
|
|
|
4575
4734
|
function resetQSuperState() {
|
|
4576
4735
|
resetQSuperStore();
|
|
4577
|
-
state$
|
|
4578
|
-
state$
|
|
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$
|
|
4648
|
-
this.insuranceChosen = state$
|
|
4649
|
-
state$
|
|
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$
|
|
4811
|
+
state$2.qSuperOptInPageCheckbox = !state$2.qSuperOptInPageCheckbox;
|
|
4653
4812
|
continueEnabledCheck();
|
|
4654
|
-
state$
|
|
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$
|
|
4839
|
+
state$2.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
|
|
4681
4840
|
continueEnabledCheck();
|
|
4682
4841
|
} })));
|
|
4683
4842
|
}
|
|
4684
4843
|
handleCheckboxToggle() {
|
|
4685
|
-
state$
|
|
4844
|
+
state$2.qSuperJoinPageCheckbox = !state$2.qSuperJoinPageCheckbox;
|
|
4686
4845
|
continueEnabledCheck();
|
|
4687
|
-
state$
|
|
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$
|
|
4873
|
+
if (!state$2.continueAllowed)
|
|
4715
4874
|
return;
|
|
4716
|
-
state$
|
|
4717
|
-
if (state$
|
|
4718
|
-
state$
|
|
4719
|
-
state$
|
|
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$
|
|
4724
|
-
!state$
|
|
4725
|
-
state$
|
|
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$
|
|
4729
|
-
state$
|
|
4887
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
|
|
4888
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4730
4889
|
return;
|
|
4731
4890
|
}
|
|
4732
|
-
if (state$
|
|
4733
|
-
state$
|
|
4734
|
-
state$
|
|
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$
|
|
4738
|
-
state$
|
|
4896
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
|
|
4897
|
+
state$2.qSuperQuestionnaire.acceptedDeclaration = true;
|
|
4739
4898
|
const qSuperJoinRequest = {
|
|
4740
|
-
questionnaire: state$
|
|
4741
|
-
standardChoiceFormSignature: state$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
4884
|
-
state$
|
|
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$
|
|
4896
|
-
state$
|
|
4897
|
-
state$
|
|
4898
|
-
navigationService.navigateInternally(this.history, state$
|
|
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,7 +5354,7 @@ const initialSlateSuper = {
|
|
|
5195
5354
|
standardChoiceFormSignature: ''
|
|
5196
5355
|
}
|
|
5197
5356
|
};
|
|
5198
|
-
const { state: state$
|
|
5357
|
+
const { state: state$3 } = createStore(initialSlateSuper);
|
|
5199
5358
|
|
|
5200
5359
|
class SlateIFrameBuilder {
|
|
5201
5360
|
constructor() {
|
|
@@ -5225,7 +5384,7 @@ class SlateIFrameBuilder {
|
|
|
5225
5384
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
5226
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
|
}
|
|
@@ -5239,7 +5398,7 @@ class SlateIFrameBuilder {
|
|
|
5239
5398
|
switch (data.type) {
|
|
5240
5399
|
case 'success':
|
|
5241
5400
|
if (data.memberNumber) {
|
|
5242
|
-
state$
|
|
5401
|
+
state$3.slateFundForm.memberNumber = data.memberNumber;
|
|
5243
5402
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
|
|
5244
5403
|
break;
|
|
5245
5404
|
}
|
|
@@ -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$
|
|
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$
|
|
5520
|
+
await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
|
|
5362
5521
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
5363
5522
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
5364
5523
|
}
|
|
@@ -5530,7 +5689,7 @@ const SuperChoicePage = class {
|
|
|
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
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.`;
|
|
5532
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.`;
|
|
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("
|
|
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 [
|
|
@@ -5574,14 +5733,20 @@ const SuperChoicePage = class {
|
|
|
5574
5733
|
fundNameAlt: SlateAltFundName
|
|
5575
5734
|
});
|
|
5576
5735
|
}
|
|
5577
|
-
else {
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5736
|
+
else if (fund.fundId === QSuperFundId) {
|
|
5737
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5738
|
+
fundUsi: QSuperFundUsi,
|
|
5739
|
+
fundName: QSuperFundName,
|
|
5740
|
+
fundNameAlt: QSuperAltFundName
|
|
5741
|
+
});
|
|
5742
|
+
}
|
|
5743
|
+
else if (fund.fundId === AustralianRetirementTrustFundId) {
|
|
5744
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5745
|
+
fundUsi: AustralianRetirementTrustFundUsi,
|
|
5746
|
+
fundName: AustralianRetirementTrustFundName,
|
|
5747
|
+
fundNameAlt: AustralianRetirementTrustAltFundName
|
|
5748
|
+
});
|
|
5749
|
+
state$1.fundId = fund.fundId;
|
|
5585
5750
|
}
|
|
5586
5751
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
5587
5752
|
}
|
|
@@ -16953,4 +17118,4 @@ const SuperSelectionAppHost = class {
|
|
|
16953
17118
|
};
|
|
16954
17119
|
SuperSelectionAppHost.style = superSelectionAppHostCss;
|
|
16955
17120
|
|
|
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 };
|
|
17121
|
+
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 };
|