@flarehr/apollo-super-selection 5.38.61955 → 5.40.63109

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-53c454f4.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-d440214e.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-12c5f04e.system.entry.js +0 -69
  36. package/dist/lib/apollo-super-selection/p-5952a4b2.entry.js +0 -14
@@ -116,10 +116,10 @@ export class SuperSelectionAppService {
116
116
  else
117
117
  throw new Error('Cannot set shown funds for SuperCampaing state because it is undefined');
118
118
  }
119
- viewSuperFundPanelAsync(promotedFundIdListOverride) {
119
+ viewSuperFundPanelAsync(placementId, promotedFundIdListOverride) {
120
120
  return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({}, this.promotedFundsConfig), { shownFunds: promotedFundIdListOverride
121
121
  ? promotedFundIdListOverride
122
- : this.promotedFundsConfig.shownFunds }));
122
+ : this.promotedFundsConfig.shownFunds, placementId }));
123
123
  }
124
124
  get superCampaignState() {
125
125
  return this._state.superCampaignState;
@@ -16,5 +16,5 @@ const patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(options => {
18
18
  globalScripts();
19
- return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_34",[[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);
19
+ return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_34",[[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);
20
20
  });
@@ -13,7 +13,7 @@ const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return Promise.resolve();
14
14
  return patchEsm().then(() => {
15
15
  globalScripts();
16
- return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_34",[[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);
16
+ return bootstrapLazy([["context-consumer",[[0,"context-consumer",{"context":[16],"renderer":[16],"subscribe":[16],"unsubscribe":[32]}]]],["stencil-async-content",[[0,"stencil-async-content",{"documentLocation":[1,"document-location"],"content":[32]}]]],["stencil-route-title",[[0,"stencil-route-title",{"titleSuffix":[1,"title-suffix"],"pageTitle":[1,"page-title"]}]]],["stencil-router-prompt",[[0,"stencil-router-prompt",{"when":[4],"message":[1],"history":[16],"unblock":[32]}]]],["stencil-router-redirect",[[0,"stencil-router-redirect",{"history":[16],"root":[1],"url":[1]}]]],["sss-button_34",[[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);
17
17
  });
18
18
  };
19
19
 
@@ -260,7 +260,7 @@ class TapSubscriber extends Subscriber {
260
260
  }
261
261
  }
262
262
 
263
- const AppVersion = '5.38.61955';
263
+ const AppVersion = '5.40.63109';
264
264
 
265
265
  // -------------------------------------------------------------------------------------
266
266
  // guards
@@ -3757,10 +3757,10 @@ class SuperSelectionAppService {
3757
3757
  else
3758
3758
  throw new Error('Cannot set shown funds for SuperCampaing state because it is undefined');
3759
3759
  }
3760
- viewSuperFundPanelAsync(promotedFundIdListOverride) {
3760
+ viewSuperFundPanelAsync(placementId, promotedFundIdListOverride) {
3761
3761
  return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({}, this.promotedFundsConfig), { shownFunds: promotedFundIdListOverride
3762
3762
  ? promotedFundIdListOverride
3763
- : this.promotedFundsConfig.shownFunds }));
3763
+ : this.promotedFundsConfig.shownFunds, placementId }));
3764
3764
  }
3765
3765
  get superCampaignState() {
3766
3766
  return this._state.superCampaignState;
@@ -6174,31 +6174,58 @@ const Success = class {
6174
6174
  }
6175
6175
  };
6176
6176
 
6177
- const FeaturedFunds = class {
6178
- constructor(hostRef) {
6179
- registerInstance(this, hostRef);
6180
- }
6181
- componentWillLoad() {
6182
- if (superSelectionAppService.isFeaturedFundsEnabled &&
6183
- superSelectionAppService.isUsingSuperCampaign &&
6184
- Option.isSome(superSelectionAppService.backendUrl) &&
6185
- Option.isSome(superSelectionAppService.state.jwt)) {
6186
- this.backendUrl = superSelectionAppService.backendUrl.value;
6187
- this.accessToken = superSelectionAppService.state.jwt.value;
6188
- superSelectionAppService.hideFooterSection = true;
6189
- }
6190
- else {
6191
- navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
6192
- }
6193
- }
6194
- disconnectedCallback() {
6195
- superSelectionAppService.hideFooterSection = false;
6177
+ class MiscService {
6178
+ trackClickPromotedTileAsync(payload) {
6179
+ return superSelectionApi.clickPromotedTileAsync(payload);
6196
6180
  }
6197
- render() {
6198
- return (h(Host, null, h("sss-header-section", null), h("div", { class: "flex justify-center mt-11" }, h("sss-custom-fund", null, h("apollo-super-campaign-featured-funds", { "backend-url": this.backendUrl, "access-token": this.accessToken })))));
6181
+ }
6182
+ const miscService = new MiscService();
6183
+
6184
+ const getSuperCampaignState = () => {
6185
+ if (superSelectionAppService.superCampaignState != undefined)
6186
+ return superSelectionAppService.superCampaignState;
6187
+ throw new Error('Super campaign state has not been initialized');
6188
+ };
6189
+ const fundTileClicked = async ({ sender, placementId, fundId, fundUsi, fundName, fundType }) => {
6190
+ if (sender === 'super-campaign' || sender === 'featured-funds') {
6191
+ const promotedFundsShown = getSuperCampaignState().PromotedFundIds;
6192
+ const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
6193
+ await Promise.all([
6194
+ fundType === 'promoted-default'
6195
+ ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
6196
+ fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : '',
6197
+ fundName,
6198
+ promotedFundId: fundId,
6199
+ promotedFundsShown,
6200
+ defaultFundUsiSet,
6201
+ superCampaignEnabled: true,
6202
+ placementId
6203
+ })
6204
+ : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
6205
+ fundUsi: fundUsi !== null && fundUsi !== void 0 ? fundUsi : undefined,
6206
+ fundName,
6207
+ promotedFundId: fundId,
6208
+ promotedFundsShown,
6209
+ defaultFundUsiSet,
6210
+ superCampaignEnabled: true,
6211
+ placementId
6212
+ }),
6213
+ miscService.trackClickPromotedTileAsync(fundType === 'promoted-default'
6214
+ ? {
6215
+ promotedDefault: {
6216
+ fundId,
6217
+ placementId
6218
+ }
6219
+ }
6220
+ : {
6221
+ promoted: {
6222
+ fundId,
6223
+ placementId
6224
+ }
6225
+ })
6226
+ ]);
6199
6227
  }
6200
6228
  };
6201
- injectHistory(FeaturedFunds);
6202
6229
 
6203
6230
  // Copyright (c) Microsoft Corporation. All rights reserved.
6204
6231
  // Licensed under the MIT License.
@@ -15858,30 +15885,6 @@ class AppInsightsService {
15858
15885
  }
15859
15886
  const appInsights = new AppInsightsService();
15860
15887
 
15861
- class SuperCampaignErrorApi {
15862
- static get Instance() {
15863
- return this.instance || (this.instance = new this());
15864
- }
15865
- async PostError(error) {
15866
- buildBackendApiClient().url('super-campaign/errors').post(error);
15867
- }
15868
- }
15869
-
15870
- const SuperFundDisclaimerViewedDetail = {
15871
- create: (superCampaignEnabled) => {
15872
- let isDefinedBenefitsEligibleString = 'Not set';
15873
- if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
15874
- isDefinedBenefitsEligibleString = superSelectionAppService.isDefinedBenefitsEligible.value
15875
- ? 'True'
15876
- : 'False';
15877
- }
15878
- return {
15879
- isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
15880
- superCampaignEnabled: superCampaignEnabled
15881
- };
15882
- }
15883
- };
15884
-
15885
15888
  class PromotedFundChoiceApi {
15886
15889
  async submitChoiceAsync(dto) {
15887
15890
  return buildBackendApiClient()
@@ -15926,13 +15929,6 @@ class SlateChoiceApi {
15926
15929
  }
15927
15930
  const slateChoiceApi = new SlateChoiceApi();
15928
15931
 
15929
- class MiscService {
15930
- trackClickPromotedTileAsync(payload) {
15931
- return superSelectionApi.clickPromotedTileAsync(payload);
15932
- }
15933
- }
15934
- const miscService = new MiscService();
15935
-
15936
15932
  const Usi = {
15937
15933
  clean: (usi) => {
15938
15934
  return usi.replace(/ /g, '');
@@ -15940,132 +15936,10 @@ const Usi = {
15940
15936
  };
15941
15937
  const LoadWaitingTimeout = 30000;
15942
15938
 
15943
- const SuperCampaignHost = class {
15944
- constructor(hostRef) {
15945
- registerInstance(this, hostRef);
15946
- this.scriptImported = false;
15947
- this.getEnvironmentTag = () => {
15948
- const discriminator = window.location.hostname.toLowerCase().split('.')[0];
15949
- switch (discriminator) {
15950
- case 'autodev-partner':
15951
- return 'autodev';
15952
- case 'test-partner':
15953
- return 'test';
15954
- case 'partner':
15955
- return 'prod';
15956
- case 'sandbox-partner':
15957
- return 'sandbox';
15958
- default:
15959
- return 'autodev';
15960
- }
15961
- };
15962
- this.subscribeToSuperCampaignEvents = () => {
15963
- for (const eventName in this.superCampaignEventHandlers) {
15964
- document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
15965
- }
15966
- };
15967
- this.unSubscribeFromSuperCampaignEvents = () => {
15968
- for (const eventName in this.superCampaignEventHandlers) {
15969
- document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
15970
- }
15971
- };
15972
- this.superCampaignLoaded = async (event) => {
15973
- if (event.detail.sender == 'super-campaign') {
15974
- superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
15975
- clearTimeout(this.loadingTimeoutRef);
15976
- await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
15977
- }
15978
- return Promise.resolve();
15979
- };
15980
- this.superCampaignLoadFailed = async (event) => {
15981
- if (event.detail.sender == 'super-campaign') {
15982
- await this.activateFallbackMechanism({
15983
- type: 'SuperCampaignActivationFailed',
15984
- reason: event.detail.reason || 'Unknown'
15985
- });
15986
- }
15987
- };
15988
- this.superCampaignFailed = async (event) => {
15989
- if (event.detail.sender == 'super-campaign') {
15990
- await this.activateFallbackMechanism({
15991
- type: 'SuperCampaignOperationFailed',
15992
- reason: event.detail.reason || 'Unknown'
15993
- });
15994
- }
15995
- };
15996
- this.chooseAnotherFundRequested = async (event) => {
15997
- if (event.detail.sender == 'super-campaign') {
15998
- await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
15999
- }
16000
- };
16001
- this.fundPanelShown = async (event) => {
16002
- if (event.detail.sender == 'super-campaign') {
16003
- superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
16004
- await superSelectionAppService.viewSuperFundPanelAsync();
16005
- }
16006
- };
16007
- this.fundTileClicked = async (event) => {
16008
- var _a, _b;
16009
- const eventDetails = event.detail;
16010
- if (eventDetails.sender == 'super-campaign') {
16011
- const promotedFundsShown = this.SuperCampaignState.PromotedFundIds;
16012
- const defaultFundUsiSet = Option.toUndefined(superSelectionAppService.defaultFundUsi);
16013
- await Promise.all([
16014
- eventDetails.fundType == 'promoted-default'
16015
- ? await EventTrackingService.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({
16016
- fundUsi: (_a = eventDetails.fundUsi) !== null && _a !== void 0 ? _a : '',
16017
- fundName: eventDetails.fundName,
16018
- promotedFundId: eventDetails.fundId,
16019
- promotedFundsShown,
16020
- defaultFundUsiSet,
16021
- superCampaignEnabled: true
16022
- })
16023
- : await EventTrackingService.Instance.TrackPromotedSuperFundDetailViewedAsync({
16024
- fundUsi: (_b = eventDetails.fundUsi) !== null && _b !== void 0 ? _b : undefined,
16025
- fundName: eventDetails.fundName,
16026
- promotedFundId: eventDetails.fundId,
16027
- promotedFundsShown,
16028
- defaultFundUsiSet,
16029
- superCampaignEnabled: true
16030
- }),
16031
- miscService.trackClickPromotedTileAsync(eventDetails.fundType == 'promoted-default'
16032
- ? {
16033
- promotedDefault: {
16034
- fundId: eventDetails.fundId
16035
- }
16036
- }
16037
- : {
16038
- promoted: {
16039
- fundId: eventDetails.fundId
16040
- }
16041
- })
16042
- ]);
16043
- }
16044
- };
16045
- this.fundPdsViewed = async (event) => {
16046
- if (event.detail.sender == 'super-campaign') {
16047
- await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
16048
- fundName: event.detail.fundName,
16049
- fundUsi: event.detail.fundUsi,
16050
- pageName: event.detail.pageName,
16051
- superCampaignEnabled: true
16052
- });
16053
- }
16054
- };
16055
- this.disclaimerViewed = async (event) => {
16056
- if (event.detail.sender == 'super-campaign') {
16057
- await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
16058
- }
16059
- };
16060
- this.disclaimerAccepted = async (event) => {
16061
- if (event.detail.sender == 'super-campaign') {
16062
- await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
16063
- superCampaignEnabled: true
16064
- });
16065
- }
16066
- };
16067
- this.promotedFundJoined = async (event) => {
16068
- if (event.detail.sender == 'super-campaign') {
15939
+ class PromotedFundJoinedEventHandler {
15940
+ constructor(placementId, history) {
15941
+ this.handle = async (event) => {
15942
+ if (event.detail.sender === 'super-campaign' || event.detail.sender === 'featured-funds') {
16069
15943
  const fundJoinInfo = event.detail.fundJoinInfo;
16070
15944
  switch (fundJoinInfo.fundType) {
16071
15945
  case 'Promoted':
@@ -16106,14 +15980,14 @@ const SuperCampaignHost = class {
16106
15980
  promotedFundId: data.fundId
16107
15981
  },
16108
15982
  handleSubmitFn: async (standardChoiceFormSignature) => {
16109
- if (data.fundId == slate.fundId) {
15983
+ if (data.fundId === slate.fundId) {
16110
15984
  await slateChoiceApi.submitSlateChoiceAsync(Object.assign({ memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, standardChoiceFormSignature,
16111
- defaultFundUsiSet }, this.PromotedFundsConfig));
15985
+ defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
16112
15986
  }
16113
15987
  else {
16114
15988
  await promotedFundChoiceApi.submitChoiceAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16115
15989
  standardChoiceFormSignature,
16116
- defaultFundUsiSet }, this.PromotedFundsConfig));
15990
+ defaultFundUsiSet, placementId: this.placementId }, this.PromotedFundsConfig));
16117
15991
  }
16118
15992
  }
16119
15993
  });
@@ -16135,7 +16009,7 @@ const SuperCampaignHost = class {
16135
16009
  promotedFundId: data.fundId
16136
16010
  },
16137
16011
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceAsync(Object.assign({ fundId: data.fundId, usi,
16138
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, this.PromotedFundsConfig))
16012
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
16139
16013
  });
16140
16014
  };
16141
16015
  this.handlePromotedDefaultFundWithJoinWasJoined = (data) => {
@@ -16156,7 +16030,7 @@ const SuperCampaignHost = class {
16156
16030
  promotedFundId: data.fundId
16157
16031
  },
16158
16032
  handleSubmitFn: (standardChoiceFormSignature) => promotedFundChoiceApi.submitDefaultChoiceWithJoinAsync(Object.assign({ fundId: data.fundId, memberNumber: data.memberNumber, memberFirstName: data.memberFirstName, memberFamilyName: data.memberFamilyName, usi,
16159
- standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi) }, this.PromotedFundsConfig))
16033
+ standardChoiceFormSignature, defaultFundUsiSet: Option.toUndefined(superSelectionAppService.defaultFundUsi), placementId: this.placementId }, this.PromotedFundsConfig))
16160
16034
  });
16161
16035
  };
16162
16036
  this.handleDefinedBenefitsJoined = async (data) => {
@@ -16167,6 +16041,209 @@ const SuperCampaignHost = class {
16167
16041
  await customFundChoiceApi.submitDefinedBenefitsChoiceAsync(Object.assign({ fundUsi: Usi.clean(data.usi), fundId: data.fundId, memberNumber: data.memberNumber, memberElectContributionRatePreTax: data.memberElectContributionRatePreTax, memberElectContributionRatePostTax: data.memberElectContributionRatePostTax }, this.PromotedFundsConfig));
16168
16042
  superSelectionAppService.markSuperSelectionAsSubmitted();
16169
16043
  };
16044
+ this.history = history;
16045
+ this.placementId = placementId;
16046
+ }
16047
+ get PromotedFundsConfig() {
16048
+ return superSelectionAppService.promotedFundsConfig;
16049
+ }
16050
+ }
16051
+
16052
+ const FeaturedFunds = class {
16053
+ constructor(hostRef) {
16054
+ registerInstance(this, hostRef);
16055
+ this.currentView = 'featured-funds';
16056
+ this.subscribeToEvents = () => {
16057
+ for (const eventName in this.eventHandlers) {
16058
+ document.addEventListener(eventName, this.eventHandlers[eventName]);
16059
+ }
16060
+ };
16061
+ this.unsubscribeFromEvents = () => {
16062
+ for (const eventName in this.eventHandlers) {
16063
+ document.removeEventListener(eventName, this.eventHandlers[eventName]);
16064
+ }
16065
+ };
16066
+ this.backClicked = () => {
16067
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.ChoicePage);
16068
+ return Promise.resolve();
16069
+ };
16070
+ this.cancelClicked = () => {
16071
+ this.currentView = 'featured-funds';
16072
+ return Promise.resolve();
16073
+ };
16074
+ this.continueClicked = async (event) => {
16075
+ this.currentView = 'fund-join';
16076
+ await fundTileClicked({
16077
+ sender: event.detail.sender,
16078
+ placementId: 'byof',
16079
+ fundId: event.detail.fundId,
16080
+ fundUsi: event.detail.fundUsi,
16081
+ fundName: event.detail.fundName,
16082
+ fundType: event.detail.fundType
16083
+ });
16084
+ };
16085
+ this.fundPanelShown = async (event) => {
16086
+ if (event.detail.sender === 'featured-funds') {
16087
+ const fundIdList = event.detail.shownFunds.map((f) => f.fundId);
16088
+ await superSelectionAppService.viewSuperFundPanelAsync('byof', fundIdList);
16089
+ }
16090
+ };
16091
+ this.eventHandlers = {
16092
+ 'back-clicked': this.backClicked.bind(this),
16093
+ 'continue-clicked': this.continueClicked.bind(this),
16094
+ 'cancel-clicked': this.cancelClicked.bind(this),
16095
+ 'featured-fund-panel-shown': this.fundPanelShown.bind(this),
16096
+ 'promoted-fund-joined': new PromotedFundJoinedEventHandler('byof', this.history).handle
16097
+ };
16098
+ }
16099
+ componentWillLoad() {
16100
+ if (superSelectionAppService.isFeaturedFundsEnabled &&
16101
+ superSelectionAppService.isUsingSuperCampaign &&
16102
+ Option.isSome(superSelectionAppService.backendUrl) &&
16103
+ Option.isSome(superSelectionAppService.state.jwt)) {
16104
+ this.backendUrl = superSelectionAppService.backendUrl.value;
16105
+ this.accessToken = superSelectionAppService.state.jwt.value;
16106
+ this.unsubscribeFromEvents();
16107
+ this.subscribeToEvents();
16108
+ superSelectionAppService.hideFooterSection = true;
16109
+ }
16110
+ else {
16111
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16112
+ }
16113
+ }
16114
+ disconnectedCallback() {
16115
+ this.unsubscribeFromEvents();
16116
+ superSelectionAppService.hideFooterSection = false;
16117
+ }
16118
+ render() {
16119
+ return (h(Host, null, this.currentView === 'featured-funds' && h("sss-header-section", null), h("div", { class: {
16120
+ 'flex flex-col w-full justify-center items-center mt-11 mx-auto': this.currentView === 'featured-funds',
16121
+ '-mt-20': this.currentView === 'fund-join'
16122
+ } }, this.currentView === 'featured-funds' && h("sss-custom-fund", null), h("apollo-super-campaign-featured-funds", { "backend-url": this.backendUrl, "access-token": this.accessToken }))));
16123
+ }
16124
+ };
16125
+ injectHistory(FeaturedFunds);
16126
+
16127
+ class SuperCampaignErrorApi {
16128
+ static get Instance() {
16129
+ return this.instance || (this.instance = new this());
16130
+ }
16131
+ async PostError(error) {
16132
+ buildBackendApiClient().url('super-campaign/errors').post(error);
16133
+ }
16134
+ }
16135
+
16136
+ const SuperFundDisclaimerViewedDetail = {
16137
+ create: (superCampaignEnabled) => {
16138
+ let isDefinedBenefitsEligibleString = 'Not set';
16139
+ if (Option.isSome(superSelectionAppService.isDefinedBenefitsEligible)) {
16140
+ isDefinedBenefitsEligibleString = superSelectionAppService.isDefinedBenefitsEligible.value
16141
+ ? 'True'
16142
+ : 'False';
16143
+ }
16144
+ return {
16145
+ isDefinedBenefitsEligible: isDefinedBenefitsEligibleString,
16146
+ superCampaignEnabled: superCampaignEnabled
16147
+ };
16148
+ }
16149
+ };
16150
+
16151
+ const SuperCampaignHost = class {
16152
+ constructor(hostRef) {
16153
+ registerInstance(this, hostRef);
16154
+ this.scriptImported = false;
16155
+ this.getEnvironmentTag = () => {
16156
+ const discriminator = window.location.hostname.toLowerCase().split('.')[0];
16157
+ switch (discriminator) {
16158
+ case 'autodev-partner':
16159
+ return 'autodev';
16160
+ case 'test-partner':
16161
+ return 'test';
16162
+ case 'partner':
16163
+ return 'prod';
16164
+ case 'sandbox-partner':
16165
+ return 'sandbox';
16166
+ default:
16167
+ return 'autodev';
16168
+ }
16169
+ };
16170
+ this.subscribeToSuperCampaignEvents = () => {
16171
+ for (const eventName in this.superCampaignEventHandlers) {
16172
+ document.addEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16173
+ }
16174
+ };
16175
+ this.unSubscribeFromSuperCampaignEvents = () => {
16176
+ for (const eventName in this.superCampaignEventHandlers) {
16177
+ document.removeEventListener(eventName, this.superCampaignEventHandlers[eventName]);
16178
+ }
16179
+ };
16180
+ this.superCampaignLoaded = async (event) => {
16181
+ if (event.detail.sender === 'super-campaign') {
16182
+ superSelectionAppService.superCampaignComponentStatus = SuperCampaignComponentStatus.Loaded;
16183
+ clearTimeout(this.loadingTimeoutRef);
16184
+ await EventTrackingService.Instance.TrackSuperCampaignActivationSucceededAsync({});
16185
+ }
16186
+ return Promise.resolve();
16187
+ };
16188
+ this.superCampaignLoadFailed = async (event) => {
16189
+ if (event.detail.sender === 'super-campaign') {
16190
+ await this.activateFallbackMechanism({
16191
+ type: 'SuperCampaignActivationFailed',
16192
+ reason: event.detail.reason || 'Unknown'
16193
+ });
16194
+ }
16195
+ };
16196
+ this.superCampaignFailed = async (event) => {
16197
+ if (event.detail.sender === 'super-campaign') {
16198
+ await this.activateFallbackMechanism({
16199
+ type: 'SuperCampaignOperationFailed',
16200
+ reason: event.detail.reason || 'Unknown'
16201
+ });
16202
+ }
16203
+ };
16204
+ this.chooseAnotherFundRequested = async (event) => {
16205
+ if (event.detail.sender === 'super-campaign') {
16206
+ await navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
16207
+ }
16208
+ };
16209
+ this.fundPanelShown = async (event) => {
16210
+ if (event.detail.sender === 'super-campaign') {
16211
+ superSelectionAppService.setSuperCampaignPromotedFundsShown(event.detail.shownFunds);
16212
+ await superSelectionAppService.viewSuperFundPanelAsync('panel');
16213
+ }
16214
+ };
16215
+ this.fundTileClicked = async (event) => {
16216
+ await fundTileClicked({
16217
+ sender: event.detail.sender,
16218
+ placementId: 'panel',
16219
+ fundId: event.detail.fundId,
16220
+ fundUsi: event.detail.fundUsi,
16221
+ fundName: event.detail.fundName,
16222
+ fundType: event.detail.fundType
16223
+ });
16224
+ };
16225
+ this.fundPdsViewed = async (event) => {
16226
+ if (event.detail.sender === 'super-campaign') {
16227
+ await EventTrackingService.Instance.TrackSuperFundPdsViewedAsync({
16228
+ fundName: event.detail.fundName,
16229
+ fundUsi: event.detail.fundUsi,
16230
+ pageName: event.detail.pageName,
16231
+ superCampaignEnabled: true
16232
+ });
16233
+ }
16234
+ };
16235
+ this.disclaimerViewed = async (event) => {
16236
+ if (event.detail.sender === 'super-campaign') {
16237
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerViewedAsync(SuperFundDisclaimerViewedDetail.create(true));
16238
+ }
16239
+ };
16240
+ this.disclaimerAccepted = async (event) => {
16241
+ if (event.detail.sender === 'super-campaign') {
16242
+ await EventTrackingService.Instance.TrackSuperFundDisclaimerAcceptedAsync({
16243
+ superCampaignEnabled: true
16244
+ });
16245
+ }
16246
+ };
16170
16247
  this.superCampaignEventHandlers = {
16171
16248
  'choose-another-fund-requested': this.chooseAnotherFundRequested.bind(this),
16172
16249
  'fund-panel-shown': this.fundPanelShown.bind(this),
@@ -16174,7 +16251,7 @@ const SuperCampaignHost = class {
16174
16251
  'fund-pds-viewed': this.fundPdsViewed.bind(this),
16175
16252
  'disclaimer-viewed': this.disclaimerViewed.bind(this),
16176
16253
  'disclaimer-accepted': this.disclaimerAccepted.bind(this),
16177
- 'promoted-fund-joined': this.promotedFundJoined.bind(this),
16254
+ 'promoted-fund-joined': new PromotedFundJoinedEventHandler('panel', this.history).handle,
16178
16255
  'super-campaign-loaded': this.superCampaignLoaded.bind(this),
16179
16256
  'super-campaign-load-failed': this.superCampaignLoadFailed.bind(this),
16180
16257
  'super-campaign-failed': this.superCampaignFailed.bind(this)
@@ -16242,14 +16319,6 @@ const SuperCampaignHost = class {
16242
16319
  createApolloSuperCampaignScriptUrl(envTag) {
16243
16320
  return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
16244
16321
  }
16245
- get SuperCampaignState() {
16246
- if (superSelectionAppService.superCampaignState != undefined)
16247
- return superSelectionAppService.superCampaignState;
16248
- throw new Error('Super campaign state has not been initialized');
16249
- }
16250
- get PromotedFundsConfig() {
16251
- return superSelectionAppService.promotedFundsConfig;
16252
- }
16253
16322
  };
16254
16323
  injectHistory(SuperCampaignHost);
16255
16324