@flarehr/apollo-super-selection 3.18.52782 → 3.22.53760
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-54a2d842.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-a493ed28.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} +281 -85
- 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/services/super-selection-app.service.js +7 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +42 -14
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{fl-button_44.entry.js → fl-button_46.entry.js} +280 -86
- 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/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +1 -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
|
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
const AppVersion = '3.
|
|
264
|
+
const AppVersion = '3.22.53760';
|
|
265
265
|
|
|
266
266
|
// -------------------------------------------------------------------------------------
|
|
267
267
|
// guards
|
|
@@ -3771,6 +3771,7 @@ const initialState = {
|
|
|
3771
3771
|
profileId: Option.none,
|
|
3772
3772
|
jwt: Option.none,
|
|
3773
3773
|
superBuyer: Option.none,
|
|
3774
|
+
promotedFunds: Option.none,
|
|
3774
3775
|
accountConfiguration: Option.none,
|
|
3775
3776
|
hasSuccessPageBeenAcknowledged: false,
|
|
3776
3777
|
hasSuperSelectionBeenSubmitted: false
|
|
@@ -3809,6 +3810,12 @@ class SuperSelectionAppService {
|
|
|
3809
3810
|
}
|
|
3810
3811
|
return this._state.appBaseUrl.value;
|
|
3811
3812
|
}
|
|
3813
|
+
get promotedFunds() {
|
|
3814
|
+
if (Option.isNone(this._state.promotedFunds)) {
|
|
3815
|
+
throw Error('Promoted Funds is not set');
|
|
3816
|
+
}
|
|
3817
|
+
return this._state.promotedFunds.value;
|
|
3818
|
+
}
|
|
3812
3819
|
get profileId() {
|
|
3813
3820
|
if (Option.isNone(this._state.profileId)) {
|
|
3814
3821
|
throw Error('Failed to get Profile ID from JWT');
|
|
@@ -3843,6 +3850,7 @@ class SuperSelectionAppService {
|
|
|
3843
3850
|
const appStateResponse = await superSelectionApi.getAppStateAsync();
|
|
3844
3851
|
this._state.accountConfiguration = Option.fromNullable(appStateResponse.accountConfiguration);
|
|
3845
3852
|
this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
|
|
3853
|
+
this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
|
|
3846
3854
|
}
|
|
3847
3855
|
}
|
|
3848
3856
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
@@ -3884,6 +3892,8 @@ var SuperSelectionAppRoutes;
|
|
|
3884
3892
|
SuperSelectionAppRoutes["QSuperQuestion8"] = "/qsuper/insurance/question8/";
|
|
3885
3893
|
SuperSelectionAppRoutes["QSuperConsent"] = "/qsuper/consent/";
|
|
3886
3894
|
SuperSelectionAppRoutes["QSuperJoin"] = "/qsuper/join/";
|
|
3895
|
+
SuperSelectionAppRoutes["PromotedFundJoin"] = "/promoted-fund/join";
|
|
3896
|
+
SuperSelectionAppRoutes["PromotedFundStandardChoice"] = "/promoted-fund/standard-choice/";
|
|
3887
3897
|
SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
|
|
3888
3898
|
SuperSelectionAppRoutes["SelfManagedFund"] = "/super-choice/smsf/";
|
|
3889
3899
|
SuperSelectionAppRoutes["DefaultFund"] = "/super-choice/default/";
|
|
@@ -3894,6 +3904,8 @@ const superSelectionAppStencilRoutes = [
|
|
|
3894
3904
|
h("stencil-route", { url: SuperSelectionAppRoutes.SlateJoin, component: "sss-slate-join-page" }),
|
|
3895
3905
|
h("stencil-route", { url: SuperSelectionAppRoutes.SlateStandardChoice, component: "sss-slate-standard-choice-page" }),
|
|
3896
3906
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperOptIn, component: "sss-qsuper-insurance-opt-in" }),
|
|
3907
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundJoin, component: "sss-promoted-fund-join-page" }),
|
|
3908
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.PromotedFundStandardChoice, component: "sss-promoted-fund-standard-choice-page" }),
|
|
3897
3909
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion1, component: "sss-qsuper-question-1" }),
|
|
3898
3910
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion2, component: "sss-qsuper-question-2" }),
|
|
3899
3911
|
h("stencil-route", { url: SuperSelectionAppRoutes.QSuperQuestion3, component: "sss-qsuper-question-3" }),
|
|
@@ -4225,7 +4237,7 @@ const FooterSection = class {
|
|
|
4225
4237
|
registerInstance(this, hostRef);
|
|
4226
4238
|
}
|
|
4227
4239
|
render() {
|
|
4228
|
-
return (h("div", { class: "container mb-sm-0" }, h("div", { class: "row justify-content-center mt-5 mb-3" }, h("
|
|
4240
|
+
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
4241
|
}
|
|
4230
4242
|
appVersionBadge() {
|
|
4231
4243
|
return (h("small", { style: { opacity: '0.5' }, class: "text-muted" }, "Powered by Flare, v", AppVersion));
|
|
@@ -4341,6 +4353,157 @@ const NotificationsSection = class {
|
|
|
4341
4353
|
}
|
|
4342
4354
|
};
|
|
4343
4355
|
|
|
4356
|
+
const initial = {
|
|
4357
|
+
fundId: '',
|
|
4358
|
+
memberNumber: '',
|
|
4359
|
+
usi: '',
|
|
4360
|
+
standardChoiceFormSignature: ''
|
|
4361
|
+
};
|
|
4362
|
+
const { state: state$1 } = createStore(initial);
|
|
4363
|
+
|
|
4364
|
+
class PromotedFundJoinIFrameBuilder {
|
|
4365
|
+
constructor() {
|
|
4366
|
+
this.hostIsLocalSuperSelection = () => window.location.origin == 'http://localhost:7100';
|
|
4367
|
+
this.hostIsDeployed = () => window.location.origin.endsWith('partner.flarehr.com');
|
|
4368
|
+
this.environmentDiscriminator = () => {
|
|
4369
|
+
return this.hostIsLocalSuperSelection()
|
|
4370
|
+
? 'autodev-partner'
|
|
4371
|
+
: window.location.hostname.toLowerCase().split('.')[0];
|
|
4372
|
+
};
|
|
4373
|
+
this.promotedFundJoinAppUrl = () => {
|
|
4374
|
+
return `https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`;
|
|
4375
|
+
};
|
|
4376
|
+
}
|
|
4377
|
+
build(iframe, history) {
|
|
4378
|
+
if (!(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument))
|
|
4379
|
+
return;
|
|
4380
|
+
const baseUrl = this.hostIsLocalSuperSelection() || this.hostIsDeployed()
|
|
4381
|
+
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
4382
|
+
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
4383
|
+
const redirectUrl = `${baseUrl}/promoted-fund-redirect.html`;
|
|
4384
|
+
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 });
|
|
4385
|
+
const handleMessage = (event) => {
|
|
4386
|
+
const { data } = event;
|
|
4387
|
+
if (!data) {
|
|
4388
|
+
return;
|
|
4389
|
+
}
|
|
4390
|
+
if (data.sender === 'promoted-fund-redirect') {
|
|
4391
|
+
window.removeEventListener('message', handleMessage);
|
|
4392
|
+
switch (data.type) {
|
|
4393
|
+
case 'success':
|
|
4394
|
+
if (data.memberNumber) {
|
|
4395
|
+
state$1.memberNumber = data.memberNumber;
|
|
4396
|
+
state$1.usi = data.usi;
|
|
4397
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.PromotedFundStandardChoice);
|
|
4398
|
+
break;
|
|
4399
|
+
}
|
|
4400
|
+
/* falls through */
|
|
4401
|
+
default:
|
|
4402
|
+
navigationService.navigateInternally(history, SuperSelectionAppRoutes.ChoicePage);
|
|
4403
|
+
break;
|
|
4404
|
+
}
|
|
4405
|
+
return;
|
|
4406
|
+
}
|
|
4407
|
+
if (data.sender === 'promoted-fund-join') {
|
|
4408
|
+
switch (data.type) {
|
|
4409
|
+
case 'contentResized':
|
|
4410
|
+
iframe.height = data.height > 0 ? data.height : iframe.height;
|
|
4411
|
+
iframe.width = data.width > 0 ? data.width : iframe.width;
|
|
4412
|
+
break;
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
};
|
|
4416
|
+
window.addEventListener('message', handleMessage);
|
|
4417
|
+
const iframeDoc = iframe.contentDocument;
|
|
4418
|
+
iframeDoc.open();
|
|
4419
|
+
const form = iframeDoc.createElement('form');
|
|
4420
|
+
form.method = 'POST';
|
|
4421
|
+
form.target = '_self';
|
|
4422
|
+
form.action = this.promotedFundJoinAppUrl();
|
|
4423
|
+
let prop;
|
|
4424
|
+
for (prop in postData) {
|
|
4425
|
+
const value = postData[prop];
|
|
4426
|
+
if (value !== undefined) {
|
|
4427
|
+
const input = document.createElement('input');
|
|
4428
|
+
input.type = 'hidden';
|
|
4429
|
+
input.name = prop;
|
|
4430
|
+
input.value = value;
|
|
4431
|
+
form.append(input);
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4434
|
+
iframeDoc.appendChild(form);
|
|
4435
|
+
iframeDoc.close();
|
|
4436
|
+
form.submit();
|
|
4437
|
+
}
|
|
4438
|
+
getMemberData() {
|
|
4439
|
+
var _a, _b;
|
|
4440
|
+
const superBuyer = superSelectionAppService.superBuyer;
|
|
4441
|
+
return {
|
|
4442
|
+
firstName: superBuyer.userProfile.firstName,
|
|
4443
|
+
middleName: superBuyer.userProfile.middleName,
|
|
4444
|
+
lastName: superBuyer.userProfile.lastName,
|
|
4445
|
+
dateOfBirth: superBuyer.userProfile.dateOfBirth,
|
|
4446
|
+
gender: superBuyer.userProfile.gender,
|
|
4447
|
+
email: superBuyer.userProfile.email,
|
|
4448
|
+
mobilePhone: superBuyer.userProfile.mobilePhone,
|
|
4449
|
+
taxFileNumber: (_a = superBuyer.tfn) !== null && _a !== void 0 ? _a : '',
|
|
4450
|
+
addressLine1: superBuyer.userProfile.address.addressLine1,
|
|
4451
|
+
addressLine2: (_b = superBuyer.userProfile.address.addressLine2) !== null && _b !== void 0 ? _b : '',
|
|
4452
|
+
city: superBuyer.userProfile.address.city,
|
|
4453
|
+
state: superBuyer.userProfile.address.state,
|
|
4454
|
+
postCode: superBuyer.userProfile.address.postcode
|
|
4455
|
+
};
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
const PromotedFundJoinIFrameBuilder$1 = new PromotedFundJoinIFrameBuilder();
|
|
4459
|
+
|
|
4460
|
+
const PromotedFundJoinPage = class {
|
|
4461
|
+
constructor(hostRef) {
|
|
4462
|
+
registerInstance(this, hostRef);
|
|
4463
|
+
}
|
|
4464
|
+
componentDidLoad() {
|
|
4465
|
+
PromotedFundJoinIFrameBuilder$1.build(this.iframeElement, this.history);
|
|
4466
|
+
}
|
|
4467
|
+
render() {
|
|
4468
|
+
return (h(Host, { class: "d-flex flex-fill" }, h("iframe", { width: "100%", height: window.innerHeight, style: { border: 'none' }, ref: (el) => (this.iframeElement = el) })));
|
|
4469
|
+
}
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
class PromotedFundChoiceApi {
|
|
4473
|
+
async submitChoiceAsync(dto) {
|
|
4474
|
+
return buildBackendApiClient()
|
|
4475
|
+
.url('super-choice/promoted-fund')
|
|
4476
|
+
.post(dto)
|
|
4477
|
+
.badRequest(() => {
|
|
4478
|
+
throw new Error('Failed to process Promoted Fund choice request');
|
|
4479
|
+
})
|
|
4480
|
+
.text();
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
const promotedFundChoiceApi = new PromotedFundChoiceApi();
|
|
4484
|
+
|
|
4485
|
+
const PromotedFundStandardChoicePage = class {
|
|
4486
|
+
constructor(hostRef) {
|
|
4487
|
+
registerInstance(this, hostRef);
|
|
4488
|
+
}
|
|
4489
|
+
render() {
|
|
4490
|
+
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: {
|
|
4491
|
+
'was-validated': this.formState === 'validated'
|
|
4492
|
+
}, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
4493
|
+
state$1.standardChoiceFormSignature =
|
|
4494
|
+
event.detail.standardChoiceFormSignature;
|
|
4495
|
+
} })), 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")))))))))));
|
|
4496
|
+
}
|
|
4497
|
+
async handleSubmitForm() {
|
|
4498
|
+
this.formState = 'validated';
|
|
4499
|
+
if (this.formElement.checkValidity()) {
|
|
4500
|
+
promotedFundChoiceApi.submitChoiceAsync(Object.assign({}, state$1));
|
|
4501
|
+
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
4502
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4344
4507
|
const QSuperFundUsi = '60905115063001';
|
|
4345
4508
|
const QSuperFundId = 'qsuper';
|
|
4346
4509
|
const QSuperFundName = 'QSuper';
|
|
@@ -4354,6 +4517,10 @@ const SlateFundUsi = '32367272075001';
|
|
|
4354
4517
|
const SlateFundId = 'slate';
|
|
4355
4518
|
const SlateFundName = 'Slate Super';
|
|
4356
4519
|
const SlateAltFundName = 'Modern Digital Fund';
|
|
4520
|
+
const AustralianRetirementTrustFundUsi = 'australian-retirement-trust';
|
|
4521
|
+
const AustralianRetirementTrustFundId = 'australian-retirement-trust';
|
|
4522
|
+
const AustralianRetirementTrustFundName = 'AustralianRetirementTrust';
|
|
4523
|
+
const AustralianRetirementTrustAltFundName = 'TODO';
|
|
4357
4524
|
|
|
4358
4525
|
const qsuperConfirmationCss = "";
|
|
4359
4526
|
|
|
@@ -4438,7 +4605,7 @@ const initialStateQSuper = {
|
|
|
4438
4605
|
},
|
|
4439
4606
|
standardChoiceFormSignature: ''
|
|
4440
4607
|
};
|
|
4441
|
-
const { state: state$
|
|
4608
|
+
const { state: state$2, reset: reset$1 } = createStore(initialStateQSuper);
|
|
4442
4609
|
const resetQSuperStore = reset$1;
|
|
4443
4610
|
|
|
4444
4611
|
function getNextRoute() {
|
|
@@ -4447,64 +4614,64 @@ function getNextRoute() {
|
|
|
4447
4614
|
const route = window.location.pathname.split(baseAppUrl)[1];
|
|
4448
4615
|
const nextRoutes = {
|
|
4449
4616
|
[SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
|
|
4450
|
-
[SuperSelectionAppRoutes.QSuperQuestion1]: state$
|
|
4617
|
+
[SuperSelectionAppRoutes.QSuperQuestion1]: state$2.qSuperInsuranceQuestions.question1
|
|
4451
4618
|
.answered
|
|
4452
|
-
? ((_a = state$
|
|
4619
|
+
? ((_a = state$2.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
|
|
4453
4620
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4454
4621
|
: SuperSelectionAppRoutes.QSuperQuestion2
|
|
4455
4622
|
: SuperSelectionAppRoutes.QSuperQuestion1,
|
|
4456
|
-
[SuperSelectionAppRoutes.QSuperQuestion2]: state$
|
|
4623
|
+
[SuperSelectionAppRoutes.QSuperQuestion2]: state$2.qSuperInsuranceQuestions.question2
|
|
4457
4624
|
.answered
|
|
4458
|
-
? ((_b = state$
|
|
4625
|
+
? ((_b = state$2.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
|
|
4459
4626
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4460
4627
|
: SuperSelectionAppRoutes.QSuperQuestion3
|
|
4461
4628
|
: SuperSelectionAppRoutes.QSuperQuestion2,
|
|
4462
|
-
[SuperSelectionAppRoutes.QSuperQuestion3]: state$
|
|
4629
|
+
[SuperSelectionAppRoutes.QSuperQuestion3]: state$2.qSuperInsuranceQuestions.question3
|
|
4463
4630
|
.answered
|
|
4464
4631
|
? SuperSelectionAppRoutes.QSuperQuestion4
|
|
4465
4632
|
: SuperSelectionAppRoutes.QSuperQuestion3,
|
|
4466
|
-
[SuperSelectionAppRoutes.QSuperQuestion4]: state$
|
|
4633
|
+
[SuperSelectionAppRoutes.QSuperQuestion4]: state$2.qSuperInsuranceQuestions.question4
|
|
4467
4634
|
.answered
|
|
4468
4635
|
? SuperSelectionAppRoutes.QSuperQuestion5
|
|
4469
4636
|
: SuperSelectionAppRoutes.QSuperQuestion4,
|
|
4470
|
-
[SuperSelectionAppRoutes.QSuperQuestion5]: state$
|
|
4637
|
+
[SuperSelectionAppRoutes.QSuperQuestion5]: state$2.qSuperInsuranceQuestions.question5
|
|
4471
4638
|
.answered
|
|
4472
4639
|
? SuperSelectionAppRoutes.QSuperQuestion6
|
|
4473
4640
|
: SuperSelectionAppRoutes.QSuperQuestion5,
|
|
4474
|
-
[SuperSelectionAppRoutes.QSuperQuestion6]: state$
|
|
4641
|
+
[SuperSelectionAppRoutes.QSuperQuestion6]: state$2.qSuperInsuranceQuestions.question6
|
|
4475
4642
|
.answered
|
|
4476
4643
|
? SuperSelectionAppRoutes.QSuperQuestion7
|
|
4477
4644
|
: SuperSelectionAppRoutes.QSuperQuestion6,
|
|
4478
|
-
[SuperSelectionAppRoutes.QSuperQuestion7]: state$
|
|
4645
|
+
[SuperSelectionAppRoutes.QSuperQuestion7]: state$2.qSuperInsuranceQuestions.question7
|
|
4479
4646
|
.answered
|
|
4480
4647
|
? SuperSelectionAppRoutes.QSuperQuestion8
|
|
4481
4648
|
: SuperSelectionAppRoutes.QSuperQuestion7,
|
|
4482
|
-
[SuperSelectionAppRoutes.QSuperQuestion8]: state$
|
|
4649
|
+
[SuperSelectionAppRoutes.QSuperQuestion8]: state$2.qSuperInsuranceQuestions.question8
|
|
4483
4650
|
.answered
|
|
4484
4651
|
? SuperSelectionAppRoutes.QSuperConsent
|
|
4485
4652
|
: SuperSelectionAppRoutes.QSuperQuestion8,
|
|
4486
|
-
[SuperSelectionAppRoutes.QSuperConsent]: state$
|
|
4487
|
-
state$
|
|
4653
|
+
[SuperSelectionAppRoutes.QSuperConsent]: state$2.qSuperQuestionnaire.readDutyOfDisclosure &&
|
|
4654
|
+
state$2.qSuperQuestionnaire.reviewedApplication
|
|
4488
4655
|
? SuperSelectionAppRoutes.QSuperJoin
|
|
4489
4656
|
: SuperSelectionAppRoutes.QSuperConsent,
|
|
4490
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
4657
|
+
[SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox
|
|
4491
4658
|
? SuperSelectionAppRoutes.Success
|
|
4492
4659
|
: SuperSelectionAppRoutes.QSuperJoin
|
|
4493
4660
|
};
|
|
4494
4661
|
// special cases
|
|
4495
4662
|
// if question 3 or 5 are selected as Yes, show questions 6,7,8
|
|
4496
4663
|
// 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$
|
|
4664
|
+
const firstFiveQuestionsAnswered = state$2.qSuperInsuranceQuestions.question1.answered &&
|
|
4665
|
+
state$2.qSuperInsuranceQuestions.question2.answered &&
|
|
4666
|
+
state$2.qSuperInsuranceQuestions.question3.answered &&
|
|
4667
|
+
state$2.qSuperInsuranceQuestions.question4.answered &&
|
|
4668
|
+
state$2.qSuperInsuranceQuestions.question5.answered;
|
|
4502
4669
|
// if we are on question 5 - check if question 3 or 5 have been answered yes
|
|
4503
4670
|
// if they have then show questions 6,7,8 - otherwise go to the consent page
|
|
4504
4671
|
if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
|
|
4505
4672
|
if (firstFiveQuestionsAnswered &&
|
|
4506
|
-
(((_c = state$
|
|
4507
|
-
((_d = state$
|
|
4673
|
+
(((_c = state$2.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
|
|
4674
|
+
((_d = state$2.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
|
|
4508
4675
|
return SuperSelectionAppRoutes.QSuperQuestion6;
|
|
4509
4676
|
}
|
|
4510
4677
|
return SuperSelectionAppRoutes.QSuperConsent;
|
|
@@ -4512,8 +4679,8 @@ function getNextRoute() {
|
|
|
4512
4679
|
// if in opt in page
|
|
4513
4680
|
if (route === SuperSelectionAppRoutes.QSuperOptIn) {
|
|
4514
4681
|
// if checkbox is ticked and insurance selected - go to question 1
|
|
4515
|
-
if (state$
|
|
4516
|
-
if (state$
|
|
4682
|
+
if (state$2.qSuperOptInPageCheckbox) {
|
|
4683
|
+
if (state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4517
4684
|
return SuperSelectionAppRoutes.QSuperQuestion1;
|
|
4518
4685
|
}
|
|
4519
4686
|
else {
|
|
@@ -4537,18 +4704,18 @@ const QsuperConsent = class {
|
|
|
4537
4704
|
}
|
|
4538
4705
|
async componentDidLoad() {
|
|
4539
4706
|
window.scroll(0, 0);
|
|
4540
|
-
state$
|
|
4707
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4541
4708
|
}
|
|
4542
4709
|
render() {
|
|
4543
4710
|
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
4711
|
}
|
|
4545
4712
|
handleCheckboxToggle() {
|
|
4546
|
-
state$
|
|
4713
|
+
state$2.qSuperQuestionnaire.readDutyOfDisclosure = !state$2.qSuperQuestionnaire
|
|
4547
4714
|
.readDutyOfDisclosure;
|
|
4548
|
-
state$
|
|
4715
|
+
state$2.qSuperQuestionnaire.reviewedApplication = !state$2.qSuperQuestionnaire
|
|
4549
4716
|
.reviewedApplication;
|
|
4550
|
-
state$
|
|
4551
|
-
state$
|
|
4717
|
+
state$2.continueAllowed = !state$2.continueAllowed;
|
|
4718
|
+
state$2.nextRoute = getNextRoute();
|
|
4552
4719
|
}
|
|
4553
4720
|
pdsViewedAsync() {
|
|
4554
4721
|
return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
|
|
@@ -4566,16 +4733,16 @@ function continueEnabledCheck() {
|
|
|
4566
4733
|
const baseAppUrl = superSelectionAppService.appBaseUrl;
|
|
4567
4734
|
const currentRoute = window.location.pathname.split(baseAppUrl)[1];
|
|
4568
4735
|
const continueValidConditions = {
|
|
4569
|
-
[SuperSelectionAppRoutes.QSuperOptIn]: state$
|
|
4570
|
-
[SuperSelectionAppRoutes.QSuperJoin]: state$
|
|
4736
|
+
[SuperSelectionAppRoutes.QSuperOptIn]: state$2.qSuperOptInPageCheckbox,
|
|
4737
|
+
[SuperSelectionAppRoutes.QSuperJoin]: state$2.qSuperJoinPageCheckbox && state$2.standardChoiceFormSignature
|
|
4571
4738
|
};
|
|
4572
|
-
state$
|
|
4739
|
+
state$2.continueAllowed = continueValidConditions[currentRoute];
|
|
4573
4740
|
}
|
|
4574
4741
|
|
|
4575
4742
|
function resetQSuperState() {
|
|
4576
4743
|
resetQSuperStore();
|
|
4577
|
-
state$
|
|
4578
|
-
state$
|
|
4744
|
+
state$2.qSuperQuestionnaire = Object.assign(Object.assign({}, state$2.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
|
|
4745
|
+
state$2.qSuperInsuranceQuestions = {
|
|
4579
4746
|
question1: {
|
|
4580
4747
|
answered: false
|
|
4581
4748
|
},
|
|
@@ -4644,14 +4811,14 @@ const QsuperInsuranceOptIn = class {
|
|
|
4644
4811
|
});
|
|
4645
4812
|
}
|
|
4646
4813
|
handleInsuranceToggle(input) {
|
|
4647
|
-
state$
|
|
4648
|
-
this.insuranceChosen = state$
|
|
4649
|
-
state$
|
|
4814
|
+
state$2.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
|
|
4815
|
+
this.insuranceChosen = state$2.qSuperQuestionnaire.insuranceChosen;
|
|
4816
|
+
state$2.nextRoute = getNextRoute();
|
|
4650
4817
|
}
|
|
4651
4818
|
handleCheckboxToggle() {
|
|
4652
|
-
state$
|
|
4819
|
+
state$2.qSuperOptInPageCheckbox = !state$2.qSuperOptInPageCheckbox;
|
|
4653
4820
|
continueEnabledCheck();
|
|
4654
|
-
state$
|
|
4821
|
+
state$2.nextRoute = getNextRoute();
|
|
4655
4822
|
}
|
|
4656
4823
|
};
|
|
4657
4824
|
QsuperInsuranceOptIn.style = qsuperCss$1;
|
|
@@ -4677,14 +4844,14 @@ const QSuperConfirmSelection = class {
|
|
|
4677
4844
|
}
|
|
4678
4845
|
render() {
|
|
4679
4846
|
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$
|
|
4847
|
+
state$2.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
|
|
4681
4848
|
continueEnabledCheck();
|
|
4682
4849
|
} })));
|
|
4683
4850
|
}
|
|
4684
4851
|
handleCheckboxToggle() {
|
|
4685
|
-
state$
|
|
4852
|
+
state$2.qSuperJoinPageCheckbox = !state$2.qSuperJoinPageCheckbox;
|
|
4686
4853
|
continueEnabledCheck();
|
|
4687
|
-
state$
|
|
4854
|
+
state$2.nextRoute = getNextRoute();
|
|
4688
4855
|
}
|
|
4689
4856
|
pdsViewedAsync() {
|
|
4690
4857
|
return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
|
|
@@ -4711,34 +4878,34 @@ class QSuperChoiceApi {
|
|
|
4711
4878
|
const qsuperChoiceApi = new QSuperChoiceApi();
|
|
4712
4879
|
|
|
4713
4880
|
async function handleConfirmClickAsync() {
|
|
4714
|
-
if (!state$
|
|
4881
|
+
if (!state$2.continueAllowed)
|
|
4715
4882
|
return;
|
|
4716
|
-
state$
|
|
4717
|
-
if (state$
|
|
4718
|
-
state$
|
|
4719
|
-
state$
|
|
4883
|
+
state$2.continueAllowed = false;
|
|
4884
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
|
|
4885
|
+
state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4886
|
+
state$2.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
|
|
4720
4887
|
return;
|
|
4721
4888
|
}
|
|
4722
4889
|
// if insurance hasn't been chosen - skip the accumulation page
|
|
4723
|
-
if (state$
|
|
4724
|
-
!state$
|
|
4725
|
-
state$
|
|
4890
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
|
|
4891
|
+
!state$2.qSuperQuestionnaire.insuranceChosen) {
|
|
4892
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4726
4893
|
return;
|
|
4727
4894
|
}
|
|
4728
|
-
if (state$
|
|
4729
|
-
state$
|
|
4895
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
|
|
4896
|
+
state$2.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
|
|
4730
4897
|
return;
|
|
4731
4898
|
}
|
|
4732
|
-
if (state$
|
|
4733
|
-
state$
|
|
4734
|
-
state$
|
|
4899
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
|
|
4900
|
+
state$2.qSuperFormValid = false;
|
|
4901
|
+
state$2.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
|
|
4735
4902
|
return;
|
|
4736
4903
|
}
|
|
4737
|
-
if (state$
|
|
4738
|
-
state$
|
|
4904
|
+
if (state$2.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
|
|
4905
|
+
state$2.qSuperQuestionnaire.acceptedDeclaration = true;
|
|
4739
4906
|
const qSuperJoinRequest = {
|
|
4740
|
-
questionnaire: state$
|
|
4741
|
-
standardChoiceFormSignature: state$
|
|
4907
|
+
questionnaire: state$2.qSuperQuestionnaire,
|
|
4908
|
+
standardChoiceFormSignature: state$2.standardChoiceFormSignature
|
|
4742
4909
|
};
|
|
4743
4910
|
await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
|
|
4744
4911
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
@@ -4749,7 +4916,7 @@ const QsuperLayout = class {
|
|
|
4749
4916
|
constructor(hostRef) {
|
|
4750
4917
|
registerInstance(this, hostRef);
|
|
4751
4918
|
this.isEligible = false;
|
|
4752
|
-
this.canContinue = () => this.isEligible && state$
|
|
4919
|
+
this.canContinue = () => this.isEligible && state$2.continueAllowed;
|
|
4753
4920
|
this.ensureEligibility = () => {
|
|
4754
4921
|
if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < QSuperMinAge) {
|
|
4755
4922
|
this.showIneligibleNotification(`People under the age of ${QSuperMinAge} are not able to open accounts.`);
|
|
@@ -4770,7 +4937,7 @@ const QsuperLayout = class {
|
|
|
4770
4937
|
}
|
|
4771
4938
|
async componentWillLoad() {
|
|
4772
4939
|
this.ensureEligibility();
|
|
4773
|
-
state$
|
|
4940
|
+
state$2.nextRoute = getNextRoute();
|
|
4774
4941
|
}
|
|
4775
4942
|
render() {
|
|
4776
4943
|
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 +4948,14 @@ const QsuperLayout = class {
|
|
|
4781
4948
|
return;
|
|
4782
4949
|
}
|
|
4783
4950
|
await handleConfirmClickAsync();
|
|
4784
|
-
navigationService.navigateInternally(this.history, state$
|
|
4951
|
+
navigationService.navigateInternally(this.history, state$2.nextRoute);
|
|
4785
4952
|
}
|
|
4786
4953
|
catch (error) {
|
|
4787
4954
|
notificationsService.showErrorNotification({
|
|
4788
4955
|
title: "Couldn't process your request",
|
|
4789
4956
|
description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
|
|
4790
4957
|
});
|
|
4791
|
-
state$
|
|
4958
|
+
state$2.continueAllowed = true;
|
|
4792
4959
|
}
|
|
4793
4960
|
}
|
|
4794
4961
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -4880,8 +5047,8 @@ const QsuperQuestionYesNoButtons = class {
|
|
|
4880
5047
|
const currentQuestion = window.location.pathname
|
|
4881
5048
|
.split(baseAppUrl + '/qsuper/insurance/')[1]
|
|
4882
5049
|
.replace(/\/+$/, '');
|
|
4883
|
-
if (state$
|
|
4884
|
-
state$
|
|
5050
|
+
if (state$2.qSuperQuestionnaire.questions === undefined) {
|
|
5051
|
+
state$2.qSuperQuestionnaire.questions = {
|
|
4885
5052
|
question1: false,
|
|
4886
5053
|
question2: false,
|
|
4887
5054
|
question3: false,
|
|
@@ -4892,10 +5059,10 @@ const QsuperQuestionYesNoButtons = class {
|
|
|
4892
5059
|
question8: false
|
|
4893
5060
|
};
|
|
4894
5061
|
}
|
|
4895
|
-
state$
|
|
4896
|
-
state$
|
|
4897
|
-
state$
|
|
4898
|
-
navigationService.navigateInternally(this.history, state$
|
|
5062
|
+
state$2.qSuperQuestionnaire.questions[currentQuestion] = input;
|
|
5063
|
+
state$2.qSuperInsuranceQuestions[currentQuestion].answered = true;
|
|
5064
|
+
state$2.nextRoute = getNextRoute();
|
|
5065
|
+
navigationService.navigateInternally(this.history, state$2.nextRoute);
|
|
4899
5066
|
}
|
|
4900
5067
|
};
|
|
4901
5068
|
injectHistory(QsuperQuestionYesNoButtons);
|
|
@@ -5195,7 +5362,7 @@ const initialSlateSuper = {
|
|
|
5195
5362
|
standardChoiceFormSignature: ''
|
|
5196
5363
|
}
|
|
5197
5364
|
};
|
|
5198
|
-
const { state: state$
|
|
5365
|
+
const { state: state$3 } = createStore(initialSlateSuper);
|
|
5199
5366
|
|
|
5200
5367
|
class SlateIFrameBuilder {
|
|
5201
5368
|
constructor() {
|
|
@@ -5225,7 +5392,7 @@ class SlateIFrameBuilder {
|
|
|
5225
5392
|
? `${window.location.origin}/super-selection/embed/v1.0/app`
|
|
5226
5393
|
: 'https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app';
|
|
5227
5394
|
const redirectUrl = `${baseUrl}/slate-redirect.html`;
|
|
5228
|
-
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation() });
|
|
5395
|
+
const postData = Object.assign(Object.assign({}, this.getSlateJoinMemberData()), { successRedirectUrl: redirectUrl, cancelRedirectUrl: redirectUrl, skipConsolidation: this.skipConsolidation(), skipInsurance: 'true' });
|
|
5229
5396
|
if (this.includeJwt()) {
|
|
5230
5397
|
postData.authToken = superSelectionAppService.jwt;
|
|
5231
5398
|
}
|
|
@@ -5239,7 +5406,7 @@ class SlateIFrameBuilder {
|
|
|
5239
5406
|
switch (data.type) {
|
|
5240
5407
|
case 'success':
|
|
5241
5408
|
if (data.memberNumber) {
|
|
5242
|
-
state$
|
|
5409
|
+
state$3.slateFundForm.memberNumber = data.memberNumber;
|
|
5243
5410
|
navigationService.navigateInternally(history, SuperSelectionAppRoutes.SlateStandardChoice);
|
|
5244
5411
|
break;
|
|
5245
5412
|
}
|
|
@@ -5352,13 +5519,13 @@ const SlateStandardChoicePage = class {
|
|
|
5352
5519
|
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
5520
|
'was-validated': this.formState === 'validated'
|
|
5354
5521
|
}, ref: (el) => (this.formElement = el) }, h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
|
|
5355
|
-
state$
|
|
5522
|
+
state$3.slateFundForm = Object.assign(Object.assign({}, state$3.slateFundForm), event.detail);
|
|
5356
5523
|
} })), 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
5524
|
}
|
|
5358
5525
|
async handleSubmitForm() {
|
|
5359
5526
|
this.formState = 'validated';
|
|
5360
5527
|
if (this.formElement.checkValidity()) {
|
|
5361
|
-
await slateChoiceApi.submitSlateChoiceAsync(state$
|
|
5528
|
+
await slateChoiceApi.submitSlateChoiceAsync(state$3.slateFundForm);
|
|
5362
5529
|
superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
5363
5530
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.Success);
|
|
5364
5531
|
}
|
|
@@ -5530,9 +5697,9 @@ const SuperChoicePage = class {
|
|
|
5530
5697
|
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
5698
|
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
5699
|
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("
|
|
5700
|
+
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
5701
|
}
|
|
5535
|
-
|
|
5702
|
+
allFunds() {
|
|
5536
5703
|
return [
|
|
5537
5704
|
{
|
|
5538
5705
|
fundId: SlateFundId,
|
|
@@ -5563,9 +5730,30 @@ const SuperChoicePage = class {
|
|
|
5563
5730
|
{ order: 2, value: `One of Australia's largest funds` },
|
|
5564
5731
|
{ order: 3, value: 'Awarded SuperRatings highest performance rating' }
|
|
5565
5732
|
]
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
fundId: AustralianRetirementTrustFundId,
|
|
5736
|
+
usi: AustralianRetirementTrustFundUsi,
|
|
5737
|
+
name: AustralianRetirementTrustFundName,
|
|
5738
|
+
heading: AustralianRetirementTrustAltFundName,
|
|
5739
|
+
logo: 'logo-qsuper-square.png',
|
|
5740
|
+
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
5741
|
+
callToAction: 'Join AustralianRetirementTrust',
|
|
5742
|
+
pdsLink: 'https://google.com',
|
|
5743
|
+
features: []
|
|
5566
5744
|
}
|
|
5567
5745
|
];
|
|
5568
5746
|
}
|
|
5747
|
+
getPromotedFunds() {
|
|
5748
|
+
const fundTiles = [];
|
|
5749
|
+
superSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
5750
|
+
const fund = this.allFunds().find((fund) => fundId == fund.fundId);
|
|
5751
|
+
if (fund !== undefined) {
|
|
5752
|
+
fundTiles.push(fund);
|
|
5753
|
+
}
|
|
5754
|
+
});
|
|
5755
|
+
return fundTiles;
|
|
5756
|
+
}
|
|
5569
5757
|
async handleJoinSuperClickAsync(fund) {
|
|
5570
5758
|
if (fund.fundId === SlateFundId) {
|
|
5571
5759
|
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
@@ -5574,14 +5762,20 @@ const SuperChoicePage = class {
|
|
|
5574
5762
|
fundNameAlt: SlateAltFundName
|
|
5575
5763
|
});
|
|
5576
5764
|
}
|
|
5577
|
-
else {
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5765
|
+
else if (fund.fundId === QSuperFundId) {
|
|
5766
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5767
|
+
fundUsi: QSuperFundUsi,
|
|
5768
|
+
fundName: QSuperFundName,
|
|
5769
|
+
fundNameAlt: QSuperAltFundName
|
|
5770
|
+
});
|
|
5771
|
+
}
|
|
5772
|
+
else if (fund.fundId === AustralianRetirementTrustFundId) {
|
|
5773
|
+
await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
|
|
5774
|
+
fundUsi: AustralianRetirementTrustFundUsi,
|
|
5775
|
+
fundName: AustralianRetirementTrustFundName,
|
|
5776
|
+
fundNameAlt: AustralianRetirementTrustAltFundName
|
|
5777
|
+
});
|
|
5778
|
+
state$1.fundId = fund.fundId;
|
|
5585
5779
|
}
|
|
5586
5780
|
return navigationService.navigateInternally(this.history, fund.route);
|
|
5587
5781
|
}
|
|
@@ -16953,4 +17147,4 @@ const SuperSelectionAppHost = class {
|
|
|
16953
17147
|
};
|
|
16954
17148
|
SuperSelectionAppHost.style = superSelectionAppHostCss;
|
|
16955
17149
|
|
|
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 };
|
|
17150
|
+
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 };
|