@flarehr/apollo-super-selection 5.45.6971 → 5.47.7839
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-a73e1187.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bc31a299.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/{sss-button_34.cjs.entry.js → sss-button_33.cjs.entry.js} +103 -205
- package/dist/lib/collection/collection-manifest.json +3 -5
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
- package/dist/lib/collection/components/super-smsf/super-smsf-types.js +1 -0
- package/dist/lib/collection/components/super-smsf/super-smsf.js +136 -0
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/{sss-button_34.entry.js → sss-button_33.entry.js} +103 -204
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_33.entry.js +69 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/custom-fund.store.d.ts +1 -1
- package/dist/lib/types/components/super-smsf/super-smsf-types.d.ts +34 -0
- package/dist/lib/types/components/super-smsf/super-smsf.d.ts +18 -0
- package/dist/lib/types/components.d.ts +15 -35
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-44edd355.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-46cf321a.entry.js +0 -14
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js +0 -253
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js +0 -121
- package/dist/lib/esm-es5/sss-button_34.entry.js +0 -69
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.d.ts +0 -29
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.d.ts +0 -14
- /package/dist/lib/collection/components/{super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.js → super-smsf/super-smsf.form.js} +0 -0
- /package/dist/lib/types/components/{super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.form.d.ts → super-smsf/super-smsf.form.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-
|
|
1
|
+
System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-bc31a299.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[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-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-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-loading-page"],[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-footer-section",{textOverride:[1,"text-override"]}],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[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"]}]]]],e)}))}}}));
|
|
@@ -18,5 +18,5 @@ const patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(options => {
|
|
20
20
|
appGlobals.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["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-
|
|
21
|
+
return index.bootstrapLazy([["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_33.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[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-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-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[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-footer-section",{"textOverride":[1,"text-override"]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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
|
});
|
|
@@ -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([["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-
|
|
20
|
+
return index.bootstrapLazy([["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_33.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[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-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-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[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-footer-section",{"textOverride":[1,"text-override"]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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
|
|
|
@@ -284,7 +284,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
const AppVersion = '5.
|
|
287
|
+
const AppVersion = '5.47.7839';
|
|
288
288
|
|
|
289
289
|
// -------------------------------------------------------------------------------------
|
|
290
290
|
// guards
|
|
@@ -1231,7 +1231,7 @@ const superSelectionAppStencilRoutes = [
|
|
|
1231
1231
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
|
|
1232
1232
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
|
|
1233
1233
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
|
|
1234
|
-
index.h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-
|
|
1234
|
+
index.h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-super-smsf-host" }),
|
|
1235
1235
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund" }),
|
|
1236
1236
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.FeaturedFunds, component: "sss-super-campaign-featured-funds" }),
|
|
1237
1237
|
index.h("stencil-route", { url: SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
|
|
@@ -5901,207 +5901,6 @@ const PrefillWarningBox = class {
|
|
|
5901
5901
|
}
|
|
5902
5902
|
};
|
|
5903
5903
|
|
|
5904
|
-
function validateAbn(abn) {
|
|
5905
|
-
const digitArray = abn.split('').map(Number);
|
|
5906
|
-
const isAllDigits = digitArray.every((d) => !isNaN(d));
|
|
5907
|
-
const weightingFactors = [10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19];
|
|
5908
|
-
if (!isAllDigits || digitArray.length !== weightingFactors.length) {
|
|
5909
|
-
return false;
|
|
5910
|
-
}
|
|
5911
|
-
digitArray[0]--;
|
|
5912
|
-
const sum = digitArray.reduce((sum, digit, i) => sum + digit * weightingFactors[i], 0);
|
|
5913
|
-
return sum % 89 === 0;
|
|
5914
|
-
}
|
|
5915
|
-
|
|
5916
|
-
const SelfManagedFund = class {
|
|
5917
|
-
constructor(hostRef) {
|
|
5918
|
-
index.registerInstance(this, hostRef);
|
|
5919
|
-
this.isSubmitDisabled = true;
|
|
5920
|
-
this.isAbnValid = validateAbn(state$1.selfManagedFundForm.fundAbn);
|
|
5921
|
-
this.eventTrackingService = EventTrackingService.Instance;
|
|
5922
|
-
this.success = () => {
|
|
5923
|
-
navigationService.navigateInternallyToStandardChoice({
|
|
5924
|
-
history: this.history,
|
|
5925
|
-
fundName: 'Self-managed super fund',
|
|
5926
|
-
fundDetails: {
|
|
5927
|
-
type: 'smsf',
|
|
5928
|
-
fundName: state$1.selfManagedFundForm.fundName,
|
|
5929
|
-
fundEsa: state$1.selfManagedFundForm.fundEsa
|
|
5930
|
-
},
|
|
5931
|
-
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
5932
|
-
const requestDto = Object.assign({ smsfChoice: {
|
|
5933
|
-
abn: state$1.selfManagedFundForm.fundAbn,
|
|
5934
|
-
fundName: state$1.selfManagedFundForm.fundName,
|
|
5935
|
-
fundAddress: {
|
|
5936
|
-
addressLine1: state$1.selfManagedFundForm.addressLine1,
|
|
5937
|
-
addressLine2: state$1.selfManagedFundForm.addressLine2,
|
|
5938
|
-
city: state$1.selfManagedFundForm.city,
|
|
5939
|
-
state: state$1.selfManagedFundForm.state,
|
|
5940
|
-
postcode: state$1.selfManagedFundForm.postcode
|
|
5941
|
-
},
|
|
5942
|
-
bsb: state$1.selfManagedFundForm.bsb,
|
|
5943
|
-
bankAccountName: state$1.selfManagedFundForm.bankAccountName,
|
|
5944
|
-
bankAccountNumber: state$1.selfManagedFundForm.bankAccountNumber,
|
|
5945
|
-
electronicServiceAddress: state$1.selfManagedFundForm.fundEsa,
|
|
5946
|
-
memberFirstName: state$1.selfManagedFundForm.memberFirstName,
|
|
5947
|
-
memberFamilyName: state$1.selfManagedFundForm.memberFamilyName
|
|
5948
|
-
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
5949
|
-
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
|
|
5950
|
-
}
|
|
5951
|
-
});
|
|
5952
|
-
};
|
|
5953
|
-
}
|
|
5954
|
-
componentDidLoad() {
|
|
5955
|
-
this.updateIsSubmitDisabled();
|
|
5956
|
-
return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({
|
|
5957
|
-
promotedFundsShown: superSelectionAppService.promotedFunds,
|
|
5958
|
-
defaultFundUsiSet: toUndefined(superSelectionAppService.defaultFundUsi)
|
|
5959
|
-
});
|
|
5960
|
-
}
|
|
5961
|
-
render() {
|
|
5962
|
-
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("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
5963
|
-
'was-validated': this.formState === 'validated'
|
|
5964
|
-
}, ref: (el) => (this.formElement = el), onInput: (_) => this.updateIsSubmitDisabled() }, index.h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560" }, index.h("p", { class: "sm:text-lg font-bold" }, "Fund details"), index.h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3" }, index.h("div", { class: "flex" }, index.h("div", { class: "flex-shrink-0" }, index.h("img", { class: "h-5 w-5", src: index.getAssetPath('assets/icon-exclamation.svg') })), index.h("div", { class: "ml-3 text-sm text-yellow-700 leading-5" }, "Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))), index.h("sss-self-managed-fund-inputs", { fundForm: state$1.selfManagedFundForm, showValidationErrors: this.formState === 'validated', onFormChanged: (event) => {
|
|
5965
|
-
state$1.selfManagedFundForm = Object.assign(Object.assign({}, state$1.selfManagedFundForm), event.detail);
|
|
5966
|
-
if (event.detail.isAbnValid !== undefined)
|
|
5967
|
-
this.isAbnValid = event.detail.isAbnValid;
|
|
5968
|
-
this.updateIsSubmitDisabled();
|
|
5969
|
-
} })), index.h("div", { class: "flex justify-center mt-8" }, index.h("div", { class: "sm:max-w-320 w-full" }, index.h("div", { class: "mb-4", onClick:
|
|
5970
|
-
// user clicks on disabled button (div wrapper) then validation errors will show
|
|
5971
|
-
() => (this.formState = 'validated') }, index.h("sss-button", { testid: "continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Continue")), index.h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage }, index.h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back")))))))));
|
|
5972
|
-
}
|
|
5973
|
-
updateIsSubmitDisabled() {
|
|
5974
|
-
this.isSubmitDisabled = !this.formElement.checkValidity() || !this.isAbnValid;
|
|
5975
|
-
}
|
|
5976
|
-
async handleSubmitForm() {
|
|
5977
|
-
this.formState = 'validated';
|
|
5978
|
-
if (this.formElement.checkValidity())
|
|
5979
|
-
this.success();
|
|
5980
|
-
}
|
|
5981
|
-
};
|
|
5982
|
-
injectHistory(SelfManagedFund);
|
|
5983
|
-
|
|
5984
|
-
var AbnValidationStatus;
|
|
5985
|
-
(function (AbnValidationStatus) {
|
|
5986
|
-
AbnValidationStatus[AbnValidationStatus["Invalid"] = 1] = "Invalid";
|
|
5987
|
-
AbnValidationStatus[AbnValidationStatus["AbnIsUsedForRegulatedFund"] = 2] = "AbnIsUsedForRegulatedFund";
|
|
5988
|
-
AbnValidationStatus[AbnValidationStatus["Valid"] = 3] = "Valid";
|
|
5989
|
-
})(AbnValidationStatus || (AbnValidationStatus = {}));
|
|
5990
|
-
const SelfManagedFundInputs = class {
|
|
5991
|
-
constructor(hostRef) {
|
|
5992
|
-
index.registerInstance(this, hostRef);
|
|
5993
|
-
this.formChanged = index.createEvent(this, "formChanged", 7);
|
|
5994
|
-
this.abnValidationStatus = AbnValidationStatus.Invalid;
|
|
5995
|
-
this.isAbnTouched = false;
|
|
5996
|
-
this.currentBank = none;
|
|
5997
|
-
this.addressErrorMessage = none;
|
|
5998
|
-
this.stateOptions = [
|
|
5999
|
-
{ value: 'NSW', label: 'NSW' },
|
|
6000
|
-
{ value: 'QLD', label: 'QLD' },
|
|
6001
|
-
{ value: 'ACT', label: 'ACT' },
|
|
6002
|
-
{ value: 'VIC', label: 'VIC' },
|
|
6003
|
-
{ value: 'TAS', label: 'TAS' },
|
|
6004
|
-
{ value: 'WA', label: 'WA' },
|
|
6005
|
-
{ value: 'SA', label: 'SA' },
|
|
6006
|
-
{ value: 'NT', label: 'NT' }
|
|
6007
|
-
];
|
|
6008
|
-
this.bsbRegex = new RegExp(/^[0-9]{3}[0-9]{3}$/);
|
|
6009
|
-
this.bankAccountNumberRegex = new RegExp(/^[0-9]{2,10}$/);
|
|
6010
|
-
}
|
|
6011
|
-
render() {
|
|
6012
|
-
const inputClass = {
|
|
6013
|
-
'relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10': true,
|
|
6014
|
-
'invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500': this
|
|
6015
|
-
.showValidationErrors
|
|
6016
|
-
};
|
|
6017
|
-
return (index.h("div", null, index.h("div", null, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Fund name"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundName", id: "fundName", value: state$1.selfManagedFundForm.fundName, onChange: (ev) => this.updateFormField('fundName', ev.target.value.trim()) }), index.h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid fund name"))), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Fund ABN"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundAbn", id: "fundAbn", value: state$1.selfManagedFundForm.fundAbn, inputmode: "numeric", pattern: "[0-9]*", onKeyUp: async (ev) => {
|
|
6018
|
-
const abnInput = ev.target;
|
|
6019
|
-
this.updateFormField('fundAbn', abnInput.value.trim());
|
|
6020
|
-
this.abnValidationStatus = AbnValidationStatus.Invalid;
|
|
6021
|
-
if (validateAbn(abnInput.value)) {
|
|
6022
|
-
const isAbnUsedForRegulatedFund = await this.isAbnUsedForRegulatedAsync(abnInput.value);
|
|
6023
|
-
this.abnValidationStatus = isAbnUsedForRegulatedFund
|
|
6024
|
-
? AbnValidationStatus.AbnIsUsedForRegulatedFund
|
|
6025
|
-
: AbnValidationStatus.Valid;
|
|
6026
|
-
}
|
|
6027
|
-
// We need to set a custom validity message to trigger css invalid styles for non valid cases
|
|
6028
|
-
const validityMessage = this.abnValidationStatus === AbnValidationStatus.Valid
|
|
6029
|
-
? ''
|
|
6030
|
-
: 'Enter a valid fund ABN (digits only)';
|
|
6031
|
-
abnInput.setCustomValidity(validityMessage);
|
|
6032
|
-
this.updateFormField('isAbnValid', this.abnValidationStatus === AbnValidationStatus.Valid);
|
|
6033
|
-
}, onBlur: () => (this.isAbnTouched = true) }), this.renderAbnValidationError())), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Electronic service address alias (ESA)"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", class: inputClass, required: true, minlength: "2", name: "fundEsa", id: "fundEsa", value: state$1.selfManagedFundForm.fundEsa, onChange: (ev) => this.updateFormField('fundEsa', ev.target.value.trim()) }), index.h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid fund ESA"))), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Fund address"), index.h("div", { class: "mt-1 rounded-md shadow-sm -space-y-px" }, index.h("input", { placeholder: "Address line 1", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-t-md shadow-none': true }), required: true, minlength: "2", name: "addressLine1", id: "addressLine1", value: state$1.selfManagedFundForm.addressLine1, onChange: (ev) => {
|
|
6034
|
-
this.updateFormField('addressLine1', ev.target.value.trim());
|
|
6035
|
-
this.updateAddressErrorMessage();
|
|
6036
|
-
}, ref: (el) => (this.addressLine1Element = el) }), index.h("input", { placeholder: "Address line 2 (optional)", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none shadow-none': true }), name: "addressLine2", id: "addressLine2", value: state$1.selfManagedFundForm.addressLine2, onChange: (ev) => this.updateFormField('addressLine2', ev.target.value.trim()) }), index.h("input", { placeholder: "City/suburb", type: "text", class: Object.assign(Object.assign({}, inputClass), { 'rounded-none shadow-none': true }), name: "city", required: true, id: "city", value: state$1.selfManagedFundForm.city, onChange: (ev) => {
|
|
6037
|
-
this.updateFormField('city', ev.target.value.trim());
|
|
6038
|
-
this.updateAddressErrorMessage();
|
|
6039
|
-
}, ref: (el) => (this.cityElement = el) }), index.h("div", { class: "flex -space-x-px" }, index.h("div", { class: "w-1/2 flex-1 min-w-0" }, index.h("input", { placeholder: "Postcode", type: "text", required: true, class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-bl-md shadow-none': true }), name: "postcode", minlength: "4", maxlength: "4", pattern: "[0-9]{4}", id: "postcode", value: state$1.selfManagedFundForm.postcode, inputmode: "numeric", onChange: (ev) => {
|
|
6040
|
-
this.updateFormField('postcode', ev.target.value.trim());
|
|
6041
|
-
this.updateAddressErrorMessage();
|
|
6042
|
-
}, ref: (el) => (this.postcodeElement = el) })), index.h("div", { class: "flex-1 min-w-0" }, index.h("select", { class: Object.assign(Object.assign({}, inputClass), { 'rounded-none rounded-br-md shadow-none': true, 'text-gray-500': this.fundForm.state !== undefined }), name: "state", required: true, id: "state", onChange: (ev) => {
|
|
6043
|
-
this.updateFormField('state', ev.target.value.trim());
|
|
6044
|
-
this.updateAddressErrorMessage();
|
|
6045
|
-
}, ref: (el) => (this.stateElement = el) }, index.h("option", { disabled: true, selected: this.fundForm.state !== undefined, value: "" }, "State"), this.stateOptions.map((s) => (index.h("option", { value: s.value, selected: this.fundForm.state === s.value }, s.label))))))), isSome(this.addressErrorMessage) && this.showValidationErrors && (index.h("div", { class: "mt-2 text-sm text-red-600" }, this.addressErrorMessage.value))), index.h("div", { class: "flex space-x-4" }, index.h("div", { class: "mt-3 w-1/2" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Given name(s)"), index.h("div", { class: "mt-1" }, index.h("sss-name-input", { testId: "member-given-names-input", name: "memberFirstName", readableName: "Member given name(s)", showValidationErrors: this.showValidationErrors, value: state$1.selfManagedFundForm.memberFirstName, onChange: (ev) => this.updateFormField('memberFirstName', ev.target.value.trim()) }))), index.h("div", { class: "mt-3 w-1/2" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Last name"), index.h("div", { class: "mt-1" }, index.h("sss-name-input", { testId: "member-last-name-input", name: "memberFamilyName", readableName: "Member last name", showValidationErrors: this.showValidationErrors, value: state$1.selfManagedFundForm.memberFamilyName, onChange: (ev) => this.updateFormField('memberFamilyName', ev.target.value.trim()) })))), index.h("h3", { class: "text-lg font-bold mt-6" }, "Fund bank details"), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Account name"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", required: true, class: inputClass, name: "bankAccountName", minlength: "2", id: "bankAccountName", value: state$1.selfManagedFundForm.bankAccountName, onChange: (ev) => this.updateFormField('bankAccountName', ev.target.value.trim()) }), index.h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account name"))), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "BSB"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", required: true, class: inputClass, name: "bsb", id: "bsb", minlength: "6", maxlength: "7", inputmode: "numeric", onKeyUp: (ev) => this.updateCurrentBank(ev), pattern: this.bsbRegex.source, value: state$1.selfManagedFundForm.bsb }), index.h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid BSB"))), isSome(this.currentBank) && (index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Bank name"), index.h("div", { class: "mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm" }, this.currentBank.value))), index.h("div", { class: "mt-3" }, index.h("label", { class: "text-sm font-medium text-gray-700" }, "Account number"), index.h("div", { class: "mt-1" }, index.h("input", { type: "text", required: true, class: inputClass, name: "bankAccountNumber", id: "bankAccountNumber", minlength: "2", maxlength: "11", pattern: this.bankAccountNumberRegex.source, inputmode: "numeric", value: state$1.selfManagedFundForm.bankAccountNumber, onKeyUp: (ev) => this.updateCurrentBankAccountNumber(ev), onChange: (ev) => this.updateFormField('bankAccountNumber', ev.target.value.trim()) }), index.h("div", { class: "invalid-feedback mt-2 text-sm text-red-600" }, "Enter a valid bank account number")))));
|
|
6046
|
-
}
|
|
6047
|
-
updateFormField(key, value) {
|
|
6048
|
-
this.formChanged.emit({ [key]: value });
|
|
6049
|
-
}
|
|
6050
|
-
async isAbnUsedForRegulatedAsync(abn) {
|
|
6051
|
-
return !(await customFundChoiceApi.validateAbnForSMSF(abn));
|
|
6052
|
-
}
|
|
6053
|
-
renderAbnValidationError() {
|
|
6054
|
-
if (this.isAbnTouched || this.showValidationErrors) {
|
|
6055
|
-
switch (this.abnValidationStatus) {
|
|
6056
|
-
case AbnValidationStatus.Invalid:
|
|
6057
|
-
return index.h("div", { class: "mt-2 text-sm text-red-600" }, "Enter a valid fund ABN (digits only)");
|
|
6058
|
-
case AbnValidationStatus.AbnIsUsedForRegulatedFund:
|
|
6059
|
-
return (index.h("div", { class: "mt-2 text-sm text-red-600" }, "The supplied ABN is for a regulated fund"));
|
|
6060
|
-
case AbnValidationStatus.Valid:
|
|
6061
|
-
return [];
|
|
6062
|
-
}
|
|
6063
|
-
}
|
|
6064
|
-
return [];
|
|
6065
|
-
}
|
|
6066
|
-
filterDigits(str) {
|
|
6067
|
-
return str.replace(/[^0-9]/g, '');
|
|
6068
|
-
}
|
|
6069
|
-
updateCurrentBank(ev) {
|
|
6070
|
-
const value = this.filterDigits(ev.target.value);
|
|
6071
|
-
const firstTwoNumbers = value.substring(0, 2);
|
|
6072
|
-
const firstThreeNumbers = value.substring(0, 3);
|
|
6073
|
-
const firstTwoNumberBankName = bsbNumbers[firstTwoNumbers];
|
|
6074
|
-
const firstThreeNumberBankName = bsbNumbers[firstThreeNumbers];
|
|
6075
|
-
if (firstTwoNumberBankName)
|
|
6076
|
-
this.currentBank = some(firstTwoNumberBankName);
|
|
6077
|
-
if (firstThreeNumberBankName)
|
|
6078
|
-
this.currentBank = some(firstThreeNumberBankName);
|
|
6079
|
-
if (value === '' || value.length > 6)
|
|
6080
|
-
this.currentBank = none;
|
|
6081
|
-
this.updateFormField('bsb', value);
|
|
6082
|
-
}
|
|
6083
|
-
updateCurrentBankAccountNumber(ev) {
|
|
6084
|
-
const value = this.filterDigits(ev.target.value);
|
|
6085
|
-
this.updateFormField('bankAccountNumber', value);
|
|
6086
|
-
}
|
|
6087
|
-
updateAddressErrorMessage() {
|
|
6088
|
-
let message = none;
|
|
6089
|
-
if (isNone(message) && !this.addressLine1Element.checkValidity()) {
|
|
6090
|
-
message = some('Enter a valid address line 1');
|
|
6091
|
-
}
|
|
6092
|
-
if (isNone(message) && !this.cityElement.checkValidity()) {
|
|
6093
|
-
message = some('Enter a valid city/suburb');
|
|
6094
|
-
}
|
|
6095
|
-
if (isNone(message) && !this.postcodeElement.checkValidity()) {
|
|
6096
|
-
message = some('Enter a valid post code');
|
|
6097
|
-
}
|
|
6098
|
-
if (isNone(message) && !this.stateElement.checkValidity()) {
|
|
6099
|
-
message = some('Select a state');
|
|
6100
|
-
}
|
|
6101
|
-
this.addressErrorMessage = message;
|
|
6102
|
-
}
|
|
6103
|
-
};
|
|
6104
|
-
|
|
6105
5904
|
const StandardChoiceFormInputDefaultFund = class {
|
|
6106
5905
|
constructor(hostRef) {
|
|
6107
5906
|
index.registerInstance(this, hostRef);
|
|
@@ -16366,6 +16165,106 @@ const SuperCampaignHost = class {
|
|
|
16366
16165
|
};
|
|
16367
16166
|
injectHistory(SuperCampaignHost);
|
|
16368
16167
|
|
|
16168
|
+
const LoadWaitingTimeout$1 = 30000;
|
|
16169
|
+
|
|
16170
|
+
var SuperSmsfComponentStatus;
|
|
16171
|
+
(function (SuperSmsfComponentStatus) {
|
|
16172
|
+
SuperSmsfComponentStatus[SuperSmsfComponentStatus["NotLoaded"] = 1] = "NotLoaded";
|
|
16173
|
+
SuperSmsfComponentStatus[SuperSmsfComponentStatus["Loaded"] = 2] = "Loaded";
|
|
16174
|
+
})(SuperSmsfComponentStatus || (SuperSmsfComponentStatus = {}));
|
|
16175
|
+
let superSmsfComponentStatus = SuperSmsfComponentStatus.NotLoaded;
|
|
16176
|
+
const SuperSmsfHost = class {
|
|
16177
|
+
constructor(hostRef) {
|
|
16178
|
+
index.registerInstance(this, hostRef);
|
|
16179
|
+
this.subscribeToSuperSmsfEvents = () => {
|
|
16180
|
+
for (const eventName in this.smsfEventHandlers) {
|
|
16181
|
+
document.addEventListener(eventName, this.smsfEventHandlers[eventName]);
|
|
16182
|
+
}
|
|
16183
|
+
};
|
|
16184
|
+
this.unSubscribeFromSuperSmsfEvents = () => {
|
|
16185
|
+
for (const eventName in this.smsfEventHandlers) {
|
|
16186
|
+
document.removeEventListener(eventName, this.smsfEventHandlers[eventName]);
|
|
16187
|
+
}
|
|
16188
|
+
};
|
|
16189
|
+
this.smsfLoaded = async (event) => {
|
|
16190
|
+
if (event.detail.sender === 'super-smsf') {
|
|
16191
|
+
superSmsfComponentStatus = SuperSmsfComponentStatus.Loaded;
|
|
16192
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
16193
|
+
}
|
|
16194
|
+
return Promise.resolve();
|
|
16195
|
+
};
|
|
16196
|
+
this.smsfCompleted = async (event) => {
|
|
16197
|
+
if (event.detail.sender === 'super-smsf') {
|
|
16198
|
+
navigationService.navigateInternallyToStandardChoice({
|
|
16199
|
+
history: this.history,
|
|
16200
|
+
fundName: 'Self-managed super fund',
|
|
16201
|
+
fundDetails: {
|
|
16202
|
+
type: 'smsf',
|
|
16203
|
+
fundName: event.detail.fundName,
|
|
16204
|
+
fundEsa: event.detail.fundEsa
|
|
16205
|
+
},
|
|
16206
|
+
handleSubmitFn: async (standardChoiceFormSignature) => {
|
|
16207
|
+
const requestDto = Object.assign({ smsfChoice: {
|
|
16208
|
+
abn: event.detail.fundAbn,
|
|
16209
|
+
fundName: event.detail.fundName,
|
|
16210
|
+
fundAddress: {
|
|
16211
|
+
addressLine1: event.detail.fundAddressLine1,
|
|
16212
|
+
addressLine2: event.detail.fundAddressLine2,
|
|
16213
|
+
city: event.detail.fundCity,
|
|
16214
|
+
state: event.detail.fundState,
|
|
16215
|
+
postcode: event.detail.fundPostcode
|
|
16216
|
+
},
|
|
16217
|
+
bsb: event.detail.bankBsb,
|
|
16218
|
+
bankAccountName: event.detail.bankAccountName,
|
|
16219
|
+
bankAccountNumber: event.detail.bankAccountNumber,
|
|
16220
|
+
electronicServiceAddress: event.detail.fundEsa,
|
|
16221
|
+
memberFirstName: event.detail.memberFirstName,
|
|
16222
|
+
memberFamilyName: event.detail.memberLastName
|
|
16223
|
+
}, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
|
|
16224
|
+
await customFundChoiceApi.submitSelfManagedFundChoiceAsync(requestDto);
|
|
16225
|
+
}
|
|
16226
|
+
});
|
|
16227
|
+
}
|
|
16228
|
+
};
|
|
16229
|
+
this.smsfCancelled = async (event) => {
|
|
16230
|
+
if (event.detail.sender === 'super-smsf') {
|
|
16231
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
|
|
16232
|
+
}
|
|
16233
|
+
};
|
|
16234
|
+
this.smsfEventHandlers = {
|
|
16235
|
+
'smsf-loaded': this.smsfLoaded.bind(this),
|
|
16236
|
+
'smsf-completed': this.smsfCompleted.bind(this),
|
|
16237
|
+
'smsf-cancelled': this.smsfCancelled.bind(this)
|
|
16238
|
+
};
|
|
16239
|
+
}
|
|
16240
|
+
async componentWillLoad() {
|
|
16241
|
+
if (Option.isSome(superSelectionAppService.backendUrl) && Option.isSome(superSelectionAppService.state.jwt)) {
|
|
16242
|
+
this.backendUrl = superSelectionAppService.backendUrl.value;
|
|
16243
|
+
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
16244
|
+
if (superSmsfComponentStatus === SuperSmsfComponentStatus.NotLoaded) {
|
|
16245
|
+
this.loadingTimeoutRef = setTimeout(this.smsfLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout$1);
|
|
16246
|
+
}
|
|
16247
|
+
this.subscribeToSuperSmsfEvents();
|
|
16248
|
+
}
|
|
16249
|
+
else {
|
|
16250
|
+
throw Error(`SuperSmsfHost pre-requisites not met.`);
|
|
16251
|
+
}
|
|
16252
|
+
}
|
|
16253
|
+
disconnectedCallback() {
|
|
16254
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
16255
|
+
this.unSubscribeFromSuperSmsfEvents();
|
|
16256
|
+
}
|
|
16257
|
+
render() {
|
|
16258
|
+
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 }))))));
|
|
16259
|
+
}
|
|
16260
|
+
async smsfLoadingTimeoutTriggered() {
|
|
16261
|
+
if (superSmsfComponentStatus !== SuperSmsfComponentStatus.Loaded) {
|
|
16262
|
+
throw Error(`SMSF component failed to load.`);
|
|
16263
|
+
}
|
|
16264
|
+
}
|
|
16265
|
+
};
|
|
16266
|
+
injectHistory(SuperSmsfHost);
|
|
16267
|
+
|
|
16369
16268
|
const routeCss = "stencil-route.inactive{display:none}";
|
|
16370
16269
|
|
|
16371
16270
|
const Route = class {
|
|
@@ -18201,12 +18100,11 @@ exports.sss_prefill_invalid_smsf = PrefillInvalidSMSF;
|
|
|
18201
18100
|
exports.sss_prefill_my_own_fund = PrefillMyOwnFund;
|
|
18202
18101
|
exports.sss_prefill_smsf = PrefillSMSF;
|
|
18203
18102
|
exports.sss_prefill_warning_box = PrefillWarningBox;
|
|
18204
|
-
exports.sss_self_managed_fund = SelfManagedFund;
|
|
18205
|
-
exports.sss_self_managed_fund_inputs = SelfManagedFundInputs;
|
|
18206
18103
|
exports.sss_standard_choice_form = StandardChoiceFormInputDefaultFund;
|
|
18207
18104
|
exports.sss_success = Success;
|
|
18208
18105
|
exports.sss_super_campaign_featured_funds = FeaturedFunds;
|
|
18209
18106
|
exports.sss_super_campaign_host = SuperCampaignHost;
|
|
18107
|
+
exports.sss_super_smsf_host = SuperSmsfHost;
|
|
18210
18108
|
exports.stencil_route = Route;
|
|
18211
18109
|
exports.stencil_route_link = RouteLink$1;
|
|
18212
18110
|
exports.stencil_route_switch = RouteSwitch;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"entries": [
|
|
3
3
|
"./components/super-selection-app/misc/button.js",
|
|
4
4
|
"./components/super-selection-app/misc/dropdown-async.js",
|
|
5
|
-
"./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund-inputs.js",
|
|
6
5
|
"./components/super-selection-app/super-selection-app.js",
|
|
7
6
|
"./components/app-host/loading-page.js",
|
|
8
7
|
"./components/app-host/super-selection-app-host.js",
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
"./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js",
|
|
19
18
|
"./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js",
|
|
20
19
|
"./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js",
|
|
21
|
-
"./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js",
|
|
22
20
|
"./components/super-selection-app/header-section/header-section.js",
|
|
23
21
|
"./components/super-selection-app/misc/loading-indicator.js",
|
|
24
22
|
"./components/super-selection-app/prefill-fund/prefill-display-field.js",
|
|
@@ -29,7 +27,8 @@
|
|
|
29
27
|
"./components/super-selection-app/prefill-fund/prefill-smsf.js",
|
|
30
28
|
"./components/super-selection-app/prefill-fund/prefill-warning-box.js",
|
|
31
29
|
"./components/super-selection-app/prefill-fund/prefill.js",
|
|
32
|
-
"./components/super-selection-app/standard-choice/standard-choice-form.js"
|
|
30
|
+
"./components/super-selection-app/standard-choice/standard-choice-form.js",
|
|
31
|
+
"./components/super-smsf/super-smsf.js"
|
|
33
32
|
],
|
|
34
33
|
"compiler": {
|
|
35
34
|
"name": "@stencil/core",
|
|
@@ -82,12 +81,11 @@
|
|
|
82
81
|
"sss-prefill-my-own-fund",
|
|
83
82
|
"sss-prefill-smsf",
|
|
84
83
|
"sss-prefill-warning-box",
|
|
85
|
-
"sss-self-managed-fund",
|
|
86
|
-
"sss-self-managed-fund-inputs",
|
|
87
84
|
"sss-standard-choice-form",
|
|
88
85
|
"sss-success",
|
|
89
86
|
"sss-super-campaign-featured-funds",
|
|
90
87
|
"sss-super-campaign-host",
|
|
88
|
+
"sss-super-smsf-host",
|
|
91
89
|
"stencil-route",
|
|
92
90
|
"stencil-route-link",
|
|
93
91
|
"stencil-route-switch",
|
package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js
CHANGED
|
@@ -28,7 +28,7 @@ export const superSelectionAppStencilRoutes = [
|
|
|
28
28
|
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
|
|
29
29
|
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillSMSFPage, component: "sss-prefill-smsf" }),
|
|
30
30
|
h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidSMSFPage, component: "sss-prefill-invalid-smsf" }),
|
|
31
|
-
h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-
|
|
31
|
+
h("stencil-route", { url: SuperSelectionAppRoutes.SelfManagedFund, component: "sss-super-smsf-host" }),
|
|
32
32
|
h("stencil-route", { url: SuperSelectionAppRoutes.DefaultFund, component: "sss-default-fund" }),
|
|
33
33
|
h("stencil-route", { url: SuperSelectionAppRoutes.FeaturedFunds, component: "sss-super-campaign-featured-funds" }),
|
|
34
34
|
h("stencil-route", { url: SuperSelectionAppRoutes.StandardChoice, component: "sss-standard-choice-form" }),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LoadWaitingTimeout = 30000;
|