@flarehr/apollo-super-selection 5.15.48847 → 5.17.50662
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-40d52425.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-d7f9d782.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 +112 -22
- package/dist/lib/collection/components/super-campaign/super-campaign-types.js +1 -0
- package/dist/lib/collection/components/super-campaign/super-campaign.js +63 -13
- 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/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 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +17 -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-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 +112 -22
- 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 -0
- package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +4 -2
- 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-11c7ec31.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-1677af86.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.17.50662';
|
|
288
288
|
|
|
289
289
|
// -------------------------------------------------------------------------------------
|
|
290
290
|
// guards
|
|
@@ -3520,6 +3520,12 @@ class SuperSelectionApi {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
const superSelectionApi = new SuperSelectionApi();
|
|
3522
3522
|
|
|
3523
|
+
var SuperCampaignComponentStatus;
|
|
3524
|
+
(function (SuperCampaignComponentStatus) {
|
|
3525
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotLoaded"] = 1] = "NotLoaded";
|
|
3526
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["Loaded"] = 2] = "Loaded";
|
|
3527
|
+
SuperCampaignComponentStatus[SuperCampaignComponentStatus["NotWorking"] = 3] = "NotWorking";
|
|
3528
|
+
})(SuperCampaignComponentStatus || (SuperCampaignComponentStatus = {}));
|
|
3523
3529
|
class SuperCampaignState {
|
|
3524
3530
|
constructor() {
|
|
3525
3531
|
this._promotedFundsShown = [];
|
|
@@ -3553,7 +3559,8 @@ const initialState = {
|
|
|
3553
3559
|
isDefinedBenefitsEligible: Option.none,
|
|
3554
3560
|
campaignConnect: Option.none,
|
|
3555
3561
|
superCampaignEnabled: false,
|
|
3556
|
-
superCampaignState: undefined
|
|
3562
|
+
superCampaignState: undefined,
|
|
3563
|
+
superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded
|
|
3557
3564
|
};
|
|
3558
3565
|
|
|
3559
3566
|
class SuperSelectionAppService {
|
|
@@ -3697,12 +3704,26 @@ class SuperSelectionAppService {
|
|
|
3697
3704
|
get superCampaignState() {
|
|
3698
3705
|
return this._state.superCampaignState;
|
|
3699
3706
|
}
|
|
3700
|
-
|
|
3701
|
-
this._state.
|
|
3707
|
+
get superCampaignComponentStatus() {
|
|
3708
|
+
return this._state.superCampaignComponentStatus;
|
|
3709
|
+
}
|
|
3710
|
+
set superCampaignComponentStatus(value) {
|
|
3711
|
+
if (value === SuperCampaignComponentStatus.Loaded) {
|
|
3712
|
+
this._state.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
3713
|
+
this._state.superCampaignState = new SuperCampaignState();
|
|
3714
|
+
}
|
|
3715
|
+
else {
|
|
3716
|
+
this._state.superCampaignComponentStatus = value;
|
|
3717
|
+
this._state.superCampaignState = undefined;
|
|
3718
|
+
}
|
|
3702
3719
|
}
|
|
3703
3720
|
get isUsingSuperCampaign() {
|
|
3704
3721
|
return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
|
|
3705
3722
|
}
|
|
3723
|
+
get isSuperCampaignFallbackActivated() {
|
|
3724
|
+
return (this.state.superCampaignEnabled &&
|
|
3725
|
+
this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
|
|
3726
|
+
}
|
|
3706
3727
|
}
|
|
3707
3728
|
const superSelectionAppService = new SuperSelectionAppService();
|
|
3708
3729
|
|
|
@@ -3825,6 +3846,11 @@ class EventTrackingService {
|
|
|
3825
3846
|
SuperFundDetailChangeRequested: detail
|
|
3826
3847
|
});
|
|
3827
3848
|
}
|
|
3849
|
+
async TrackSuperCampaignActivationSucceededAsync(detail) {
|
|
3850
|
+
return this.trackEventAsync({
|
|
3851
|
+
SuperCampaignActivationSucceeded: detail
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3828
3854
|
async trackEventAsync(event) {
|
|
3829
3855
|
try {
|
|
3830
3856
|
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|
|
@@ -5061,9 +5087,7 @@ const ExistingChoice = class {
|
|
|
5061
5087
|
async handleFundNominationDeclined() {
|
|
5062
5088
|
const detail = this.createSuperFundNominationDetail(this.existingFund);
|
|
5063
5089
|
await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(detail);
|
|
5064
|
-
|
|
5065
|
-
? navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign)
|
|
5066
|
-
: navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
5090
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
5067
5091
|
}
|
|
5068
5092
|
};
|
|
5069
5093
|
|
|
@@ -5100,7 +5124,16 @@ const HeaderSection = class {
|
|
|
5100
5124
|
index.registerInstance(this, hostRef);
|
|
5101
5125
|
}
|
|
5102
5126
|
render() {
|
|
5103
|
-
|
|
5127
|
+
const description = superSelectionAppService.isSuperCampaignFallbackActivated
|
|
5128
|
+
? `
|
|
5129
|
+
You can choose any super fund, including your current fund/SMSF or your employer’s
|
|
5130
|
+
default fund.
|
|
5131
|
+
`
|
|
5132
|
+
: `
|
|
5133
|
+
You can choose any super fund, including your current fund/SMSF, your employer’s
|
|
5134
|
+
default fund, or alternatively, you can select from one of the featured funds.
|
|
5135
|
+
`;
|
|
5136
|
+
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
5137
|
}
|
|
5105
5138
|
};
|
|
5106
5139
|
|
|
@@ -5168,6 +5201,7 @@ const MyOwnFund = class {
|
|
|
5168
5201
|
});
|
|
5169
5202
|
}
|
|
5170
5203
|
render() {
|
|
5204
|
+
const isSuperCampaignFallbackActivated = superSelectionAppService.isSuperCampaignFallbackActivated;
|
|
5171
5205
|
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
5206
|
'was-validated': this.formState === 'validated'
|
|
5173
5207
|
}, 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 +5209,7 @@ const MyOwnFund = class {
|
|
|
5175
5209
|
this.isNotAllInformationProvidedMessageVisible = false;
|
|
5176
5210
|
} }), 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
5211
|
// 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")))))))));
|
|
5212
|
+
() => (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
5213
|
}
|
|
5180
5214
|
async handleSubmitForm() {
|
|
5181
5215
|
this.formState = 'validated';
|
|
@@ -16885,6 +16919,15 @@ const Success = class {
|
|
|
16885
16919
|
}
|
|
16886
16920
|
};
|
|
16887
16921
|
|
|
16922
|
+
class SuperCampaignErrorApi {
|
|
16923
|
+
static get Instance() {
|
|
16924
|
+
return this.instance || (this.instance = new this());
|
|
16925
|
+
}
|
|
16926
|
+
async PostError(error) {
|
|
16927
|
+
buildBackendApiClient().url('super-campaign/errors').post(error);
|
|
16928
|
+
}
|
|
16929
|
+
}
|
|
16930
|
+
|
|
16888
16931
|
class MiscService {
|
|
16889
16932
|
trackClickPromotedTileAsync(payload) {
|
|
16890
16933
|
return superSelectionApi.clickPromotedTileAsync(payload);
|
|
@@ -16897,11 +16940,12 @@ const Usi = {
|
|
|
16897
16940
|
return usi.replace(/ /g, '');
|
|
16898
16941
|
}
|
|
16899
16942
|
};
|
|
16943
|
+
const LoadWaitingTimeout = 30000;
|
|
16900
16944
|
|
|
16901
16945
|
const SuperCampaignHost = class {
|
|
16902
16946
|
constructor(hostRef) {
|
|
16903
16947
|
index.registerInstance(this, hostRef);
|
|
16904
|
-
this.
|
|
16948
|
+
this.scriptImported = false;
|
|
16905
16949
|
this.getEnvironmentTag = () => {
|
|
16906
16950
|
const discriminator = window.location.hostname.toLowerCase().split('.')[0];
|
|
16907
16951
|
switch (discriminator) {
|
|
@@ -16929,10 +16973,28 @@ const SuperCampaignHost = class {
|
|
|
16929
16973
|
};
|
|
16930
16974
|
this.superCampaignLoaded = async (event) => {
|
|
16931
16975
|
if (event.detail.sender == 'super-campaign') {
|
|
16932
|
-
superSelectionAppService.
|
|
16976
|
+
superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
|
|
16977
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
16978
|
+
await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
|
|
16933
16979
|
}
|
|
16934
16980
|
return Promise.resolve();
|
|
16935
16981
|
};
|
|
16982
|
+
this.superCampaignLoadFailed = async (event) => {
|
|
16983
|
+
if (event.detail.sender == 'super-campaign') {
|
|
16984
|
+
await this.activateFallbackMechanism({
|
|
16985
|
+
type: 'SuperCampaignActivationFailed',
|
|
16986
|
+
reason: event.detail.reason || 'Unknown'
|
|
16987
|
+
});
|
|
16988
|
+
}
|
|
16989
|
+
};
|
|
16990
|
+
this.superCampaignFailed = async (event) => {
|
|
16991
|
+
if (event.detail.sender == 'super-campaign') {
|
|
16992
|
+
await this.activateFallbackMechanism({
|
|
16993
|
+
type: 'SuperCampaignOperationFailed',
|
|
16994
|
+
reason: event.detail.reason || 'Unknown'
|
|
16995
|
+
});
|
|
16996
|
+
}
|
|
16997
|
+
};
|
|
16936
16998
|
this.chooseAnotherFundRequested = async (event) => {
|
|
16937
16999
|
if (event.detail.sender == 'super-campaign') {
|
|
16938
17000
|
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
@@ -17126,36 +17188,67 @@ const SuperCampaignHost = class {
|
|
|
17126
17188
|
'disclaimer-viewed': this.disclaimerViewed.bind(this),
|
|
17127
17189
|
'disclaimer-accepted': this.disclaimerAccepted.bind(this),
|
|
17128
17190
|
'promoted-fund-joined': this.promotedFundJoined.bind(this),
|
|
17129
|
-
'super-campaign-loaded': this.superCampaignLoaded.bind(this)
|
|
17191
|
+
'super-campaign-loaded': this.superCampaignLoaded.bind(this),
|
|
17192
|
+
'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
|
|
17193
|
+
'super-campaign-failed': this.superCampaignFailed.bind(this)
|
|
17130
17194
|
};
|
|
17131
17195
|
}
|
|
17132
17196
|
async componentWillLoad() {
|
|
17197
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
17198
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
17199
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
17200
|
+
return;
|
|
17201
|
+
}
|
|
17202
|
+
let superCampaingScriptPath = undefined;
|
|
17133
17203
|
try {
|
|
17134
17204
|
if (Option.isSome(superSelectionAppService.state.apiBaseUrl) &&
|
|
17135
17205
|
Option.isSome(superSelectionAppService.state.jwt)) {
|
|
17136
17206
|
this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
|
|
17137
17207
|
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
17138
17208
|
this.unSubscribeFromSuperCampaignEvents();
|
|
17139
|
-
|
|
17209
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
17210
|
+
SuperCampaignComponentStatus.NotLoaded) {
|
|
17211
|
+
superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());
|
|
17212
|
+
await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(superCampaingScriptPath)); });
|
|
17213
|
+
this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
|
|
17214
|
+
}
|
|
17140
17215
|
this.subscribeToSuperCampaignEvents();
|
|
17141
|
-
this.
|
|
17216
|
+
this.scriptImported = true;
|
|
17142
17217
|
}
|
|
17143
17218
|
else {
|
|
17144
17219
|
throw Error(`SuperCampaignHost pre-requisites not met.`);
|
|
17145
17220
|
}
|
|
17146
17221
|
}
|
|
17147
17222
|
catch (error) {
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17223
|
+
this.activateFallbackMechanism({
|
|
17224
|
+
type: 'SuperCampaignActivationFailed',
|
|
17225
|
+
reason: `Problem in loading SuperCampaing script from:${superCampaingScriptPath} Error: ${error}`
|
|
17226
|
+
});
|
|
17152
17227
|
}
|
|
17153
17228
|
}
|
|
17154
17229
|
disconnectedCallback() {
|
|
17230
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
17155
17231
|
this.unSubscribeFromSuperCampaignEvents();
|
|
17156
17232
|
}
|
|
17157
17233
|
render() {
|
|
17158
|
-
return (index.h("div", null, this.
|
|
17234
|
+
return (index.h("div", null, this.scriptImported ? (index.h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
|
|
17235
|
+
}
|
|
17236
|
+
async activateFallbackMechanism(error) {
|
|
17237
|
+
if (superSelectionAppService.superCampaignComponentStatus !==
|
|
17238
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
17239
|
+
superSelectionAppService.superCampaignComponentStatus =
|
|
17240
|
+
SuperCampaignComponentStatus.NotWorking;
|
|
17241
|
+
await SuperCampaignErrorApi.Instance.PostError(error);
|
|
17242
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
17243
|
+
}
|
|
17244
|
+
}
|
|
17245
|
+
async superCampaignLoadingTimeoutTriggered() {
|
|
17246
|
+
if (superSelectionAppService.superCampaignComponentStatus !== SuperCampaignComponentStatus.Loaded) {
|
|
17247
|
+
this.activateFallbackMechanism({
|
|
17248
|
+
type: 'SuperCampaignActivationFailed',
|
|
17249
|
+
reason: `Activation timeout was triggered after:${LoadWaitingTimeout / 1000} seconds`
|
|
17250
|
+
});
|
|
17251
|
+
}
|
|
17159
17252
|
}
|
|
17160
17253
|
createApolloSuperCampaignScriptUrl(envTag) {
|
|
17161
17254
|
return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
|
|
@@ -18304,9 +18397,6 @@ const SuperSelectionApp = class {
|
|
|
18304
18397
|
!shouldIgnoreExistingChoice) {
|
|
18305
18398
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ExistingChoicePage);
|
|
18306
18399
|
}
|
|
18307
|
-
else if (superSelectionAppService.state.superCampaignEnabled) {
|
|
18308
|
-
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.SuperCampaign);
|
|
18309
|
-
}
|
|
18310
18400
|
else {
|
|
18311
18401
|
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ConsentPage);
|
|
18312
18402
|
}
|
|
@@ -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);
|
|
@@ -244,36 +263,67 @@ export class SuperCampaignHost {
|
|
|
244
263
|
'disclaimer-viewed': this.disclaimerViewed.bind(this),
|
|
245
264
|
'disclaimer-accepted': this.disclaimerAccepted.bind(this),
|
|
246
265
|
'promoted-fund-joined': this.promotedFundJoined.bind(this),
|
|
247
|
-
'super-campaign-loaded': this.superCampaignLoaded.bind(this)
|
|
266
|
+
'super-campaign-loaded': this.superCampaignLoaded.bind(this),
|
|
267
|
+
'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
|
|
268
|
+
'super-campaign-failed': this.superCampaignFailed.bind(this)
|
|
248
269
|
};
|
|
249
270
|
}
|
|
250
271
|
async componentWillLoad() {
|
|
272
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
273
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
274
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
let superCampaingScriptPath = undefined;
|
|
251
278
|
try {
|
|
252
279
|
if (isSome(superSelectionAppService.state.apiBaseUrl) &&
|
|
253
280
|
isSome(superSelectionAppService.state.jwt)) {
|
|
254
281
|
this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
|
|
255
282
|
this.accessToken = superSelectionAppService.state.jwt.value;
|
|
256
283
|
this.unSubscribeFromSuperCampaignEvents();
|
|
257
|
-
|
|
284
|
+
if (superSelectionAppService.state.superCampaignComponentStatus ===
|
|
285
|
+
SuperCampaignComponentStatus.NotLoaded) {
|
|
286
|
+
superCampaingScriptPath = this.createApolloSuperCampaignScriptUrl(this.getEnvironmentTag());
|
|
287
|
+
await import(superCampaingScriptPath);
|
|
288
|
+
this.loadingTimeoutRef = setTimeout(this.superCampaignLoadingTimeoutTriggered.bind(this), LoadWaitingTimeout);
|
|
289
|
+
}
|
|
258
290
|
this.subscribeToSuperCampaignEvents();
|
|
259
|
-
this.
|
|
291
|
+
this.scriptImported = true;
|
|
260
292
|
}
|
|
261
293
|
else {
|
|
262
294
|
throw Error(`SuperCampaignHost pre-requisites not met.`);
|
|
263
295
|
}
|
|
264
296
|
}
|
|
265
297
|
catch (error) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
298
|
+
this.activateFallbackMechanism({
|
|
299
|
+
type: 'SuperCampaignActivationFailed',
|
|
300
|
+
reason: `Problem in loading SuperCampaing script from:${superCampaingScriptPath} Error: ${error}`
|
|
301
|
+
});
|
|
270
302
|
}
|
|
271
303
|
}
|
|
272
304
|
disconnectedCallback() {
|
|
305
|
+
clearTimeout(this.loadingTimeoutRef);
|
|
273
306
|
this.unSubscribeFromSuperCampaignEvents();
|
|
274
307
|
}
|
|
275
308
|
render() {
|
|
276
|
-
return (h("div", null, this.
|
|
309
|
+
return (h("div", null, this.scriptImported ? (h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
|
|
310
|
+
}
|
|
311
|
+
async activateFallbackMechanism(error) {
|
|
312
|
+
if (superSelectionAppService.superCampaignComponentStatus !==
|
|
313
|
+
SuperCampaignComponentStatus.NotWorking) {
|
|
314
|
+
superSelectionAppService.superCampaignComponentStatus =
|
|
315
|
+
SuperCampaignComponentStatus.NotWorking;
|
|
316
|
+
await SuperCampaignErrorApi.Instance.PostError(error);
|
|
317
|
+
await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
async superCampaignLoadingTimeoutTriggered() {
|
|
321
|
+
if (superSelectionAppService.superCampaignComponentStatus !== SuperCampaignComponentStatus.Loaded) {
|
|
322
|
+
this.activateFallbackMechanism({
|
|
323
|
+
type: 'SuperCampaignActivationFailed',
|
|
324
|
+
reason: `Activation timeout was triggered after:${LoadWaitingTimeout / 1000} seconds`
|
|
325
|
+
});
|
|
326
|
+
}
|
|
277
327
|
}
|
|
278
328
|
createApolloSuperCampaignScriptUrl(envTag) {
|
|
279
329
|
return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
|
|
@@ -314,7 +364,7 @@ export class SuperCampaignHost {
|
|
|
314
364
|
}
|
|
315
365
|
}; }
|
|
316
366
|
static get states() { return {
|
|
317
|
-
"
|
|
367
|
+
"scriptImported": {},
|
|
318
368
|
"backendUrl": {},
|
|
319
369
|
"accessToken": {}
|
|
320
370
|
}; }
|
|
@@ -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 {};
|
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';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Component, Fragment, h, Prop } from '@stencil/core';
|
|
2
2
|
import { SuperSelectionAppRoutes } from '../services/super-selection-app.routes';
|
|
3
|
+
import superSelectionAppService from '../services/super-selection-app.service';
|
|
3
4
|
const RouteLink = (props, children) => {
|
|
4
5
|
return (h("stencil-route-link", { exact: true, url: props.route },
|
|
5
6
|
h("div", { class: {
|
|
@@ -20,14 +21,23 @@ const ChooseAnotherFundLink = (props) => {
|
|
|
20
21
|
};
|
|
21
22
|
export class HeaderSection {
|
|
22
23
|
render() {
|
|
24
|
+
const description = superSelectionAppService.isSuperCampaignFallbackActivated
|
|
25
|
+
? `
|
|
26
|
+
You can choose any super fund, including your current fund/SMSF or your employer’s
|
|
27
|
+
default fund.
|
|
28
|
+
`
|
|
29
|
+
: `
|
|
30
|
+
You can choose any super fund, including your current fund/SMSF, your employer’s
|
|
31
|
+
default fund, or alternatively, you can select from one of the featured funds.
|
|
32
|
+
`;
|
|
23
33
|
return (h("div", { class: "flex justify-center" },
|
|
24
34
|
h("div", { class: "text-center max-w-800" },
|
|
25
35
|
h("h3", { class: "font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl" }, "Nominate a super fund"),
|
|
26
36
|
h(Fragment, null,
|
|
27
|
-
h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" },
|
|
28
|
-
h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" },
|
|
37
|
+
h("div", { class: "text-gray-600 sm:text-lg leading-7 sm:leading-8" }, description),
|
|
38
|
+
!superSelectionAppService.isSuperCampaignFallbackActivated && (h("div", { class: "inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal" },
|
|
29
39
|
h(RouteLink, { route: SuperSelectionAppRoutes.ChoicePage, isActive: this.currentPage === 'choice' }, "Featured super funds"),
|
|
30
|
-
h(ChooseAnotherFundLink, { isActive: this.currentPage === 'own-fund' }))))));
|
|
40
|
+
h(ChooseAnotherFundLink, { isActive: this.currentPage === 'own-fund' })))))));
|
|
31
41
|
}
|
|
32
42
|
static get is() { return "sss-header-section"; }
|
|
33
43
|
static get properties() { return {
|
package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js
CHANGED
|
@@ -86,6 +86,11 @@ export class EventTrackingService {
|
|
|
86
86
|
SuperFundDetailChangeRequested: detail
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
+
async TrackSuperCampaignActivationSucceededAsync(detail) {
|
|
90
|
+
return this.trackEventAsync({
|
|
91
|
+
SuperCampaignActivationSucceeded: detail
|
|
92
|
+
});
|
|
93
|
+
}
|
|
89
94
|
async trackEventAsync(event) {
|
|
90
95
|
try {
|
|
91
96
|
await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
|