@flarehr/apollo-super-selection 1.3.19477 → 1.3.19531
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-24d6e2b8.js +1 -0
- package/dist/lib/apollo-super-selection/p-4fb35dcb.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-65aa4f8a.entry.js +1 -0
- package/dist/lib/apollo-super-selection/{p-8098729b.entry.js → p-793900e2.entry.js} +4 -4
- package/dist/lib/apollo-super-selection/{p-c00d428d.system.entry.js → p-a0063575.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-613cd290.entry.js → p-b00f648b.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +1 -0
- package/dist/lib/apollo-super-selection/{p-36452ed1.system.entry.js → p-f9bff108.system.entry.js} +7 -7
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/{custom-fund-choice.api-0545c774.js → custom-fund-choice.api-293c1ace.js} +17 -0
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/sss-button_31.cjs.entry.js +27 -4
- package/dist/lib/cjs/sss-smsf-engagement-step-host.cjs.entry.js +123 -0
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +1 -1
- package/dist/lib/collection/collection-manifest.json +1 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.js +158 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.js +1 -0
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +1 -0
- package/dist/lib/collection/components/super-smsf/super-smsf.js +26 -2
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/{custom-fund-choice.api-1d1d018f.js → custom-fund-choice.api-42801d64.js} +17 -0
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_31.entry.js +27 -4
- package/dist/lib/esm/sss-smsf-engagement-step-host.entry.js +119 -0
- package/dist/lib/esm/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +1 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_31.entry.js +2 -2
- package/dist/lib/esm-es5/sss-smsf-engagement-step-host.entry.js +1 -0
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +8 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-host.d.ts +26 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/smsf-engagement-step-types.d.ts +15 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
- package/dist/lib/types/components/super-smsf/super-smsf.d.ts +2 -1
- package/dist/lib/types/components.d.ts +15 -0
- package/package.json +2 -2
- package/dist/lib/apollo-super-selection/p-026415b5.js +0 -1
- package/dist/lib/apollo-super-selection/p-9c959cc0.system.js +0 -1
- 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]}]]],["sss-smsf-engagement-step-host.cjs",[[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.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);
|
|
22
22
|
});
|
package/dist/lib/cjs/{custom-fund-choice.api-0545c774.js → custom-fund-choice.api-293c1ace.js}
RENAMED
|
@@ -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]}]]],["sss-smsf-engagement-step-host.cjs",[[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.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
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-
|
|
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 = '1.3.
|
|
288
|
+
const AppVersion = '1.3.19531';
|
|
289
289
|
|
|
290
290
|
class Lazy {
|
|
291
291
|
constructor(factory) {
|
|
@@ -12873,7 +12873,7 @@ const SuperSmsfHost = class {
|
|
|
12873
12873
|
if (event.detail.sender === 'super-smsf') {
|
|
12874
12874
|
superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
|
|
12875
12875
|
clearTimeout(this.loadingTimeoutRef);
|
|
12876
|
-
this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
12876
|
+
await this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
12877
12877
|
promotedFundsShown: customFundChoice_api.superSelectionAppService.promotedFunds,
|
|
12878
12878
|
defaultFundUsiSet: customFundChoice_api.Option.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi)
|
|
12879
12879
|
});
|
|
@@ -12882,6 +12882,12 @@ const SuperSmsfHost = class {
|
|
|
12882
12882
|
};
|
|
12883
12883
|
this.smsfCompleted = async (event) => {
|
|
12884
12884
|
if (event.detail.sender === 'super-smsf') {
|
|
12885
|
+
this.updateCustomFundStateStore(event.detail);
|
|
12886
|
+
if (customFundChoice_api.superSelectionAppService.isSmsfCustomStepEnabled &&
|
|
12887
|
+
customFundChoice_api.superSelectionAppService.isUsingSuperCampaign) {
|
|
12888
|
+
customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.SmsfEngagementStep);
|
|
12889
|
+
return;
|
|
12890
|
+
}
|
|
12885
12891
|
customFundChoice_api.navigationService.navigateInternallyToStandardChoice({
|
|
12886
12892
|
history: this.history,
|
|
12887
12893
|
fundName: 'Self-managed super fund',
|
|
@@ -12915,7 +12921,7 @@ const SuperSmsfHost = class {
|
|
|
12915
12921
|
};
|
|
12916
12922
|
this.smsfCancelled = async (event) => {
|
|
12917
12923
|
if (event.detail.sender === 'super-smsf') {
|
|
12918
|
-
|
|
12924
|
+
customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.ChoicePage);
|
|
12919
12925
|
}
|
|
12920
12926
|
};
|
|
12921
12927
|
this.smsfEventHandlers = {
|
|
@@ -12944,6 +12950,23 @@ const SuperSmsfHost = class {
|
|
|
12944
12950
|
render() {
|
|
12945
12951
|
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
12952
|
}
|
|
12953
|
+
updateCustomFundStateStore(details) {
|
|
12954
|
+
customFundChoice_api.state.selfManagedFundForm = {
|
|
12955
|
+
fundAbn: details.fundAbn,
|
|
12956
|
+
fundName: details.fundName,
|
|
12957
|
+
addressLine1: details.fundAddressLine1,
|
|
12958
|
+
addressLine2: details.fundAddressLine2,
|
|
12959
|
+
city: details.fundCity,
|
|
12960
|
+
state: details.fundState,
|
|
12961
|
+
postcode: details.fundPostcode,
|
|
12962
|
+
bsb: details.bankBsb,
|
|
12963
|
+
bankAccountName: details.bankAccountName,
|
|
12964
|
+
bankAccountNumber: details.bankAccountNumber,
|
|
12965
|
+
fundEsa: details.fundEsa,
|
|
12966
|
+
memberFirstName: details.memberFirstName,
|
|
12967
|
+
memberFamilyName: details.memberLastName
|
|
12968
|
+
};
|
|
12969
|
+
}
|
|
12947
12970
|
async smsfLoadingTimeoutTriggered() {
|
|
12948
12971
|
if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
|
|
12949
12972
|
throw Error(`SMSF component failed to load.`);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-eb4f212f.js');
|
|
6
|
+
const customFundChoice_api = require('./custom-fund-choice.api-293c1ace.js');
|
|
7
|
+
require('./active-router-1f555f75.js');
|
|
8
|
+
|
|
9
|
+
const SmsfEngagementStep = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
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 customFundChoice_api.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 (customFundChoice_api.superSelectionAppService.isSmsfCustomStepEnabled &&
|
|
49
|
+
customFundChoice_api.superSelectionAppService.isUsingSuperCampaign &&
|
|
50
|
+
this.allFormFieldsAreFilled(customFundChoice_api.state.selfManagedFundForm) &&
|
|
51
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.backendUrl) &&
|
|
52
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.state.jwt)) {
|
|
53
|
+
this.backendUrl = customFundChoice_api.superSelectionAppService.backendUrl.value;
|
|
54
|
+
this.accessToken = customFundChoice_api.superSelectionAppService.state.jwt.value;
|
|
55
|
+
this.initialiseFormState(customFundChoice_api.state.selfManagedFundForm);
|
|
56
|
+
this.unSubscribeFromStepEvents();
|
|
57
|
+
this.subscribeToStepEvents();
|
|
58
|
+
customFundChoice_api.superSelectionAppService.hideFooterSection = true;
|
|
59
|
+
await customFundChoice_api.EventTrackingService.Instance.TrackSuperSmsfEngagementStepActivationSucceeded();
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.SelfManagedFund);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
disconnectedCallback() {
|
|
66
|
+
this.unSubscribeFromStepEvents();
|
|
67
|
+
customFundChoice_api.superSelectionAppService.hideFooterSection = false;
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return (index.h(index.Host, null, index.h("apollo-super-smsf-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken })));
|
|
71
|
+
}
|
|
72
|
+
navigateToStandardChoice() {
|
|
73
|
+
customFundChoice_api.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 }, customFundChoice_api.superSelectionAppService.promotedFundsConfig);
|
|
99
|
+
await customFundChoice_api.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
|
+
};
|
|
121
|
+
customFundChoice_api.injectHistory(SmsfEngagementStep);
|
|
122
|
+
|
|
123
|
+
exports.sss_smsf_engagement_step_host = SmsfEngagementStep;
|
|
@@ -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-
|
|
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",
|
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js
CHANGED
|
@@ -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 });
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js
CHANGED
|
@@ -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" }),
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js
CHANGED
|
@@ -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
|
}
|
|
@@ -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
|
-
|
|
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.`);
|