@flarehr/apollo-super-selection 5.37.61551 → 5.39.62479

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 (36) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.css +1 -1
  2. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-25f711a0.entry.js +14 -0
  4. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  5. package/dist/lib/apollo-super-selection/p-d07d9b89.system.entry.js +69 -0
  6. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  7. package/dist/lib/cjs/loader.cjs.js +1 -1
  8. package/dist/lib/cjs/sss-button_34.cjs.entry.js +265 -196
  9. package/dist/lib/collection/apollo-super-selection.css +1 -1
  10. package/dist/lib/collection/components/super-campaign/fund-tile-clicked.handler.js +49 -0
  11. package/dist/lib/collection/components/super-campaign/promoted-fund-joined.handler.js +121 -0
  12. package/dist/lib/collection/components/super-campaign/super-campaign.js +21 -165
  13. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.js +59 -5
  14. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.js +1 -0
  15. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +2 -2
  16. package/dist/lib/esm/apollo-super-selection.js +1 -1
  17. package/dist/lib/esm/loader.js +1 -1
  18. package/dist/lib/esm/sss-button_34.entry.js +265 -196
  19. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  20. package/dist/lib/esm-es5/loader.js +1 -1
  21. package/dist/lib/esm-es5/sss-button_34.entry.js +4 -4
  22. package/dist/lib/types/components/super-campaign/fund-tile-clicked.handler.d.ts +12 -0
  23. package/dist/lib/types/components/super-campaign/promoted-fund-joined.handler.d.ts +15 -0
  24. package/dist/lib/types/components/super-campaign/super-campaign-types.d.ts +3 -1
  25. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -8
  26. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +3 -0
  27. package/dist/lib/types/components/super-selection-app/api/super-selection.api.d.ts +2 -2
  28. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +6 -0
  29. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.d.ts +9 -0
  30. package/dist/lib/types/components/super-selection-app/funds/custom-fund/featured-funds/super-campaign-featured-funds.types.d.ts +26 -0
  31. package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +11 -13
  32. package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +2 -1
  33. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +2 -2
  34. package/package.json +1 -1
  35. package/dist/lib/apollo-super-selection/p-27a77bf5.entry.js +0 -14
  36. package/dist/lib/apollo-super-selection/p-3ff465df.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_34.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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[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":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-name-input",{"testId":[1,"test-id"],"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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
21
+ return index.bootstrapLazy([["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_34.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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[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":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-name-input",{"testId":[1,"test-id"],"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",{"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_34.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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[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":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-name-input",{"testId":[1,"test-id"],"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",{"testid":[1],"fillWidth":[4,"fill-width"],"fillWidthOnMobile":[4,"fill-width-on-mobile"],"disabled":[4],"variant":[1],"size":[1],"promiseFn":[16],"state":[32]}],[0,"sss-loading-indicator",{"theme":[1],"size":[2]}],[0,"stencil-route",{"group":[513],"componentUpdated":[16],"match":[1040],"url":[1],"component":[1],"componentProps":[16],"exact":[4],"routeRender":[16],"scrollTopOffset":[2,"scroll-top-offset"],"routeViewsUpdated":[16],"location":[16],"history":[16],"historyType":[1,"history-type"]}]]]], options);
20
+ return index.bootstrapLazy([["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_34.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]}],[1,"super-selection-app-host",{"sessionState":[32],"jwt":[32],"appConfiguration":[32],"ignoreExistingSelection":[32]}],[0,"sss-default-fund",{"history":[16],"defaultFundProductName":[32]}],[0,"sss-super-campaign-featured-funds",{"history":[16],"backendUrl":[32],"accessToken":[32],"currentView":[32]}],[0,"sss-existing-choice-page",{"history":[16],"existingFund":[32]}],[0,"sss-standard-choice-form",{"history":[16],"standardChoiceFormSignature":[32],"formState":[32],"isSubmitDisabled":[32]}],[0,"sss-success"],[0,"sss-choice-router",{"history":[16]}],[0,"sss-my-own-fund-engagement-step-host",{"history":[16],"backendUrl":[32],"accessToken":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberFirstName":[32],"memberFamilyName":[32]}],[0,"sss-super-campaign-host",{"history":[16],"scriptImported":[32],"backendUrl":[32],"accessToken":[32]}],[0,"sss-prefill-my-own-fund",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-smsf",{"history":[16],"prefill":[16],"mode":[32],"formState":[32],"isSubmitDisabled":[32],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[0,"sss-prefill-invalid-my-own-fund",{"history":[16],"prefill":[16],"fundUsi":[32],"fundName":[32],"memberNumber":[32],"memberGivenNames":[32],"memberLastName":[32]}],[0,"sss-prefill-invalid-smsf",{"history":[16],"prefill":[16],"fundName":[32],"fundAbn":[32],"fundEsa":[32],"fundAddressLine1":[32],"fundAddressLine2":[32],"fundAddressCity":[32],"fundAddressPostcode":[32],"fundAddressState":[32],"fundAddress":[32],"memberGivenNames":[32],"memberLastName":[32],"bankAccountName":[32],"bankAccountBsb":[32],"bankAccountNumber":[32]}],[1,"super-selection-app",{"ignoreExistingSelection":[4,"ignore-existing-selection"],"accessToken":[1,"access-token"],"backendUrl":[1,"backend-url"],"appBaseUrl":[1,"app-base-url"],"history":[16],"location":[16],"isSelfHosted":[4,"is-self-hosted"],"isAppInitialised":[32]}],[0,"sss-my-own-fund-inputs",{"myOwnFundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"selectedOption":[32]}],[0,"sss-loading-page"],[0,"sss-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[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":[1,"text-override"]}],[4,"stencil-route-switch",{"group":[513],"scrollTopOffset":[2,"scroll-top-offset"],"location":[16],"routeViewsUpdated":[16]}],[4,"stencil-router",{"root":[1],"historyType":[1,"history-type"],"titleSuffix":[1,"title-suffix"],"scrollTopOffset":[2,"scroll-top-offset"],"location":[32],"history":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-name-input",{"testId":[1,"test-id"],"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",{"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.37.61551';
287
+ const AppVersion = '5.39.62479';
288
288
 
289
289
  // -------------------------------------------------------------------------------------
290
290
  // guards
@@ -3781,10 +3781,10 @@ class SuperSelectionAppService {
3781
3781
  else
3782
3782
  throw new Error('Cannot set shown funds for SuperCampaing state because it is undefined');
3783
3783
  }
3784
- viewSuperFundPanelAsync(promotedFundIdListOverride) {
3784
+ viewSuperFundPanelAsync(placementId, promotedFundIdListOverride) {
3785
3785
  return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({}, this.promotedFundsConfig), { shownFunds: promotedFundIdListOverride
3786
3786
  ? promotedFundIdListOverride
3787
- : this.promotedFundsConfig.shownFunds }));
3787
+ : this.promotedFundsConfig.shownFunds, placementId }));
3788
3788
  }
3789
3789
  get superCampaignState() {
3790
3790
  return this._state.superCampaignState;
@@ -6198,31 +6198,58 @@ const Success = class {
6198
6198
  }
6199
6199
  };
6200
6200
 
6201
- const FeaturedFunds = class {
6202
- constructor(hostRef) {
6203
- index.registerInstance(this, hostRef);
6204
- }
6205
- componentWillLoad() {
6206
- if (superSelectionAppService.isFeaturedFundsEnabled &&
6207
- superSelectionAppService.isUsingSuperCampaign &&
6208
- Option.isSome(superSelectionAppService.backendUrl) &&
6209
- Option.isSome(superSelectionAppService.state.jwt)) {
6210
- this.backendUrl = superSelectionAppService.backendUrl.value;
6211
- this.accessToken = superSelectionAppService.state.jwt.value;
6212
- superSelectionAppService.hideFooterSection = true;
6213
- }
6214
- else {
6215
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
6216
- }
6217
- }
6218
- disconnectedCallback() {
6219
- superSelectionAppService.hideFooterSection = false;
6201
+ class MiscService {
6202
+ trackClickPromotedTileAsync(payload) {
6203
+ return superSelectionApi.clickPromotedTileAsync(payload);
6220
6204
  }
6221
- render() {
6222
- return (index.h(index.Host, null, index.h("sss-header-section", null), index.h("div", { class: "flex justify-center mt-11" }, index.h("sss-custom-fund", null, index.h("apollo-super-campaign-featured-funds", { "backend-url": this.backendUrl, "access-token": this.accessToken })))));
6205
+ }
6206
+ const miscService = new MiscService();
6207
+
6208
+ const getSuperCampaignState = () => {
6209
+ if (superSelectionAppService.superCampaignState != undefined)
6210
+ return superSelectionAppService.superCampaignState;
6211
+ throw new Error('Super campaign state has not been initialized');
6212
+ };
6213
+ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType }) => {
6214
+ if (sender === 'super-campaign' || sender === 'featured-funds') {
6215
+ const promotedFundsShown = getSuperCampaignState().PromotedFundIds;
6216
+ const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
6217
+ await Promise.all([
6218
+ fundType === 'promoted-default'
6219
+ ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
6220
+ fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : '',
6221
+ fundName,
6222
+ promotedFundId: fundId,
6223
+ promotedFundsShown,
6224
+ defaultFundUsiSet,
6225
+ superCampaignEnabled: true,
6226
+ placementId
6227
+ })
6228
+ : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
6229
+ fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : undefined,
6230
+ fundName,
6231
+ promotedFundId: fundId,
6232
+ promotedFundsShown,
6233
+ defaultFundUsiSet,
6234
+ superCampaignEnabled: true,
6235
+ placementId
6236
+ }),
6237
+ miscService.trackClickPromotedTileAsync(fundType === 'promoted-default'
6238
+ ? {
6239
+ promotedDefault: {
6240
+ fundId,
6241
+ placementId
6242
+ }
6243
+ }
6244
+ : {
6245
+ promoted: {
6246
+ fundId,
6247
+ placementId
6248
+ }
6249
+ })
6250
+ ]);
6223
6251
  }
6224
6252
  };
6225
- injectHistory(FeaturedFunds);
6226
6253
 
6227
6254
  // Copyright (c) Microsoft Corporation. All rights reserved.
6228
6255
  // Licensed under the MIT License.
@@ -15882,30 +15909,6 @@ class AppInsightsService {
15882
15909
  }
15883
15910
  const appInsights = new AppInsightsService();
15884
15911
 
15885
- class SuperCampaignErrorApi {
15886
- static get Instance() {
15887
- return this.instance || (this.instance = new this());
15888
- }
15889
- async PostError(error) {
15890
- buildBackendApiClient().url('super-campaign/errors').post(error);
15891
- }
15892
- }
15893
-
15894
- const SuperFundDisclaimerViewedDetail = {
15895
- create: (superCampaignEnabled) => {
15896
- let isDefinedBenefitsEligibleString = 'Not set';
15897
- if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
15898
- isDefinedBenefitsEligibleString = superSelectionAppService.isDefinedBenefitsEligible.value
15899
- ? 'True'
15900
- : 'False';
15901
- }
15902
- return {
15903
- isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
15904
- superCampaignEnabled: superCampaignEnabled
15905
- };
15906
- }
15907
- };
15908
-
15909
15912
  class PromotedFundChoiceApi {
15910
15913
  async submitChoiceAsync(dto) {
15911
15914
  return buildBackendApiClient()
@@ -15950,13 +15953,6 @@ class SlateChoiceApi {
15950
15953
  }
15951
15954
  const slateChoiceApi = new SlateChoiceApi();
15952
15955
 
15953
- class MiscService {
15954
- trackClickPromotedTileAsync(payload) {
15955
- return superSelectionApi.clickPromotedTileAsync(payload);
15956
- }
15957
- }
15958
- const miscService = new MiscService();
15959
-
15960
15956
  const Usi = {
15961
15957
  clean: (usi) => {
15962
15958
  return usi.replace(/ /g, '');
@@ -15964,132 +15960,10 @@ const Usi = {
15964
15960
  };
15965
15961
  const LoadWaitingTimeout = 30000;
15966
15962
 
15967
- const SuperCampaignHost = class {
15968
- constructor(hostRef) {
15969
- index.registerInstance(this, hostRef);
15970
- this.scriptImported = false;
15971
- this.getEnvironmentTag = () => {
15972
- const discriminator = window.location.hostname.toLowerCase().split('.')[0];
15973
- switch (discriminator) {
15974
- case 'autodev-partner':
15975
- return 'autodev';
15976
- case 'test-partner':
15977
- return 'test';
15978
- case 'partner':
15979
- return 'prod';
15980
- case 'sandbox-partner':
15981
- return 'sandbox';
15982
- default:
15983
- return 'autodev';
15984
- }
15985
- };
15986
- this.subscribeToSuperCampaignEvents = () => {
15987
- for (const eventName in this.superCampaignEventHandlers) {
15988
- document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
15989
- }
15990
- };
15991
- this.unSubscribeFromSuperCampaignEvents = () => {
15992
- for (const eventName in this.superCampaignEventHandlers) {
15993
- document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
15994
- }
15995
- };
15996
- this.superCampaignLoaded = async (event) => {
15997
- if (event.detail.sender == 'super-campaign') {
15998
- superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
15999
- clearTimeout(this.loadingTimeoutRef);
16000
- await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
16001
- }
16002
- return Promise.resolve();
16003
- };
16004
- this.superCampaignLoadFailed = async (event) => {
16005
- if (event.detail.sender == 'super-campaign') {
16006
- await this.activateFallbackMechanism({
16007
- type: 'SuperCampaignActivationFailed',
16008
- reason: event.detail.reason || 'Unknown'
16009
- });
16010
- }
16011
- };
16012
- this.superCampaignFailed = async (event) => {
16013
- if (event.detail.sender == 'super-campaign') {
16014
- await this.activateFallbackMechanism({
16015
- type: 'SuperCampaignOperationFailed',
16016
- reason: event.detail.reason || 'Unknown'
16017
- });
16018
- }
16019
- };
16020
- this.chooseAnotherFundRequested = async (event) => {
16021
- if (event.detail.sender == 'super-campaign') {
16022
- await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16023
- }
16024
- };
16025
- this.fundPanelShown = async (event) => {
16026
- if (event.detail.sender == 'super-campaign') {
16027
- superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
16028
- await superSelectionAppService.viewSuperFundPanelAsync();
16029
- }
16030
- };
16031
- this.fundTileClicked = async (event) => {
16032
- var _a, _b;
16033
- const eventDetails = event.detail;
16034
- if (eventDetails.sender == 'super-campaign') {
16035
- const promotedFundsShown = this.SuperCampaignState.PromotedFundIds;
16036
- const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
16037
- await Promise.all([
16038
- eventDetails.fundType == 'promoted-default'
16039
- ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
16040
- fundUsi: (_a = eventDetails.fundUsi) !== null && _a !== void 0 ? _a : '',
16041
- fundName: eventDetails.fundName,
16042
- promotedFundId: eventDetails.fundId,
16043
- promotedFundsShown,
16044
- defaultFundUsiSet,
16045
- superCampaignEnabled: true
16046
- })
16047
- : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
16048
- fundUsi: (_b = eventDetails.fundUsi) !== null && _b !== void 0 ? _b : undefined,
16049
- fundName: eventDetails.fundName,
16050
- promotedFundId: eventDetails.fundId,
16051
- promotedFundsShown,
16052
- defaultFundUsiSet,
16053
- superCampaignEnabled: true
16054
- }),
16055
- miscService.trackClickPromotedTileAsync(eventDetails.fundType == 'promoted-default'
16056
- ? {
16057
- promotedDefault: {
16058
- fundId: eventDetails.fundId
16059
- }
16060
- }
16061
- : {
16062
- promoted: {
16063
- fundId: eventDetails.fundId
16064
- }
16065
- })
16066
- ]);
16067
- }
16068
- };
16069
- this.fundPdsViewed = async (event) => {
16070
- if (event.detail.sender == 'super-campaign') {
16071
- await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
16072
- fundName: event.detail.fundName,
16073
- fundUsi: event.detail.fundUsi,
16074
- pageName: event.detail.pageName,
16075
- superCampaignEnabled: true
16076
- });
16077
- }
16078
- };
16079
- this.disclaimerViewed = async (event) => {
16080
- if (event.detail.sender == 'super-campaign') {
16081
- await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
16082
- }
16083
- };
16084
- this.disclaimerAccepted = async (event) => {
16085
- if (event.detail.sender == 'super-campaign') {
16086
- await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
16087
- superCampaignEnabled: true
16088
- });
16089
- }
16090
- };
16091
- this.promotedFundJoined = async (event) => {
16092
- if (event.detail.sender == 'super-campaign') {
15963
+ class PromotedFundJoinedEventHandler {
15964
+ constructor(placementId, history) {
15965
+ this.handle = async (event) => {
15966
+ if (event.detail.sender === 'super-campaign' || event.detail.sender === 'featured-funds') {
16093
15967
  const fundJoinInfo = event.detail.fundJoinInfo;
16094
15968
  switch (fundJoinInfo.fundType) {
16095
15969
  case 'Promoted':
@@ -16130,14 +16004,14 @@ const SuperCampaignHost = class {
16130
16004
  promotedFundId: data.fundId
16131
16005
  },
16132
16006
  handleSubmitFn: async (standardChoiceFormSignature) => {
16133
- if (data.fundId == slate.fundId) {
16007
+ if (data.fundId === slate.fundId) {
16134
16008
  await slateChoiceApi.submitSlateChoiceAsync(Object.assign({ memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, standardChoiceFormSignature,
16135
- defaultFundUsiSet }, this.PromotedFundsConfig));
16009
+ defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
16136
16010
  }
16137
16011
  else {
16138
16012
  await promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16139
16013
  standardChoiceFormSignature,
16140
- defaultFundUsiSet }, this.PromotedFundsConfig));
16014
+ defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
16141
16015
  }
16142
16016
  }
16143
16017
  });
@@ -16159,7 +16033,7 @@ const SuperCampaignHost = class {
16159
16033
  promotedFundId: data.fundId
16160
16034
  },
16161
16035
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: data.fundId, usi,
16162
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, this.PromotedFundsConfig))
16036
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
16163
16037
  });
16164
16038
  };
16165
16039
  this.handlePromotedDefaultFundWithJoinWasJoined = (data) => {
@@ -16180,7 +16054,7 @@ const SuperCampaignHost = class {
16180
16054
  promotedFundId: data.fundId
16181
16055
  },
16182
16056
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16183
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, this.PromotedFundsConfig))
16057
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
16184
16058
  });
16185
16059
  };
16186
16060
  this.handleDefinedBenefitsJoined = async (data) => {
@@ -16191,6 +16065,209 @@ const SuperCampaignHost = class {
16191
16065
  await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax }, this.PromotedFundsConfig));
16192
16066
  superSelectionAppService.markSuperSelectionAsSubmitted();
16193
16067
  };
16068
+ this.history = history;
16069
+ this.placementId = placementId;
16070
+ }
16071
+ get PromotedFundsConfig() {
16072
+ return superSelectionAppService.promotedFundsConfig;
16073
+ }
16074
+ }
16075
+
16076
+ const FeaturedFunds = class {
16077
+ constructor(hostRef) {
16078
+ index.registerInstance(this, hostRef);
16079
+ this.currentView = 'featured-funds';
16080
+ this.subscribeToEvents = () => {
16081
+ for (const eventName in this.eventHandlers) {
16082
+ document.addEventListener(eventName, this.eventHandlers[eventName]);
16083
+ }
16084
+ };
16085
+ this.unsubscribeFromEvents = () => {
16086
+ for (const eventName in this.eventHandlers) {
16087
+ document.removeEventListener(eventName, this.eventHandlers[eventName]);
16088
+ }
16089
+ };
16090
+ this.backClicked = () => {
16091
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
16092
+ return Promise.resolve();
16093
+ };
16094
+ this.cancelClicked = () => {
16095
+ this.currentView = 'featured-funds';
16096
+ return Promise.resolve();
16097
+ };
16098
+ this.continueClicked = async (event) => {
16099
+ this.currentView = 'fund-join';
16100
+ await fundTileClicked({
16101
+ sender: event.detail.sender,
16102
+ placementId: 'byof',
16103
+ fundId: event.detail.fundId,
16104
+ fundUsi: event.detail.fundUsi,
16105
+ fundName: event.detail.fundName,
16106
+ fundType: event.detail.fundType
16107
+ });
16108
+ };
16109
+ this.fundPanelShown = async (event) => {
16110
+ if (event.detail.sender === 'featured-funds') {
16111
+ const fundIdList = event.detail.shownFunds.map((f) => f.fundId);
16112
+ await superSelectionAppService.viewSuperFundPanelAsync('byof', fundIdList);
16113
+ }
16114
+ };
16115
+ this.eventHandlers = {
16116
+ 'back-clicked': this.backClicked.bind(this),
16117
+ 'continue-clicked': this.continueClicked.bind(this),
16118
+ 'cancel-clicked': this.cancelClicked.bind(this),
16119
+ 'featured-fund-panel-shown': this.fundPanelShown.bind(this),
16120
+ 'promoted-fund-joined': new PromotedFundJoinedEventHandler('byof', this.history).handle
16121
+ };
16122
+ }
16123
+ componentWillLoad() {
16124
+ if (superSelectionAppService.isFeaturedFundsEnabled &&
16125
+ superSelectionAppService.isUsingSuperCampaign &&
16126
+ Option.isSome(superSelectionAppService.backendUrl) &&
16127
+ Option.isSome(superSelectionAppService.state.jwt)) {
16128
+ this.backendUrl = superSelectionAppService.backendUrl.value;
16129
+ this.accessToken = superSelectionAppService.state.jwt.value;
16130
+ this.unsubscribeFromEvents();
16131
+ this.subscribeToEvents();
16132
+ superSelectionAppService.hideFooterSection = true;
16133
+ }
16134
+ else {
16135
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16136
+ }
16137
+ }
16138
+ disconnectedCallback() {
16139
+ this.unsubscribeFromEvents();
16140
+ superSelectionAppService.hideFooterSection = false;
16141
+ }
16142
+ render() {
16143
+ return (index.h(index.Host, null, this.currentView === 'featured-funds' && index.h("sss-header-section", null), index.h("div", { class: {
16144
+ 'flex flex-col w-full justify-center items-center mt-11 mx-auto': this.currentView === 'featured-funds',
16145
+ '-mt-20': this.currentView === 'fund-join'
16146
+ } }, this.currentView === 'featured-funds' && index.h("sss-custom-fund", null), index.h("apollo-super-campaign-featured-funds", { "backend-url": this.backendUrl, "access-token": this.accessToken }))));
16147
+ }
16148
+ };
16149
+ injectHistory(FeaturedFunds);
16150
+
16151
+ class SuperCampaignErrorApi {
16152
+ static get Instance() {
16153
+ return this.instance || (this.instance = new this());
16154
+ }
16155
+ async PostError(error) {
16156
+ buildBackendApiClient().url('super-campaign/errors').post(error);
16157
+ }
16158
+ }
16159
+
16160
+ const SuperFundDisclaimerViewedDetail = {
16161
+ create: (superCampaignEnabled) => {
16162
+ let isDefinedBenefitsEligibleString = 'Not set';
16163
+ if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
16164
+ isDefinedBenefitsEligibleString = superSelectionAppService.isDefinedBenefitsEligible.value
16165
+ ? 'True'
16166
+ : 'False';
16167
+ }
16168
+ return {
16169
+ isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
16170
+ superCampaignEnabled: superCampaignEnabled
16171
+ };
16172
+ }
16173
+ };
16174
+
16175
+ const SuperCampaignHost = class {
16176
+ constructor(hostRef) {
16177
+ index.registerInstance(this, hostRef);
16178
+ this.scriptImported = false;
16179
+ this.getEnvironmentTag = () => {
16180
+ const discriminator = window.location.hostname.toLowerCase().split('.')[0];
16181
+ switch (discriminator) {
16182
+ case 'autodev-partner':
16183
+ return 'autodev';
16184
+ case 'test-partner':
16185
+ return 'test';
16186
+ case 'partner':
16187
+ return 'prod';
16188
+ case 'sandbox-partner':
16189
+ return 'sandbox';
16190
+ default:
16191
+ return 'autodev';
16192
+ }
16193
+ };
16194
+ this.subscribeToSuperCampaignEvents = () => {
16195
+ for (const eventName in this.superCampaignEventHandlers) {
16196
+ document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16197
+ }
16198
+ };
16199
+ this.unSubscribeFromSuperCampaignEvents = () => {
16200
+ for (const eventName in this.superCampaignEventHandlers) {
16201
+ document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16202
+ }
16203
+ };
16204
+ this.superCampaignLoaded = async (event) => {
16205
+ if (event.detail.sender === 'super-campaign') {
16206
+ superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
16207
+ clearTimeout(this.loadingTimeoutRef);
16208
+ await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
16209
+ }
16210
+ return Promise.resolve();
16211
+ };
16212
+ this.superCampaignLoadFailed = async (event) => {
16213
+ if (event.detail.sender === 'super-campaign') {
16214
+ await this.activateFallbackMechanism({
16215
+ type: 'SuperCampaignActivationFailed',
16216
+ reason: event.detail.reason || 'Unknown'
16217
+ });
16218
+ }
16219
+ };
16220
+ this.superCampaignFailed = async (event) => {
16221
+ if (event.detail.sender === 'super-campaign') {
16222
+ await this.activateFallbackMechanism({
16223
+ type: 'SuperCampaignOperationFailed',
16224
+ reason: event.detail.reason || 'Unknown'
16225
+ });
16226
+ }
16227
+ };
16228
+ this.chooseAnotherFundRequested = async (event) => {
16229
+ if (event.detail.sender === 'super-campaign') {
16230
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16231
+ }
16232
+ };
16233
+ this.fundPanelShown = async (event) => {
16234
+ if (event.detail.sender === 'super-campaign') {
16235
+ superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
16236
+ await superSelectionAppService.viewSuperFundPanelAsync('panel');
16237
+ }
16238
+ };
16239
+ this.fundTileClicked = async (event) => {
16240
+ await fundTileClicked({
16241
+ sender: event.detail.sender,
16242
+ placementId: 'panel',
16243
+ fundId: event.detail.fundId,
16244
+ fundUsi: event.detail.fundUsi,
16245
+ fundName: event.detail.fundName,
16246
+ fundType: event.detail.fundType
16247
+ });
16248
+ };
16249
+ this.fundPdsViewed = async (event) => {
16250
+ if (event.detail.sender === 'super-campaign') {
16251
+ await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
16252
+ fundName: event.detail.fundName,
16253
+ fundUsi: event.detail.fundUsi,
16254
+ pageName: event.detail.pageName,
16255
+ superCampaignEnabled: true
16256
+ });
16257
+ }
16258
+ };
16259
+ this.disclaimerViewed = async (event) => {
16260
+ if (event.detail.sender === 'super-campaign') {
16261
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
16262
+ }
16263
+ };
16264
+ this.disclaimerAccepted = async (event) => {
16265
+ if (event.detail.sender === 'super-campaign') {
16266
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
16267
+ superCampaignEnabled: true
16268
+ });
16269
+ }
16270
+ };
16194
16271
  this.superCampaignEventHandlers = {
16195
16272
  'choose-another-fund-requested': this.chooseAnotherFundRequested.bind(this),
16196
16273
  'fund-panel-shown': this.fundPanelShown.bind(this),
@@ -16198,7 +16275,7 @@ const SuperCampaignHost = class {
16198
16275
  'fund-pds-viewed': this.fundPdsViewed.bind(this),
16199
16276
  'disclaimer-viewed': this.disclaimerViewed.bind(this),
16200
16277
  'disclaimer-accepted': this.disclaimerAccepted.bind(this),
16201
- 'promoted-fund-joined': this.promotedFundJoined.bind(this),
16278
+ 'promoted-fund-joined': new PromotedFundJoinedEventHandler('panel', this.history).handle,
16202
16279
  'super-campaign-loaded': this.superCampaignLoaded.bind(this),
16203
16280
  'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
16204
16281
  'super-campaign-failed': this.superCampaignFailed.bind(this)
@@ -16266,14 +16343,6 @@ const SuperCampaignHost = class {
16266
16343
  createApolloSuperCampaignScriptUrl(envTag) {
16267
16344
  return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
16268
16345
  }
16269
- get SuperCampaignState() {
16270
- if (superSelectionAppService.superCampaignState != undefined)
16271
- return superSelectionAppService.superCampaignState;
16272
- throw new Error('Super campaign state has not been initialized');
16273
- }
16274
- get PromotedFundsConfig() {
16275
- return superSelectionAppService.promotedFundsConfig;
16276
- }
16277
16346
  };
16278
16347
  injectHistory(SuperCampaignHost);
16279
16348