@flarehr/apollo-super-selection 5.62.19178 → 5.64.20066

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 (45) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
  3. package/dist/lib/apollo-super-selection/{p-c0d65783.entry.js → p-9660d87b.entry.js} +4 -4
  4. package/dist/lib/apollo-super-selection/{p-c00d428d.system.entry.js → p-a0063575.system.entry.js} +1 -1
  5. package/dist/lib/apollo-super-selection/{p-613cd290.entry.js → p-b00f648b.entry.js} +1 -1
  6. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  7. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
  8. package/dist/lib/apollo-super-selection/{p-50f74f33.system.entry.js → p-e2eeb893.system.entry.js} +18 -18
  9. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  10. package/dist/lib/cjs/{custom-fund-choice.api-0545c774.js → custom-fund-choice.api-293c1ace.js} +17 -0
  11. package/dist/lib/cjs/loader.cjs.js +1 -1
  12. package/dist/lib/cjs/{sss-button_31.cjs.entry.js → sss-button_32.cjs.entry.js} +141 -4
  13. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +1 -1
  14. package/dist/lib/collection/collection-manifest.json +2 -0
  15. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +157 -0
  16. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
  17. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
  18. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -0
  19. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  20. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
  21. package/dist/lib/collection/components/super-smsf/super-smsf.js +26 -2
  22. package/dist/lib/esm/apollo-super-selection.js +1 -1
  23. package/dist/lib/esm/{custom-fund-choice.api-1d1d018f.js → custom-fund-choice.api-42801d64.js} +17 -0
  24. package/dist/lib/esm/loader.js +1 -1
  25. package/dist/lib/esm/{sss-button_31.entry.js → sss-button_32.entry.js} +141 -5
  26. package/dist/lib/esm/sss-super-byof-host.entry.js +1 -1
  27. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  28. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
  29. package/dist/lib/esm-es5/loader.js +1 -1
  30. package/dist/lib/esm-es5/{sss-button_31.entry.js → sss-button_32.entry.js} +5 -5
  31. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  32. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +8 -0
  33. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  34. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +26 -0
  35. package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
  36. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
  37. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
  38. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  39. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  40. package/dist/lib/types/components/super-smsf/super-smsf.d.ts +2 -1
  41. package/dist/lib/types/components.d.ts +15 -0
  42. package/package.json +2 -2
  43. package/dist/lib/apollo-super-selection/p-026415b5.js +0 -1
  44. package/dist/lib/apollo-super-selection/p-9c959cc0.system.js +0 -1
  45. package/dist/lib/esm-es5/custom-fund-choice.api-1d1d018f.js +0 -1
@@ -18,5 +18,5 @@ const patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(options => {
20
20
  appGlobals.globalScripts();
21
- return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_31.cjs",[[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);
21
+ return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[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-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]}],[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);
22
22
  });
@@ -320,6 +320,7 @@ const { state } = createStore(initial);
320
320
  SuperSelectionAppRoutes["ChoicePage"] = "/";
321
321
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
322
322
  SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund-engagement/";
323
+ SuperSelectionAppRoutes["SmsfEngagementStep"] = "/super-choice/smsf-engagement/";
323
324
  SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
324
325
  SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
325
326
  SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
@@ -337,6 +338,7 @@ const superSelectionAppStencilRoutes = [
337
338
  index.h("stencil-route", { exact: true, url: exports.SuperSelectionAppRoutes.ChoicePage, component: "sss-choice-router" }),
338
339
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFund, component: "sss-super-byof-host" }),
339
340
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
341
+ index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.SmsfEngagementStep, component: "sss-smsf-engagement-step-host" }),
340
342
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
341
343
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
342
344
  index.h("stencil-route", { url: exports.SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
@@ -2776,6 +2778,7 @@ const initialState = {
2776
2778
  superCampaignComponentStatus: exports.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
  }
@@ -3107,6 +3114,16 @@ class EventTrackingService {
3107
3114
  SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
3108
3115
  });
3109
3116
  }
3117
+ async TrackSuperSmsfEngagementStepActivationSucceeded() {
3118
+ return this.trackEventAsync({
3119
+ SuperSmsfEngagementStepActivationSucceeded: {}
3120
+ });
3121
+ }
3122
+ async TrackSuperSmsfEngagementStepContinued(reason) {
3123
+ return this.trackEventAsync({
3124
+ SuperSmsfEngagementStepContinued: { reason }
3125
+ });
3126
+ }
3110
3127
  async trackEventAsync(event) {
3111
3128
  try {
3112
3129
  await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
@@ -17,7 +17,7 @@ const defineCustomElements = (win, options) => {
17
17
  if (typeof window === 'undefined') return Promise.resolve();
18
18
  return patchEsm().then(() => {
19
19
  appGlobals.globalScripts();
20
- return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_31.cjs",[[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
+ return index.bootstrapLazy([["sss-super-byof-host.cjs",[[0,"sss-super-byof-host",{"history":[16],"backendUrl":[32],"accessToken":[32]}]]],["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_32.cjs",[[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-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]}],[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);
21
21
  });
22
22
  };
23
23
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-eb4f212f.js');
6
6
  const datoramaAkita = require('./datorama-akita-6c9cb8fb.js');
7
- const customFundChoice_api = require('./custom-fund-choice.api-0545c774.js');
7
+ const customFundChoice_api = require('./custom-fund-choice.api-293c1ace.js');
8
8
  const activeRouter = require('./active-router-1f555f75.js');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -285,7 +285,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
285
285
  }
286
286
  }
287
287
 
288
- const AppVersion = '5.62.19178';
288
+ const AppVersion = '5.64.20066';
289
289
 
290
290
  class Lazy {
291
291
  constructor(factory) {
@@ -2583,6 +2583,119 @@ const PrefillWarningBox = class {
2583
2583
  }
2584
2584
  };
2585
2585
 
2586
+ const SmsfEngagementStep = class {
2587
+ constructor(hostRef) {
2588
+ index.registerInstance(this, hostRef);
2589
+ this.allFormFieldsAreFilled = (selfManagedFundForm) => {
2590
+ return (selfManagedFundForm.fundName != null &&
2591
+ selfManagedFundForm.fundAbn != null &&
2592
+ selfManagedFundForm.fundEsa != null &&
2593
+ selfManagedFundForm.addressLine1 != null &&
2594
+ selfManagedFundForm.city != null &&
2595
+ selfManagedFundForm.state != null &&
2596
+ selfManagedFundForm.postcode != null &&
2597
+ selfManagedFundForm.bsb != null &&
2598
+ selfManagedFundForm.bankAccountName != null &&
2599
+ selfManagedFundForm.bankAccountNumber != null &&
2600
+ selfManagedFundForm.memberFirstName != null &&
2601
+ selfManagedFundForm.memberFamilyName != null);
2602
+ };
2603
+ this.stepContinued = async (event) => {
2604
+ if (event.detail.sender == 'smsf-engagement') {
2605
+ await customFundChoice_api.EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
2606
+ this.navigateToStandardChoice();
2607
+ }
2608
+ };
2609
+ this.subscribeToStepEvents = () => {
2610
+ for (const eventName in this.stepEventHandlers) {
2611
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
2612
+ }
2613
+ };
2614
+ this.unSubscribeFromStepEvents = () => {
2615
+ for (const eventName in this.stepEventHandlers) {
2616
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
2617
+ }
2618
+ };
2619
+ this.stepEventHandlers = {
2620
+ continue: this.stepContinued.bind(this)
2621
+ };
2622
+ }
2623
+ async componentWillLoad() {
2624
+ if (customFundChoice_api.superSelectionAppService.isSmsfCustomStepEnabled &&
2625
+ customFundChoice_api.superSelectionAppService.isUsingSuperCampaign &&
2626
+ this.allFormFieldsAreFilled(customFundChoice_api.state.selfManagedFundForm) &&
2627
+ customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.backendUrl) &&
2628
+ customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.state.jwt)) {
2629
+ this.backendUrl = customFundChoice_api.superSelectionAppService.backendUrl.value;
2630
+ this.accessToken = customFundChoice_api.superSelectionAppService.state.jwt.value;
2631
+ this.initialiseFormState(customFundChoice_api.state.selfManagedFundForm);
2632
+ this.unSubscribeFromStepEvents();
2633
+ this.subscribeToStepEvents();
2634
+ customFundChoice_api.superSelectionAppService.hideFooterSection = true;
2635
+ await customFundChoice_api.EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
2636
+ }
2637
+ else {
2638
+ customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.SelfManagedFund);
2639
+ }
2640
+ }
2641
+ disconnectedCallback() {
2642
+ this.unSubscribeFromStepEvents();
2643
+ customFundChoice_api.superSelectionAppService.hideFooterSection = false;
2644
+ }
2645
+ render() {
2646
+ return (index.h(index.Host, null, index.h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
2647
+ }
2648
+ navigateToStandardChoice() {
2649
+ customFundChoice_api.navigationService.navigateInternallyToStandardChoice({
2650
+ history: this.history,
2651
+ fundName: 'Self-managed super fund',
2652
+ fundDetails: {
2653
+ type: 'smsf',
2654
+ fundName: this.fundName,
2655
+ fundEsa: this.fundEsa
2656
+ },
2657
+ handleSubmitFn: async (standardChoiceFormSignature) => {
2658
+ const requestDto = Object.assign({ smsfChoice: {
2659
+ abn: this.fundAbn,
2660
+ fundName: this.fundName,
2661
+ fundAddress: {
2662
+ addressLine1: this.fundAddress.addressLine1,
2663
+ addressLine2: this.fundAddress.addressLine2,
2664
+ city: this.fundAddress.city,
2665
+ state: this.fundAddress.state,
2666
+ postcode: this.fundAddress.postcode
2667
+ },
2668
+ bsb: this.bsb,
2669
+ bankAccountName: this.bankAccountName,
2670
+ bankAccountNumber: this.bankAccountNumber,
2671
+ electronicServiceAddress: this.fundEsa,
2672
+ memberFirstName: this.memberFirstName,
2673
+ memberFamilyName: this.memberFamilyName
2674
+ }, standardChoiceFormSignature }, customFundChoice_api.superSelectionAppService.promotedFundsConfig);
2675
+ await customFundChoice_api.customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
2676
+ }
2677
+ });
2678
+ }
2679
+ initialiseFormState(selfManagedFundForm) {
2680
+ this.fundName = selfManagedFundForm.fundName;
2681
+ this.fundAbn = selfManagedFundForm.fundAbn;
2682
+ this.fundEsa = selfManagedFundForm.fundEsa;
2683
+ this.fundAddress = {
2684
+ addressLine1: selfManagedFundForm.addressLine1,
2685
+ addressLine2: selfManagedFundForm.addressLine2,
2686
+ city: selfManagedFundForm.city,
2687
+ state: selfManagedFundForm.state,
2688
+ postcode: selfManagedFundForm.postcode
2689
+ };
2690
+ this.bsb = selfManagedFundForm.bsb;
2691
+ this.bankAccountName = selfManagedFundForm.bankAccountName;
2692
+ this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
2693
+ this.memberFirstName = selfManagedFundForm.memberFirstName;
2694
+ this.memberFamilyName = selfManagedFundForm.memberFamilyName;
2695
+ }
2696
+ };
2697
+ customFundChoice_api.injectHistory(SmsfEngagementStep);
2698
+
2586
2699
  const StandardChoiceFormInputDefaultFund = class {
2587
2700
  constructor(hostRef) {
2588
2701
  index.registerInstance(this, hostRef);
@@ -12873,7 +12986,7 @@ const SuperSmsfHost = class {
12873
12986
  if (event.detail.sender === 'super-smsf') {
12874
12987
  superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
12875
12988
  clearTimeout(this.loadingTimeoutRef);
12876
- this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
12989
+ await this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
12877
12990
  promotedFundsShown: customFundChoice_api.superSelectionAppService.promotedFunds,
12878
12991
  defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi)
12879
12992
  });
@@ -12882,6 +12995,12 @@ const SuperSmsfHost = class {
12882
12995
  };
12883
12996
  this.smsfCompleted = async (event) => {
12884
12997
  if (event.detail.sender === 'super-smsf') {
12998
+ this.updateCustomFundStateStore(event.detail);
12999
+ if (customFundChoice_api.superSelectionAppService.isSmsfCustomStepEnabled &&
13000
+ customFundChoice_api.superSelectionAppService.isUsingSuperCampaign) {
13001
+ customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.SmsfEngagementStep);
13002
+ return;
13003
+ }
12885
13004
  customFundChoice_api.navigationService.navigateInternallyToStandardChoice({
12886
13005
  history: this.history,
12887
13006
  fundName: 'Self-managed super fund',
@@ -12915,7 +13034,7 @@ const SuperSmsfHost = class {
12915
13034
  };
12916
13035
  this.smsfCancelled = async (event) => {
12917
13036
  if (event.detail.sender === 'super-smsf') {
12918
- await customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.ChoicePage);
13037
+ customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.ChoicePage);
12919
13038
  }
12920
13039
  };
12921
13040
  this.smsfEventHandlers = {
@@ -12944,6 +13063,23 @@ const SuperSmsfHost = class {
12944
13063
  render() {
12945
13064
  return (index.h(index.Host, null, index.h("sss-header-section", null), index.h("div", { class: "flex justify-center mt-11" }, index.h("sss-custom-fund", null, index.h("div", null, index.h("apollo-super-smsf", { "backend-url": this.backendUrl, "access-token": this.accessToken }))))));
12946
13065
  }
13066
+ updateCustomFundStateStore(details) {
13067
+ customFundChoice_api.state.selfManagedFundForm = {
13068
+ fundAbn: details.fundAbn,
13069
+ fundName: details.fundName,
13070
+ addressLine1: details.fundAddressLine1,
13071
+ addressLine2: details.fundAddressLine2,
13072
+ city: details.fundCity,
13073
+ state: details.fundState,
13074
+ postcode: details.fundPostcode,
13075
+ bsb: details.bankBsb,
13076
+ bankAccountName: details.bankAccountName,
13077
+ bankAccountNumber: details.bankAccountNumber,
13078
+ fundEsa: details.fundEsa,
13079
+ memberFirstName: details.memberFirstName,
13080
+ memberFamilyName: details.memberLastName
13081
+ };
13082
+ }
12947
13083
  async smsfLoadingTimeoutTriggered() {
12948
13084
  if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
12949
13085
  throw Error(`SMSF component failed to load.`);
@@ -14785,6 +14921,7 @@ exports.sss_prefill_invalid_smsf = PrefillInvalidSMSF;
14785
14921
  exports.sss_prefill_my_own_fund = PrefillMyOwnFund;
14786
14922
  exports.sss_prefill_smsf = PrefillSMSF;
14787
14923
  exports.sss_prefill_warning_box = PrefillWarningBox;
14924
+ exports.sss_smsf_engagement_step_host = SmsfEngagementStep;
14788
14925
  exports.sss_standard_choice_form = StandardChoiceFormInputDefaultFund;
14789
14926
  exports.sss_success = Success;
14790
14927
  exports.sss_super_campaign_featured_funds = FeaturedFunds;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-eb4f212f.js');
6
- const customFundChoice_api = require('./custom-fund-choice.api-0545c774.js');
6
+ const customFundChoice_api = require('./custom-fund-choice.api-293c1ace.js');
7
7
  require('./active-router-1f555f75.js');
8
8
 
9
9
  const LoadWaitingTimeout = 30000;
@@ -16,6 +16,7 @@
16
16
  "./components/super-selection-app/funds/custom-fund/default-fund/default-fund.js",
17
17
  "./components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js",
18
18
  "./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js",
19
+ "./components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js",
19
20
  "./components/super-selection-app/header-section/header-section.js",
20
21
  "./components/super-selection-app/misc/loading-indicator.js",
21
22
  "./components/super-selection-app/prefill-fund/prefill-display-field.js",
@@ -78,6 +79,7 @@
78
79
  "sss-prefill-my-own-fund",
79
80
  "sss-prefill-smsf",
80
81
  "sss-prefill-warning-box",
82
+ "sss-smsf-engagement-step-host",
81
83
  "sss-standard-choice-form",
82
84
  "sss-success",
83
85
  "sss-super-campaign-featured-funds",
@@ -0,0 +1,157 @@
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.city != null &&
18
+ selfManagedFundForm.state != null &&
19
+ selfManagedFundForm.postcode != null &&
20
+ selfManagedFundForm.bsb != null &&
21
+ selfManagedFundForm.bankAccountName != null &&
22
+ selfManagedFundForm.bankAccountNumber != null &&
23
+ selfManagedFundForm.memberFirstName != null &&
24
+ selfManagedFundForm.memberFamilyName != null);
25
+ };
26
+ this.stepContinued = async (event) => {
27
+ if (event.detail.sender == 'smsf-engagement') {
28
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepContinued(event.detail.reason);
29
+ this.navigateToStandardChoice();
30
+ }
31
+ };
32
+ this.subscribeToStepEvents = () => {
33
+ for (const eventName in this.stepEventHandlers) {
34
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
35
+ }
36
+ };
37
+ this.unSubscribeFromStepEvents = () => {
38
+ for (const eventName in this.stepEventHandlers) {
39
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
40
+ }
41
+ };
42
+ this.stepEventHandlers = {
43
+ continue: this.stepContinued.bind(this)
44
+ };
45
+ }
46
+ async componentWillLoad() {
47
+ if (superSelectionAppService.isSmsfCustomStepEnabled &&
48
+ superSelectionAppService.isUsingSuperCampaign &&
49
+ this.allFormFieldsAreFilled(customFundState.selfManagedFundForm) &&
50
+ isSome(superSelectionAppService.backendUrl) &&
51
+ isSome(superSelectionAppService.state.jwt)) {
52
+ this.backendUrl = superSelectionAppService.backendUrl.value;
53
+ this.accessToken = superSelectionAppService.state.jwt.value;
54
+ this.initialiseFormState(customFundState.selfManagedFundForm);
55
+ this.unSubscribeFromStepEvents();
56
+ this.subscribeToStepEvents();
57
+ superSelectionAppService.hideFooterSection = true;
58
+ await EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
59
+ }
60
+ else {
61
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SelfManagedFund);
62
+ }
63
+ }
64
+ disconnectedCallback() {
65
+ this.unSubscribeFromStepEvents();
66
+ superSelectionAppService.hideFooterSection = false;
67
+ }
68
+ render() {
69
+ return (h(Host, null,
70
+ h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
71
+ }
72
+ navigateToStandardChoice() {
73
+ navigationService.navigateInternallyToStandardChoice({
74
+ history: this.history,
75
+ fundName: 'Self-managed super fund',
76
+ fundDetails: {
77
+ type: 'smsf',
78
+ fundName: this.fundName,
79
+ fundEsa: this.fundEsa
80
+ },
81
+ handleSubmitFn: async (standardChoiceFormSignature) => {
82
+ const requestDto = Object.assign({ smsfChoice: {
83
+ abn: this.fundAbn,
84
+ fundName: this.fundName,
85
+ fundAddress: {
86
+ addressLine1: this.fundAddress.addressLine1,
87
+ addressLine2: this.fundAddress.addressLine2,
88
+ city: this.fundAddress.city,
89
+ state: this.fundAddress.state,
90
+ postcode: this.fundAddress.postcode
91
+ },
92
+ bsb: this.bsb,
93
+ bankAccountName: this.bankAccountName,
94
+ bankAccountNumber: this.bankAccountNumber,
95
+ electronicServiceAddress: this.fundEsa,
96
+ memberFirstName: this.memberFirstName,
97
+ memberFamilyName: this.memberFamilyName
98
+ }, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
99
+ await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
100
+ }
101
+ });
102
+ }
103
+ initialiseFormState(selfManagedFundForm) {
104
+ this.fundName = selfManagedFundForm.fundName;
105
+ this.fundAbn = selfManagedFundForm.fundAbn;
106
+ this.fundEsa = selfManagedFundForm.fundEsa;
107
+ this.fundAddress = {
108
+ addressLine1: selfManagedFundForm.addressLine1,
109
+ addressLine2: selfManagedFundForm.addressLine2,
110
+ city: selfManagedFundForm.city,
111
+ state: selfManagedFundForm.state,
112
+ postcode: selfManagedFundForm.postcode
113
+ };
114
+ this.bsb = selfManagedFundForm.bsb;
115
+ this.bankAccountName = selfManagedFundForm.bankAccountName;
116
+ this.bankAccountNumber = selfManagedFundForm.bankAccountNumber;
117
+ this.memberFirstName = selfManagedFundForm.memberFirstName;
118
+ this.memberFamilyName = selfManagedFundForm.memberFamilyName;
119
+ }
120
+ static get is() { return "sss-smsf-engagement-step-host"; }
121
+ static get properties() { return {
122
+ "history": {
123
+ "type": "unknown",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "RouterHistory",
127
+ "resolved": "RouterHistory",
128
+ "references": {
129
+ "RouterHistory": {
130
+ "location": "import",
131
+ "path": "@stencil/router"
132
+ }
133
+ }
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": ""
140
+ }
141
+ }
142
+ }; }
143
+ static get states() { return {
144
+ "backendUrl": {},
145
+ "accessToken": {},
146
+ "fundName": {},
147
+ "fundAbn": {},
148
+ "fundEsa": {},
149
+ "fundAddress": {},
150
+ "bsb": {},
151
+ "bankAccountName": {},
152
+ "bankAccountNumber": {},
153
+ "memberFirstName": {},
154
+ "memberFamilyName": {}
155
+ }; }
156
+ }
157
+ 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
  };