@flarehr/apollo-super-selection 5.16.49123 → 5.18.50860
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-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-bef636e4.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-e2ab4ebc.system.entry.js +69 -0
- 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_43.cjs.entry.js +122 -38
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +1 -0
- package/dist/lib/collection/components/super-campaign/super-campaign.js +64 -19
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors-api.js +9 -0
- package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js +1 -0
- package/dist/lib/collection/components/super-selection-app/api/super-selection.api.js +3 -0
- package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js +1 -3
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +3 -2
- package/dist/lib/collection/components/super-selection-app/header-section/header-section.js +13 -3
- package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +5 -5
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +22 -3
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +8 -1
- package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +1 -5
- package/dist/lib/collection/components/super-selection-app/super-selection-app.js +0 -3
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/sss-button_43.entry.js +122 -38
- 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_43.entry.js +5 -5
- package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +10 -1
- package/dist/lib/types/components/super-campaign/super-campaign.d.ts +6 -1
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors-api.d.ts +6 -0
- package/dist/lib/types/components/super-selection-app/api/super-campaign-errors.api.dtos.d.ts +7 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +13 -7
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -1
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/api/custom-fund-choice.api.dto.d.ts +5 -11
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +4 -13
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +2 -5
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +1 -1
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +7 -9
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +6 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-8ade1d43.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-8b804b51.system.entry.js +0 -69
|
@@ -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-button_43.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page-wrapper",{"history":[16]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page-wrapper",{"history":[16]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[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-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[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-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-super-campaign-host",{"history":[16],"
|
|
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_43.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page-wrapper",{"history":[16]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page-wrapper",{"history":[16]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[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-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[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-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[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-footer-section",{"textOverride":[16]}],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"customContent":[16],"isMultiFund":[4,"is-multi-fund"],"isPromotedDefault":[4,"is-promoted-default"],"extraBadge":[16]}],[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]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[4,"sss-loading-component",{"header":[1]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[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-header-section",{"currentPage":[1,"current-page"]}],[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-button_43.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page-wrapper",{"history":[16]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page-wrapper",{"history":[16]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[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-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[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-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-super-campaign-host",{"history":[16],"
|
|
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_43.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page-wrapper",{"history":[16]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-consent-page-wrapper",{"history":[16]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[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-promoted-fund-join-v1-page",{"history":[16]}],[0,"sss-promoted-fund-join-v2-page",{"history":[16]}],[0,"sss-slate-join-page",{"history":[16]}],[0,"sss-success"],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[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-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-loading-super-indicator"],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[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-footer-section",{"textOverride":[16]}],[0,"sss-super-choice-item-top",{"name":[1],"logo":[1],"features":[16],"featureSubText":[16],"customContent":[16],"isMultiFund":[4,"is-multi-fund"],"isPromotedDefault":[4,"is-promoted-default"],"extraBadge":[16]}],[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]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[4,"sss-loading-component",{"header":[1]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[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-header-section",{"currentPage":[1,"current-page"]}],[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.18.50860';
|
|
288
288
|
|
|
289
289
|
// -------------------------------------------------------------------------------------
|
|
290
290
|
// guards
|
|
@@ -3507,6 +3507,9 @@ class SuperSelectionApi {
|
|
|
3507
3507
|
async clickPromotedTileAsync(payload) {
|
|
3508
3508
|
return buildBackendApiClient().url('click-promoted-tile').post(payload).res();
|
|
3509
3509
|
}
|
|
3510
|
+
async viewSuperFundPanelAsync(payload) {
|
|
3511
|
+
return buildBackendApiClient().url('view-super-fund-panel').post(payload).res();
|
|
3512
|
+
}
|
|
3510
3513
|
toSearchFilterQueryString(searchFilter) {
|
|
3511
3514
|
return (`search=${searchFilter.searchString}` +
|
|
3512
3515
|
(searchFilter.maxRecordCount > 0 ? '&maxRecordCount=' + searchFilter.maxRecordCount : ''));
|
|
@@ -3520,6 +3523,12 @@ class SuperSelectionApi {
|
|
|
3520
3523
|
}
|
|
3521
3524
|
const superSelectionApi = new SuperSelectionApi();
|
|
3522
3525
|
|
|
3526
|
+
var SuperCampaignComponentStatus;
|
|
3527
|
+
(function (SuperCampaignComponentStatus) {
|
|
3528
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotLoaded"] = 1] = "NotLoaded";
|
|
3529
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["Loaded"] = 2] = "Loaded";
|
|
3530
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotWorking"] = 3] = "NotWorking";
|
|
3531
|
+
})(SuperCampaignComponentStatus || (SuperCampaignComponentStatus = {}));
|
|
3523
3532
|
class SuperCampaignState {
|
|
3524
3533
|
constructor() {
|
|
3525
3534
|
this._promotedFundsShown = [];
|
|
@@ -3553,7 +3562,8 @@ const initialState = {
|
|
|
3553
3562
|
isDefinedBenefitsEligible: Option.none,
|
|
3554
3563
|
campaignConnect: Option.none,
|
|
3555
3564
|
superCampaignEnabled: false,
|
|
3556
|
-
superCampaignState: undefined
|
|
3565
|
+
superCampaignState: undefined,
|
|
3566
|
+
superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded
|
|
3557
3567
|
};
|
|
3558
3568
|
|
|
3559
3569
|
class SuperSelectionAppService {
|
|
@@ -3694,15 +3704,34 @@ class SuperSelectionAppService {
|
|
|
3694
3704
|
else
|
|
3695
3705
|
throw new Error('Cannot set shown funds for SuperCampaing state because it is undefined');
|
|
3696
3706
|
}
|
|
3707
|
+
viewSuperFundPanelAsync(promotedFundIdListOverride) {
|
|
3708
|
+
return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({}, this.promotedFundsConfig), { shownFunds: promotedFundIdListOverride
|
|
3709
|
+
? promotedFundIdListOverride
|
|
3710
|
+
: this.promotedFundsConfig.shownFunds }));
|
|
3711
|
+
}
|
|
3697
3712
|
get superCampaignState() {
|
|
3698
3713
|
return this._state.superCampaignState;
|
|
3699
3714
|
}
|
|
3700
|
-
|
|
3701
|
-
this._state.
|
|
3715
|
+
get superCampaignComponentStatus() {
|
|
3716
|
+
return this._state.superCampaignComponentStatus;
|
|
3717
|
+
}
|
|
3718
|
+
set superCampaignComponentStatus(value) {
|
|
3719
|
+
if (value === SuperCampaignComponentStatus.Loaded) {
|
|
3720
|
+
this._state.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
3721
|
+
this._state.superCampaignState = new SuperCampaignState();
|
|
3722
|
+
}
|
|
3723
|
+
else {
|
|
3724
|
+
this._state.superCampaignComponentStatus = value;
|
|
3725
|
+
this._state.superCampaignState = undefined;
|
|
3726
|
+
}
|
|
3702
3727
|
}
|
|
3703
3728
|
get isUsingSuperCampaign() {
|
|
3704
3729
|
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
3705
3730
|
}
|
|
3731
|
+
get isSuperCampaignFallbackActivated() {
|
|
3732
|
+
return (this.state.superCampaignEnabled &&
|
|
3733
|
+
this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
|
|
3734
|
+
}
|
|
3706
3735
|
}
|
|
3707
3736
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
3708
3737
|
|
|
@@ -3785,11 +3814,6 @@ class EventTrackingService {
|
|
|
3785
3814
|
}
|
|
3786
3815
|
});
|
|
3787
3816
|
}
|
|
3788
|
-
async TrackSuperFundPanelViewedAsync(detail) {
|
|
3789
|
-
return this.trackEventAsync({
|
|
3790
|
-
SuperFundPanelViewed: detail
|
|
3791
|
-
});
|
|
3792
|
-
}
|
|
3793
3817
|
async TrackSuperFundNominationViewedAsync(detail) {
|
|
3794
3818
|
return this.trackEventAsync({
|
|
3795
3819
|
SuperFundNominationViewed: detail
|
|
@@ -3825,6 +3849,11 @@ class EventTrackingService {
|
|
|
3825
3849
|
SuperFundDetailChangeRequested: detail
|
|
3826
3850
|
});
|
|
3827
3851
|
}
|
|
3852
|
+
async TrackSuperCampaignActivationSucceededAsync(detail) {
|
|
3853
|
+
return this.trackEventAsync({
|
|
3854
|
+
SuperCampaignActivationSucceeded: detail
|
|
3855
|
+
});
|
|
3856
|
+
}
|
|
3828
3857
|
async trackEventAsync(event) {
|
|
3829
3858
|
try {
|
|
3830
3859
|
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
@@ -5061,9 +5090,7 @@ const ExistingChoice = class {
|
|
|
5061
5090
|
async handleFundNominationDeclined() {
|
|
5062
5091
|
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
5063
5092
|
await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(detail);
|
|
5064
|
-
|
|
5065
|
-
? navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign)
|
|
5066
|
-
: navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
5093
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
5067
5094
|
}
|
|
5068
5095
|
};
|
|
5069
5096
|
|
|
@@ -5100,7 +5127,16 @@ const HeaderSection = class {
|
|
|
5100
5127
|
index.registerInstance(this, hostRef);
|
|
5101
5128
|
}
|
|
5102
5129
|
render() {
|
|
5103
|
-
|
|
5130
|
+
const description = superSelectionAppService.isSuperCampaignFallbackActivated
|
|
5131
|
+
? `
|
|
5132
|
+
You can choose any super fund, including your current fund/SMSF or your employer’s
|
|
5133
|
+
default fund.
|
|
5134
|
+
`
|
|
5135
|
+
: `
|
|
5136
|
+
You can choose any super fund, including your current fund/SMSF, your employer’s
|
|
5137
|
+
default fund, or alternatively, you can select from one of the featured funds.
|
|
5138
|
+
`;
|
|
5139
|
+
return (index.h("div", { class: "flex justify-center" }, index.h("div", { class: "text-center max-w-800" }, index.h("h3", { class: "font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl" }, "Nominate a super fund"), index.h(index.Fragment, null, index.h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" }, description), !superSelectionAppService.isSuperCampaignFallbackActivated && (index.h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" }, index.h(RouteLink, { route: SuperSelectionAppRoutes.ChoicePage, isActive: this.currentPage === 'choice' }, "Featured super funds"), index.h(ChooseAnotherFundLink, { isActive: this.currentPage === 'own-fund' })))))));
|
|
5104
5140
|
}
|
|
5105
5141
|
};
|
|
5106
5142
|
|
|
@@ -5168,6 +5204,7 @@ const MyOwnFund = class {
|
|
|
5168
5204
|
});
|
|
5169
5205
|
}
|
|
5170
5206
|
render() {
|
|
5207
|
+
const isSuperCampaignFallbackActivated = superSelectionAppService.isSuperCampaignFallbackActivated;
|
|
5171
5208
|
return (index.h(index.Host, null, index.h("sss-header-section", { currentPage: "own-fund" }), 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: {
|
|
5172
5209
|
'was-validated': this.formState === 'validated'
|
|
5173
5210
|
}, ref: (el) => (this.formElement = el), onInput: (_) => (this.isSubmitDisabled = !this.formElement.checkValidity()) }, index.h("div", { class: "p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg" }, index.h("p", { class: "sm:text-lg font-bold mb-3" }, "Fund details"), index.h("div", { class: "bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4" }, 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-2" }, index.h("ul", { class: "list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5" }, index.h("li", null, "Make sure you are a current member of the fund before completing this step."), index.h("li", null, "Please check that the fund USI is correct as some funds have similar names."))))), index.h("sss-my-own-fund-inputs", { myOwnFundForm: state$2.myOwnFundForm, showValidationErrors: this.formState === 'validated', onFormChanged: (event) => {
|
|
@@ -5175,7 +5212,7 @@ const MyOwnFund = class {
|
|
|
5175
5212
|
this.isNotAllInformationProvidedMessageVisible = false;
|
|
5176
5213
|
} }), this.isNotAllInformationProvidedMessageVisible && (index.h("div", { class: "mt-4 rounded-md bg-red-50 p-4 text-sm text-red-700" }, "All fields are required to complete submission. Make sure you have selected a fund."))), 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:
|
|
5177
5214
|
// user clicks on disabled button (div wrapper) then validation errors will show
|
|
5178
|
-
() => (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")))))))));
|
|
5215
|
+
() => (this.formState = 'validated') }, index.h("sss-button", { testid: "continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Continue")), !isSuperCampaignFallbackActivated && (index.h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage }, index.h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back"))))))))));
|
|
5179
5216
|
}
|
|
5180
5217
|
async handleSubmitForm() {
|
|
5181
5218
|
this.formState = 'validated';
|
|
@@ -16885,6 +16922,15 @@ const Success = class {
|
|
|
16885
16922
|
}
|
|
16886
16923
|
};
|
|
16887
16924
|
|
|
16925
|
+
class SuperCampaignErrorApi {
|
|
16926
|
+
static get Instance() {
|
|
16927
|
+
return this.instance || (this.instance = new this());
|
|
16928
|
+
}
|
|
16929
|
+
async PostError(error) {
|
|
16930
|
+
buildBackendApiClient().url('super-campaign/errors').post(error);
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16933
|
+
|
|
16888
16934
|
class MiscService {
|
|
16889
16935
|
trackClickPromotedTileAsync(payload) {
|
|
16890
16936
|
return superSelectionApi.clickPromotedTileAsync(payload);
|
|
@@ -16897,11 +16943,12 @@ const Usi = {
|
|
|
16897
16943
|
return usi.replace(/ /g, '');
|
|
16898
16944
|
}
|
|
16899
16945
|
};
|
|
16946
|
+
const LoadWaitingTimeout = 30000;
|
|
16900
16947
|
|
|
16901
16948
|
const SuperCampaignHost = class {
|
|
16902
16949
|
constructor(hostRef) {
|
|
16903
16950
|
index.registerInstance(this, hostRef);
|
|
16904
|
-
this.
|
|
16951
|
+
this.scriptImported = false;
|
|
16905
16952
|
this.getEnvironmentTag = () => {
|
|
16906
16953
|
const discriminator = window.location.hostname.toLowerCase().split('.')[0];
|
|
16907
16954
|
switch (discriminator) {
|
|
@@ -16929,10 +16976,28 @@ const SuperCampaignHost = class {
|
|
|
16929
16976
|
};
|
|
16930
16977
|
this.superCampaignLoaded = async (event) => {
|
|
16931
16978
|
if (event.detail.sender == 'super-campaign') {
|
|
16932
|
-
superSelectionAppService.
|
|
16979
|
+
superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
16980
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
16981
|
+
await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
|
|
16933
16982
|
}
|
|
16934
16983
|
return Promise.resolve();
|
|
16935
16984
|
};
|
|
16985
|
+
this.superCampaignLoadFailed = async (event) => {
|
|
16986
|
+
if (event.detail.sender == 'super-campaign') {
|
|
16987
|
+
await this.activateFallbackMechanism({
|
|
16988
|
+
type: 'SuperCampaignActivationFailed',
|
|
16989
|
+
reason: event.detail.reason || 'Unknown'
|
|
16990
|
+
});
|
|
16991
|
+
}
|
|
16992
|
+
};
|
|
16993
|
+
this.superCampaignFailed = async (event) => {
|
|
16994
|
+
if (event.detail.sender == 'super-campaign') {
|
|
16995
|
+
await this.activateFallbackMechanism({
|
|
16996
|
+
type: 'SuperCampaignOperationFailed',
|
|
16997
|
+
reason: event.detail.reason || 'Unknown'
|
|
16998
|
+
});
|
|
16999
|
+
}
|
|
17000
|
+
};
|
|
16936
17001
|
this.chooseAnotherFundRequested = async (event) => {
|
|
16937
17002
|
if (event.detail.sender == 'super-campaign') {
|
|
16938
17003
|
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
@@ -16940,13 +17005,8 @@ const SuperCampaignHost = class {
|
|
|
16940
17005
|
};
|
|
16941
17006
|
this.fundPanelShown = async (event) => {
|
|
16942
17007
|
if (event.detail.sender == 'super-campaign') {
|
|
16943
|
-
const promotedFundsShown = event.detail.shownFunds.map((f) => f.fundId);
|
|
16944
17008
|
superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
|
|
16945
|
-
await
|
|
16946
|
-
promotedFundsShown,
|
|
16947
|
-
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
|
|
16948
|
-
superCampaignEnabled: true
|
|
16949
|
-
});
|
|
17009
|
+
await superSelectionAppService.viewSuperFundPanelAsync();
|
|
16950
17010
|
}
|
|
16951
17011
|
};
|
|
16952
17012
|
this.fundTileClicked = async (event) => {
|
|
@@ -17126,36 +17186,67 @@ const SuperCampaignHost = class {
|
|
|
17126
17186
|
'disclaimer-viewed': this.disclaimerViewed.bind(this),
|
|
17127
17187
|
'disclaimer-accepted': this.disclaimerAccepted.bind(this),
|
|
17128
17188
|
'promoted-fund-joined': this.promotedFundJoined.bind(this),
|
|
17129
|
-
'super-campaign-loaded': this.superCampaignLoaded.bind(this)
|
|
17189
|
+
'super-campaign-loaded': this.superCampaignLoaded.bind(this),
|
|
17190
|
+
'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
|
|
17191
|
+
'super-campaign-failed': this.superCampaignFailed.bind(this)
|
|
17130
17192
|
};
|
|
17131
17193
|
}
|
|
17132
17194
|
async componentWillLoad() {
|
|
17195
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
17196
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
17197
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
17198
|
+
return;
|
|
17199
|
+
}
|
|
17200
|
+
let superCampaingScriptPath = undefined;
|
|
17133
17201
|
try {
|
|
17134
17202
|
if (Option.isSome(superSelectionAppService.state.apiBaseUrl) &&
|
|
17135
17203
|
Option.isSome(superSelectionAppService.state.jwt)) {
|
|
17136
17204
|
this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
|
|
17137
17205
|
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
17138
17206
|
this.unSubscribeFromSuperCampaignEvents();
|
|
17139
|
-
|
|
17207
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
17208
|
+
SuperCampaignComponentStatus.NotLoaded) {
|
|
17209
|
+
superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());
|
|
17210
|
+
await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(superCampaingScriptPath)); });
|
|
17211
|
+
this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
|
|
17212
|
+
}
|
|
17140
17213
|
this.subscribeToSuperCampaignEvents();
|
|
17141
|
-
this.
|
|
17214
|
+
this.scriptImported = true;
|
|
17142
17215
|
}
|
|
17143
17216
|
else {
|
|
17144
17217
|
throw Error(`SuperCampaignHost pre-requisites not met.`);
|
|
17145
17218
|
}
|
|
17146
17219
|
}
|
|
17147
17220
|
catch (error) {
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17221
|
+
this.activateFallbackMechanism({
|
|
17222
|
+
type: 'SuperCampaignActivationFailed',
|
|
17223
|
+
reason: `Problem in loading SuperCampaing script from:${superCampaingScriptPath} Error: ${error}`
|
|
17224
|
+
});
|
|
17152
17225
|
}
|
|
17153
17226
|
}
|
|
17154
17227
|
disconnectedCallback() {
|
|
17228
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
17155
17229
|
this.unSubscribeFromSuperCampaignEvents();
|
|
17156
17230
|
}
|
|
17157
17231
|
render() {
|
|
17158
|
-
return (index.h("div", null, this.
|
|
17232
|
+
return (index.h("div", null, this.scriptImported ? (index.h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
|
|
17233
|
+
}
|
|
17234
|
+
async activateFallbackMechanism(error) {
|
|
17235
|
+
if (superSelectionAppService.superCampaignComponentStatus !==
|
|
17236
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
17237
|
+
superSelectionAppService.superCampaignComponentStatus =
|
|
17238
|
+
SuperCampaignComponentStatus.NotWorking;
|
|
17239
|
+
await SuperCampaignErrorApi.Instance.PostError(error);
|
|
17240
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
17241
|
+
}
|
|
17242
|
+
}
|
|
17243
|
+
async superCampaignLoadingTimeoutTriggered() {
|
|
17244
|
+
if (superSelectionAppService.superCampaignComponentStatus !== SuperCampaignComponentStatus.Loaded) {
|
|
17245
|
+
this.activateFallbackMechanism({
|
|
17246
|
+
type: 'SuperCampaignActivationFailed',
|
|
17247
|
+
reason: `Activation timeout was triggered after:${LoadWaitingTimeout / 1000} seconds`
|
|
17248
|
+
});
|
|
17249
|
+
}
|
|
17159
17250
|
}
|
|
17160
17251
|
createApolloSuperCampaignScriptUrl(envTag) {
|
|
17161
17252
|
return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
|
|
@@ -17211,11 +17302,7 @@ const SuperChoicePage = class {
|
|
|
17211
17302
|
}
|
|
17212
17303
|
async componentDidLoad() {
|
|
17213
17304
|
const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
|
|
17214
|
-
|
|
17215
|
-
promotedFundsShown,
|
|
17216
|
-
defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
|
|
17217
|
-
superCampaignEnabled: false
|
|
17218
|
-
});
|
|
17305
|
+
await superSelectionAppService.viewSuperFundPanelAsync(promotedFundsShown);
|
|
17219
17306
|
}
|
|
17220
17307
|
render() {
|
|
17221
17308
|
const mygovLink = 'https://my.gov.au';
|
|
@@ -18304,9 +18391,6 @@ const SuperSelectionApp = class {
|
|
|
18304
18391
|
!shouldIgnoreExistingChoice) {
|
|
18305
18392
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ExistingChoicePage);
|
|
18306
18393
|
}
|
|
18307
|
-
else if (superSelectionAppService.state.superCampaignEnabled) {
|
|
18308
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign);
|
|
18309
|
-
}
|
|
18310
18394
|
else {
|
|
18311
18395
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
18312
18396
|
}
|
|
@@ -4,6 +4,7 @@ import { pipe } from 'fp-ts/lib/function';
|
|
|
4
4
|
import * as O from 'fp-ts/lib/Option';
|
|
5
5
|
import { isSome } from 'fp-ts/lib/Option';
|
|
6
6
|
import appInsightsService from '../app-host/services/appinsights.service';
|
|
7
|
+
import { SuperCampaignErrorApi } from '../super-selection-app/api/super-campaign-errors-api';
|
|
7
8
|
import { SuperFundDisclaimerViewedDetail } from '../super-selection-app/api/super-selection-events.model';
|
|
8
9
|
import { getFundNameByFundId } from '../super-selection-app/funds/constants';
|
|
9
10
|
import customFundChoiceApi from '../super-selection-app/funds/custom-fund/api/custom-fund-choice.api';
|
|
@@ -13,13 +14,13 @@ import slateChoiceApi from '../super-selection-app/funds/slate-super/api/slate-c
|
|
|
13
14
|
import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
|
|
14
15
|
import miscService from '../super-selection-app/services/misc.service';
|
|
15
16
|
import navigationService from '../super-selection-app/services/navigation.service';
|
|
16
|
-
import {
|
|
17
|
+
import { SuperCampaignComponentStatus } from '../super-selection-app/services/super-selection.store';
|
|
17
18
|
import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
|
|
18
19
|
import superSelectionAppService from '../super-selection-app/services/super-selection-app.service';
|
|
19
|
-
import { Usi } from './super-campaign-types';
|
|
20
|
+
import { LoadWaitingTimeout, Usi } from './super-campaign-types';
|
|
20
21
|
export class SuperCampaignHost {
|
|
21
22
|
constructor() {
|
|
22
|
-
this.
|
|
23
|
+
this.scriptImported = false;
|
|
23
24
|
this.getEnvironmentTag = () => {
|
|
24
25
|
const discriminator = window.location.hostname.toLowerCase().split('.')[0];
|
|
25
26
|
switch (discriminator) {
|
|
@@ -47,10 +48,28 @@ export class SuperCampaignHost {
|
|
|
47
48
|
};
|
|
48
49
|
this.superCampaignLoaded = async (event) => {
|
|
49
50
|
if (event.detail.sender == 'super-campaign') {
|
|
50
|
-
superSelectionAppService.
|
|
51
|
+
superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
52
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
53
|
+
await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
|
|
51
54
|
}
|
|
52
55
|
return Promise.resolve();
|
|
53
56
|
};
|
|
57
|
+
this.superCampaignLoadFailed = async (event) => {
|
|
58
|
+
if (event.detail.sender == 'super-campaign') {
|
|
59
|
+
await this.activateFallbackMechanism({
|
|
60
|
+
type: 'SuperCampaignActivationFailed',
|
|
61
|
+
reason: event.detail.reason || 'Unknown'
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
this.superCampaignFailed = async (event) => {
|
|
66
|
+
if (event.detail.sender == 'super-campaign') {
|
|
67
|
+
await this.activateFallbackMechanism({
|
|
68
|
+
type: 'SuperCampaignOperationFailed',
|
|
69
|
+
reason: event.detail.reason || 'Unknown'
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
};
|
|
54
73
|
this.chooseAnotherFundRequested = async (event) => {
|
|
55
74
|
if (event.detail.sender == 'super-campaign') {
|
|
56
75
|
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
@@ -58,13 +77,8 @@ export class SuperCampaignHost {
|
|
|
58
77
|
};
|
|
59
78
|
this.fundPanelShown = async (event) => {
|
|
60
79
|
if (event.detail.sender == 'super-campaign') {
|
|
61
|
-
const promotedFundsShown = event.detail.shownFunds.map((f) => f.fundId);
|
|
62
80
|
superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
|
|
63
|
-
await
|
|
64
|
-
promotedFundsShown,
|
|
65
|
-
defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi),
|
|
66
|
-
superCampaignEnabled: true
|
|
67
|
-
});
|
|
81
|
+
await superSelectionAppService.viewSuperFundPanelAsync();
|
|
68
82
|
}
|
|
69
83
|
};
|
|
70
84
|
this.fundTileClicked = async (event) => {
|
|
@@ -244,36 +258,67 @@ export class SuperCampaignHost {
|
|
|
244
258
|
'disclaimer-viewed': this.disclaimerViewed.bind(this),
|
|
245
259
|
'disclaimer-accepted': this.disclaimerAccepted.bind(this),
|
|
246
260
|
'promoted-fund-joined': this.promotedFundJoined.bind(this),
|
|
247
|
-
'super-campaign-loaded': this.superCampaignLoaded.bind(this)
|
|
261
|
+
'super-campaign-loaded': this.superCampaignLoaded.bind(this),
|
|
262
|
+
'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
|
|
263
|
+
'super-campaign-failed': this.superCampaignFailed.bind(this)
|
|
248
264
|
};
|
|
249
265
|
}
|
|
250
266
|
async componentWillLoad() {
|
|
267
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
268
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
269
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
let superCampaingScriptPath = undefined;
|
|
251
273
|
try {
|
|
252
274
|
if (isSome(superSelectionAppService.state.apiBaseUrl) &&
|
|
253
275
|
isSome(superSelectionAppService.state.jwt)) {
|
|
254
276
|
this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
|
|
255
277
|
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
256
278
|
this.unSubscribeFromSuperCampaignEvents();
|
|
257
|
-
|
|
279
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
280
|
+
SuperCampaignComponentStatus.NotLoaded) {
|
|
281
|
+
superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());
|
|
282
|
+
await import(superCampaingScriptPath);
|
|
283
|
+
this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
|
|
284
|
+
}
|
|
258
285
|
this.subscribeToSuperCampaignEvents();
|
|
259
|
-
this.
|
|
286
|
+
this.scriptImported = true;
|
|
260
287
|
}
|
|
261
288
|
else {
|
|
262
289
|
throw Error(`SuperCampaignHost pre-requisites not met.`);
|
|
263
290
|
}
|
|
264
291
|
}
|
|
265
292
|
catch (error) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
293
|
+
this.activateFallbackMechanism({
|
|
294
|
+
type: 'SuperCampaignActivationFailed',
|
|
295
|
+
reason: `Problem in loading SuperCampaing script from:${superCampaingScriptPath} Error: ${error}`
|
|
296
|
+
});
|
|
270
297
|
}
|
|
271
298
|
}
|
|
272
299
|
disconnectedCallback() {
|
|
300
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
273
301
|
this.unSubscribeFromSuperCampaignEvents();
|
|
274
302
|
}
|
|
275
303
|
render() {
|
|
276
|
-
return (h("div", null, this.
|
|
304
|
+
return (h("div", null, this.scriptImported ? (h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
|
|
305
|
+
}
|
|
306
|
+
async activateFallbackMechanism(error) {
|
|
307
|
+
if (superSelectionAppService.superCampaignComponentStatus !==
|
|
308
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
309
|
+
superSelectionAppService.superCampaignComponentStatus =
|
|
310
|
+
SuperCampaignComponentStatus.NotWorking;
|
|
311
|
+
await SuperCampaignErrorApi.Instance.PostError(error);
|
|
312
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
async superCampaignLoadingTimeoutTriggered() {
|
|
316
|
+
if (superSelectionAppService.superCampaignComponentStatus !== SuperCampaignComponentStatus.Loaded) {
|
|
317
|
+
this.activateFallbackMechanism({
|
|
318
|
+
type: 'SuperCampaignActivationFailed',
|
|
319
|
+
reason: `Activation timeout was triggered after:${LoadWaitingTimeout / 1000} seconds`
|
|
320
|
+
});
|
|
321
|
+
}
|
|
277
322
|
}
|
|
278
323
|
createApolloSuperCampaignScriptUrl(envTag) {
|
|
279
324
|
return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
|
|
@@ -314,7 +359,7 @@ export class SuperCampaignHost {
|
|
|
314
359
|
}
|
|
315
360
|
}; }
|
|
316
361
|
static get states() { return {
|
|
317
|
-
"
|
|
362
|
+
"scriptImported": {},
|
|
318
363
|
"backendUrl": {},
|
|
319
364
|
"accessToken": {}
|
|
320
365
|
}; }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { buildBackendApiClient } from './api-client';
|
|
2
|
+
export class SuperCampaignErrorApi {
|
|
3
|
+
static get Instance() {
|
|
4
|
+
return this.instance || (this.instance = new this());
|
|
5
|
+
}
|
|
6
|
+
async PostError(error) {
|
|
7
|
+
buildBackendApiClient().url('super-campaign/errors').post(error);
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/lib/collection/components/super-selection-app/api/super-campaign-errors.api.dtos.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -61,6 +61,9 @@ export class SuperSelectionApi {
|
|
|
61
61
|
async clickPromotedTileAsync(payload) {
|
|
62
62
|
return buildBackendApiClient().url('click-promoted-tile').post(payload).res();
|
|
63
63
|
}
|
|
64
|
+
async viewSuperFundPanelAsync(payload) {
|
|
65
|
+
return buildBackendApiClient().url('view-super-fund-panel').post(payload).res();
|
|
66
|
+
}
|
|
64
67
|
toSearchFilterQueryString(searchFilter) {
|
|
65
68
|
return (`search=${searchFilter.searchString}` +
|
|
66
69
|
(searchFilter.maxRecordCount > 0 ? '&maxRecordCount=' + searchFilter.maxRecordCount : ''));
|
package/dist/lib/collection/components/super-selection-app/existing-choice/existing-choice.js
CHANGED
|
@@ -136,9 +136,7 @@ export class ExistingChoice {
|
|
|
136
136
|
async handleFundNominationDeclined() {
|
|
137
137
|
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
138
138
|
await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(detail);
|
|
139
|
-
|
|
140
|
-
? navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign)
|
|
141
|
-
: navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
139
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
142
140
|
}
|
|
143
141
|
static get is() { return "sss-existing-choice-page"; }
|
|
144
142
|
static get properties() { return {
|
|
@@ -21,6 +21,7 @@ export class MyOwnFund {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
+
const isSuperCampaignFallbackActivated = superSelectionAppService.isSuperCampaignFallbackActivated;
|
|
24
25
|
return (h(Host, null,
|
|
25
26
|
h("sss-header-section", { currentPage: "own-fund" }),
|
|
26
27
|
h("div", { class: "flex justify-center mt-11" },
|
|
@@ -49,8 +50,8 @@ export class MyOwnFund {
|
|
|
49
50
|
// user clicks on disabled button (div wrapper) then validation errors will show
|
|
50
51
|
() => (this.formState = 'validated') },
|
|
51
52
|
h("sss-button", { testid: "continue-button", fillWidth: true, promiseFn: () => this.handleSubmitForm(), disabled: this.isSubmitDisabled }, "Continue")),
|
|
52
|
-
h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage },
|
|
53
|
-
h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back")))))))));
|
|
53
|
+
!isSuperCampaignFallbackActivated && (h("stencil-route-link", { url: SuperSelectionAppRoutes.ChoicePage },
|
|
54
|
+
h("sss-button", { testid: "back-button", fillWidth: true, variant: "secondary" }, "Back"))))))))));
|
|
54
55
|
}
|
|
55
56
|
async handleSubmitForm() {
|
|
56
57
|
this.formState = 'validated';
|