@flarehr/apollo-super-selection 1.3.19477 → 1.3.19524

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 (50) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/{p-8098729b.entry.js → p-08934a77.entry.js} +4 -4
  3. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
  4. package/dist/lib/apollo-super-selection/p-4fb35dcb.system.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-65aa4f8a.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/{p-36452ed1.system.entry.js → p-7f918e54.system.entry.js} +7 -7
  7. package/dist/lib/apollo-super-selection/{p-c00d428d.system.entry.js → p-a0063575.system.entry.js} +1 -1
  8. package/dist/lib/apollo-super-selection/{p-613cd290.entry.js → p-b00f648b.entry.js} +1 -1
  9. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  10. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
  11. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  12. package/dist/lib/cjs/{custom-fund-choice.api-0545c774.js → custom-fund-choice.api-293c1ace.js} +17 -0
  13. package/dist/lib/cjs/loader.cjs.js +1 -1
  14. package/dist/lib/cjs/sss-button_31.cjs.entry.js +27 -4
  15. package/dist/lib/cjs/sss-smsf-engagement-step-host.cjs.entry.js +123 -0
  16. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +1 -1
  17. package/dist/lib/collection/collection-manifest.json +1 -0
  18. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +158 -0
  19. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
  20. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
  21. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -0
  22. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  23. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
  24. package/dist/lib/collection/components/super-smsf/super-smsf.js +26 -2
  25. package/dist/lib/esm/apollo-super-selection.js +1 -1
  26. package/dist/lib/esm/{custom-fund-choice.api-1d1d018f.js → custom-fund-choice.api-42801d64.js} +17 -0
  27. package/dist/lib/esm/loader.js +1 -1
  28. package/dist/lib/esm/sss-button_31.entry.js +27 -4
  29. package/dist/lib/esm/sss-smsf-engagement-step-host.entry.js +119 -0
  30. package/dist/lib/esm/sss-super-byof-host.entry.js +1 -1
  31. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  32. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
  33. package/dist/lib/esm-es5/loader.js +1 -1
  34. package/dist/lib/esm-es5/sss-button_31.entry.js +2 -2
  35. package/dist/lib/esm-es5/sss-smsf-engagement-step-host.entry.js +1 -0
  36. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  37. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +8 -0
  38. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  39. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +26 -0
  40. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
  41. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
  42. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
  43. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  44. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  45. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +2 -1
  46. package/dist/lib/types/components.d.ts +15 -0
  47. package/package.json +2 -2
  48. package/dist/lib/apollo-super-selection/p-026415b5.js +0 -1
  49. package/dist/lib/apollo-super-selection/p-9c959cc0.system.js +0 -1
  50. package/dist/lib/esm-es5/custom-fund-choice.api-1d1d018f.js +0 -1
@@ -0,0 +1,158 @@
1
+ import { Component, h, Host, Prop, State } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import { isSome } from 'fp-ts/lib/Option';
4
+ import { EventTrackingService } from '../../../services/event-tracking.service';
5
+ import navigationService from '../../../services/navigation.service';
6
+ import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
7
+ import superSelectionAppService from '../../../services/super-selection-app.service';
8
+ import customFundChoiceApi from '../api/custom-fund-choice.api';
9
+ import customFundState from '../custom-fund.store';
10
+ export class SmsfEngagementStep {
11
+ constructor() {
12
+ this.allFormFieldsAreFilled = (selfManagedFundForm) => {
13
+ return (selfManagedFundForm.fundName != null &&
14
+ selfManagedFundForm.fundAbn != null &&
15
+ selfManagedFundForm.fundEsa != null &&
16
+ selfManagedFundForm.addressLine1 != null &&
17
+ selfManagedFundForm.addressLine2 != null &&
18
+ selfManagedFundForm.city != null &&
19
+ selfManagedFundForm.state != null &&
20
+ selfManagedFundForm.postcode != null &&
21
+ selfManagedFundForm.bsb != null &&
22
+ selfManagedFundForm.bankAccountName != null &&
23
+ selfManagedFundForm.bankAccountNumber != null &&
24
+ selfManagedFundForm.memberFirstName != null &&
25
+ selfManagedFundForm.memberFamilyName != null);
26
+ };
27
+ this.stepContinued = async (event) => {
28
+ if (event.detail.sender == 'smsf-engagement') {
29
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
30
+ this.navigateToStandardChoice();
31
+ }
32
+ };
33
+ this.subscribeToStepEvents = () => {
34
+ for (const eventName in this.stepEventHandlers) {
35
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
36
+ }
37
+ };
38
+ this.unSubscribeFromStepEvents = () => {
39
+ for (const eventName in this.stepEventHandlers) {
40
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
41
+ }
42
+ };
43
+ this.stepEventHandlers = {
44
+ continue: this.stepContinued.bind(this)
45
+ };
46
+ }
47
+ async componentWillLoad() {
48
+ if (superSelectionAppService.isSmsfCustomStepEnabled &&
49
+ superSelectionAppService.isUsingSuperCampaign &&
50
+ this.allFormFieldsAreFilled(customFundState.selfManagedFundForm) &&
51
+ isSome(superSelectionAppService.backendUrl) &&
52
+ isSome(superSelectionAppService.state.jwt)) {
53
+ this.backendUrl = superSelectionAppService.backendUrl.value;
54
+ this.accessToken = superSelectionAppService.state.jwt.value;
55
+ this.initialiseFormState(customFundState.selfManagedFundForm);
56
+ this.unSubscribeFromStepEvents();
57
+ this.subscribeToStepEvents();
58
+ superSelectionAppService.hideFooterSection = true;
59
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
60
+ }
61
+ else {
62
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SelfManagedFund);
63
+ }
64
+ }
65
+ disconnectedCallback() {
66
+ this.unSubscribeFromStepEvents();
67
+ superSelectionAppService.hideFooterSection = false;
68
+ }
69
+ render() {
70
+ return (h(Host, null,
71
+ h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
72
+ }
73
+ navigateToStandardChoice() {
74
+ navigationService.navigateInternallyToStandardChoice({
75
+ history: this.history,
76
+ fundName: 'Self-managed super fund',
77
+ fundDetails: {
78
+ type: 'smsf',
79
+ fundName: this.fundName,
80
+ fundEsa: this.fundEsa
81
+ },
82
+ handleSubmitFn: async (standardChoiceFormSignature) => {
83
+ const requestDto = Object.assign({ smsfChoice: {
84
+ abn: this.fundAbn,
85
+ fundName: this.fundName,
86
+ fundAddress: {
87
+ addressLine1: this.fundAddress.addressLine1,
88
+ addressLine2: this.fundAddress.addressLine2,
89
+ city: this.fundAddress.city,
90
+ state: this.fundAddress.state,
91
+ postcode: this.fundAddress.postcode
92
+ },
93
+ bsb: this.bsb,
94
+ bankAccountName: this.bankAccountName,
95
+ bankAccountNumber: this.bankAccountNumber,
96
+ electronicServiceAddress: this.fundEsa,
97
+ memberFirstName: this.memberFirstName,
98
+ memberFamilyName: this.memberFamilyName
99
+ }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
100
+ await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
101
+ }
102
+ });
103
+ }
104
+ initialiseFormState(selfManagedFundForm) {
105
+ this.fundName = selfManagedFundForm.fundName;
106
+ this.fundAbn = selfManagedFundForm.fundAbn;
107
+ this.fundEsa = selfManagedFundForm.fundEsa;
108
+ this.fundAddress = {
109
+ addressLine1: selfManagedFundForm.addressLine1,
110
+ addressLine2: selfManagedFundForm.addressLine2,
111
+ city: selfManagedFundForm.city,
112
+ state: selfManagedFundForm.state,
113
+ postcode: selfManagedFundForm.postcode
114
+ };
115
+ this.bsb = selfManagedFundForm.bsb;
116
+ this.bankAccountName = selfManagedFundForm.bankAccountName;
117
+ this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
118
+ this.memberFirstName = selfManagedFundForm.memberFirstName;
119
+ this.memberFamilyName = selfManagedFundForm.memberFamilyName;
120
+ }
121
+ static get is() { return "sss-smsf-engagement-step-host"; }
122
+ static get properties() { return {
123
+ "history": {
124
+ "type": "unknown",
125
+ "mutable": false,
126
+ "complexType": {
127
+ "original": "RouterHistory",
128
+ "resolved": "RouterHistory",
129
+ "references": {
130
+ "RouterHistory": {
131
+ "location": "import",
132
+ "path": "@stencil/router"
133
+ }
134
+ }
135
+ },
136
+ "required": false,
137
+ "optional": false,
138
+ "docs": {
139
+ "tags": [],
140
+ "text": ""
141
+ }
142
+ }
143
+ }; }
144
+ static get states() { return {
145
+ "backendUrl": {},
146
+ "accessToken": {},
147
+ "fundName": {},
148
+ "fundAbn": {},
149
+ "fundEsa": {},
150
+ "fundAddress": {},
151
+ "bsb": {},
152
+ "bankAccountName": {},
153
+ "bankAccountNumber": {},
154
+ "memberFirstName": {},
155
+ "memberFamilyName": {}
156
+ }; }
157
+ }
158
+ injectHistory(SmsfEngagementStep);
@@ -96,6 +96,16 @@ export class EventTrackingService {
96
96
  SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
97
97
  });
98
98
  }
99
+ async TrackSuperSmsfEngagementStepActivationSucceeded() {
100
+ return this.trackEventAsync({
101
+ SuperSmsfEngagementStepActivationSucceeded: {}
102
+ });
103
+ }
104
+ async TrackSuperSmsfEngagementStepContinued(reason) {
105
+ return this.trackEventAsync({
106
+ SuperSmsfEngagementStepContinued: { reason }
107
+ });
108
+ }
99
109
  async trackEventAsync(event) {
100
110
  try {
101
111
  await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
@@ -6,6 +6,7 @@ export var SuperSelectionAppRoutes;
6
6
  SuperSelectionAppRoutes["ChoicePage"] = "/";
7
7
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
8
8
  SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
9
+ SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
9
10
  SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
10
11
  SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
11
12
  SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
@@ -23,6 +24,7 @@ export const superSelectionAppStencilRoutes = [
23
24
  h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
24
25
  h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
25
26
  h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
27
+ h("stencil-route", { url: SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
26
28
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
27
29
  h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
28
30
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
@@ -101,6 +101,7 @@ export class SuperSelectionAppService {
101
101
  this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
102
102
  this._state.bringYourOwnFundCustomStepEnabled =
103
103
  appStateResponse.bringYourOwnFundCustomStepEnabled;
104
+ this._state.smsfCustomStepEnabled = appStateResponse.smsfCustomStepEnabled;
104
105
  this._state.featuredFundsEnabled = appStateResponse.featuredFundsEnabled;
105
106
  this._state.superChoicePrefill = O.fromNullable(appStateResponse.prefill);
106
107
  this._state.isDefinedBenefitsEligible = O.fromNullable(appStateResponse.isDefinedBenefitsEligible);
@@ -143,6 +144,9 @@ export class SuperSelectionAppService {
143
144
  get isBringYourOwnFundCustomStepEnabled() {
144
145
  return this.state.bringYourOwnFundCustomStepEnabled;
145
146
  }
147
+ get isSmsfCustomStepEnabled() {
148
+ return this.state.smsfCustomStepEnabled;
149
+ }
146
150
  get isFeaturedFundsEnabled() {
147
151
  return this.state.featuredFundsEnabled;
148
152
  }
@@ -40,5 +40,6 @@ export const initialState = {
40
40
  superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded,
41
41
  hideFooterSection: false,
42
42
  bringYourOwnFundCustomStepEnabled: false,
43
+ smsfCustomStepEnabled: false,
43
44
  featuredFundsEnabled: false
44
45
  };
@@ -2,6 +2,7 @@ import { Component, h, Host, Prop, State } from '@stencil/core';
2
2
  import { injectHistory } from '@stencil/router';
3
3
  import { isSome, toUndefined } from 'fp-ts/lib/Option';
4
4
  import customFundChoiceApi from '../super-selection-app/funds/custom-fund/api/custom-fund-choice.api';
5
+ import customFundState from '../super-selection-app/funds/custom-fund/custom-fund.store';
5
6
  import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
6
7
  import navigationService from '../super-selection-app/services/navigation.service';
7
8
  import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
@@ -30,7 +31,7 @@ export class SuperSmsfHost {
30
31
  if (event.detail.sender === 'super-smsf') {
31
32
  superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
32
33
  clearTimeout(this.loadingTimeoutRef);
33
- this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
34
+ await this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
34
35
  promotedFundsShown: superSelectionAppService.promotedFunds,
35
36
  defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
36
37
  });
@@ -39,6 +40,12 @@ export class SuperSmsfHost {
39
40
  };
40
41
  this.smsfCompleted = async (event) => {
41
42
  if (event.detail.sender === 'super-smsf') {
43
+ this.updateCustomFundStateStore(event.detail);
44
+ if (superSelectionAppService.isSmsfCustomStepEnabled &&
45
+ superSelectionAppService.isUsingSuperCampaign) {
46
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SmsfEngagementStep);
47
+ return;
48
+ }
42
49
  navigationService.navigateInternallyToStandardChoice({
43
50
  history: this.history,
44
51
  fundName: 'Self-managed super fund',
@@ -72,7 +79,7 @@ export class SuperSmsfHost {
72
79
  };
73
80
  this.smsfCancelled = async (event) => {
74
81
  if (event.detail.sender === 'super-smsf') {
75
- await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
82
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
76
83
  }
77
84
  };
78
85
  this.smsfEventHandlers = {
@@ -106,6 +113,23 @@ export class SuperSmsfHost {
106
113
  h("div", null,
107
114
  h("apollo-super-smsf", { "backend-url": this.backendUrl, "access-token": this.accessToken }))))));
108
115
  }
116
+ updateCustomFundStateStore(details) {
117
+ customFundState.selfManagedFundForm = {
118
+ fundAbn: details.fundAbn,
119
+ fundName: details.fundName,
120
+ addressLine1: details.fundAddressLine1,
121
+ addressLine2: details.fundAddressLine2,
122
+ city: details.fundCity,
123
+ state: details.fundState,
124
+ postcode: details.fundPostcode,
125
+ bsb: details.bankBsb,
126
+ bankAccountName: details.bankAccountName,
127
+ bankAccountNumber: details.bankAccountNumber,
128
+ fundEsa: details.fundEsa,
129
+ memberFirstName: details.memberFirstName,
130
+ memberFamilyName: details.memberLastName
131
+ };
132
+ }
109
133
  async smsfLoadingTimeoutTriggered() {
110
134
  if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
111
135
  throw Error(`SMSF component failed to load.`);
@@ -16,5 +16,5 @@ const patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(options => {
18
18
  globalScripts();
19
- return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["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_31",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"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-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[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);
19
+ return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["sss-smsf-engagement-step-host",[[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}]]],["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_31",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"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-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[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);
20
20
  });
@@ -319,6 +319,7 @@ var SuperSelectionAppRoutes;
319
319
  SuperSelectionAppRoutes["ChoicePage"] = "/";
320
320
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
321
321
  SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
322
+ SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
322
323
  SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
323
324
  SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
324
325
  SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
@@ -336,6 +337,7 @@ const superSelectionAppStencilRoutes = [
336
337
  h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
337
338
  h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
338
339
  h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
340
+ h("stencil-route", { url: SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
339
341
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
340
342
  h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
341
343
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
@@ -2776,6 +2778,7 @@ const initialState = {
2776
2778
  superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded,
2777
2779
  hideFooterSection: false,
2778
2780
  bringYourOwnFundCustomStepEnabled: false,
2781
+ smsfCustomStepEnabled: false,
2779
2782
  featuredFundsEnabled: false
2780
2783
  };
2781
2784
 
@@ -2876,6 +2879,7 @@ class SuperSelectionAppService {
2876
2879
  this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
2877
2880
  this._state.bringYourOwnFundCustomStepEnabled =
2878
2881
  appStateResponse.bringYourOwnFundCustomStepEnabled;
2882
+ this._state.smsfCustomStepEnabled = appStateResponse.smsfCustomStepEnabled;
2879
2883
  this._state.featuredFundsEnabled = appStateResponse.featuredFundsEnabled;
2880
2884
  this._state.superChoicePrefill = Option.fromNullable(appStateResponse.prefill);
2881
2885
  this._state.isDefinedBenefitsEligible = Option.fromNullable(appStateResponse.isDefinedBenefitsEligible);
@@ -2918,6 +2922,9 @@ class SuperSelectionAppService {
2918
2922
  get isBringYourOwnFundCustomStepEnabled() {
2919
2923
  return this.state.bringYourOwnFundCustomStepEnabled;
2920
2924
  }
2925
+ get isSmsfCustomStepEnabled() {
2926
+ return this.state.smsfCustomStepEnabled;
2927
+ }
2921
2928
  get isFeaturedFundsEnabled() {
2922
2929
  return this.state.featuredFundsEnabled;
2923
2930
  }
@@ -3108,6 +3115,16 @@ class EventTrackingService {
3108
3115
  SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
3109
3116
  });
3110
3117
  }
3118
+ async TrackSuperSmsfEngagementStepActivationSucceeded() {
3119
+ return this.trackEventAsync({
3120
+ SuperSmsfEngagementStepActivationSucceeded: {}
3121
+ });
3122
+ }
3123
+ async TrackSuperSmsfEngagementStepContinued(reason) {
3124
+ return this.trackEventAsync({
3125
+ SuperSmsfEngagementStepContinued: { reason }
3126
+ });
3127
+ }
3111
3128
  async trackEventAsync(event) {
3112
3129
  try {
3113
3130
  await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
@@ -13,7 +13,7 @@ const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return Promise.resolve();
14
14
  return patchEsm().then(() => {
15
15
  globalScripts();
16
- return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["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_31",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"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-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[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);
16
+ return bootstrapLazy([["sss-super-byof-host",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["sss-smsf-engagement-step-host",[[0,"sss-smsf-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddress":[32],"bsb":[32],"bankAccountName":[32],"bankAccountNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}]]],["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_31",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-super-smsf-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-dropdown-async",{"testId":[1,"test-id"],"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-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{"textOverride":[1,"text-override"]}],[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]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[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);
17
17
  });
18
18
  };
19
19
 
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, F as Fragment, g as getAssetPath, H as Host, c as createEvent, s as setErrorHandler, a as getElement, d as getContext } from './index-107d7c24.js';
2
2
  import { f as from, m as map, S as SimpleOuterSubscriber, a as SimpleInnerSubscriber, i as innerSubscribe, b as isArray, O as Observable, c as isFunction, d as async, g as Subscriber, h as distinctUntilChanged, j as filter, k as StoreConfig, l as Store, Q as Query } from './datorama-akita-127aea91.js';
3
- import { n as none, i as isSome, s as some, a as superSelectionAppService, b as navigationService, S as SuperSelectionAppRoutes, c as injectHistory, C as CustomFundTypes, d as superSelectionApi, O as Option, E as EventTrackingService, e as customFundChoiceApi, f as isNone, g as getPromotedFundId, h as buildBackendApiClient, j as getSuperChoiceUsi, k as getSuperChoiceMemberNumber, l as state, m as state$1, t as toUndefined, o as slate, p as SuperCampaignComponentStatus, q as iframe, r as superSelectionAppStencilRoutes, u as factory, v as fromNullable } from './custom-fund-choice.api-1d1d018f.js';
3
+ import { n as none, i as isSome, s as some, a as superSelectionAppService, b as navigationService, S as SuperSelectionAppRoutes, c as injectHistory, C as CustomFundTypes, d as superSelectionApi, O as Option, E as EventTrackingService, e as customFundChoiceApi, f as isNone, g as getPromotedFundId, h as buildBackendApiClient, j as getSuperChoiceUsi, k as getSuperChoiceMemberNumber, l as state, m as state$1, t as toUndefined, o as slate, p as SuperCampaignComponentStatus, q as iframe, r as superSelectionAppStencilRoutes, u as factory, v as fromNullable } from './custom-fund-choice.api-42801d64.js';
4
4
  import { A as ActiveRouter } from './active-router-d18b36fb.js';
5
5
 
6
6
  function noop() { }
@@ -261,7 +261,7 @@ class TapSubscriber extends Subscriber {
261
261
  }
262
262
  }
263
263
 
264
- const AppVersion = '1.3.19477';
264
+ const AppVersion = '1.3.19524';
265
265
 
266
266
  class Lazy {
267
267
  constructor(factory) {
@@ -12849,7 +12849,7 @@ const SuperSmsfHost = class {
12849
12849
  if (event.detail.sender === 'super-smsf') {
12850
12850
  superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
12851
12851
  clearTimeout(this.loadingTimeoutRef);
12852
- this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
12852
+ await this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
12853
12853
  promotedFundsShown: superSelectionAppService.promotedFunds,
12854
12854
  defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
12855
12855
  });
@@ -12858,6 +12858,12 @@ const SuperSmsfHost = class {
12858
12858
  };
12859
12859
  this.smsfCompleted = async (event) => {
12860
12860
  if (event.detail.sender === 'super-smsf') {
12861
+ this.updateCustomFundStateStore(event.detail);
12862
+ if (superSelectionAppService.isSmsfCustomStepEnabled &&
12863
+ superSelectionAppService.isUsingSuperCampaign) {
12864
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SmsfEngagementStep);
12865
+ return;
12866
+ }
12861
12867
  navigationService.navigateInternallyToStandardChoice({
12862
12868
  history: this.history,
12863
12869
  fundName: 'Self-managed super fund',
@@ -12891,7 +12897,7 @@ const SuperSmsfHost = class {
12891
12897
  };
12892
12898
  this.smsfCancelled = async (event) => {
12893
12899
  if (event.detail.sender === 'super-smsf') {
12894
- await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
12900
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
12895
12901
  }
12896
12902
  };
12897
12903
  this.smsfEventHandlers = {
@@ -12920,6 +12926,23 @@ const SuperSmsfHost = class {
12920
12926
  render() {
12921
12927
  return (h(Host, null, h("sss-header-section", null), h("div", { class: "flex justify-center mt-11" }, h("sss-custom-fund", null, h("div", null, h("apollo-super-smsf", { "backend-url": this.backendUrl, "access-token": this.accessToken }))))));
12922
12928
  }
12929
+ updateCustomFundStateStore(details) {
12930
+ state.selfManagedFundForm = {
12931
+ fundAbn: details.fundAbn,
12932
+ fundName: details.fundName,
12933
+ addressLine1: details.fundAddressLine1,
12934
+ addressLine2: details.fundAddressLine2,
12935
+ city: details.fundCity,
12936
+ state: details.fundState,
12937
+ postcode: details.fundPostcode,
12938
+ bsb: details.bankBsb,
12939
+ bankAccountName: details.bankAccountName,
12940
+ bankAccountNumber: details.bankAccountNumber,
12941
+ fundEsa: details.fundEsa,
12942
+ memberFirstName: details.memberFirstName,
12943
+ memberFamilyName: details.memberLastName
12944
+ };
12945
+ }
12923
12946
  async smsfLoadingTimeoutTriggered() {
12924
12947
  if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
12925
12948
  throw Error(`SMSF component failed to load.`);
@@ -0,0 +1,119 @@
1
+ import { r as registerInstance, h, H as Host } from './index-107d7c24.js';
2
+ import { E as EventTrackingService, a as superSelectionAppService, l as state, O as Option, b as navigationService, S as SuperSelectionAppRoutes, e as customFundChoiceApi, c as injectHistory } from './custom-fund-choice.api-42801d64.js';
3
+ import './active-router-d18b36fb.js';
4
+
5
+ const SmsfEngagementStep = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.allFormFieldsAreFilled = (selfManagedFundForm) => {
9
+ return (selfManagedFundForm.fundName != null &&
10
+ selfManagedFundForm.fundAbn != null &&
11
+ selfManagedFundForm.fundEsa != null &&
12
+ selfManagedFundForm.addressLine1 != null &&
13
+ selfManagedFundForm.addressLine2 != null &&
14
+ selfManagedFundForm.city != null &&
15
+ selfManagedFundForm.state != null &&
16
+ selfManagedFundForm.postcode != null &&
17
+ selfManagedFundForm.bsb != null &&
18
+ selfManagedFundForm.bankAccountName != null &&
19
+ selfManagedFundForm.bankAccountNumber != null &&
20
+ selfManagedFundForm.memberFirstName != null &&
21
+ selfManagedFundForm.memberFamilyName != null);
22
+ };
23
+ this.stepContinued = async (event) => {
24
+ if (event.detail.sender == 'smsf-engagement') {
25
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
26
+ this.navigateToStandardChoice();
27
+ }
28
+ };
29
+ this.subscribeToStepEvents = () => {
30
+ for (const eventName in this.stepEventHandlers) {
31
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
32
+ }
33
+ };
34
+ this.unSubscribeFromStepEvents = () => {
35
+ for (const eventName in this.stepEventHandlers) {
36
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
37
+ }
38
+ };
39
+ this.stepEventHandlers = {
40
+ continue: this.stepContinued.bind(this)
41
+ };
42
+ }
43
+ async componentWillLoad() {
44
+ if (superSelectionAppService.isSmsfCustomStepEnabled &&
45
+ superSelectionAppService.isUsingSuperCampaign &&
46
+ this.allFormFieldsAreFilled(state.selfManagedFundForm) &&
47
+ Option.isSome(superSelectionAppService.backendUrl) &&
48
+ Option.isSome(superSelectionAppService.state.jwt)) {
49
+ this.backendUrl = superSelectionAppService.backendUrl.value;
50
+ this.accessToken = superSelectionAppService.state.jwt.value;
51
+ this.initialiseFormState(state.selfManagedFundForm);
52
+ this.unSubscribeFromStepEvents();
53
+ this.subscribeToStepEvents();
54
+ superSelectionAppService.hideFooterSection = true;
55
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
56
+ }
57
+ else {
58
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SelfManagedFund);
59
+ }
60
+ }
61
+ disconnectedCallback() {
62
+ this.unSubscribeFromStepEvents();
63
+ superSelectionAppService.hideFooterSection = false;
64
+ }
65
+ render() {
66
+ return (h(Host, null, h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
67
+ }
68
+ navigateToStandardChoice() {
69
+ navigationService.navigateInternallyToStandardChoice({
70
+ history: this.history,
71
+ fundName: 'Self-managed super fund',
72
+ fundDetails: {
73
+ type: 'smsf',
74
+ fundName: this.fundName,
75
+ fundEsa: this.fundEsa
76
+ },
77
+ handleSubmitFn: async (standardChoiceFormSignature) => {
78
+ const requestDto = Object.assign({ smsfChoice: {
79
+ abn: this.fundAbn,
80
+ fundName: this.fundName,
81
+ fundAddress: {
82
+ addressLine1: this.fundAddress.addressLine1,
83
+ addressLine2: this.fundAddress.addressLine2,
84
+ city: this.fundAddress.city,
85
+ state: this.fundAddress.state,
86
+ postcode: this.fundAddress.postcode
87
+ },
88
+ bsb: this.bsb,
89
+ bankAccountName: this.bankAccountName,
90
+ bankAccountNumber: this.bankAccountNumber,
91
+ electronicServiceAddress: this.fundEsa,
92
+ memberFirstName: this.memberFirstName,
93
+ memberFamilyName: this.memberFamilyName
94
+ }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
95
+ await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
96
+ }
97
+ });
98
+ }
99
+ initialiseFormState(selfManagedFundForm) {
100
+ this.fundName = selfManagedFundForm.fundName;
101
+ this.fundAbn = selfManagedFundForm.fundAbn;
102
+ this.fundEsa = selfManagedFundForm.fundEsa;
103
+ this.fundAddress = {
104
+ addressLine1: selfManagedFundForm.addressLine1,
105
+ addressLine2: selfManagedFundForm.addressLine2,
106
+ city: selfManagedFundForm.city,
107
+ state: selfManagedFundForm.state,
108
+ postcode: selfManagedFundForm.postcode
109
+ };
110
+ this.bsb = selfManagedFundForm.bsb;
111
+ this.bankAccountName = selfManagedFundForm.bankAccountName;
112
+ this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
113
+ this.memberFirstName = selfManagedFundForm.memberFirstName;
114
+ this.memberFamilyName = selfManagedFundForm.memberFamilyName;
115
+ }
116
+ };
117
+ injectHistory(SmsfEngagementStep);
118
+
119
+ export { SmsfEngagementStep as sss_smsf_engagement_step_host };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-107d7c24.js';
2
- import { E as EventTrackingService, a as superSelectionAppService, O as Option, l as state, b as navigationService, S as SuperSelectionAppRoutes, e as customFundChoiceApi, c as injectHistory } from './custom-fund-choice.api-1d1d018f.js';
2
+ import { E as EventTrackingService, a as superSelectionAppService, O as Option, l as state, b as navigationService, S as SuperSelectionAppRoutes, e as customFundChoiceApi, c as injectHistory } from './custom-fund-choice.api-42801d64.js';
3
3
  import './active-router-d18b36fb.js';
4
4
 
5
5
  const LoadWaitingTimeout = 30000;