@flarehr/apollo-super-selection 4.20.27915 → 4.21.28044

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 (28) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-35538e87.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-a08ef800.entry.js +14 -0
  5. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  6. package/dist/lib/cjs/sss-button_30.cjs.entry.js +74 -137
  7. package/dist/lib/collection/apollo-super-selection.css +1 -1
  8. package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +6 -9
  9. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +1 -3
  10. package/dist/lib/collection/components/super-selection-app/funds/constants.js +37 -99
  11. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v1-iframe-builder.js +3 -3
  12. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/services/promoted-fund-join-v2-iframe-builder.js +3 -3
  13. package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +2 -3
  14. package/dist/lib/collection/components/super-selection-app/services/existing-super-choice-info.service.js +7 -6
  15. package/dist/lib/collection/components/super-selection-app/standard-choice/standard-choice-form.js +12 -4
  16. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-bottom.js +4 -2
  17. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-item/super-choice-item-top.js +1 -2
  18. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +11 -18
  19. package/dist/lib/collection/components/super-selection-app/super-selection-app.js +1 -4
  20. package/dist/lib/esm/sss-button_30.entry.js +74 -137
  21. package/dist/lib/esm-es5/sss-button_30.entry.js +3 -3
  22. package/dist/lib/types/components/super-selection-app/funds/constants.d.ts +17 -8
  23. package/dist/lib/types/components/super-selection-app/standard-choice/standard-choice-form.d.ts +1 -0
  24. package/package.json +1 -1
  25. package/dist/lib/apollo-super-selection/p-13c8f513.system.entry.js +0 -69
  26. package/dist/lib/apollo-super-selection/p-178816b4.entry.js +0 -14
  27. package/dist/lib/collection/components/super-selection-app/services/feature-flag.service.js +0 -5
  28. package/dist/lib/types/components/super-selection-app/services/feature-flag.service.d.ts +0 -3
@@ -1,9 +1,8 @@
1
1
  import { Component, h, Prop, State } from '@stencil/core';
2
2
  import { isSome } from 'fp-ts/Option';
3
- import { getFundNameById, getLogoSrc } from '../funds/constants';
3
+ import { getFundNameByFundId, getLogoSrcByFundId } from '../funds/constants';
4
4
  import { EventTrackingService } from '../services/event-tracking.service';
5
5
  import existingFundService from '../services/existing-super-choice-info.service';
6
- import { FeatureFlagService } from '../services/feature-flag.service';
7
6
  import navigationService from '../services/navigation.service';
8
7
  import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
9
8
  import superSelectionAppService from '../services/super-selection-app.service';
@@ -40,15 +39,15 @@ export class ExistingChoice {
40
39
  this.existingFund = chosenFundOption.value;
41
40
  }
42
41
  else {
43
- navigationService.navigateInternally(this.history, FeatureFlagService.isNewComplianceEnabled()
44
- ? SuperSelectionAppRoutes.ConsentPage
45
- : SuperSelectionAppRoutes.ChoicePage);
42
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
46
43
  }
47
44
  }
48
45
  render() {
49
46
  const PromotedFundView = (props) => {
47
+ const logo = getLogoSrcByFundId(props.id);
48
+ const fundName = getFundNameByFundId(props.id);
50
49
  return (h("div", { class: "flex justify-center" },
51
- h("img", { class: "h-16 object-contain w-full max-w-140", alt: getFundNameById(props.id), src: getLogoSrc(props.id) })));
50
+ h("img", { class: "h-16 object-contain w-full max-w-140", alt: isSome(fundName) ? fundName.value : undefined, src: isSome(logo) ? logo.value : undefined })));
52
51
  };
53
52
  const MyOwnFundView = () => {
54
53
  return (h("div", { class: "flex h-20 justify-center items-center relative" },
@@ -111,9 +110,7 @@ export class ExistingChoice {
111
110
  async handleFundNominationDeclined() {
112
111
  const detail = this.createSuperFundNominationDetail(this.existingFund);
113
112
  await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(detail);
114
- navigationService.navigateInternally(this.history, FeatureFlagService.isNewComplianceEnabled()
115
- ? SuperSelectionAppRoutes.ConsentPage
116
- : SuperSelectionAppRoutes.ChoicePage);
113
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
117
114
  }
118
115
  static get is() { return "sss-existing-choice-page"; }
119
116
  static get properties() { return {
@@ -1,7 +1,6 @@
1
1
  import { Component, h, Prop } from '@stencil/core';
2
2
  import { isSome } from 'fp-ts/lib/Option';
3
3
  import { AppVersion } from '../../../utils';
4
- import { FeatureFlagService } from '../services/feature-flag.service';
5
4
  const DefaultFooterText = 'Powered by Flare';
6
5
  export class FooterSection {
7
6
  constructor() {
@@ -12,8 +11,7 @@ export class FooterSection {
12
11
  h("span", null, this.footerText()),
13
12
  h("p", { class: "block text-transparent" },
14
13
  "v",
15
- AppVersion),
16
- !FeatureFlagService.isNewComplianceEnabled() && (h("p", { class: "mt-4" }, "This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds."))));
14
+ AppVersion)));
17
15
  }
18
16
  static get is() { return "sss-footer-section"; }
19
17
  static get properties() { return {
@@ -8,7 +8,8 @@ export const Slate = {
8
8
  PdsUrl: 'https://slate.co/pds/?utm_source=flare&utm_medium=superselection',
9
9
  Usi: '32367272075001',
10
10
  DiversaAbn: '49 006 421 638',
11
- FooterTextOverride: none
11
+ FooterTextOverride: none,
12
+ DtoPropName: 'slate'
12
13
  };
13
14
  export const AustralianRetirementTrust = {
14
15
  Id: 'australian-retirement-trust',
@@ -16,7 +17,8 @@ export const AustralianRetirementTrust = {
16
17
  Logo: 'logo-art.svg',
17
18
  PdsUrl: 'https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf',
18
19
  Abn: '60 905 115 063',
19
- FooterTextOverride: none
20
+ FooterTextOverride: none,
21
+ DtoPropName: 'australianRetirementTrust'
20
22
  };
21
23
  export const Aware = {
22
24
  Id: 'aware',
@@ -24,7 +26,8 @@ export const Aware = {
24
26
  Logo: 'logo-aware.svg',
25
27
  PdsUrl: 'https://aware.com.au/member/forms-and-resources/pds/FSS',
26
28
  Abn: '53 226 460 365',
27
- FooterTextOverride: none
29
+ FooterTextOverride: none,
30
+ DtoPropName: 'aware'
28
31
  };
29
32
  export const Active = {
30
33
  Id: 'active',
@@ -32,7 +35,8 @@ export const Active = {
32
35
  Logo: 'logo-active.svg',
33
36
  PdsUrl: 'https://www.activesuper.com.au/pds',
34
37
  Abn: '28 901 371 321',
35
- FooterTextOverride: some(PoweredByFlareFS)
38
+ FooterTextOverride: some(PoweredByFlareFS),
39
+ DtoPropName: 'active'
36
40
  };
37
41
  export const AustralianEthical = {
38
42
  Id: 'australian-ethical',
@@ -40,7 +44,8 @@ export const AustralianEthical = {
40
44
  Logo: 'logo-aus-eth.svg',
41
45
  PdsUrl: 'https://www.australianethical.com.au/super/pds-forms/',
42
46
  Abn: '43 079 259 733',
43
- FooterTextOverride: none
47
+ FooterTextOverride: none,
48
+ DtoPropName: 'australianEthical'
44
49
  };
45
50
  export const Virgin = {
46
51
  Id: 'virgin',
@@ -48,7 +53,8 @@ export const Virgin = {
48
53
  Logo: 'logo-virgin.svg',
49
54
  PdsUrl: 'https://virginmoney.com.au/superannuation/',
50
55
  Abn: '19 905 422 981',
51
- FooterTextOverride: some(PoweredByFlareFS)
56
+ FooterTextOverride: some(PoweredByFlareFS),
57
+ DtoPropName: 'virgin'
52
58
  };
53
59
  export const Spirit = {
54
60
  Id: 'spirit',
@@ -56,7 +62,8 @@ export const Spirit = {
56
62
  Logo: 'logo-spirit.svg',
57
63
  PdsUrl: 'https://www.spiritsuper.com.au/pds',
58
64
  Abn: '74 559 365 913',
59
- FooterTextOverride: none
65
+ FooterTextOverride: none,
66
+ DtoPropName: 'spirit'
60
67
  };
61
68
  export const First = {
62
69
  Id: 'first-super',
@@ -64,104 +71,35 @@ export const First = {
64
71
  Logo: 'logo-first.svg',
65
72
  PdsUrl: 'https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/',
66
73
  Abn: '56 286 625 181',
67
- FooterTextOverride: none
74
+ FooterTextOverride: none,
75
+ DtoPropName: 'firstSuper'
68
76
  };
69
77
  export const MercerMyChoice = {
70
78
  Id: 'mercermychoice',
71
79
  Name: 'Mercer MyChoice',
72
80
  Logo: 'logo-mercer-mychoice.svg',
73
- PdsUrl: 'https://www.google.com.au',
74
- TmdUrl: 'https://www.google.com.au',
81
+ PdsUrl: 'https://www.mercersuper.com.au/campaign-page/mercer-mychoice',
82
+ TmdUrl: 'https://www.mercersuper.com.au/documents/target-market-determinations',
75
83
  Abn: '79 004 717 533',
76
- FooterTextOverride: some(PoweredByFlareFS)
84
+ FooterTextOverride: some(PoweredByFlareFS),
85
+ DtoPropName: 'mercerMyChoice'
77
86
  };
78
- export const PromotedFundIdList = [
79
- { dtoPropName: 'slate', id: Slate.Id },
80
- { dtoPropName: 'australianRetirementTrust', id: AustralianRetirementTrust.Id },
81
- { dtoPropName: 'aware', id: Aware.Id },
82
- { dtoPropName: 'active', id: Active.Id },
83
- { dtoPropName: 'australianEthical', id: AustralianEthical.Id },
84
- { dtoPropName: 'virgin', id: Virgin.Id },
85
- { dtoPropName: 'spirit', id: Spirit.Id },
86
- { dtoPropName: 'firstSuper', id: First.Id },
87
- { dtoPropName: 'mercerMyChoice', id: MercerMyChoice.Id }
88
- ];
89
- export const getFundNameById = (id) => {
90
- switch (id) {
91
- case Slate.Id:
92
- return Slate.Name;
93
- case AustralianRetirementTrust.Id:
94
- return AustralianRetirementTrust.Name;
95
- case Aware.Id:
96
- return Aware.Name;
97
- case Active.Id:
98
- return Active.Name;
99
- case AustralianEthical.Id:
100
- return AustralianEthical.Name;
101
- case Virgin.Id:
102
- return Virgin.Name;
103
- case Spirit.Id:
104
- return Spirit.Name;
105
- case First.Id:
106
- return First.Name;
107
- case MercerMyChoice.Id:
108
- return MercerMyChoice.Name;
109
- default:
110
- return;
111
- }
87
+ const fundsById = {
88
+ [Slate.Id]: Slate,
89
+ [AustralianRetirementTrust.Id]: AustralianRetirementTrust,
90
+ [Aware.Id]: Aware,
91
+ [Active.Id]: Active,
92
+ [AustralianEthical.Id]: AustralianEthical,
93
+ [Virgin.Id]: Virgin,
94
+ [Spirit.Id]: Spirit,
95
+ [First.Id]: First,
96
+ [MercerMyChoice.Id]: MercerMyChoice
112
97
  };
113
- export const getFooterTextOverrideByFundId = (id) => { var _a, _b; return (_b = (_a = [
114
- Slate,
115
- AustralianRetirementTrust,
116
- Aware,
117
- Active,
118
- AustralianEthical,
119
- Virgin,
120
- Spirit,
121
- First,
122
- MercerMyChoice
123
- ].find((fund) => fund.Id == id)) === null || _a === void 0 ? void 0 : _a.FooterTextOverride) !== null && _b !== void 0 ? _b : none; };
124
- export const getFundUsiById = (id) => {
125
- switch (id) {
126
- case Slate.Id:
127
- return Slate.Usi;
128
- default:
129
- return; // other promoted funds have dynamic USI
130
- }
131
- };
132
- export const getLogoSrc = (id) => {
133
- let logo = '';
134
- switch (id) {
135
- case Slate.Id:
136
- logo = Slate.Logo;
137
- break;
138
- case AustralianRetirementTrust.Id:
139
- logo = AustralianRetirementTrust.Logo;
140
- break;
141
- case Aware.Id:
142
- logo = Aware.Logo;
143
- break;
144
- case Active.Id:
145
- logo = Active.Logo;
146
- break;
147
- case AustralianEthical.Id:
148
- logo = AustralianEthical.Logo;
149
- break;
150
- case Virgin.Id:
151
- logo = Virgin.Logo;
152
- break;
153
- case Spirit.Id:
154
- logo = Spirit.Logo;
155
- break;
156
- case First.Id:
157
- logo = First.Logo;
158
- break;
159
- case MercerMyChoice.Id:
160
- logo = MercerMyChoice.Logo;
161
- break;
162
- default:
163
- return;
164
- }
165
- if (logo !== '')
166
- return getAssetPath(`assets/${logo}`);
98
+ export const getFundByDtoPropName = (dtoPropName) => {
99
+ const fund = Object.values(fundsById).find((f) => f.DtoPropName == dtoPropName);
100
+ return fund ? some(fund) : none;
167
101
  };
102
+ export const getFundNameByFundId = (fundId) => fundsById[fundId] ? some(fundsById[fundId].Name) : none;
103
+ export const getFooterTextOverrideByFundId = (fundId) => { var _a, _b; return (_b = (_a = fundsById[fundId]) === null || _a === void 0 ? void 0 : _a.FooterTextOverride) !== null && _b !== void 0 ? _b : none; };
104
+ export const getFundUsiByFundId = (fundId) => fundId == Slate.Id ? some(Slate.Usi) : none;
105
+ export const getLogoSrcByFundId = (fundId) => fundsById[fundId] ? some(getAssetPath(`assets/${fundsById[fundId].Logo}`)) : none;
@@ -3,7 +3,7 @@ import iframeUtil from '../../../../../utils/iframe';
3
3
  import navigationService from '../../../services/navigation.service';
4
4
  import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
5
5
  import superSelectionAppService from '../../../services/super-selection-app.service';
6
- import { getFundNameById } from '../../constants';
6
+ import { getFundNameByFundId } from '../../constants';
7
7
  import promotedFundChoiceApi from '../api/promoted-fund-choice.api';
8
8
  import promotedFundState from '../promoted-fund.store';
9
9
  import { reset as resetPromotedFundState } from '../promoted-fund.store';
@@ -24,7 +24,6 @@ class PromotedFundJoinV1IFrameBuilder {
24
24
  return;
25
25
  const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: promotedFundState.fundId, authToken: superSelectionAppService.jwt });
26
26
  const handleMessage = (event) => {
27
- var _a;
28
27
  const { data } = event;
29
28
  if (!data) {
30
29
  return;
@@ -38,9 +37,10 @@ class PromotedFundJoinV1IFrameBuilder {
38
37
  case 'success':
39
38
  if (data.memberNumber) {
40
39
  const promotedFundId = promotedFundState.fundId;
40
+ const fundName = getFundNameByFundId(promotedFundId);
41
41
  navigationService.navigateInternallyToStandardChoice({
42
42
  history,
43
- fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
43
+ fundName: O.isSome(fundName) ? fundName.value : '',
44
44
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
45
45
  fundId: promotedFundId,
46
46
  memberNumber: data.memberNumber,
@@ -3,7 +3,7 @@ import iframeUtil from '../../../../../utils/iframe';
3
3
  import navigationService from '../../../services/navigation.service';
4
4
  import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
5
5
  import superSelectionAppService from '../../../services/super-selection-app.service';
6
- import { getFundNameById } from '../../constants';
6
+ import { getFundNameByFundId } from '../../constants';
7
7
  import promotedFundChoiceApi from '../api/promoted-fund-choice.api';
8
8
  import promotedFundState from '../promoted-fund.store';
9
9
  import { reset as resetPromotedFundState } from '../promoted-fund.store';
@@ -30,7 +30,6 @@ class PromotedFundJoinV2IFrameBuilder {
30
30
  return;
31
31
  const postData = Object.assign(Object.assign({}, this.getMemberData()), { partnerId: superSelectionAppService.partnerIdOrDefault, accountId: superSelectionAppService.accountIdOrDefault, fundId: promotedFundState.fundId, authToken: superSelectionAppService.jwt });
32
32
  const handleMessage = (event) => {
33
- var _a;
34
33
  const { data } = event;
35
34
  if (!data) {
36
35
  return;
@@ -44,9 +43,10 @@ class PromotedFundJoinV2IFrameBuilder {
44
43
  case 'success':
45
44
  if (data.memberNumber) {
46
45
  const promotedFundId = promotedFundState.fundId;
46
+ const fundName = getFundNameByFundId(promotedFundId);
47
47
  navigationService.navigateInternallyToStandardChoice({
48
48
  history,
49
- fundName: (_a = getFundNameById(promotedFundId)) !== null && _a !== void 0 ? _a : '',
49
+ fundName: O.isSome(fundName) ? fundName.value : '',
50
50
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitChoiceAsync({
51
51
  fundId: promotedFundId,
52
52
  memberNumber: data.memberNumber,
@@ -1,5 +1,4 @@
1
1
  import { Component, Fragment, h, Prop } from '@stencil/core';
2
- import { FeatureFlagService } from '../services/feature-flag.service';
3
2
  import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
4
3
  function renderChooseAnotherFundLink() {
5
4
  function buildRouteLink(route) {
@@ -20,11 +19,11 @@ export class HeaderSection {
20
19
  return (h("div", { class: "flex justify-center" },
21
20
  h("div", { class: "text-center max-w-800" },
22
21
  h("h3", { class: "font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl" }, "Nominate a super fund"),
23
- FeatureFlagService.isNewComplianceEnabled() && (h(Fragment, null,
22
+ h(Fragment, null,
24
23
  h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" }, "You can choose any super fund, including your current fund/SMSF, your employer\u2019s default fund, or alternatively, you can select from one of the featured\u00A0funds."),
25
24
  h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" },
26
25
  h("stencil-route-link", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, anchorClass: "hover:bg-primary-hover block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus relative focus:z-10 border border-transparent text-gray-700 text-white rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full", activeClass: "hover:bg-white block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full bg-white border-gray-200 text-gray-900 shadow-sm text-primary-base" }, "Featured super funds"),
27
- renderChooseAnotherFundLink()))))));
26
+ renderChooseAnotherFundLink())))));
28
27
  }
29
28
  static get is() { return "sss-header-section"; }
30
29
  static get properties() { return {
@@ -1,4 +1,4 @@
1
- import { isSome, none, some } from 'fp-ts/Option';
1
+ import { isNone, isSome, none, some } from 'fp-ts/Option';
2
2
  import { buildBackendApiClient } from '../api/api-client';
3
3
  import { getSuperChoiceMemberNumber, getSuperChoiceUsi } from '../api/super-selection.api.dto';
4
4
  import * as constants from '../funds/constants';
@@ -14,7 +14,7 @@ export function ExistingFund(fund) {
14
14
  }
15
15
  export class ExistingFundService {
16
16
  async GetExistingFundAsync() {
17
- var _a, _b;
17
+ var _a;
18
18
  const choice = superSelectionAppService.superBuyer.superChoice;
19
19
  const choiceDetails = (_a = superSelectionAppService.superBuyer.superChoice) === null || _a === void 0 ? void 0 : _a.choiceDetails;
20
20
  if (!choice)
@@ -25,13 +25,14 @@ export class ExistingFundService {
25
25
  const usi = getSuperChoiceUsi(choiceDetails);
26
26
  const memberNumber = getSuperChoiceMemberNumber(choiceDetails);
27
27
  if ('promoted' in choiceDetails) {
28
- const fund = constants.PromotedFundIdList.find((f) => f.dtoPropName in choiceDetails.promoted);
29
- if ((fund === null || fund === void 0 ? void 0 : fund.id) == undefined)
28
+ const dtoPropName = Object.keys(choiceDetails.promoted)[0];
29
+ const fund = constants.getFundByDtoPropName(dtoPropName);
30
+ if (isNone(fund))
30
31
  return none;
31
32
  return some({
32
33
  type: 'Promoted Fund',
33
- id: fund.id,
34
- name: (_b = constants.getFundNameById(fund.id)) !== null && _b !== void 0 ? _b : '',
34
+ id: fund.value.Id,
35
+ name: fund.value.Name,
35
36
  usi: usi,
36
37
  valid: 'Active',
37
38
  memberNumber: memberNumber,
@@ -1,5 +1,6 @@
1
1
  import { Component, getAssetPath, h, Host, Prop, State } from '@stencil/core';
2
- import { getLogoSrc } from '../funds/constants';
2
+ import { isSome } from 'fp-ts/lib/Option';
3
+ import { getLogoSrcByFundId } from '../funds/constants';
3
4
  import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
4
5
  import superSelectionAppService from '../services/super-selection-app.service';
5
6
  import standardChoiceFormState from './standard-choice-form.store';
@@ -15,9 +16,7 @@ export class StandardChoiceFormInputDefaultFund {
15
16
  h("div", { class: "flex justify-center mt-8 sm:mt-12" },
16
17
  h("div", { class: "max-w-560" },
17
18
  h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" },
18
- standardChoiceFormState.promotedFundId &&
19
- getLogoSrc(standardChoiceFormState.promotedFundId) && (h("div", { class: "pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start" },
20
- h("img", { class: "h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain", alt: standardChoiceFormState.fundName, src: getLogoSrc(standardChoiceFormState.promotedFundId) }))),
19
+ this.renderLogo(),
21
20
  h("div", { class: "flex justify-between w-full" },
22
21
  h("div", null,
23
22
  h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"),
@@ -46,6 +45,15 @@ export class StandardChoiceFormInputDefaultFund {
46
45
  h("div", { class: "mt-6" },
47
46
  h("sss-button", { fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Confirm and continue"))))))));
48
47
  }
48
+ renderLogo() {
49
+ if (standardChoiceFormState.promotedFundId == undefined)
50
+ return;
51
+ const logoSource = getLogoSrcByFundId(standardChoiceFormState.promotedFundId);
52
+ if (isSome(logoSource)) {
53
+ return (h("div", { class: "pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start" },
54
+ h("img", { class: "h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain", alt: standardChoiceFormState.fundName, src: logoSource.value })));
55
+ }
56
+ }
49
57
  async handleSubmitForm() {
50
58
  this.formState = 'validated';
51
59
  if (this.formElement.checkValidity()) {
@@ -1,5 +1,4 @@
1
1
  import { Component, Event, h, Host, Prop } from '@stencil/core';
2
- import { FeatureFlagService } from '../../services/feature-flag.service';
3
2
  export class SuperChoiceItemBottom {
4
3
  render() {
5
4
  return (h(Host, null,
@@ -9,7 +8,10 @@ export class SuperChoiceItemBottom {
9
8
  h("sss-button", { class: "uuid-button-continue", fillWidth: true, onClick: () => this.handleFundClick() }, "Choose this fund")),
10
9
  h("div", { class: "text-xs text-gray-500 mt-6 leading-4" }, this.disclaimer)),
11
10
  this.abnInfo && this.abn && (h("div", { class: "text-xs text-gray-500 mt-2" },
12
- h("p", null, `${FeatureFlagService.isNewComplianceEnabled() ? 'Issued by ' : ''}${this.abnInfo}.`),
11
+ h("p", null,
12
+ "Issued by ",
13
+ this.abnInfo,
14
+ "."),
13
15
  h("p", null,
14
16
  "ABN: ",
15
17
  this.abn))))));
@@ -1,11 +1,10 @@
1
1
  import { Component, getAssetPath, h, Host, Prop } from '@stencil/core';
2
- import { FeatureFlagService } from '../../services/feature-flag.service';
3
2
  export class SuperChoiceItemTop {
4
3
  render() {
5
4
  return (h(Host, null,
6
5
  h("div", { class: "px-4 lg:px-6 pt-6" },
7
6
  h("div", { class: "text-right w-100 -mt-5 -mr-3.5 lg:-mr-5" },
8
- h("span", { class: "text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5" }, FeatureFlagService.isNewComplianceEnabled() ? 'Featured' : 'Advertised')),
7
+ h("span", { class: "text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5" }, "Featured")),
9
8
  h("div", { class: "flex lg:block mt-2 md:mt-0 lg:mt-4" },
10
9
  h("img", { class: "h-12 md:h-14 lg:h-16 object-contain w-auto w-[80px] md:w-[96px] lg:w-[140px] md:hidden lg:block lg:object-left", alt: this.name, src: getAssetPath(`assets/${this.logo}`) }),
11
10
  h("div", { class: "grid content-center" },
@@ -3,7 +3,6 @@ import * as O from 'fp-ts/lib/Option';
3
3
  import * as constants from '../funds/constants';
4
4
  import promotedFundState from '../funds/promoted-fund/promoted-fund.store';
5
5
  import { EventTrackingService } from '../services/event-tracking.service';
6
- import { FeatureFlagService } from '../services/feature-flag.service';
7
6
  import navigationService from '../services/navigation.service';
8
7
  import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
9
8
  import SuperSelectionAppService from '../services/super-selection-app.service';
@@ -27,20 +26,13 @@ export class SuperChoicePage {
27
26
  return (h(Host, null,
28
27
  h("div", null,
29
28
  h("sss-header-section", { currentPage: "choice" }),
30
- FeatureFlagService.isNewComplianceEnabled() && (h("div", { class: "mt-8 text-sm text-center leading-6" },
29
+ h("div", { class: "mt-8 text-sm text-center leading-6" },
31
30
  h("p", { class: "leading-6" }, "Not ready to join a new fund, or want to nominate another super fund?"),
32
31
  h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
33
32
  h("span", { class: "inline-block text-primary-base font-medium mt-3" },
34
33
  "Skip Featured Funds\u00A0",
35
34
  h("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "stroke-width": "1.5", stroke: "currentColor", class: "inline h-5 w-5 fill-primary-base group-hover:fill-white" },
36
- h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" })))))),
37
- !FeatureFlagService.isNewComplianceEnabled() && (h("div", { class: "flex justify-center pb-4" },
38
- h("div", { class: "text-center space-y-4 max-w-960 text-sm leading-6" },
39
- 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."),
40
- 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."),
41
- 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."),
42
- 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."),
43
- 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.")))),
35
+ h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", d: "M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3" }))))),
44
36
  h("div", { class: "flex justify-center mt-8" },
45
37
  h("div", { class: {
46
38
  'lg:grid border-l border-t lg:border-b rounded-lg': true,
@@ -84,7 +76,7 @@ export class SuperChoicePage {
84
76
  h("a", { class: "text-primary-base font-medium hover:text-primary-hover", target: "_blank", href: navigationService.toExternalUrl(superfundsLink) }, superfundsLinkDisplay))),
85
77
  h("stencil-route-link", { url: SuperSelectionAppRoutes.MyOwnFund },
86
78
  h("sss-button", { fillWidthOnMobile: true }, "Choose another super fund")))),
87
- FeatureFlagService.isNewComplianceEnabled() && (h("div", { class: "flex justify-center" },
79
+ h("div", { class: "flex justify-center" },
88
80
  h("div", { class: "pt-8 sm:pt-12 max-w-720" },
89
81
  h("h5", { class: "font-semibold" }, "IMPORTANT INFORMATION:"),
90
82
  h("ul", { class: "list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6" },
@@ -92,7 +84,7 @@ export class SuperChoicePage {
92
84
  h("li", null, "This is not a comparison service. This page contains factual information only and does not constitute either general or personal advice about any financial products. We do not take into account your objectives, financial situation or needs. If you have questions or need help making a decision about your superannuation fund, you should speak to a licensed financial product advice provider."),
93
85
  h("li", null, "Flare, the technology partner you are accessing Flare via and your employer do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the featured superannuation funds. Flare does not endorse or accept responsibility for any of the content shown about any of the featured superannuation funds."),
94
86
  h("li", null, "You should consider the relevant superannuation fund\u2019s PDS and TMD (if applicable) in deciding whether to apply to join the superannuation fund. Each of the superannuation funds featured above include a link to their PDS and TMD (if applicable) for your convenience. If you are considering joining another superannuation fund, you can typically find the PDS and TMD (if applicable) on that fund\u2019s website."),
95
- h("li", null, "You should be aware that, if you do choose one of the featured superannuation funds, Flare and it\u2019s associates will normally receive a fee for you doing so (this includes Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, which is a sub-promoter of Slate Super)."))))))));
87
+ h("li", null, "You should be aware that, if you do choose one of the featured superannuation funds, Flare and it\u2019s associates will normally receive a fee for you doing so (this includes Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, which is a sub-promoter of Slate Super).")))))));
96
88
  }
97
89
  allFunds() {
98
90
  const Link = (props, children) => {
@@ -315,14 +307,14 @@ export class SuperChoicePage {
315
307
  ' ',
316
308
  h(Link, { href: constants.MercerMyChoice.PdsUrl, onClick: () => this.pdsViewedAsync(constants.MercerMyChoice.Name) }, "Product Disclosure Statement"),
317
309
  ' ',
318
- "and",
319
- ' ',
310
+ "and ",
320
311
  h(Link, { href: constants.MercerMyChoice.TmdUrl }, "Target Market Determination"),
321
312
  ' ',
322
313
  "before deciding to invest in or apply to become a member of the fund."),
323
314
  h("br", null),
324
315
  h("p", null,
325
- "Issued by Mercer Superannuation (Australia) Limited (\u2018Mercer Super\u2019) ABN: ",
316
+ "Issued by Mercer Superannuation (Australia) Limited (\u2018Mercer Super\u2019) ABN:",
317
+ ' ',
326
318
  constants.MercerMyChoice.Abn)))
327
319
  }
328
320
  ];
@@ -338,11 +330,12 @@ export class SuperChoicePage {
338
330
  return fundTiles;
339
331
  }
340
332
  async handleJoinSuperClickAsync(fund) {
341
- var _a;
342
333
  const promotedFundsShown = SuperSelectionAppService.promotedFunds;
334
+ const fundUsi = constants.getFundUsiByFundId(fund.fundId);
335
+ const fundName = constants.getFundNameByFundId(fund.fundId);
343
336
  await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
344
- fundUsi: constants.getFundUsiById(fund.fundId),
345
- fundName: (_a = constants.getFundNameById(fund.fundId)) !== null && _a !== void 0 ? _a : '',
337
+ fundUsi: O.isSome(fundUsi) ? fundUsi.value : undefined,
338
+ fundName: O.isSome(fundName) ? fundName.value : '',
346
339
  promotedFundId: fund.fundId,
347
340
  promotedFundsShown,
348
341
  defaultFundUsiSet: O.toUndefined(SuperSelectionAppService.defaultFundUsi)
@@ -6,7 +6,6 @@ import iframe from '../../utils/iframe';
6
6
  import * as constants from './funds/constants';
7
7
  import promotedFundState from './funds/promoted-fund/promoted-fund.store';
8
8
  import existingFundService from './services/existing-super-choice-info.service';
9
- import { FeatureFlagService } from './services/feature-flag.service';
10
9
  import navigationService from './services/navigation.service';
11
10
  import { SuperSelectionAppRoutes, superSelectionAppStencilRoutes } from './services/super-selection-app.routes';
12
11
  import superSelectionAppService from './services/super-selection-app.service';
@@ -60,9 +59,7 @@ export class SuperSelectionApp {
60
59
  navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ExistingChoicePage);
61
60
  }
62
61
  else {
63
- navigationService.navigateInternally(this.history, FeatureFlagService.isNewComplianceEnabled()
64
- ? SuperSelectionAppRoutes.ConsentPage
65
- : SuperSelectionAppRoutes.ChoicePage);
62
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
66
63
  }
67
64
  }
68
65
  authTokenChanged(newValue) {