@flarehr/apollo-super-selection 3.50.59382 → 3.53.61179
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.css +1 -0
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.js +1 -1
- package/dist/lib/apollo-super-selection/assets/icon-check.svg +3 -0
- package/dist/lib/apollo-super-selection/assets/icon-exclamation.svg +3 -0
- package/dist/lib/apollo-super-selection/assets/icon-information-circle.svg +3 -0
- package/dist/lib/apollo-super-selection/p-03373b03.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-14885f78.system.js +15 -0
- package/dist/lib/apollo-super-selection/{p-381262c1.system.js → p-15f0e5eb.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-29c11183.js +15 -0
- package/dist/lib/apollo-super-selection/p-6c94de60.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-74f91404.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-86e3e03f.js +1 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +3 -4
- package/dist/lib/cjs/{app-globals-45007120.js → app-globals-b1125d8c.js} +1 -1
- package/dist/lib/cjs/{datorama-akita-7f4b082a.js → datorama-akita-6c9cb8fb.js} +1005 -68
- package/dist/lib/cjs/loader.cjs.js +3 -4
- package/dist/lib/cjs/{fl-button_31.cjs.entry.js → sss-button_28.cjs.entry.js} +2099 -2167
- package/dist/lib/collection/apollo-super-selection.css +1 -0
- package/dist/lib/collection/collection-manifest.json +16 -28
- package/dist/lib/collection/components/app-host/loading-page.js +3 -3
- package/dist/lib/collection/components/app-host/super-selection-app-host.css +0 -4
- package/dist/lib/collection/components/app-host/super-selection-app-host.js +7 -19
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.dto.js +69 -1
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +9 -3
- package/dist/lib/collection/components/super-selection-app/app-state-pages/success.js +16 -21
- package/dist/lib/collection/components/super-selection-app/assets/icon-check.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-exclamation.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/assets/icon-information-circle.svg +3 -0
- package/dist/lib/collection/components/super-selection-app/consent/consent.js +57 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +132 -0
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +6 -18
- package/dist/lib/collection/components/super-selection-app/funds/constants.js +50 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.js +31 -16
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/custom-fund.store.js +10 -14
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +36 -45
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js +40 -19
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +45 -40
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +104 -58
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +53 -49
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.js +6 -16
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-join-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund.store.js +1 -4
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-iframe-builder.js +10 -4
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/services/slate-iframe-builder.js +13 -4
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-join-page.js +2 -3
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +28 -0
- package/dist/lib/collection/components/super-selection-app/misc/button.js +146 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.css +7 -0
- package/dist/lib/collection/components/super-selection-app/misc/dropdown-async.js +359 -0
- package/dist/lib/collection/components/super-selection-app/misc/loading-indicator.js +52 -0
- package/dist/lib/collection/components/super-selection-app/services/australian-fund-lookup.service.js +8 -4
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +20 -0
- package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +95 -0
- package/dist/lib/collection/components/super-selection-app/services/navigation.service.js +8 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +6 -4
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +71 -34
- package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.store.js +10 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +94 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +89 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +67 -90
- package/dist/lib/collection/components/super-selection-app/super-selection-app.css +16 -4
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +32 -11
- package/dist/lib/esm/apollo-super-selection.js +3 -4
- package/dist/lib/esm/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
- package/dist/lib/esm/{datorama-akita-79ce4385.js → datorama-akita-127aea91.js} +960 -28
- package/dist/lib/esm/loader.js +3 -4
- package/dist/lib/esm/{fl-button_31.entry.js → sss-button_28.entry.js} +2086 -2151
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/{app-globals-7ac1ffba.js → app-globals-c1f89805.js} +1 -1
- package/dist/lib/esm-es5/datorama-akita-127aea91.js +15 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_28.entry.js +69 -0
- package/dist/lib/types/components/app-host/super-selection-app-host.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +30 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +19 -4
- package/dist/lib/types/components/super-selection-app/consent/consent.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/existing-choice/existing-choice.d.ts +12 -0
- package/dist/lib/types/components/super-selection-app/footer-section/footer-section.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +3 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +4 -6
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund.d.ts +0 -2
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts +0 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund.store.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/header-section/header-section.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/misc/button.d.ts +11 -0
- package/dist/lib/types/components/super-selection-app/misc/dropdown-async.d.ts +44 -0
- package/dist/lib/types/components/super-selection-app/misc/loading-indicator.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/australian-fund-lookup.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +4 -0
- package/dist/lib/types/components/super-selection-app/services/existing-super-choice-info.service.d.ts +51 -0
- package/dist/lib/types/components/super-selection-app/services/navigation.service.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +3 -2
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +6 -3
- package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.store.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.d.ts +9 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-page.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/super-selection-app.d.ts +1 -1
- package/dist/lib/types/components.d.ts +146 -97
- package/package.json +12 -7
- package/dist/lib/apollo-super-selection/assets/logo-qsuper-square.png +0 -0
- package/dist/lib/apollo-super-selection/assets/logo-qsuper.png +0 -0
- package/dist/lib/apollo-super-selection/p-03f41493.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-13573238.system.js +0 -15
- package/dist/lib/apollo-super-selection/p-342cee5a.js +0 -1
- package/dist/lib/apollo-super-selection/p-38f24f69.js +0 -1
- package/dist/lib/apollo-super-selection/p-64ebe17d.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-7dbe5a2f.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +0 -1
- package/dist/lib/apollo-super-selection/p-df9ce4b7.js +0 -15
- package/dist/lib/apollo-super-selection/p-e126ffd4.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-f7a45412.entry.js +0 -1
- package/dist/lib/cjs/delay-81aff2f1.js +0 -955
- package/dist/lib/cjs/fl-style-guide.cjs.entry.js +0 -90
- package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.css +0 -11
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-not-supported.css +0 -23
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +0 -62
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +0 -10
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +0 -67
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.css +0 -0
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slatesuper-header.js +0 -19
- package/dist/lib/collection/components/super-selection-app/notifications-section/notifications-section.js +0 -25
- package/dist/lib/collection/components/super-selection-app/services/notifications.service.js +0 -37
- package/dist/lib/collection/components/super-selection-app/services/notifications.store.js +0 -3
- package/dist/lib/collection/components/super-selection-app/services/selected-super-choice-info.service.js +0 -50
- package/dist/lib/collection/components/super-selection-app/standard-choice/api/standard-choice.model.js +0 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper-square.png +0 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/assets/logo-qsuper.png +0 -0
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.css +0 -18
- package/dist/lib/collection/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.js +0 -53
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item.js +0 -296
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.css +0 -70
- package/dist/lib/esm/delay-c0555599.js +0 -935
- package/dist/lib/esm/fl-style-guide.entry.js +0 -86
- package/dist/lib/esm-es5/datorama-akita-79ce4385.js +0 -15
- package/dist/lib/esm-es5/delay-c0555599.js +0 -1
- package/dist/lib/esm-es5/fl-button_31.entry.js +0 -69
- package/dist/lib/esm-es5/fl-style-guide.entry.js +0 -1
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/button/button.css +0 -45
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown/dropdown.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/dropdown-async/dropdown-async.css +0 -9
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/loading-indicator/loading-indicator.css +0 -141
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/promise-button/promise-button.css +0 -5
- package/dist/lib/node_modules/@flarehr/beacon/dist/collection/components/style-guide/style-guide.css +0 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-fund.store.d.ts +0 -7
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slate-standard-choice-page.d.ts +0 -8
- package/dist/lib/types/components/super-selection-app/funds/slate-super/slatesuper-header.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/notifications-section/notifications-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/services/notifications.service.d.ts +0 -15
- package/dist/lib/types/components/super-selection-app/services/notifications.store.d.ts +0 -14
- package/dist/lib/types/components/super-selection-app/services/selected-super-choice-info.service.d.ts +0 -18
- package/dist/lib/types/components/super-selection-app/standard-choice/api/standard-choice.model.d.ts +0 -3
- package/dist/lib/types/components/super-selection-app/super-choice-page/selected-super-choice-section/selected-super-choice-section.d.ts +0 -5
- package/dist/lib/types/components/super-selection-app/super-choice-page/super-choice-item.d.ts +0 -22
package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js
CHANGED
|
@@ -1,97 +1,87 @@
|
|
|
1
|
-
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
|
-
import { isSome, none } from 'fp-ts/Option';
|
|
3
|
-
import iframe from '../../../utils/iframe';
|
|
1
|
+
import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
|
|
4
2
|
import * as constants from '../funds/constants';
|
|
5
3
|
import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
|
|
6
4
|
import { EventTrackingService } from '../services/event-tracking.service';
|
|
7
5
|
import navigationService from '../services/navigation.service';
|
|
8
|
-
import chosenFundService from '../services/selected-super-choice-info.service';
|
|
9
6
|
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
10
7
|
import SuperSelectionAppService from '../services/super-selection-app.service';
|
|
11
8
|
export class SuperChoicePage {
|
|
12
9
|
constructor() {
|
|
13
10
|
this.promotedFunds = this.getPromotedFunds();
|
|
14
|
-
this.chosenFund = none;
|
|
15
11
|
this.eventTrackingService = EventTrackingService.Instance;
|
|
16
|
-
this.isPromotedFundSelected = (fundId) => {
|
|
17
|
-
return (isSome(this.chosenFund) &&
|
|
18
|
-
this.chosenFund.value.isPromoted &&
|
|
19
|
-
this.chosenFund.value.promotedId === fundId);
|
|
20
|
-
};
|
|
21
12
|
}
|
|
22
13
|
componentDidLoad() {
|
|
23
|
-
iframe.appReady();
|
|
24
14
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
25
15
|
this.eventTrackingService.TrackSuperFundPanelViewedAsync({
|
|
26
16
|
promotedFundsShown
|
|
27
17
|
});
|
|
28
18
|
}
|
|
29
|
-
async componentWillLoad() {
|
|
30
|
-
this.chosenFund = await chosenFundService.GetChosenFundAsync();
|
|
31
|
-
}
|
|
32
19
|
render() {
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const superChoiceParagraphThree = `There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice.`;
|
|
36
|
-
const superChoiceParagraphFour = `You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so.`;
|
|
37
|
-
const atoLink = 'https://my.gov.au';
|
|
38
|
-
const atoLinkDisplay = 'my.gov.au';
|
|
20
|
+
const mygovLink = 'https://my.gov.au';
|
|
21
|
+
const mygovLinkDisplay = 'www.my.gov.au';
|
|
39
22
|
const superfundsLink = 'https://www.apra.gov.au/register-of-superannuation-institutions';
|
|
40
|
-
const superfundsLinkDisplay = 'www.apra.gov.au
|
|
23
|
+
const superfundsLinkDisplay = 'www.apra.gov.au';
|
|
41
24
|
return (h(Host, null,
|
|
42
|
-
h("div",
|
|
43
|
-
h("
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
h("p",
|
|
49
|
-
h("p",
|
|
50
|
-
h("p",
|
|
51
|
-
h("div", { class: "
|
|
52
|
-
h("div", { class:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
25
|
+
h("div", null,
|
|
26
|
+
h("sss-header-section", { currentPage: "choice" }),
|
|
27
|
+
h("div", { class: "flex justify-center pb-4" },
|
|
28
|
+
h("div", { class: "text-center space-y-4 max-w-960 text-sm leading-6" },
|
|
29
|
+
h("p", { class: "text-lg leading-8 text-gray-600" }, "The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund."),
|
|
30
|
+
h("p", null, "Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),
|
|
31
|
+
h("p", null, "The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion."),
|
|
32
|
+
h("p", null, "There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."),
|
|
33
|
+
h("p", null, "You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so."))),
|
|
34
|
+
h("div", { class: "flex justify-center mt-8" },
|
|
35
|
+
h("div", { class: {
|
|
36
|
+
'lg:grid border-l border-t lg:border-b rounded-lg': true,
|
|
37
|
+
'lg:grid-cols-1 max-w-400': this.promotedFunds.length === 1,
|
|
38
|
+
'lg:grid-cols-2 max-w-720': this.promotedFunds.length === 2,
|
|
39
|
+
'lg:grid-cols-3 max-w-960': this.promotedFunds.length === 3
|
|
40
|
+
} },
|
|
41
|
+
this.promotedFunds.map((fund, index) => (h("div", { class: {
|
|
42
|
+
'border-r': true,
|
|
43
|
+
'rounded-tr-lg': index === 0,
|
|
44
|
+
'lg:rounded-tr-none': index === 0 && index !== this.promotedFunds.length - 1,
|
|
45
|
+
'rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg': index === this.promotedFunds.length - 1
|
|
46
|
+
} },
|
|
47
|
+
h("div", { class: {
|
|
48
|
+
'flex border-b lg:border-b-0': true,
|
|
49
|
+
'rounded-b-lg': index === this.promotedFunds.length - 1
|
|
50
|
+
} },
|
|
51
|
+
h("div", { class: "hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6" },
|
|
52
|
+
h("img", { class: "h-16 object-contain w-full max-w-[96px]", alt: fund.name, src: getAssetPath(`assets/${fund.logo}`) })),
|
|
53
|
+
h("div", { class: "w-full" },
|
|
54
|
+
h("sss-super-choice-item-top", { logo: fund.logo, name: fund.name, features: JSON.stringify(fund.features), featureSubText: fund.featureSubText }),
|
|
55
|
+
h("div", { class: "lg:hidden" },
|
|
56
|
+
h("sss-super-choice-item-bottom", { disclaimer: fund.disclaimer, abnInfo: fund.abnInfo, abn: fund.abn, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) }))))))),
|
|
57
|
+
this.promotedFunds.map((fund, index) => (h("div", { class: {
|
|
58
|
+
'hidden lg:block border-r': true,
|
|
59
|
+
'rounded-br-lg': index === this.promotedFunds.length - 1
|
|
60
|
+
} },
|
|
61
|
+
h("sss-super-choice-item-bottom", { disclaimer: fund.disclaimer, abnInfo: fund.abnInfo, abn: fund.abn, onJoinFundClicked: async () => this.handleJoinSuperClickAsync(fund) })))))),
|
|
62
|
+
h("div", { class: "flex justify-center mt-8 sm:mt-12" },
|
|
63
|
+
h("div", { class: "pb-8 sm:pb-12 max-w-720 border-b" },
|
|
64
|
+
h("h5", { class: "font-bold sm:text-lg" }, "Or, choose another super fund:"),
|
|
65
|
+
h("ul", { class: "list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base" },
|
|
66
|
+
h("li", null, "Select this option if you'd like to use your current account with another super fund, your self-managed super fund, or your employer's default fund."),
|
|
67
|
+
h("li", null,
|
|
68
|
+
"If you are unsure of your current super fund details, you can find out at",
|
|
69
|
+
' ',
|
|
70
|
+
h("a", { class: "text-primary-base font-medium", target: "_blank", href: navigationService.toExternalUrl(mygovLink) }, mygovLinkDisplay)),
|
|
71
|
+
h("li", null,
|
|
72
|
+
"A full list of super funds can be viewed at",
|
|
73
|
+
' ',
|
|
74
|
+
h("a", { class: "text-primary-base font-medium", target: "_blank", href: navigationService.toExternalUrl(superfundsLink) }, superfundsLinkDisplay))),
|
|
75
|
+
h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
|
|
76
|
+
h("sss-button", { fillWidthOnMobile: true }, "Choose another super fund")))))));
|
|
85
77
|
}
|
|
86
78
|
allFunds() {
|
|
87
79
|
return [
|
|
88
80
|
{
|
|
89
81
|
fundId: constants.Slate.Id,
|
|
90
|
-
usi: constants.Slate.Usi,
|
|
91
82
|
name: constants.Slate.Name,
|
|
92
83
|
logo: 'logo-slate.png',
|
|
93
84
|
route: SuperSelectionAppRoutes.SlateJoin,
|
|
94
|
-
pdsLink: constants.Slate.PdsUrl,
|
|
95
85
|
features: [
|
|
96
86
|
{ order: 1, value: 'A lifestage investment strategy that evolves with you' },
|
|
97
87
|
{ order: 2, value: 'Advanced mobile app with retirement forecast and smart features' },
|
|
@@ -100,11 +90,11 @@ export class SuperChoicePage {
|
|
|
100
90
|
disclaimer: (h("p", { class: "small text-muted" },
|
|
101
91
|
"You should consider the",
|
|
102
92
|
' ',
|
|
103
|
-
h("a", { target: "_blank", href: navigationService.toExternalUrl(constants.Slate.PdsUrl), onClick: () => this.pdsViewedAsync(constants.Slate.Name, constants.Slate.Usi) }, "Product Disclosure Statement"),
|
|
93
|
+
h("a", { class: "font-medium underline", target: "_blank", href: navigationService.toExternalUrl(constants.Slate.PdsUrl), onClick: () => this.pdsViewedAsync(constants.Slate.Name, constants.Slate.Usi) }, "Product Disclosure Statement"),
|
|
104
94
|
' ',
|
|
105
95
|
"and",
|
|
106
96
|
' ',
|
|
107
|
-
h("a", { target: "_blank", href: navigationService.toExternalUrl('https://slate.co/forms-and-documents/target-market-determination/') }, "Target Market Determination"),
|
|
97
|
+
h("a", { class: "font-medium underline", target: "_blank", href: navigationService.toExternalUrl('https://slate.co/forms-and-documents/target-market-determination/') }, "Target Market Determination"),
|
|
108
98
|
' ',
|
|
109
99
|
"before deciding to invest in or apply to become a member of the fund.")),
|
|
110
100
|
abnInfo: `Diversa Trustees Limited`,
|
|
@@ -113,19 +103,18 @@ export class SuperChoicePage {
|
|
|
113
103
|
{
|
|
114
104
|
fundId: constants.AustralianRetirementTrust.Id,
|
|
115
105
|
name: constants.AustralianRetirementTrust.Name,
|
|
116
|
-
subText: 'QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.',
|
|
117
106
|
logo: 'logo-art.svg',
|
|
118
107
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
119
|
-
pdsLink: constants.AustralianRetirementTrust.PdsUrl,
|
|
120
108
|
features: [
|
|
121
109
|
{ order: 1, value: '$200 billion in retirement savings' },
|
|
122
110
|
{ order: 2, value: '2+ million members' },
|
|
123
111
|
{ order: 3, value: 'A focus on delivering strong, long‑term returns' }
|
|
124
112
|
],
|
|
125
|
-
|
|
113
|
+
featureSubText: 'QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.',
|
|
114
|
+
disclaimer: (h("p", null,
|
|
126
115
|
"You should consider the",
|
|
127
116
|
' ',
|
|
128
|
-
h("a", { target: "_blank", href: navigationService.toExternalUrl(constants.AustralianRetirementTrust.PdsUrl), onClick: () => this.pdsViewedAsync(constants.AustralianRetirementTrust.Name) }, "Product Disclosure Statement"),
|
|
117
|
+
h("a", { class: "font-medium underline", target: "_blank", href: navigationService.toExternalUrl(constants.AustralianRetirementTrust.PdsUrl), onClick: () => this.pdsViewedAsync(constants.AustralianRetirementTrust.Name) }, "Product Disclosure Statement"),
|
|
129
118
|
' ',
|
|
130
119
|
"before deciding to invest in or apply to become a member of this fund.")),
|
|
131
120
|
abnInfo: `Australian Retirement Trust`,
|
|
@@ -134,20 +123,17 @@ export class SuperChoicePage {
|
|
|
134
123
|
{
|
|
135
124
|
fundId: constants.Aware.Id,
|
|
136
125
|
name: constants.Aware.Name,
|
|
137
|
-
subText: 'An industry fund for all',
|
|
138
126
|
logo: 'logo-aware.svg',
|
|
139
127
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
140
|
-
pdsLinkText: constants.Aware.PdsUrlText,
|
|
141
|
-
pdsLink: constants.Aware.PdsUrl,
|
|
142
128
|
features: [
|
|
143
129
|
{ order: 1, value: 'Acting on climate change' },
|
|
144
130
|
{ order: 2, value: 'All profits go to members' },
|
|
145
131
|
{ order: 3, value: 'One of Australia’s largest funds' }
|
|
146
132
|
],
|
|
147
|
-
disclaimer: (h("p",
|
|
133
|
+
disclaimer: (h("p", null,
|
|
148
134
|
"You should consider the",
|
|
149
135
|
' ',
|
|
150
|
-
h("a", { target: "_blank", href: navigationService.toExternalUrl(constants.Aware.PdsUrl), onClick: () => this.pdsViewedAsync(constants.Aware.Name) }, "Product Disclosure Statement"),
|
|
136
|
+
h("a", { class: "font-medium underline", target: "_blank", href: navigationService.toExternalUrl(constants.Aware.PdsUrl), onClick: () => this.pdsViewedAsync(constants.Aware.Name) }, "Product Disclosure Statement"),
|
|
151
137
|
' ',
|
|
152
138
|
"before deciding to invest in or apply to become a member of this fund.")),
|
|
153
139
|
abnInfo: `Aware Super Pty Ltd`,
|
|
@@ -158,18 +144,16 @@ export class SuperChoicePage {
|
|
|
158
144
|
name: constants.Active.Name,
|
|
159
145
|
logo: 'logo-active.svg',
|
|
160
146
|
route: SuperSelectionAppRoutes.PromotedFundJoin,
|
|
161
|
-
pdsLinkText: constants.Active.PdsUrlText,
|
|
162
|
-
pdsLink: constants.Active.PdsUrl,
|
|
163
147
|
features: [
|
|
164
148
|
{ order: 1, value: "One of Canstar's top-performing funds*" },
|
|
165
149
|
{ order: 2, value: 'Recognised as a leader in responsible investment' },
|
|
166
150
|
{ order: 3, value: 'Calls answered in 20 seconds (average over 5 years)' }
|
|
167
151
|
],
|
|
168
152
|
featureSubText: '*Past performance does not indicate future performance. As at 22/4/22, Active Super ranked in Canstar’s top 5 funds for 18-49 year-olds with balances up to $250K based on returns over 5 years in Accumulation Scheme.',
|
|
169
|
-
disclaimer: (h("p",
|
|
153
|
+
disclaimer: (h("p", null,
|
|
170
154
|
"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at",
|
|
171
155
|
' ',
|
|
172
|
-
h("a", { target: "_blank", onClick: () => this.pdsViewedAsync(constants.Active.Name), href: navigationService.toExternalUrl(constants.Active.PdsUrl) }, "activesuper.com.au"),
|
|
156
|
+
h("a", { class: "font-medium underline", target: "_blank", onClick: () => this.pdsViewedAsync(constants.Active.Name), href: navigationService.toExternalUrl(constants.Active.PdsUrl) }, "activesuper.com.au"),
|
|
173
157
|
' ',
|
|
174
158
|
"before making a decision."))
|
|
175
159
|
}
|
|
@@ -178,7 +162,7 @@ export class SuperChoicePage {
|
|
|
178
162
|
getPromotedFunds() {
|
|
179
163
|
const fundTiles = [];
|
|
180
164
|
SuperSelectionAppService.promotedFunds.forEach((fundId) => {
|
|
181
|
-
const fund = this.allFunds().find((fund) => fundId
|
|
165
|
+
const fund = this.allFunds().find((fund) => fundId === fund.fundId);
|
|
182
166
|
if (fund !== undefined) {
|
|
183
167
|
fundTiles.push(fund);
|
|
184
168
|
}
|
|
@@ -229,12 +213,6 @@ export class SuperChoicePage {
|
|
|
229
213
|
});
|
|
230
214
|
}
|
|
231
215
|
static get is() { return "sss-super-choice-page"; }
|
|
232
|
-
static get originalStyleUrls() { return {
|
|
233
|
-
"$": ["super-choice-page.scss"]
|
|
234
|
-
}; }
|
|
235
|
-
static get styleUrls() { return {
|
|
236
|
-
"$": ["super-choice-page.css"]
|
|
237
|
-
}; }
|
|
238
216
|
static get assetsDirs() { return ["assets"]; }
|
|
239
217
|
static get properties() { return {
|
|
240
218
|
"history": {
|
|
@@ -259,7 +237,6 @@ export class SuperChoicePage {
|
|
|
259
237
|
}
|
|
260
238
|
}; }
|
|
261
239
|
static get states() { return {
|
|
262
|
-
"promotedFunds": {}
|
|
263
|
-
"chosenFund": {}
|
|
240
|
+
"promotedFunds": {}
|
|
264
241
|
}; }
|
|
265
242
|
}
|
|
@@ -2,14 +2,26 @@ html {
|
|
|
2
2
|
scroll-behavior: smooth;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
img.fluid-fit {
|
|
6
|
-
object-fit: cover;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
stencil-route {
|
|
10
6
|
display: flex;
|
|
11
7
|
flex: 1 1 auto;
|
|
8
|
+
justify-content: center;
|
|
12
9
|
}
|
|
13
10
|
stencil-route:empty {
|
|
14
11
|
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input + .invalid-feedback {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
select + .invalid-feedback {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.was-validated input:invalid + .invalid-feedback {
|
|
23
|
+
display: block;
|
|
24
|
+
}
|
|
25
|
+
.was-validated select:invalid + .invalid-feedback {
|
|
26
|
+
display: block;
|
|
15
27
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import { Component, Event, h, Host, Prop, State, Watch } from '@stencil/core';
|
|
1
|
+
import { Component, Event, getAssetPath, h, Host, Prop, State, Watch } from '@stencil/core';
|
|
3
2
|
import { injectHistory } from '@stencil/router';
|
|
4
3
|
import * as O from 'fp-ts/lib/Option';
|
|
5
|
-
import {
|
|
4
|
+
import { isSome } from 'fp-ts/lib/Option';
|
|
5
|
+
import iframe from '../../utils/iframe';
|
|
6
|
+
import existingFundService from './services/existing-super-choice-info.service';
|
|
7
|
+
import navigationService from './services/navigation.service';
|
|
8
|
+
import { SuperSelectionAppRoutes, superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
|
|
6
9
|
import superSelectionAppService from './services/super-selection-app.service';
|
|
7
10
|
export class SuperSelectionApp {
|
|
8
11
|
constructor() {
|
|
@@ -34,12 +37,20 @@ export class SuperSelectionApp {
|
|
|
34
37
|
}
|
|
35
38
|
async componentDidLoad() {
|
|
36
39
|
await superSelectionAppService.loadAppStateAsync();
|
|
40
|
+
const chosenFundOption = await existingFundService.GetExistingFundAsync();
|
|
37
41
|
this.isAppInitialised = true;
|
|
38
42
|
this.initialised.emit({
|
|
39
43
|
accountIdOrDefault: superSelectionAppService.accountIdOrDefault,
|
|
40
44
|
partnerIdOrDefault: superSelectionAppService.partnerIdOrDefault,
|
|
41
45
|
profileId: superSelectionAppService.profileId
|
|
42
46
|
});
|
|
47
|
+
iframe.appReady();
|
|
48
|
+
if (isSome(chosenFundOption) && chosenFundOption.value.valid !== 'Inactive') {
|
|
49
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ExistingChoicePage);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
53
|
+
}
|
|
43
54
|
}
|
|
44
55
|
authTokenChanged(newValue) {
|
|
45
56
|
superSelectionAppService.state.jwt = O.fromNullable(newValue);
|
|
@@ -48,28 +59,38 @@ export class SuperSelectionApp {
|
|
|
48
59
|
window === null || window === void 0 ? void 0 : window.scroll(0, 0);
|
|
49
60
|
}
|
|
50
61
|
render() {
|
|
51
|
-
return (h(Host,
|
|
52
|
-
h("
|
|
62
|
+
return (h(Host, null,
|
|
63
|
+
h("link", { rel: "stylesheet", href: getAssetPath('apollo-super-selection.css'), media: "all" }),
|
|
64
|
+
this.renderAppContent()));
|
|
53
65
|
}
|
|
54
66
|
routerBaseUrl() {
|
|
55
67
|
var _a;
|
|
56
68
|
return ((_a = this.appBaseUrl) === null || _a === void 0 ? void 0 : _a.replace(/\/$/, '')) + '/';
|
|
57
69
|
}
|
|
58
70
|
renderAppContent() {
|
|
59
|
-
return (h("stencil-router", { root: this.routerBaseUrl() },
|
|
60
|
-
h("stencil-route-switch", { scrollTopOffset: 0 },
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
return (h("stencil-router", { root: this.routerBaseUrl(), class: "font-inter" },
|
|
72
|
+
h("stencil-route-switch", { scrollTopOffset: 0 }, this.isAppInitialised ? (h("div", { class: {
|
|
73
|
+
'pt-28': true,
|
|
74
|
+
'pb-6 -mt-12': !this.isFundJoinPage(),
|
|
75
|
+
'-mt-28': this.isFundJoinPage() // -mt value same as pt to negate it in embedded fund join pages
|
|
76
|
+
} },
|
|
77
|
+
superSelectionAppStencilRoutes,
|
|
78
|
+
h("sss-footer-section", null))) : (h("div", { class: "flex justify-center py-20" },
|
|
79
|
+
h("sss-loading-indicator", null))))));
|
|
80
|
+
}
|
|
81
|
+
isFundJoinPage() {
|
|
82
|
+
return (window.location.pathname.includes(SuperSelectionAppRoutes.SlateJoin) ||
|
|
83
|
+
window.location.pathname.includes(SuperSelectionAppRoutes.PromotedFundJoin));
|
|
65
84
|
}
|
|
66
85
|
static get is() { return "super-selection-app"; }
|
|
86
|
+
static get encapsulation() { return "shadow"; }
|
|
67
87
|
static get originalStyleUrls() { return {
|
|
68
88
|
"$": ["super-selection-app.scss"]
|
|
69
89
|
}; }
|
|
70
90
|
static get styleUrls() { return {
|
|
71
91
|
"$": ["super-selection-app.css"]
|
|
72
92
|
}; }
|
|
93
|
+
static get assetsDirs() { return ["assets"]; }
|
|
73
94
|
static get properties() { return {
|
|
74
95
|
"accessToken": {
|
|
75
96
|
"type": "string",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-0496d1af.js';
|
|
2
|
-
import './datorama-akita-
|
|
3
|
-
import './
|
|
4
|
-
import { g as globalScripts } from './app-globals-7ac1ffba.js';
|
|
2
|
+
import './datorama-akita-127aea91.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-c1f89805.js';
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
6
|
Stencil Client Patch Browser v2.3.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -17,5 +16,5 @@ const patchBrowser = () => {
|
|
|
17
16
|
|
|
18
17
|
patchBrowser().then(options => {
|
|
19
18
|
globalScripts();
|
|
20
|
-
return bootstrapLazy([["
|
|
19
|
+
return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_28",[[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"showSmsfNotSupported":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page",{"history":[16]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-success"],[0,"sss-promoted-fund-join-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[1,"super-selection-app",{"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-smsf-not-supported-dialog"],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[1],"featureSubText":[1,"feature-sub-text"]}],[0,"sss-dropdown-async",{"placeholder":[1],"searchFunction":[16],"value":[16],"required":[4],"requiredValidationMessage":[1,"required-validation-message"],"disabled":[4],"minSearchStringLength":[2,"min-search-string-length"],"showValidationErrors":[4,"show-validation-errors"],"searchState":[32],"inputValue":[32],"isDropdownVisible":[32],"filteredOptions":[32],"highlightedOptionIndex":[32],"selectedOption":[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-footer-section"],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
|
|
21
20
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as enableAkitaProdMode } from './datorama-akita-
|
|
1
|
+
import { e as enableAkitaProdMode } from './datorama-akita-127aea91.js';
|
|
2
2
|
|
|
3
3
|
// Interim workaround for stencil router accessing session storage.
|
|
4
4
|
// See https://github.com/ionic-team/stencil-router/pull/111/files.
|