@flarehr/apollo-super-selection 3.43.57073 → 3.44.57505

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-71bcd96c.system.entry.js +69 -0
  3. package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
  4. package/dist/lib/apollo-super-selection/p-ffb44779.entry.js +14 -0
  5. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  6. package/dist/lib/cjs/{fl-button_46.cjs.entry.js → fl-button_31.cjs.entry.js} +44 -662
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/collection/collection-manifest.json +0 -30
  9. package/dist/lib/collection/components/super-selection-app/funds/constants.js +0 -13
  10. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +0 -22
  11. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +1 -1
  12. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +1 -32
  13. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -2
  14. package/dist/lib/esm/apollo-super-selection.js +1 -1
  15. package/dist/lib/esm/{fl-button_46.entry.js → fl-button_31.entry.js} +45 -648
  16. package/dist/lib/esm/loader.js +1 -1
  17. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  18. package/dist/lib/esm-es5/fl-button_31.entry.js +69 -0
  19. package/dist/lib/esm-es5/loader.js +1 -1
  20. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +4 -2
  21. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +0 -12
  22. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +0 -11
  23. package/dist/lib/types/components.d.ts +0 -199
  24. package/package.json +1 -1
  25. package/dist/lib/apollo-super-selection/p-efe4cd36.entry.js +0 -14
  26. package/dist/lib/apollo-super-selection/p-f853b0c9.system.entry.js +0 -69
  27. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.js +0 -1
  28. package/dist/lib/collection/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.js +0 -13
  29. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +0 -38
  30. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/continueCheck.js +0 -13
  31. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/getNextRoute.js +0 -89
  32. package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/resetState.js +0 -31
  33. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-header.js +0 -37
  34. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.js +0 -62
  35. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-confirmation.css +0 -0
  36. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.js +0 -94
  37. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.js +0 -98
  38. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.js +0 -18
  39. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper-layout.js +0 -95
  40. package/dist/lib/collection/components/super-selection-app/funds/qsuper/qsuper.css +0 -50
  41. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question1/question1.js +0 -10
  42. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question2/question2.js +0 -10
  43. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question3/question3.js +0 -10
  44. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question4/question4.js +0 -10
  45. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question5/question5.js +0 -10
  46. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question6/question6.js +0 -10
  47. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question7/question7.js +0 -10
  48. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/question8/question8.js +0 -10
  49. package/dist/lib/collection/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.js +0 -66
  50. package/dist/lib/collection/components/super-selection-app/funds/qsuper/services/qsuper.store.js +0 -64
  51. package/dist/lib/esm-es5/fl-button_46.entry.js +0 -69
  52. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.d.ts +0 -6
  53. package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +0 -22
  54. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/confirmCheck.d.ts +0 -1
  55. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/continueCheck.d.ts +0 -1
  56. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/getNextRoute.d.ts +0 -2
  57. package/dist/lib/types/components/super-selection-app/funds/qsuper/helpers/resetState.d.ts +0 -1
  58. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-header.d.ts +0 -5
  59. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-confirm-selection/qsuper-confirm-selection.d.ts +0 -6
  60. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-consent/qsuper-consent.d.ts +0 -7
  61. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-opt-in.d.ts +0 -12
  62. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-insurance-questions.d.ts +0 -3
  63. package/dist/lib/types/components/super-selection-app/funds/qsuper/qsuper-layout.d.ts +0 -11
  64. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question1/question1.d.ts +0 -3
  65. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question2/question2.d.ts +0 -3
  66. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question3/question3.d.ts +0 -3
  67. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question4/question4.d.ts +0 -3
  68. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question5/question5.d.ts +0 -3
  69. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question6/question6.d.ts +0 -3
  70. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question7/question7.d.ts +0 -3
  71. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/question8/question8.d.ts +0 -3
  72. package/dist/lib/types/components/super-selection-app/funds/qsuper/questions/yes-no-buttons/qsuper-question-yes-no-buttons.d.ts +0 -6
  73. package/dist/lib/types/components/super-selection-app/funds/qsuper/services/qsuper.store.d.ts +0 -58
@@ -1,13 +0,0 @@
1
- import { buildBackendApiClient } from '../../../api/api-client';
2
- export class QSuperChoiceApi {
3
- async submitQSuperChoiceAsync(dto) {
4
- return buildBackendApiClient()
5
- .url('super-choice/qsuper')
6
- .post(dto)
7
- .badRequest(() => {
8
- throw new Error('Failed to process QSuper join request');
9
- })
10
- .text();
11
- }
12
- }
13
- export default new QSuperChoiceApi();
@@ -1,38 +0,0 @@
1
- import superSelectionAppService from '../../../services/super-selection-app.service';
2
- import qsuperChoiceApi from '../api/qsuper-choice.api';
3
- import qSuperState, { QSuperFormPages } from '../services/qsuper.store';
4
- export async function handleConfirmClickAsync() {
5
- if (!qSuperState.continueAllowed)
6
- return;
7
- qSuperState.continueAllowed = false;
8
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
9
- qSuperState.qSuperQuestionnaire.insuranceChosen) {
10
- qSuperState.currentQSuperFormPage = QSuperFormPages.InsuranceQuestions;
11
- return;
12
- }
13
- // if insurance hasn't been chosen - skip the accumulation page
14
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceConfirm &&
15
- !qSuperState.qSuperQuestionnaire.insuranceChosen) {
16
- qSuperState.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
17
- return;
18
- }
19
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.InsuranceQuestions) {
20
- qSuperState.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
21
- return;
22
- }
23
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.AccumulationAccount) {
24
- qSuperState.qSuperFormValid = false;
25
- qSuperState.currentQSuperFormPage = QSuperFormPages.ConfirmSelection;
26
- return;
27
- }
28
- if (qSuperState.currentQSuperFormPage === QSuperFormPages.ConfirmSelection) {
29
- qSuperState.qSuperQuestionnaire.acceptedDeclaration = true;
30
- const qSuperJoinRequest = {
31
- questionnaire: qSuperState.qSuperQuestionnaire,
32
- standardChoiceFormSignature: qSuperState.standardChoiceFormSignature,
33
- shownFunds: superSelectionAppService.promotedFunds
34
- };
35
- await qsuperChoiceApi.submitQSuperChoiceAsync(qSuperJoinRequest);
36
- superSelectionAppService.markSuperSelectionAsSubmitted();
37
- }
38
- }
@@ -1,13 +0,0 @@
1
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
2
- import superSelectionAppService from '../../../services/super-selection-app.service';
3
- import qSuperState from '../services/qsuper.store';
4
- export function continueEnabledCheck() {
5
- // for a given route, ensure the checks on that page are checked before allowing to continue
6
- const baseAppUrl = superSelectionAppService.appBaseUrl;
7
- const currentRoute = window.location.pathname.split(baseAppUrl)[1];
8
- const continueValidConditions = {
9
- [SuperSelectionAppRoutes.QSuperOptIn]: qSuperState.qSuperOptInPageCheckbox,
10
- [SuperSelectionAppRoutes.QSuperJoin]: qSuperState.qSuperJoinPageCheckbox && qSuperState.standardChoiceFormSignature
11
- };
12
- qSuperState.continueAllowed = continueValidConditions[currentRoute];
13
- }
@@ -1,89 +0,0 @@
1
- import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
2
- import superSelectionAppService from '../../../services/super-selection-app.service';
3
- import qSuperState from '../services/qsuper.store';
4
- export function getNextRoute() {
5
- var _a, _b, _c, _d;
6
- const baseAppUrl = superSelectionAppService.appBaseUrl;
7
- const route = window.location.pathname.split(baseAppUrl)[1];
8
- const nextRoutes = {
9
- [SuperSelectionAppRoutes.QSuperOptIn]: SuperSelectionAppRoutes.QSuperQuestion1,
10
- [SuperSelectionAppRoutes.QSuperQuestion1]: qSuperState.qSuperInsuranceQuestions.question1
11
- .answered
12
- ? ((_a = qSuperState.qSuperQuestionnaire.questions) === null || _a === void 0 ? void 0 : _a.question1) === true
13
- ? SuperSelectionAppRoutes.QSuperQuestion4
14
- : SuperSelectionAppRoutes.QSuperQuestion2
15
- : SuperSelectionAppRoutes.QSuperQuestion1,
16
- [SuperSelectionAppRoutes.QSuperQuestion2]: qSuperState.qSuperInsuranceQuestions.question2
17
- .answered
18
- ? ((_b = qSuperState.qSuperQuestionnaire.questions) === null || _b === void 0 ? void 0 : _b.question2) === true
19
- ? SuperSelectionAppRoutes.QSuperQuestion4
20
- : SuperSelectionAppRoutes.QSuperQuestion3
21
- : SuperSelectionAppRoutes.QSuperQuestion2,
22
- [SuperSelectionAppRoutes.QSuperQuestion3]: qSuperState.qSuperInsuranceQuestions.question3
23
- .answered
24
- ? SuperSelectionAppRoutes.QSuperQuestion4
25
- : SuperSelectionAppRoutes.QSuperQuestion3,
26
- [SuperSelectionAppRoutes.QSuperQuestion4]: qSuperState.qSuperInsuranceQuestions.question4
27
- .answered
28
- ? SuperSelectionAppRoutes.QSuperQuestion5
29
- : SuperSelectionAppRoutes.QSuperQuestion4,
30
- [SuperSelectionAppRoutes.QSuperQuestion5]: qSuperState.qSuperInsuranceQuestions.question5
31
- .answered
32
- ? SuperSelectionAppRoutes.QSuperQuestion6
33
- : SuperSelectionAppRoutes.QSuperQuestion5,
34
- [SuperSelectionAppRoutes.QSuperQuestion6]: qSuperState.qSuperInsuranceQuestions.question6
35
- .answered
36
- ? SuperSelectionAppRoutes.QSuperQuestion7
37
- : SuperSelectionAppRoutes.QSuperQuestion6,
38
- [SuperSelectionAppRoutes.QSuperQuestion7]: qSuperState.qSuperInsuranceQuestions.question7
39
- .answered
40
- ? SuperSelectionAppRoutes.QSuperQuestion8
41
- : SuperSelectionAppRoutes.QSuperQuestion7,
42
- [SuperSelectionAppRoutes.QSuperQuestion8]: qSuperState.qSuperInsuranceQuestions.question8
43
- .answered
44
- ? SuperSelectionAppRoutes.QSuperConsent
45
- : SuperSelectionAppRoutes.QSuperQuestion8,
46
- [SuperSelectionAppRoutes.QSuperConsent]: qSuperState.qSuperQuestionnaire.readDutyOfDisclosure &&
47
- qSuperState.qSuperQuestionnaire.reviewedApplication
48
- ? SuperSelectionAppRoutes.QSuperJoin
49
- : SuperSelectionAppRoutes.QSuperConsent,
50
- [SuperSelectionAppRoutes.QSuperJoin]: qSuperState.qSuperJoinPageCheckbox
51
- ? SuperSelectionAppRoutes.Success
52
- : SuperSelectionAppRoutes.QSuperJoin
53
- };
54
- // special cases
55
- // if question 3 or 5 are selected as Yes, show questions 6,7,8
56
- // if we are on question 5, and question 3 or 5 have been selected yes, go to question 6
57
- const firstFiveQuestionsAnswered = qSuperState.qSuperInsuranceQuestions.question1.answered &&
58
- qSuperState.qSuperInsuranceQuestions.question2.answered &&
59
- qSuperState.qSuperInsuranceQuestions.question3.answered &&
60
- qSuperState.qSuperInsuranceQuestions.question4.answered &&
61
- qSuperState.qSuperInsuranceQuestions.question5.answered;
62
- // if we are on question 5 - check if question 3 or 5 have been answered yes
63
- // if they have then show questions 6,7,8 - otherwise go to the consent page
64
- if (route === SuperSelectionAppRoutes.QSuperQuestion5) {
65
- if (firstFiveQuestionsAnswered &&
66
- (((_c = qSuperState.qSuperQuestionnaire.questions) === null || _c === void 0 ? void 0 : _c.question3) === true ||
67
- ((_d = qSuperState.qSuperQuestionnaire.questions) === null || _d === void 0 ? void 0 : _d.question5) === true)) {
68
- return SuperSelectionAppRoutes.QSuperQuestion6;
69
- }
70
- return SuperSelectionAppRoutes.QSuperConsent;
71
- }
72
- // if in opt in page
73
- if (route === SuperSelectionAppRoutes.QSuperOptIn) {
74
- // if checkbox is ticked and insurance selected - go to question 1
75
- if (qSuperState.qSuperOptInPageCheckbox) {
76
- if (qSuperState.qSuperQuestionnaire.insuranceChosen) {
77
- return SuperSelectionAppRoutes.QSuperQuestion1;
78
- }
79
- else {
80
- return SuperSelectionAppRoutes.QSuperConsent;
81
- }
82
- }
83
- else {
84
- // otherwise go to the consent page
85
- return route;
86
- }
87
- }
88
- return nextRoutes[route];
89
- }
@@ -1,31 +0,0 @@
1
- import qSuperState, { resetQSuperStore } from '../services/qsuper.store';
2
- export function resetQSuperState() {
3
- resetQSuperStore();
4
- qSuperState.qSuperQuestionnaire = Object.assign(Object.assign({}, qSuperState.qSuperQuestionnaire), { acceptedDeclaration: false, insuranceChosen: false, readDutyOfDisclosure: false, reviewedApplication: false });
5
- qSuperState.qSuperInsuranceQuestions = {
6
- question1: {
7
- answered: false
8
- },
9
- question2: {
10
- answered: false
11
- },
12
- question3: {
13
- answered: false
14
- },
15
- question4: {
16
- answered: false
17
- },
18
- question5: {
19
- answered: false
20
- },
21
- question6: {
22
- answered: false
23
- },
24
- question7: {
25
- answered: false
26
- },
27
- question8: {
28
- answered: false
29
- }
30
- };
31
- }
@@ -1,37 +0,0 @@
1
- import { Component, h } from '@stencil/core';
2
- import { EventTrackingService } from '../../services/event-tracking.service';
3
- import navigationService from '../../services/navigation.service';
4
- import * as constants from '../constants';
5
- export class QsuperConfirmHeader {
6
- constructor() {
7
- this.eventTrackingService = EventTrackingService.Instance;
8
- }
9
- render() {
10
- const qSuperAccumulationAccountUrl = 'https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds1.pdf';
11
- return (h("div", { class: "d-flex align-items-center justify-content-center" },
12
- h("p", { class: "confirm-title font-weight-bold text-center" },
13
- "You are now applying for a",
14
- ' ',
15
- h("a", { target: "_blank", href: navigationService.toExternalUrl(qSuperAccumulationAccountUrl) }, "QSuper Accumulation Account"),
16
- ". Read the",
17
- ' ',
18
- h("a", { target: "_blank", onClick: () => this.pdsViewedAsync(), href: navigationService.toExternalUrl(constants.QSuper.PdsPdf) }, "PDS"),
19
- ' ',
20
- "here.")));
21
- }
22
- pdsViewedAsync() {
23
- return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
24
- fundUsi: constants.QSuper.Usi,
25
- fundName: constants.QSuper.Name,
26
- pageName: 'Insurance Opt In'
27
- });
28
- }
29
- static get is() { return "sss-qsuper-confirm-header"; }
30
- static get originalStyleUrls() { return {
31
- "$": ["qsuper-confirmation.scss"]
32
- }; }
33
- static get styleUrls() { return {
34
- "$": ["qsuper-confirmation.css"]
35
- }; }
36
- static get assetsDirs() { return ["assets"]; }
37
- }
@@ -1,62 +0,0 @@
1
- import { Component, getAssetPath, h } from '@stencil/core';
2
- import { EventTrackingService } from '../../../services/event-tracking.service';
3
- import navigationService from '../../../services/navigation.service';
4
- import * as constants from '../../constants';
5
- import { continueEnabledCheck } from '../helpers/continueCheck';
6
- import { getNextRoute } from '../helpers/getNextRoute';
7
- import qSuperState from '../services/qsuper.store';
8
- export class QSuperConfirmSelection {
9
- constructor() {
10
- this.eventTrackingService = EventTrackingService.Instance;
11
- }
12
- render() {
13
- return (h("sss-qsuper-layout", null,
14
- h("img", { class: "ss-choice-logo mx-auto", alt: "Simple Financial Choices Pty Ltd", src: getAssetPath(`assets/logo-qsuper.png`) }),
15
- h("div", { class: "row" },
16
- h("div", { class: "col text-center" },
17
- h("p", { class: "confirm-title font-weight-bold mb-0" }, "You have chosen to join QSuper"))),
18
- h("div", { class: "my-3 card p-3" },
19
- 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."),
20
- 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")),
21
- h("div", { class: "card p-3" },
22
- h("p", { class: "text-center" }, "100 years strong"),
23
- h("p", { class: "text-center" }, "One of Australia's largest funds"),
24
- h("p", { class: "text-center mb-0" }, "Awarded SuperRatings highest performance rating")),
25
- h("div", { class: "mt-3" },
26
- h("p", { class: "text-center confirm-text" }, "Your application to join the fund is subject to Trustee approval.")),
27
- h("div", null,
28
- h("label", { class: "d-flex\u00A0mt-4\u00A0p-3\u00A0checkbox-container", htmlFor: "confirmCheckBox" },
29
- h("div", { class: "w-auto\u00A0px-2 py-2 fl-checkbox-container" },
30
- h("input", { id: "confirmCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })),
31
- h("div", { class: "pl-3" },
32
- h("p", { class: "confirm-item-text mb-0 mt-1" },
33
- "I've read and understood the",
34
- ' ',
35
- h("a", { target: "_blank", onClick: () => this.pdsViewedAsync(), href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/') }, "PDS"),
36
- ' ',
37
- "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 Platform, being given to the trustee in order to open and administer my account.")))),
38
- h("sss-standard-choice-form", { onStandardChoiceFormSignatureUpdated: (event) => {
39
- qSuperState.standardChoiceFormSignature = event.detail.standardChoiceFormSignature;
40
- continueEnabledCheck();
41
- } })));
42
- }
43
- handleCheckboxToggle() {
44
- qSuperState.qSuperJoinPageCheckbox = !qSuperState.qSuperJoinPageCheckbox;
45
- continueEnabledCheck();
46
- qSuperState.nextRoute = getNextRoute();
47
- }
48
- pdsViewedAsync() {
49
- return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
50
- fundUsi: constants.QSuper.Usi,
51
- fundName: constants.QSuper.Name,
52
- pageName: 'Confirm Page'
53
- });
54
- }
55
- static get is() { return "sss-qsuper-join"; }
56
- static get originalStyleUrls() { return {
57
- "$": ["../../../super-choice-page/super-choice-page.scss"]
58
- }; }
59
- static get styleUrls() { return {
60
- "$": ["../../../super-choice-page/super-choice-page.css"]
61
- }; }
62
- }
@@ -1,94 +0,0 @@
1
- import { Component, h } from '@stencil/core';
2
- import { EventTrackingService } from '../../../services/event-tracking.service';
3
- import navigationService from '../../../services/navigation.service';
4
- import * as constants from '../../constants';
5
- import { getNextRoute } from '../helpers/getNextRoute';
6
- import qSuperState, { QSuperFormPages } from '../services/qsuper.store';
7
- export class QsuperConsent {
8
- constructor() {
9
- this.eventTrackingService = EventTrackingService.Instance;
10
- }
11
- async componentDidLoad() {
12
- window.scroll(0, 0);
13
- qSuperState.currentQSuperFormPage = QSuperFormPages.AccumulationAccount;
14
- }
15
- render() {
16
- return (h("sss-qsuper-layout", null,
17
- h("div", { class: "d-flex align-items-center justify-content-center" },
18
- h("p", { class: "confirm-title font-weight-bold text-center" }, "Your QSuper Accumulation Account")),
19
- h("div", { class: "p-3 d-flex mt-4 checkbox-container" },
20
- h("p", null,
21
- "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.",
22
- h("br", null),
23
- h("br", null),
24
- "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).",
25
- h("br", null),
26
- h("br", null),
27
- "I have read and agree to the terms and conditions in the QSuper",
28
- ' ',
29
- 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"),
30
- ", QSuper's",
31
- ' ',
32
- h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf') }, "Your Privacy factsheet"),
33
- ", and the",
34
- ' ',
35
- h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf') }, "Financial Services Guide"),
36
- ".",
37
- h("br", null),
38
- h("br", null),
39
- "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.",
40
- h("br", null),
41
- h("br", null),
42
- "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.",
43
- h("br", null),
44
- h("br", null),
45
- "I confirm that the information I have given is true and correct.",
46
- h("br", null),
47
- h("br", null),
48
- "I confirm that I am the person identified as the applicant in this form.",
49
- h("br", null),
50
- h("br", null),
51
- "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.",
52
- h("br", null),
53
- h("br", null),
54
- "I understand that I will be placed into the default investment option QSuper Lifetime.",
55
- h("br", null),
56
- h("br", null),
57
- "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.",
58
- h("br", null),
59
- h("br", null),
60
- "I have read and accept the",
61
- ' ',
62
- h("a", { target: "_blank", href: navigationService.toExternalUrl('https://qsuper.qld.gov.au/misc/tfn') }, "Privacy and Contact Information Statement"))),
63
- h("div", null,
64
- h("label", { class: "d-flex\u00A0mt-3\u00A0p-3\u00A0checkbox-container", htmlFor: "ackAllCheckBox" },
65
- h("div", { class: "w-auto\u00A0px-2 fl-checkbox-container" },
66
- h("input", { id: "ackAllCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })),
67
- h("div", { class: "pl-3" },
68
- h("p", { class: "confirm-item-text\u00A0mb-0 mt-1" },
69
- "I acknowledge all of the above. ",
70
- h("i", null, "(required)")))))));
71
- }
72
- handleCheckboxToggle() {
73
- qSuperState.qSuperQuestionnaire.readDutyOfDisclosure = !qSuperState.qSuperQuestionnaire
74
- .readDutyOfDisclosure;
75
- qSuperState.qSuperQuestionnaire.reviewedApplication = !qSuperState.qSuperQuestionnaire
76
- .reviewedApplication;
77
- qSuperState.continueAllowed = !qSuperState.continueAllowed;
78
- qSuperState.nextRoute = getNextRoute();
79
- }
80
- pdsViewedAsync() {
81
- return this.eventTrackingService.TrackSuperFundPdsViewedAsync({
82
- fundUsi: constants.QSuper.Usi,
83
- fundName: constants.QSuper.Name,
84
- pageName: 'Accumulation Page'
85
- });
86
- }
87
- static get is() { return "sss-qsuper-consent"; }
88
- static get originalStyleUrls() { return {
89
- "$": ["../qsuper.scss"]
90
- }; }
91
- static get styleUrls() { return {
92
- "$": ["../qsuper.css"]
93
- }; }
94
- }
@@ -1,98 +0,0 @@
1
- import { Component, h, Host, State } from '@stencil/core';
2
- import { EventTrackingService } from '../../services/event-tracking.service';
3
- import notificationsService from '../../services/notifications.service';
4
- import superSelectionAppService from '../../services/super-selection-app.service';
5
- import * as constants from '../constants';
6
- import { continueEnabledCheck } from './helpers/continueCheck';
7
- import { getNextRoute } from './helpers/getNextRoute';
8
- import { resetQSuperState } from './helpers/resetState';
9
- import qSuperState from './services/qsuper.store';
10
- export class QsuperInsuranceOptIn {
11
- constructor() {
12
- this.insuranceChosen = false;
13
- this.eventTrackingService = EventTrackingService.Instance;
14
- this.isEligibleForInsurance = false;
15
- }
16
- componentDidLoad() {
17
- return this.eventTrackingService.TrackFinancialProductViewedAsync({
18
- fundUsi: constants.QSuper.Usi,
19
- fundName: constants.QSuper.Name,
20
- financialProduct: constants.QSuper.InsuranceName
21
- });
22
- }
23
- componentWillLoad() {
24
- resetQSuperState();
25
- this.ensureInsuranceEligibility();
26
- }
27
- render() {
28
- return (h(Host, { class: "d-flex flex-fill" },
29
- h("sss-qsuper-layout", { class: "d-flex flex-fill" },
30
- h("sss-qsuper-confirm-header", null),
31
- h("div", { class: "mt-4 p-3 checkbox-container" },
32
- h("p", null,
33
- "As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",
34
- h("br", null),
35
- h("br", null),
36
- "You will receive this cover when: ",
37
- h("br", null),
38
- h("br", null),
39
- "You are 25 years or older; ",
40
- h("br", null),
41
- "and You have had at least $6,000 in your accumulation account; ",
42
- h("br", null),
43
- "and At that time, we have received money into your account within the previous 13 months ",
44
- h("br", null),
45
- h("br", null),
46
- "Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",
47
- h("br", null),
48
- h("br", null),
49
- "Do you want this insurance cover?"),
50
- h("div", { class: "d-flex justify-content-between mt-4" },
51
- h("div", { class: "button-holder flex-grow-1 mr-2" },
52
- h("fl-button", { disabled: !this.isEligibleForInsurance, isBlockElement: true, variant: this.insuranceChosen ? 'primary' : 'secondary', onClick: () => this.handleInsuranceToggle(true) }, "Yes")),
53
- h("div", { class: "button-holder flex-grow-1 ml-2" },
54
- h("fl-button", { disabled: !this.isEligibleForInsurance, isBlockElement: true, variant: !this.insuranceChosen ? 'primary' : 'secondary', onClick: () => this.handleInsuranceToggle(false) }, "No")))),
55
- h("div", null,
56
- h("label", { class: "d-flex\u00A0mt-3\u00A0p-3\u00A0checkbox-container", htmlFor: "ackCheckBox" },
57
- h("div", { class: "w-auto\u00A0px-2 fl-checkbox-container" },
58
- h("input", { id: "ackCheckBox", class: "confirm-checkbox-item", type: "checkbox", onChange: () => this.handleCheckboxToggle() })),
59
- h("div", { class: "pl-3" },
60
- h("p", { class: "confirm-item-text\u00A0mb-0" }, "I acknowledge that my personal information will be shared with QSuper as part of their application process.")))))));
61
- }
62
- ensureInsuranceEligibility() {
63
- if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuper.MinAge) {
64
- return;
65
- }
66
- else if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuper.MinInsuranceAge) {
67
- this.showIneligibleNotification(`You may still apply for QSuper, however people under the age of ${constants.QSuper.MinInsuranceAge} are not able to apply for insurance.`);
68
- return;
69
- }
70
- this.isEligibleForInsurance = true;
71
- }
72
- showIneligibleNotification(description) {
73
- notificationsService.showInfoNotification({
74
- title: 'Unable to apply for Insurance',
75
- description
76
- });
77
- }
78
- handleInsuranceToggle(input) {
79
- qSuperState.qSuperQuestionnaire.insuranceChosen = input && this.isEligibleForInsurance;
80
- this.insuranceChosen = qSuperState.qSuperQuestionnaire.insuranceChosen;
81
- qSuperState.nextRoute = getNextRoute();
82
- }
83
- handleCheckboxToggle() {
84
- qSuperState.qSuperOptInPageCheckbox = !qSuperState.qSuperOptInPageCheckbox;
85
- continueEnabledCheck();
86
- qSuperState.nextRoute = getNextRoute();
87
- }
88
- static get is() { return "sss-qsuper-insurance-opt-in"; }
89
- static get originalStyleUrls() { return {
90
- "$": ["qsuper.scss"]
91
- }; }
92
- static get styleUrls() { return {
93
- "$": ["qsuper.css"]
94
- }; }
95
- static get states() { return {
96
- "insuranceChosen": {}
97
- }; }
98
- }
@@ -1,18 +0,0 @@
1
- import { Component, h, Host } from '@stencil/core';
2
- export class QsuperInsuranceQuestions {
3
- render() {
4
- return (h(Host, { class: "d-flex flex-fill" },
5
- h("sss-qsuper-layout", { class: "d-flex flex-fill" },
6
- h("sss-qsuper-confirm-header", null),
7
- h("div", { class: "p-3 mt-4 checkbox-container" },
8
- h("slot", null),
9
- h("sss-qsuper-question-yes-no-buttons", null)))));
10
- }
11
- static get is() { return "sss-qsuper-insurance-questions"; }
12
- static get originalStyleUrls() { return {
13
- "$": ["./qsuper.scss"]
14
- }; }
15
- static get styleUrls() { return {
16
- "$": ["qsuper.css"]
17
- }; }
18
- }
@@ -1,95 +0,0 @@
1
- import { Component, h, Prop } from '@stencil/core';
2
- import { injectHistory } from '@stencil/router';
3
- import navigationService from '../../services/navigation.service';
4
- import notificationsService from '../../services/notifications.service';
5
- import { SuperSelectionAppRoutes } from '../../services/super-selection-app.routes';
6
- import superSelectionAppService from '../../services/super-selection-app.service';
7
- import * as constants from '../constants';
8
- import { handleConfirmClickAsync } from './helpers/confirmCheck';
9
- import { getNextRoute } from './helpers/getNextRoute';
10
- import qSuperState from './services/qsuper.store';
11
- export class QsuperLayout {
12
- constructor() {
13
- this.isEligible = false;
14
- this.canContinue = () => this.isEligible && qSuperState.continueAllowed;
15
- this.ensureEligibility = () => {
16
- if (superSelectionAppService.superBuyer.userProfile.yearsOfAge < constants.QSuper.MinAge) {
17
- this.showIneligibleNotification(`People under the age of ${constants.QSuper.MinAge} are not able to open accounts.`);
18
- }
19
- else if (superSelectionAppService.superBuyer.userProfile.yearsOfAge > constants.QSuper.MaxAge) {
20
- this.showIneligibleNotification(`People over the age of ${constants.QSuper.MaxAge} are not able to open accounts.`);
21
- }
22
- else {
23
- this.isEligible = true;
24
- }
25
- };
26
- this.showIneligibleNotification = (description) => {
27
- notificationsService.showInfoNotification({
28
- title: 'Unable to apply for QSuper',
29
- description
30
- });
31
- };
32
- }
33
- async componentWillLoad() {
34
- this.ensureEligibility();
35
- qSuperState.nextRoute = getNextRoute();
36
- }
37
- render() {
38
- return (h("div", { class: "container" },
39
- h("div", { class: "row justify-content-center" },
40
- h("div", { class: "col col-sm-10 col-md-7" },
41
- h("slot", null),
42
- h("div", { class: "mt-4" },
43
- h("sss-notifications-section", null)),
44
- h("div", { class: "d-flex mt-4" },
45
- h("div", { class: "flex-grow-1 w-50" },
46
- h("div", { class: "mr-2" },
47
- h("fl-button", { onClick: () => navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage), isBlockElement: true, variant: "secondary" },
48
- h("span", null, "Back")))),
49
- h("div", { class: "flex-grow-1 w-50" },
50
- h("div", { class: "ml-2" },
51
- h("fl-promise-button", { isBlockElement: true, disabled: !this.canContinue(), promiseFn: () => this.tryAsync() },
52
- h("span", null, "Continue")))))))));
53
- }
54
- async tryAsync() {
55
- try {
56
- if (!this.canContinue()) {
57
- return;
58
- }
59
- await handleConfirmClickAsync();
60
- navigationService.navigateInternally(this.history, qSuperState.nextRoute);
61
- }
62
- catch (error) {
63
- notificationsService.showErrorNotification({
64
- title: "Couldn't process your request",
65
- description: 'We had an issue processing your request to join QSuper. Please try again shortly.'
66
- });
67
- qSuperState.continueAllowed = true;
68
- }
69
- }
70
- static get is() { return "sss-qsuper-layout"; }
71
- static get assetsDirs() { return ["assets"]; }
72
- static get properties() { return {
73
- "history": {
74
- "type": "unknown",
75
- "mutable": false,
76
- "complexType": {
77
- "original": "RouterHistory",
78
- "resolved": "RouterHistory",
79
- "references": {
80
- "RouterHistory": {
81
- "location": "import",
82
- "path": "@stencil/router"
83
- }
84
- }
85
- },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": ""
91
- }
92
- }
93
- }; }
94
- }
95
- injectHistory(QsuperLayout);
@@ -1,50 +0,0 @@
1
- html {
2
- scroll-behavior: smooth;
3
- }
4
-
5
- img.fluid-fit {
6
- object-fit: cover;
7
- }
8
-
9
- .choice-container {
10
- margin-top: 0 !important;
11
- margin-bottom: 0 !important;
12
- }
13
-
14
- .confirm-title {
15
- font-size: 20px;
16
- margin-bottom: 0;
17
- }
18
-
19
- .confirm-text {
20
- font-size: 14px;
21
- }
22
-
23
- .edit-toggle {
24
- cursor: pointer;
25
- }
26
-
27
- .form-value-text {
28
- overflow-wrap: anywhere;
29
- }
30
-
31
- .confirm-checkbox-item {
32
- transform: scale(1.7);
33
- }
34
-
35
- .checkbox-container {
36
- border-radius: 4px;
37
- background-color: #f5f4f2;
38
- }
39
-
40
- .confirm-item-text {
41
- font-size: 13px;
42
- }
43
-
44
- .button-holder {
45
- min-width: 8rem;
46
- }
47
-
48
- .confirm-form-view-only-holder * {
49
- font-size: 14px;
50
- }