@flarehr/apollo-super-selection 4.55.43666 → 4.56.44913

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-1a253321.entry.js +14 -0
  3. package/dist/lib/apollo-super-selection/p-47600481.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  6. package/dist/lib/cjs/loader.cjs.js +1 -1
  7. package/dist/lib/cjs/sss-button_41.cjs.entry.js +166 -72
  8. package/dist/lib/collection/components/super-campaign/super-campaign.js +133 -6
  9. package/dist/lib/collection/components/super-selection-app/api/super-selection-events.model.js +16 -1
  10. package/dist/lib/collection/components/super-selection-app/consent/consent.js +5 -10
  11. package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/types.js +2 -1
  12. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +6 -0
  13. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +4 -1
  14. package/dist/lib/collection/components/super-selection-app/super-choice-page/super-choice-page.js +6 -3
  15. package/dist/lib/esm/apollo-super-selection.js +1 -1
  16. package/dist/lib/esm/loader.js +1 -1
  17. package/dist/lib/esm/sss-button_41.entry.js +166 -72
  18. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  19. package/dist/lib/esm-es5/loader.js +1 -1
  20. package/dist/lib/esm-es5/sss-button_41.entry.js +4 -4
  21. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +17 -5
  22. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +10 -0
  23. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +15 -4
  24. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +3 -1
  25. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +4 -0
  26. package/dist/lib/types/components.d.ts +2 -0
  27. package/package.json +1 -1
  28. package/dist/lib/apollo-super-selection/p-06c394ee.system.entry.js +0 -69
  29. package/dist/lib/apollo-super-selection/p-90e363b7.entry.js +0 -14
  30. package/dist/lib/collection/components/super-campaign/super-campaign-event-handlers.js +0 -26
  31. package/dist/lib/types/components/super-campaign/super-campaign-event-handlers.d.ts +0 -2
@@ -1 +1 @@
1
- System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,o;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){o=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){o();return i([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-06c394ee.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-consent-page",{history:[16],campaignConnectRequestInProgress:[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-campaign-host",{componentLoaded:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],isAbnUsedForRegulated:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{header:[1]}],[0,"sss-dropdown-async",{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]}],[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]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[0,"sss-name-input",{value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
1
+ System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,o;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){o=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){o();return i([["p-6ac8791e.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-02f24922.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-ef3afa00.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-f29066b9.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-51aefdb1.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-47600481.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[0,"sss-my-own-fund",{history:[16],formState:[32],isNotAllInformationProvidedMessageVisible:[32],isSubmitDisabled:[32]}],[0,"sss-self-managed-fund",{history:[16],formState:[32],isSubmitDisabled:[32]}],[0,"sss-super-choice-page",{history:[16],promotedFunds:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-consent-page",{history:[16],campaignConnectRequestInProgress:[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-campaign-host",{history:[16],componentLoaded:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-my-own-fund-inputs",{myOwnFundForm:[16],showValidationErrors:[4,"show-validation-errors"],selectedOption:[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{fundForm:[16],showValidationErrors:[4,"show-validation-errors"],isAbnValid:[32],isAbnTouched:[32],isAbnUsedForRegulated:[32],currentBank:[32],addressErrorMessage:[32]}],[0,"sss-super-choice-item-bottom",{disclaimer:[16],abnInfo:[1,"abn-info"],abn:[1],isMultiFund:[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{header:[1]}],[0,"sss-dropdown-async",{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]}],[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]}],[0,"sss-iframe-host",{build:[16]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section",{currentPage:[1,"current-page"]}],[0,"sss-name-input",{value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e)}))}}}));
@@ -18,5 +18,5 @@ const patchBrowser = () => {
18
18
 
19
19
  patchBrowser().then(options => {
20
20
  appGlobals.globalScripts();
21
- return index.bootstrapLazy([["context-consumer.cjs",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content.cjs",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title.cjs",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt.cjs",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect.cjs",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_41.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-campaign-host",{"componentLoaded":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{"header":[1]}],[0,"sss-dropdown-async",{"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]}],[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]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
21
+ return index.bootstrapLazy([["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_41.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-campaign-host",{"history":[16],"componentLoaded":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{"header":[1]}],[0,"sss-dropdown-async",{"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]}],[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]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"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_41.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-campaign-host",{"componentLoaded":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{"header":[1]}],[0,"sss-dropdown-async",{"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]}],[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]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
20
+ return index.bootstrapLazy([["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_41.cjs",[[0,"sss-prefill",{"history":[16],"prefill":[32]}],[0,"sss-my-own-fund",{"history":[16],"formState":[32],"isNotAllInformationProvidedMessageVisible":[32],"isSubmitDisabled":[32]}],[0,"sss-self-managed-fund",{"history":[16],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-super-choice-page",{"history":[16],"promotedFunds":[32]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-consent-page",{"history":[16],"campaignConnectRequestInProgress":[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-campaign-host",{"history":[16],"componentLoaded":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-super-indicator"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"isAbnValid":[32],"isAbnTouched":[32],"isAbnUsedForRegulated":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-super-choice-item-bottom",{"disclaimer":[16],"abnInfo":[1,"abn-info"],"abn":[1],"isMultiFund":[4,"is-multi-fund"]}],[0,"sss-loading-page"],[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,"sss-loading-component",{"header":[1]}],[0,"sss-dropdown-async",{"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]}],[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]}],[0,"sss-iframe-host",{"build":[16]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section",{"currentPage":[1,"current-page"]}],[0,"sss-name-input",{"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[4,"stencil-route-link",{"url":[1],"urlMatch":[1,"url-match"],"activeClass":[1,"active-class"],"exact":[4],"strict":[4],"custom":[1],"anchorClass":[1,"anchor-class"],"anchorRole":[1,"anchor-role"],"anchorTitle":[1,"anchor-title"],"anchorTabIndex":[1,"anchor-tab-index"],"anchorId":[1,"anchor-id"],"history":[16],"location":[16],"root":[1],"ariaHaspopup":[1,"aria-haspopup"],"ariaPosinset":[1,"aria-posinset"],"ariaSetsize":[2,"aria-setsize"],"ariaLabel":[1,"aria-label"],"match":[32]}],[4,"sss-button",{"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 = '4.55.43666';
287
+ const AppVersion = '4.56.44913';
288
288
 
289
289
  // -------------------------------------------------------------------------------------
290
290
  // guards
@@ -2621,13 +2621,7 @@ const createStore = (defaultState, shouldUpdate) => {
2621
2621
  return map;
2622
2622
  };
2623
2623
 
2624
- const initial = {
2625
- fund: {
2626
- id: '',
2627
- type: 'null'
2628
- }
2629
- };
2630
- const { state, reset } = createStore(initial);
2624
+ function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
2631
2625
 
2632
2626
  var __assign$1 = (undefined && undefined.__assign) || function () {
2633
2627
  __assign$1 = Object.assign || function(t) {
@@ -3303,7 +3297,18 @@ function convertFormUrl(formObject) {
3303
3297
  var factory = Wretcher.factory;
3304
3298
  factory["default"] = Wretcher.factory;
3305
3299
 
3306
- function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
3300
+ function buildBackendApiClient() {
3301
+ const jwt = superSelectionAppService.jwt;
3302
+ const profileId = superSelectionAppService.profileId;
3303
+ const accountId = superSelectionAppService.accountIdOrDefault;
3304
+ const partnerId = superSelectionAppService.partnerIdOrDefault;
3305
+ return factory(superSelectionAppService.apiBaseUrl).headers({
3306
+ Authorization: `Bearer ${jwt}`,
3307
+ 'X-PROFILE-ID': profileId,
3308
+ 'X-PARTNER-ID': partnerId,
3309
+ 'X-ACCOUNT-ID': accountId
3310
+ });
3311
+ }
3307
3312
 
3308
3313
  function hydratePromotedFundChoiceDtoKind(dto) {
3309
3314
  if ('slate' in dto) {
@@ -3530,7 +3535,10 @@ const initialState = {
3530
3535
  campaignConnectEnabled: false,
3531
3536
  isDefinedBenefitsEligible: Option.none,
3532
3537
  campaignConnect: Option.none,
3533
- superCampaignEnabled: false
3538
+ superCampaignEnabled: false,
3539
+ superCampaignState: {
3540
+ promotedFundsShown: []
3541
+ }
3534
3542
  };
3535
3543
 
3536
3544
  class SuperSelectionAppService {
@@ -3657,21 +3665,37 @@ class SuperSelectionAppService {
3657
3665
  this._state.campaignConnect = Option.fromNullable(campaignConnect);
3658
3666
  }
3659
3667
  }
3668
+ setSuperCampaignPromotedFundsShown(shownFund) {
3669
+ this._state.superCampaignState.promotedFundsShown = shownFund;
3670
+ }
3671
+ get superCampaignState() {
3672
+ return this._state.superCampaignState;
3673
+ }
3660
3674
  }
3661
3675
  const superSelectionAppService = new SuperSelectionAppService();
3662
3676
 
3663
- function buildBackendApiClient() {
3664
- const jwt = superSelectionAppService.jwt;
3665
- const profileId = superSelectionAppService.profileId;
3666
- const accountId = superSelectionAppService.accountIdOrDefault;
3667
- const partnerId = superSelectionAppService.partnerIdOrDefault;
3668
- return factory(superSelectionAppService.apiBaseUrl).headers({
3669
- Authorization: `Bearer ${jwt}`,
3670
- 'X-PROFILE-ID': profileId,
3671
- 'X-PARTNER-ID': partnerId,
3672
- 'X-ACCOUNT-ID': accountId
3673
- });
3674
- }
3677
+ const SuperFundDisclaimerViewedDetail = {
3678
+ create: (superCampaignEnabled) => {
3679
+ let isDefinedBenefitsEligibleString = 'Not set';
3680
+ if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
3681
+ isDefinedBenefitsEligibleString = superSelectionAppService.isDefinedBenefitsEligible.value
3682
+ ? 'True'
3683
+ : 'False';
3684
+ }
3685
+ return {
3686
+ isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
3687
+ superCampaignEnabled: superCampaignEnabled
3688
+ };
3689
+ }
3690
+ };
3691
+
3692
+ const initial = {
3693
+ fund: {
3694
+ id: '',
3695
+ type: 'null'
3696
+ }
3697
+ };
3698
+ const { state, reset } = createStore(initial);
3675
3699
 
3676
3700
  class EventTrackingApi {
3677
3701
  static get Instance() {
@@ -3899,7 +3923,8 @@ function pdsViewedAsync(name, usi) {
3899
3923
  return EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
3900
3924
  fundUsi: usi,
3901
3925
  fundName: name,
3902
- pageName: 'Panel Fund Page'
3926
+ pageName: 'Panel Fund Page',
3927
+ superCampaignEnabled: false
3903
3928
  });
3904
3929
  }
3905
3930
 
@@ -3910,15 +3935,7 @@ const Consent = class {
3910
3935
  this.eventTrackingService = EventTrackingService.Instance;
3911
3936
  }
3912
3937
  componentDidLoad() {
3913
- let isDefinedBenefitsEligible = 'Not set';
3914
- if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
3915
- isDefinedBenefitsEligible = superSelectionAppService.isDefinedBenefitsEligible.value
3916
- ? 'True'
3917
- : 'False';
3918
- }
3919
- return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync({
3920
- isDefinedBenefitsEligible
3921
- });
3938
+ return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(false));
3922
3939
  }
3923
3940
  render() {
3924
3941
  if (this.campaignConnectRequestInProgress) {
@@ -3927,7 +3944,9 @@ const Consent = class {
3927
3944
  return (index.h("div", null, index.h("div", { class: "text-2xl sm:text-3xl font-bold text-center leading-8" }, "Important information about super"), index.h("div", { class: "sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7 sm:leading-8" }, "The choice of superannuation fund is an important personal financial decision. Next, you\u2019ll be asked to nominate a super fund to receive your employer contributions."), index.h("div", { class: "flex justify-center mt-8 sm:mt-12" }, index.h("div", { class: "border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg" }, index.h("div", { class: "sm:text-lg font-bold leading-6" }, "By clicking \u201CContinue\u201D you acknowledge that:"), index.h("ul", { class: "list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6" }, index.h("li", null, "Flare (we/us) provides this paperless employee management service, will feature superannuation funds and offer you employee benefits that you may be interested in;"), index.h("li", null, "all content contained in the following pages does not take into account any of your objectives, financial situation or needs and does not constitute financial product advice;"), index.h("li", null, "in featuring any superannuation funds, we, the technology partner you are accessing us via, or your employer, are not providing any opinion or recommendation (actual or implied) in relation to the suitability or appropriateness of the featured funds;"), index.h("li", null, "Trustees of the featured superannuation funds pay fees to Flare and/or its associates. Some funds pay us a fee if you choose one of the featured funds, while others pay us to have their application form on our platform;"), index.h("li", null, "in the event that you choose one of the featured superannuation funds, we may pass on your personal information and TFN to a related party for the purpose of completing your chosen fund's application form."), index.h("li", null, "Your personal data that is provided to us will be subject to our", ' ', index.h(Link, { className: "font-medium text-blue-600 hover:text-blue-800", href: "https://www.flarehr.com/privacy-policy" }, "Privacy Policy"), ".")), index.h("sss-button", { fillWidth: true, promiseFn: () => this.handleSuperFundDisclaimerAccepted() }, "Continue")))));
3928
3945
  }
3929
3946
  async handleSuperFundDisclaimerAccepted() {
3930
- await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync({});
3947
+ await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync({
3948
+ superCampaignEnabled: false
3949
+ });
3931
3950
  if (superSelectionAppService.campaignConnectEnabled) {
3932
3951
  this.campaignConnectRequestInProgress = true;
3933
3952
  await superSelectionAppService.loadCampaignConnectAsync();
@@ -16811,32 +16830,12 @@ const Success = class {
16811
16830
  }
16812
16831
  };
16813
16832
 
16814
- const chooseAnotherFundRequestedEventHandler = (event) => {
16815
- if (event.sender != 'super-campaign') {
16816
- // eslint-disable-next-line no-console
16817
- console.error(`$handling super-campaign panel event: ${event === null || event === void 0 ? void 0 : event.type}`);
16818
- }
16819
- return Promise.resolve();
16820
- };
16821
- const fundPanelShownEventHandler = (event) => {
16822
- if (event.sender != 'super-campaign') {
16823
- // eslint-disable-next-line no-console
16824
- console.error(`$handling super-campaign panel event: ${event === null || event === void 0 ? void 0 : event.type}`);
16825
- }
16826
- return Promise.resolve();
16827
- };
16828
- const fundTileClicked = (event) => {
16829
- if (event.sender != 'super-campaign') {
16830
- // eslint-disable-next-line no-console
16831
- console.error(`$handling super-campaign panel event: ${event === null || event === void 0 ? void 0 : event.type}`);
16833
+ class MiscService {
16834
+ trackClickPromotedTileAsync(payload) {
16835
+ return superSelectionApi.clickPromotedTileAsync(payload);
16832
16836
  }
16833
- return Promise.resolve();
16834
- };
16835
- const eventHandlers = {
16836
- 'choose-another-fund-requested': chooseAnotherFundRequestedEventHandler,
16837
- 'fund-panel-shown': fundPanelShownEventHandler,
16838
- 'fund-tile-clicked': fundTileClicked
16839
- };
16837
+ }
16838
+ const miscService = new MiscService();
16840
16839
 
16841
16840
  const SuperCampaignHost = class {
16842
16841
  constructor(hostRef) {
@@ -16855,15 +16854,113 @@ const SuperCampaignHost = class {
16855
16854
  }
16856
16855
  };
16857
16856
  this.subscribeToSuperCampaignEvents = () => {
16858
- for (const eventName in eventHandlers) {
16859
- document.addEventListener(eventName, eventHandlers[eventName]);
16857
+ for (const eventName in this.superCampaignEventHandlers) {
16858
+ document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16860
16859
  }
16861
16860
  };
16862
16861
  this.unSubscribeFromSuperCampaignEvents = () => {
16863
- for (const eventName in eventHandlers) {
16864
- document.removeEventListener(eventName, eventHandlers[eventName]);
16862
+ for (const eventName in this.superCampaignEventHandlers) {
16863
+ document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16864
+ }
16865
+ };
16866
+ this.chooseAnotherFundRequested = async (event) => {
16867
+ if (event.detail.sender == 'super-campaign') {
16868
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16865
16869
  }
16866
16870
  };
16871
+ this.fundPanelShown = async (event) => {
16872
+ var _a;
16873
+ if (event.detail.sender == 'super-campaign') {
16874
+ // eslint-disable-next-line no-console
16875
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
16876
+ const promotedFundsShown = event.detail.shownFunds.map((f) => f.fundId);
16877
+ superSelectionAppService.setSuperCampaignPromotedFundsShown(promotedFundsShown);
16878
+ await EventTrackingService.Instance.TrackSuperFundPanelViewedAsync({
16879
+ promotedFundsShown,
16880
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
16881
+ superCampaignEnabled: true
16882
+ });
16883
+ }
16884
+ };
16885
+ this.fundTileClicked = async (event) => {
16886
+ var _a, _b, _c;
16887
+ const eventDetails = event.detail;
16888
+ if (eventDetails.sender == 'super-campaign') {
16889
+ // eslint-disable-next-line no-console
16890
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
16891
+ const promotedFundsShown = superSelectionAppService.superCampaignState.promotedFundsShown;
16892
+ const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
16893
+ await Promise.all([
16894
+ eventDetails.fundType == 'PromotedDefault'
16895
+ ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
16896
+ fundUsi: (_b = eventDetails.fundUsi) !== null && _b !== void 0 ? _b : '',
16897
+ fundName: eventDetails.fundName,
16898
+ promotedFundId: eventDetails.fundId,
16899
+ promotedFundsShown,
16900
+ defaultFundUsiSet,
16901
+ superCampaignEnabled: true
16902
+ })
16903
+ : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
16904
+ fundUsi: (_c = eventDetails.fundUsi) !== null && _c !== void 0 ? _c : undefined,
16905
+ fundName: eventDetails.fundName,
16906
+ promotedFundId: eventDetails.fundId,
16907
+ promotedFundsShown,
16908
+ defaultFundUsiSet,
16909
+ superCampaignEnabled: true
16910
+ }),
16911
+ miscService.trackClickPromotedTileAsync(eventDetails.fundType == 'PromotedDefault'
16912
+ ? {
16913
+ promotedDefault: {
16914
+ fundId: eventDetails.fundId
16915
+ }
16916
+ }
16917
+ : {
16918
+ promoted: {
16919
+ fundId: eventDetails.fundId
16920
+ }
16921
+ })
16922
+ ]);
16923
+ }
16924
+ };
16925
+ this.fundPdsViewed = async (event) => {
16926
+ var _a;
16927
+ if (event.detail.sender == 'super-campaign') {
16928
+ // eslint-disable-next-line no-console
16929
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
16930
+ await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
16931
+ fundName: event.detail.fundName,
16932
+ fundUsi: event.detail.fundUsi,
16933
+ pageName: event.detail.pageName,
16934
+ superCampaignEnabled: true
16935
+ });
16936
+ }
16937
+ };
16938
+ this.disclaimerViewed = async (event) => {
16939
+ var _a;
16940
+ if (event.detail.sender == 'super-campaign') {
16941
+ // eslint-disable-next-line no-console
16942
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
16943
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
16944
+ }
16945
+ };
16946
+ this.disclaimerAccepted = async (event) => {
16947
+ var _a;
16948
+ if (event.detail.sender == 'super-campaign') {
16949
+ // eslint-disable-next-line no-console
16950
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
16951
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
16952
+ superCampaignEnabled: true
16953
+ });
16954
+ }
16955
+ };
16956
+ this.superCampaignEventHandlers = {
16957
+ 'choose-another-fund-requested': this.chooseAnotherFundRequested.bind(this),
16958
+ 'fund-panel-shown': this.fundPanelShown.bind(this),
16959
+ 'fund-tile-clicked': this.fundTileClicked.bind(this),
16960
+ 'fund-pds-viewed': this.fundPdsViewed.bind(this),
16961
+ 'disclaimer-viewed': this.disclaimerViewed.bind(this),
16962
+ 'disclaimer-accepted': this.disclaimerAccepted.bind(this)
16963
+ };
16867
16964
  }
16868
16965
  async componentWillLoad() {
16869
16966
  try {
@@ -16900,6 +16997,7 @@ const SuperCampaignHost = class {
16900
16997
  return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
16901
16998
  }
16902
16999
  };
17000
+ injectHistory(SuperCampaignHost);
16903
17001
 
16904
17002
  const SuperChoiceItemBottom = class {
16905
17003
  constructor(hostRef) {
@@ -16929,13 +17027,6 @@ const SuperChoiceItemTop = class {
16929
17027
  }
16930
17028
  };
16931
17029
 
16932
- class MiscService {
16933
- trackClickPromotedTileAsync(payload) {
16934
- return superSelectionApi.clickPromotedTileAsync(payload);
16935
- }
16936
- }
16937
- const miscService = new MiscService();
16938
-
16939
17030
  const SuperChoicePage = class {
16940
17031
  constructor(hostRef) {
16941
17032
  index.registerInstance(this, hostRef);
@@ -16946,7 +17037,8 @@ const SuperChoicePage = class {
16946
17037
  const promotedFundsShown = this.promotedFunds.map((item) => item.fundId);
16947
17038
  return this.eventTrackingService.TrackSuperFundPanelViewedAsync({
16948
17039
  promotedFundsShown,
16949
- defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
17040
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
17041
+ superCampaignEnabled: false
16950
17042
  });
16951
17043
  }
16952
17044
  render() {
@@ -16998,14 +17090,16 @@ const SuperChoicePage = class {
16998
17090
  fundName: Option.isSome(fundName) ? fundName.value : '',
16999
17091
  promotedFundId: fund.fundId,
17000
17092
  promotedFundsShown,
17001
- defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
17093
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
17094
+ superCampaignEnabled: false
17002
17095
  })
17003
17096
  : this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({
17004
17097
  fundUsi: Option.isSome(fundUsi) ? fundUsi.value : undefined,
17005
17098
  fundName: Option.isSome(fundName) ? fundName.value : '',
17006
17099
  promotedFundId: fund.fundId,
17007
17100
  promotedFundsShown,
17008
- defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi)
17101
+ defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi),
17102
+ superCampaignEnabled: false
17009
17103
  }),
17010
17104
  miscService.trackClickPromotedTileAsync(fund.isPromotedDefault
17011
17105
  ? {
@@ -1,7 +1,13 @@
1
- import { Component, h, State } from '@stencil/core';
1
+ import { Component, h, Prop, State } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import * as O from 'fp-ts/lib/Option';
2
4
  import { isSome } from 'fp-ts/lib/Option';
5
+ import { SuperFundDisclaimerViewedDetail } from '../super-selection-app/api/super-selection-events.model';
6
+ import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
7
+ import miscService from '../super-selection-app/services/misc.service';
8
+ import navigationService from '../super-selection-app/services/navigation.service';
9
+ import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
3
10
  import superSelectionAppService from '../super-selection-app/services/super-selection-app.service';
4
- import { eventHandlers as superCampaignEventHandlers } from './super-campaign-event-handlers';
5
11
  export class SuperCampaignHost {
6
12
  constructor() {
7
13
  this.componentLoaded = false;
@@ -18,15 +24,113 @@ export class SuperCampaignHost {
18
24
  }
19
25
  };
20
26
  this.subscribeToSuperCampaignEvents = () => {
21
- for (const eventName in superCampaignEventHandlers) {
22
- document.addEventListener(eventName, superCampaignEventHandlers[eventName]);
27
+ for (const eventName in this.superCampaignEventHandlers) {
28
+ document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
23
29
  }
24
30
  };
25
31
  this.unSubscribeFromSuperCampaignEvents = () => {
26
- for (const eventName in superCampaignEventHandlers) {
27
- document.removeEventListener(eventName, superCampaignEventHandlers[eventName]);
32
+ for (const eventName in this.superCampaignEventHandlers) {
33
+ document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
28
34
  }
29
35
  };
36
+ this.chooseAnotherFundRequested = async (event) => {
37
+ if (event.detail.sender == 'super-campaign') {
38
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
39
+ }
40
+ };
41
+ this.fundPanelShown = async (event) => {
42
+ var _a;
43
+ if (event.detail.sender == 'super-campaign') {
44
+ // eslint-disable-next-line no-console
45
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
46
+ const promotedFundsShown = event.detail.shownFunds.map((f) => f.fundId);
47
+ superSelectionAppService.setSuperCampaignPromotedFundsShown(promotedFundsShown);
48
+ await EventTrackingService.Instance.TrackSuperFundPanelViewedAsync({
49
+ promotedFundsShown,
50
+ defaultFundUsiSet: O.toUndefined(superSelectionAppService.defaultFundUsi),
51
+ superCampaignEnabled: true
52
+ });
53
+ }
54
+ };
55
+ this.fundTileClicked = async (event) => {
56
+ var _a, _b, _c;
57
+ const eventDetails = event.detail;
58
+ if (eventDetails.sender == 'super-campaign') {
59
+ // eslint-disable-next-line no-console
60
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
61
+ const promotedFundsShown = superSelectionAppService.superCampaignState.promotedFundsShown;
62
+ const defaultFundUsiSet = O.toUndefined(superSelectionAppService.defaultFundUsi);
63
+ await Promise.all([
64
+ eventDetails.fundType == 'PromotedDefault'
65
+ ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
66
+ fundUsi: (_b = eventDetails.fundUsi) !== null && _b !== void 0 ? _b : '',
67
+ fundName: eventDetails.fundName,
68
+ promotedFundId: eventDetails.fundId,
69
+ promotedFundsShown,
70
+ defaultFundUsiSet,
71
+ superCampaignEnabled: true
72
+ })
73
+ : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
74
+ fundUsi: (_c = eventDetails.fundUsi) !== null && _c !== void 0 ? _c : undefined,
75
+ fundName: eventDetails.fundName,
76
+ promotedFundId: eventDetails.fundId,
77
+ promotedFundsShown,
78
+ defaultFundUsiSet,
79
+ superCampaignEnabled: true
80
+ }),
81
+ miscService.trackClickPromotedTileAsync(eventDetails.fundType == 'PromotedDefault'
82
+ ? {
83
+ promotedDefault: {
84
+ fundId: eventDetails.fundId
85
+ }
86
+ }
87
+ : {
88
+ promoted: {
89
+ fundId: eventDetails.fundId
90
+ }
91
+ })
92
+ ]);
93
+ }
94
+ };
95
+ this.fundPdsViewed = async (event) => {
96
+ var _a;
97
+ if (event.detail.sender == 'super-campaign') {
98
+ // eslint-disable-next-line no-console
99
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
100
+ await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
101
+ fundName: event.detail.fundName,
102
+ fundUsi: event.detail.fundUsi,
103
+ pageName: event.detail.pageName,
104
+ superCampaignEnabled: true
105
+ });
106
+ }
107
+ };
108
+ this.disclaimerViewed = async (event) => {
109
+ var _a;
110
+ if (event.detail.sender == 'super-campaign') {
111
+ // eslint-disable-next-line no-console
112
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
113
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
114
+ }
115
+ };
116
+ this.disclaimerAccepted = async (event) => {
117
+ var _a;
118
+ if (event.detail.sender == 'super-campaign') {
119
+ // eslint-disable-next-line no-console
120
+ console.log(`$handling super-campaign event: ${(_a = event.detail) === null || _a === void 0 ? void 0 : _a.type}`);
121
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
122
+ superCampaignEnabled: true
123
+ });
124
+ }
125
+ };
126
+ this.superCampaignEventHandlers = {
127
+ 'choose-another-fund-requested': this.chooseAnotherFundRequested.bind(this),
128
+ 'fund-panel-shown': this.fundPanelShown.bind(this),
129
+ 'fund-tile-clicked': this.fundTileClicked.bind(this),
130
+ 'fund-pds-viewed': this.fundPdsViewed.bind(this),
131
+ 'disclaimer-viewed': this.disclaimerViewed.bind(this),
132
+ 'disclaimer-accepted': this.disclaimerAccepted.bind(this)
133
+ };
30
134
  }
31
135
  async componentWillLoad() {
32
136
  try {
@@ -63,9 +167,32 @@ export class SuperCampaignHost {
63
167
  return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
64
168
  }
65
169
  static get is() { return "sss-super-campaign-host"; }
170
+ static get properties() { return {
171
+ "history": {
172
+ "type": "unknown",
173
+ "mutable": false,
174
+ "complexType": {
175
+ "original": "RouterHistory",
176
+ "resolved": "RouterHistory",
177
+ "references": {
178
+ "RouterHistory": {
179
+ "location": "import",
180
+ "path": "@stencil/router"
181
+ }
182
+ }
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": ""
189
+ }
190
+ }
191
+ }; }
66
192
  static get states() { return {
67
193
  "componentLoaded": {},
68
194
  "backendUrl": {},
69
195
  "accessToken": {}
70
196
  }; }
71
197
  }
198
+ injectHistory(SuperCampaignHost);