@flarehr/apollo-super-selection 1.3.54957 → 1.3.54983

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 (37) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
  3. package/dist/lib/apollo-super-selection/p-befc619a.entry.js +14 -0
  4. package/dist/lib/apollo-super-selection/p-c0094d10.system.entry.js +69 -0
  5. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  6. package/dist/lib/cjs/loader.cjs.js +1 -1
  7. package/dist/lib/cjs/{sss-button_31.cjs.entry.js → sss-button_32.cjs.entry.js} +118 -16
  8. package/dist/lib/collection/collection-manifest.json +2 -0
  9. package/dist/lib/collection/components/super-campaign/super-campaign.js +4 -8
  10. package/dist/lib/collection/components/super-selection-app/footer-section/footer-section.js +2 -2
  11. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.js +1 -0
  12. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js +115 -0
  13. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js +5 -0
  14. package/dist/lib/collection/components/super-selection-app/services/event-tracking.service.js +10 -0
  15. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -0
  16. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +16 -4
  17. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  18. package/dist/lib/esm/apollo-super-selection.js +1 -1
  19. package/dist/lib/esm/loader.js +1 -1
  20. package/dist/lib/esm/{sss-button_31.entry.js → sss-button_32.entry.js} +118 -17
  21. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  22. package/dist/lib/esm-es5/loader.js +1 -1
  23. package/dist/lib/esm-es5/sss-button_32.entry.js +69 -0
  24. package/dist/lib/types/components/super-campaign/super-campaign.d.ts +0 -1
  25. package/dist/lib/types/components/super-selection-app/api/super-selection-events.model.d.ts +11 -0
  26. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  27. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step-types.d.ts +15 -0
  28. package/dist/lib/types/components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.d.ts +20 -0
  29. package/dist/lib/types/components/super-selection-app/services/event-tracking.service.d.ts +2 -0
  30. package/dist/lib/types/components/super-selection-app/services/super-selection-app.routes.d.ts +1 -0
  31. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +5 -2
  32. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -1
  33. package/dist/lib/types/components.d.ts +15 -0
  34. package/package.json +1 -1
  35. package/dist/lib/apollo-super-selection/p-874d0fd5.system.entry.js +0 -69
  36. package/dist/lib/apollo-super-selection/p-ec82c524.entry.js +0 -14
  37. package/dist/lib/esm-es5/sss-button_31.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_31.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-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-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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-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-header-section",{"currentPage":[1,"current-page"]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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_32.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-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-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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-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-header-section",{"currentPage":[1,"current-page"]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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_31.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-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-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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-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-header-section",{"currentPage":[1,"current-page"]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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_32.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-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-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-self-managed-fund-inputs",{"fundForm":[16],"showValidationErrors":[4,"show-validation-errors"],"abnValidationStatus":[32],"isAbnTouched":[32],"currentBank":[32],"addressErrorMessage":[32]}],[0,"sss-loading-page"],[0,"sss-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-header-section",{"currentPage":[1,"current-page"]}],[4,"sss-custom-fund",{"history":[16],"currentCustomFund":[32],"fundOptionsList":[32],"showFundOptionsSelection":[32]}],[0,"sss-prefill-warning-box",{"notificationList":[16]}],[0,"sss-name-input",{"testId":[1,"test-id"],"value":[1],"name":[1],"readableName":[1,"readable-name"],"showValidationErrors":[4,"show-validation-errors"],"errorMessage":[32]}],[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]}],[0,"sss-prefill-display-field",{"field":[16]}],[0,"sss-prefill-error-box",{"withHeader":[4,"with-header"],"notificationList":[16]}],[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 = '1.3.54957';
287
+ const AppVersion = '1.3.54983';
288
288
 
289
289
  // -------------------------------------------------------------------------------------
290
290
  // guards
@@ -1208,6 +1208,7 @@ var SuperSelectionAppRoutes;
1208
1208
  SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
1209
1209
  SuperSelectionAppRoutes["ChoicePage"] = "/";
1210
1210
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
1211
+ SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund/welcome-back";
1211
1212
  SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
1212
1213
  SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
1213
1214
  SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
@@ -1223,6 +1224,7 @@ const superSelectionAppStencilRoutes = [
1223
1224
  index.h("stencil-route", { url: SuperSelectionAppRoutes.SuperCampaign, component: "sss-super-campaign-host" }),
1224
1225
  index.h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-super-campaign-host" }),
1225
1226
  index.h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-my-own-fund" }),
1227
+ index.h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
1226
1228
  index.h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
1227
1229
  index.h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
1228
1230
  index.h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
@@ -3660,7 +3662,8 @@ const initialState = {
3660
3662
  superCampaignEnabled: true,
3661
3663
  superCampaignState: undefined,
3662
3664
  superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded,
3663
- superCampaignIsInView: false
3665
+ hideFooterSection: false,
3666
+ bringYourOwnFundCustomStepEnabled: false
3664
3667
  };
3665
3668
 
3666
3669
  class SuperSelectionAppService {
@@ -3758,6 +3761,8 @@ class SuperSelectionAppService {
3758
3761
  this._state.profileConfiguration = Option.fromNullable(appStateResponse.profileConfiguration);
3759
3762
  this._state.superBuyer = Option.fromNullable(appStateResponse.superBuyer);
3760
3763
  this._state.promotedFunds = Option.fromNullable(appStateResponse.promotedFunds);
3764
+ this._state.bringYourOwnFundCustomStepEnabled =
3765
+ appStateResponse.bringYourOwnFundCustomStepEnabled;
3761
3766
  this._state.superChoicePrefill = Option.fromNullable(appStateResponse.prefill);
3762
3767
  this._state.isDefinedBenefitsEligible = Option.fromNullable(appStateResponse.isDefinedBenefitsEligible);
3763
3768
  }
@@ -3791,15 +3796,25 @@ class SuperSelectionAppService {
3791
3796
  get isUsingSuperCampaign() {
3792
3797
  return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
3793
3798
  }
3799
+ get isBringYourOwnFundCustomStepEnabled() {
3800
+ return this.state.bringYourOwnFundCustomStepEnabled;
3801
+ }
3794
3802
  get isSuperCampaignFallbackActivated() {
3795
3803
  return (this.state.superCampaignEnabled &&
3796
3804
  this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
3797
3805
  }
3798
- get superCampaignIsInView() {
3799
- return this._state.superCampaignIsInView;
3806
+ get hideFooterSection() {
3807
+ return this._state.hideFooterSection;
3808
+ }
3809
+ set hideFooterSection(value) {
3810
+ this._state.hideFooterSection = value;
3800
3811
  }
3801
- set superCampaignIsInView(value) {
3802
- this._state.superCampaignIsInView = value;
3812
+ get backendUrl() {
3813
+ return Option.map(this.getBaseUrl)(this.state.apiBaseUrl);
3814
+ }
3815
+ getBaseUrl(url) {
3816
+ const parsedUrl = new URL(url);
3817
+ return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
3803
3818
  }
3804
3819
  }
3805
3820
  const superSelectionAppService = new SuperSelectionAppService();
@@ -4032,6 +4047,16 @@ class EventTrackingService {
4032
4047
  SuperCampaignActivationSucceeded: detail
4033
4048
  });
4034
4049
  }
4050
+ async TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi) {
4051
+ return this.trackEventAsync({
4052
+ SuperMyOwnFundEngagementStepActivationSucceeded: { fundUsi }
4053
+ });
4054
+ }
4055
+ async TrackSuperMyOwnFundEngagementStepContinued(fundUsi, reason) {
4056
+ return this.trackEventAsync({
4057
+ SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
4058
+ });
4059
+ }
4035
4060
  async trackEventAsync(event) {
4036
4061
  try {
4037
4062
  await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
@@ -4541,8 +4566,8 @@ const FooterSection = class {
4541
4566
  render() {
4542
4567
  return (index.h("div", { class: {
4543
4568
  'text-center text-gray-500 text-xs w-full max-w-960 mx-auto': true,
4544
- 'mt-8 sm:mt-20': !superSelectionAppService.superCampaignIsInView
4545
- } }, !superSelectionAppService.superCampaignIsInView && index.h("span", null, this.footerText()), index.h("p", { class: "block text-transparent" }, "v", AppVersion)));
4569
+ 'mt-8 sm:mt-20': !superSelectionAppService.hideFooterSection
4570
+ } }, !superSelectionAppService.hideFooterSection && index.h("span", null, this.footerText()), index.h("p", { class: "block text-transparent" }, "v", AppVersion)));
4546
4571
  }
4547
4572
  };
4548
4573
 
@@ -4629,6 +4654,11 @@ const MyOwnFund = class {
4629
4654
  this.isNotAllInformationProvidedMessageVisible = true;
4630
4655
  return;
4631
4656
  }
4657
+ if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
4658
+ superSelectionAppService.isUsingSuperCampaign) {
4659
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFundEngagementStep);
4660
+ return;
4661
+ }
4632
4662
  navigationService.navigateInternallyToStandardChoice({
4633
4663
  history: this.history,
4634
4664
  fundName: this.getOrError(state$1.myOwnFundForm.fundName),
@@ -4652,6 +4682,81 @@ const MyOwnFund = class {
4652
4682
  };
4653
4683
  injectHistory(MyOwnFund);
4654
4684
 
4685
+ const MyOwnFundEngagementStep = class {
4686
+ constructor(hostRef) {
4687
+ index.registerInstance(this, hostRef);
4688
+ this.stepContinued = async (event) => {
4689
+ if (event.detail.sender == 'byof-engagement') {
4690
+ await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi, event.detail.reason);
4691
+ this.navigateToStandardChoice();
4692
+ }
4693
+ };
4694
+ this.subscribeToStepEvents = () => {
4695
+ for (const eventName in this.stepEventHandlers) {
4696
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
4697
+ }
4698
+ };
4699
+ this.unSubscribeFromStepEvents = () => {
4700
+ for (const eventName in this.stepEventHandlers) {
4701
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
4702
+ }
4703
+ };
4704
+ this.stepEventHandlers = {
4705
+ continue: this.stepContinued.bind(this)
4706
+ };
4707
+ }
4708
+ async componentWillLoad() {
4709
+ if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
4710
+ superSelectionAppService.isUsingSuperCampaign &&
4711
+ Option.isSome(state$1.myOwnFundForm.fundUsi) &&
4712
+ Option.isSome(state$1.myOwnFundForm.fundName) &&
4713
+ Option.isSome(state$1.myOwnFundForm.memberNumber) &&
4714
+ Option.isSome(state$1.myOwnFundForm.memberFirstName) &&
4715
+ Option.isSome(state$1.myOwnFundForm.memberFamilyName) &&
4716
+ Option.isSome(superSelectionAppService.backendUrl) &&
4717
+ Option.isSome(superSelectionAppService.state.jwt)) {
4718
+ this.backendUrl = superSelectionAppService.backendUrl.value;
4719
+ this.accessToken = superSelectionAppService.state.jwt.value;
4720
+ this.fundUsi = state$1.myOwnFundForm.fundUsi.value;
4721
+ this.fundName = state$1.myOwnFundForm.fundName.value;
4722
+ this.memberNumber = state$1.myOwnFundForm.memberNumber.value;
4723
+ this.memberFirstName = state$1.myOwnFundForm.memberFirstName.value;
4724
+ this.memberFamilyName = state$1.myOwnFundForm.memberFamilyName.value;
4725
+ this.unSubscribeFromStepEvents();
4726
+ this.subscribeToStepEvents();
4727
+ superSelectionAppService.hideFooterSection = true;
4728
+ await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi);
4729
+ }
4730
+ else {
4731
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
4732
+ }
4733
+ }
4734
+ disconnectedCallback() {
4735
+ this.unSubscribeFromStepEvents();
4736
+ superSelectionAppService.hideFooterSection = false;
4737
+ }
4738
+ render() {
4739
+ return (index.h("div", null, index.h("apollo-super-byof-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken, "fund-usi": this.fundUsi })));
4740
+ }
4741
+ navigateToStandardChoice() {
4742
+ navigationService.navigateInternallyToStandardChoice({
4743
+ history: this.history,
4744
+ fundName: this.fundName,
4745
+ fundDetails: {
4746
+ type: 'myOwnFund',
4747
+ fundName: this.fundName,
4748
+ fundUsi: this.fundUsi,
4749
+ memberNumber: this.memberNumber
4750
+ },
4751
+ handleSubmitFn: async (standardChoiceFormSignature) => {
4752
+ const customFundChoiceDto = Object.assign({ fundUsi: this.fundUsi, memberNumber: this.memberNumber, memberFirstName: this.memberFirstName, memberFamilyName: this.memberFamilyName, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
4753
+ await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
4754
+ }
4755
+ });
4756
+ }
4757
+ };
4758
+ injectHistory(MyOwnFundEngagementStep);
4759
+
4655
4760
  const MyOwnFundInputs = class {
4656
4761
  constructor(hostRef) {
4657
4762
  index.registerInstance(this, hostRef);
@@ -16062,9 +16167,9 @@ const SuperCampaignHost = class {
16062
16167
  }
16063
16168
  let superCampaingScriptPath = undefined;
16064
16169
  try {
16065
- if (Option.isSome(superSelectionAppService.state.apiBaseUrl) &&
16170
+ if (Option.isSome(superSelectionAppService.backendUrl) &&
16066
16171
  Option.isSome(superSelectionAppService.state.jwt)) {
16067
- this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
16172
+ this.backendUrl = superSelectionAppService.backendUrl.value;
16068
16173
  this.accessToken = superSelectionAppService.state.jwt.value;
16069
16174
  this.unSubscribeFromSuperCampaignEvents();
16070
16175
  if (superSelectionAppService.state.superCampaignComponentStatus ===
@@ -16075,7 +16180,7 @@ const SuperCampaignHost = class {
16075
16180
  }
16076
16181
  this.subscribeToSuperCampaignEvents();
16077
16182
  this.scriptImported = true;
16078
- superSelectionAppService.superCampaignIsInView = true;
16183
+ superSelectionAppService.hideFooterSection = true;
16079
16184
  }
16080
16185
  else {
16081
16186
  throw Error(`SuperCampaignHost pre-requisites not met.`);
@@ -16091,7 +16196,7 @@ const SuperCampaignHost = class {
16091
16196
  disconnectedCallback() {
16092
16197
  clearTimeout(this.loadingTimeoutRef);
16093
16198
  this.unSubscribeFromSuperCampaignEvents();
16094
- superSelectionAppService.superCampaignIsInView = false;
16199
+ superSelectionAppService.hideFooterSection = false;
16095
16200
  }
16096
16201
  render() {
16097
16202
  return (index.h("div", null, this.scriptImported ? (index.h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
@@ -16116,10 +16221,6 @@ const SuperCampaignHost = class {
16116
16221
  createApolloSuperCampaignScriptUrl(envTag) {
16117
16222
  return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
16118
16223
  }
16119
- getBaseUrl(url) {
16120
- const parsedUrl = new URL(url);
16121
- return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
16122
- }
16123
16224
  get SuperCampaignState() {
16124
16225
  if (superSelectionAppService.superCampaignState != undefined)
16125
16226
  return superSelectionAppService.superCampaignState;
@@ -17954,6 +18055,7 @@ exports.sss_header_section = HeaderSection;
17954
18055
  exports.sss_loading_indicator = LoadingIndicator;
17955
18056
  exports.sss_loading_page = LoadingPage;
17956
18057
  exports.sss_my_own_fund = MyOwnFund;
18058
+ exports.sss_my_own_fund_engagement_step_host = MyOwnFundEngagementStep;
17957
18059
  exports.sss_my_own_fund_inputs = MyOwnFundInputs;
17958
18060
  exports.sss_name_input = MemberNameInput;
17959
18061
  exports.sss_prefill = Prefill;
@@ -13,6 +13,7 @@
13
13
  "./components/super-selection-app/funds/custom-fund/custom-fund.js",
14
14
  "./components/super-selection-app/funds/custom-fund/member-name-input.js",
15
15
  "./components/super-selection-app/funds/custom-fund/default-fund/default-fund.js",
16
+ "./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-engagement-step.js",
16
17
  "./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund-inputs.js",
17
18
  "./components/super-selection-app/funds/custom-fund/my-own-fund/my-own-fund.js",
18
19
  "./components/super-selection-app/funds/custom-fund/self-managed-fund/self-managed-fund.js",
@@ -67,6 +68,7 @@
67
68
  "sss-loading-indicator",
68
69
  "sss-loading-page",
69
70
  "sss-my-own-fund",
71
+ "sss-my-own-fund-engagement-step-host",
70
72
  "sss-my-own-fund-inputs",
71
73
  "sss-name-input",
72
74
  "sss-prefill",
@@ -263,9 +263,9 @@ export class SuperCampaignHost {
263
263
  }
264
264
  let superCampaingScriptPath = undefined;
265
265
  try {
266
- if (isSome(superSelectionAppService.state.apiBaseUrl) &&
266
+ if (isSome(superSelectionAppService.backendUrl) &&
267
267
  isSome(superSelectionAppService.state.jwt)) {
268
- this.backendUrl = this.getBaseUrl(superSelectionAppService.state.apiBaseUrl.value);
268
+ this.backendUrl = superSelectionAppService.backendUrl.value;
269
269
  this.accessToken = superSelectionAppService.state.jwt.value;
270
270
  this.unSubscribeFromSuperCampaignEvents();
271
271
  if (superSelectionAppService.state.superCampaignComponentStatus ===
@@ -276,7 +276,7 @@ export class SuperCampaignHost {
276
276
  }
277
277
  this.subscribeToSuperCampaignEvents();
278
278
  this.scriptImported = true;
279
- superSelectionAppService.superCampaignIsInView = true;
279
+ superSelectionAppService.hideFooterSection = true;
280
280
  }
281
281
  else {
282
282
  throw Error(`SuperCampaignHost pre-requisites not met.`);
@@ -292,7 +292,7 @@ export class SuperCampaignHost {
292
292
  disconnectedCallback() {
293
293
  clearTimeout(this.loadingTimeoutRef);
294
294
  this.unSubscribeFromSuperCampaignEvents();
295
- superSelectionAppService.superCampaignIsInView = false;
295
+ superSelectionAppService.hideFooterSection = false;
296
296
  }
297
297
  render() {
298
298
  return (h("div", null, this.scriptImported ? (h("apollo-super-campaign", { "backend-url": this.backendUrl, "access-token": this.accessToken })) : null));
@@ -317,10 +317,6 @@ export class SuperCampaignHost {
317
317
  createApolloSuperCampaignScriptUrl(envTag) {
318
318
  return `https://npm-cdn.flarehr.com/@flarehr/apollo-super-campaign@${envTag}/dist/apollo-super-campaign.js`;
319
319
  }
320
- getBaseUrl(url) {
321
- const parsedUrl = new URL(url);
322
- return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
323
- }
324
320
  get SuperCampaignState() {
325
321
  if (superSelectionAppService.superCampaignState != undefined)
326
322
  return superSelectionAppService.superCampaignState;
@@ -9,9 +9,9 @@ export class FooterSection {
9
9
  render() {
10
10
  return (h("div", { class: {
11
11
  'text-center text-gray-500 text-xs w-full max-w-960 mx-auto': true,
12
- 'mt-8 sm:mt-20': !superSelectionAppService.superCampaignIsInView
12
+ 'mt-8 sm:mt-20': !superSelectionAppService.hideFooterSection
13
13
  } },
14
- !superSelectionAppService.superCampaignIsInView && h("span", null, this.footerText()),
14
+ !superSelectionAppService.hideFooterSection && h("span", null, this.footerText()),
15
15
  h("p", { class: "block text-transparent" },
16
16
  "v",
17
17
  AppVersion)));
@@ -0,0 +1,115 @@
1
+ import { Component, h, Prop, State } from '@stencil/core';
2
+ import { injectHistory } from '@stencil/router';
3
+ import { isSome } from 'fp-ts/lib/Option';
4
+ import { EventTrackingService } from '../../../services/event-tracking.service';
5
+ import navigationService from '../../../services/navigation.service';
6
+ import { SuperSelectionAppRoutes } from '../../../services/super-selection-app.routes';
7
+ import superSelectionAppService from '../../../services/super-selection-app.service';
8
+ import customFundChoiceApi from '../api/custom-fund-choice.api';
9
+ import customFundState from '../custom-fund.store';
10
+ export class MyOwnFundEngagementStep {
11
+ constructor() {
12
+ this.stepContinued = async (event) => {
13
+ if (event.detail.sender == 'byof-engagement') {
14
+ await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi, event.detail.reason);
15
+ this.navigateToStandardChoice();
16
+ }
17
+ };
18
+ this.subscribeToStepEvents = () => {
19
+ for (const eventName in this.stepEventHandlers) {
20
+ document.addEventListener(eventName, this.stepEventHandlers[eventName]);
21
+ }
22
+ };
23
+ this.unSubscribeFromStepEvents = () => {
24
+ for (const eventName in this.stepEventHandlers) {
25
+ document.removeEventListener(eventName, this.stepEventHandlers[eventName]);
26
+ }
27
+ };
28
+ this.stepEventHandlers = {
29
+ continue: this.stepContinued.bind(this)
30
+ };
31
+ }
32
+ async componentWillLoad() {
33
+ if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
34
+ superSelectionAppService.isUsingSuperCampaign &&
35
+ isSome(customFundState.myOwnFundForm.fundUsi) &&
36
+ isSome(customFundState.myOwnFundForm.fundName) &&
37
+ isSome(customFundState.myOwnFundForm.memberNumber) &&
38
+ isSome(customFundState.myOwnFundForm.memberFirstName) &&
39
+ isSome(customFundState.myOwnFundForm.memberFamilyName) &&
40
+ isSome(superSelectionAppService.backendUrl) &&
41
+ isSome(superSelectionAppService.state.jwt)) {
42
+ this.backendUrl = superSelectionAppService.backendUrl.value;
43
+ this.accessToken = superSelectionAppService.state.jwt.value;
44
+ this.fundUsi = customFundState.myOwnFundForm.fundUsi.value;
45
+ this.fundName = customFundState.myOwnFundForm.fundName.value;
46
+ this.memberNumber = customFundState.myOwnFundForm.memberNumber.value;
47
+ this.memberFirstName = customFundState.myOwnFundForm.memberFirstName.value;
48
+ this.memberFamilyName = customFundState.myOwnFundForm.memberFamilyName.value;
49
+ this.unSubscribeFromStepEvents();
50
+ this.subscribeToStepEvents();
51
+ superSelectionAppService.hideFooterSection = true;
52
+ await EventTrackingService.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi);
53
+ }
54
+ else {
55
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFund);
56
+ }
57
+ }
58
+ disconnectedCallback() {
59
+ this.unSubscribeFromStepEvents();
60
+ superSelectionAppService.hideFooterSection = false;
61
+ }
62
+ render() {
63
+ return (h("div", null,
64
+ h("apollo-super-byof-engagement", { "backend-url": this.backendUrl, "access-token": this.accessToken, "fund-usi": this.fundUsi })));
65
+ }
66
+ navigateToStandardChoice() {
67
+ navigationService.navigateInternallyToStandardChoice({
68
+ history: this.history,
69
+ fundName: this.fundName,
70
+ fundDetails: {
71
+ type: 'myOwnFund',
72
+ fundName: this.fundName,
73
+ fundUsi: this.fundUsi,
74
+ memberNumber: this.memberNumber
75
+ },
76
+ handleSubmitFn: async (standardChoiceFormSignature) => {
77
+ const customFundChoiceDto = Object.assign({ fundUsi: this.fundUsi, memberNumber: this.memberNumber, memberFirstName: this.memberFirstName, memberFamilyName: this.memberFamilyName, standardChoiceFormSignature }, superSelectionAppService.promotedFundsConfig);
78
+ await customFundChoiceApi.submitCustomFundChoiceAsync(customFundChoiceDto);
79
+ }
80
+ });
81
+ }
82
+ static get is() { return "sss-my-own-fund-engagement-step-host"; }
83
+ static get properties() { return {
84
+ "history": {
85
+ "type": "unknown",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "RouterHistory",
89
+ "resolved": "RouterHistory",
90
+ "references": {
91
+ "RouterHistory": {
92
+ "location": "import",
93
+ "path": "@stencil/router"
94
+ }
95
+ }
96
+ },
97
+ "required": false,
98
+ "optional": false,
99
+ "docs": {
100
+ "tags": [],
101
+ "text": ""
102
+ }
103
+ }
104
+ }; }
105
+ static get states() { return {
106
+ "backendUrl": {},
107
+ "accessToken": {},
108
+ "fundUsi": {},
109
+ "fundName": {},
110
+ "memberNumber": {},
111
+ "memberFirstName": {},
112
+ "memberFamilyName": {}
113
+ }; }
114
+ }
115
+ injectHistory(MyOwnFundEngagementStep);
@@ -66,6 +66,11 @@ export class MyOwnFund {
66
66
  this.isNotAllInformationProvidedMessageVisible = true;
67
67
  return;
68
68
  }
69
+ if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
70
+ superSelectionAppService.isUsingSuperCampaign) {
71
+ navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFundEngagementStep);
72
+ return;
73
+ }
69
74
  navigationService.navigateInternallyToStandardChoice({
70
75
  history: this.history,
71
76
  fundName: this.getOrError(customFundState.myOwnFundForm.fundName),
@@ -86,6 +86,16 @@ export class EventTrackingService {
86
86
  SuperCampaignActivationSucceeded: detail
87
87
  });
88
88
  }
89
+ async TrackSuperMyOwnFundEngagementStepActivationSucceeded(fundUsi) {
90
+ return this.trackEventAsync({
91
+ SuperMyOwnFundEngagementStepActivationSucceeded: { fundUsi }
92
+ });
93
+ }
94
+ async TrackSuperMyOwnFundEngagementStepContinued(fundUsi, reason) {
95
+ return this.trackEventAsync({
96
+ SuperMyOwnFundEngagementStepContinued: { fundUsi, reason }
97
+ });
98
+ }
89
99
  async trackEventAsync(event) {
90
100
  try {
91
101
  await this.eventTrackingApi.PostAnalyticsEventAsync({ event });
@@ -5,6 +5,7 @@ export var SuperSelectionAppRoutes;
5
5
  SuperSelectionAppRoutes["SuperCampaign"] = "/super-campaign";
6
6
  SuperSelectionAppRoutes["ChoicePage"] = "/";
7
7
  SuperSelectionAppRoutes["MyOwnFund"] = "/super-choice/my-own-fund/";
8
+ SuperSelectionAppRoutes["MyOwnFundEngagementStep"] = "/super-choice/my-own-fund/welcome-back";
8
9
  SuperSelectionAppRoutes["Prefill"] = "/super-choice/prefill/";
9
10
  SuperSelectionAppRoutes["PrefillInvalidMyOwnFundPage"] = "/super-choice/sss-prefill-invalid-my-own-fund/";
10
11
  SuperSelectionAppRoutes["PrefillMyOwnFundPage"] = "/super-choice/prefill-my-own-fund/";
@@ -20,6 +21,7 @@ export const superSelectionAppStencilRoutes = [
20
21
  h("stencil-route", { url: SuperSelectionAppRoutes.SuperCampaign, component: "sss-super-campaign-host" }),
21
22
  h("stencil-route", { exact: true, url: SuperSelectionAppRoutes.ChoicePage, component: "sss-super-campaign-host" }),
22
23
  h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFund, component: "sss-my-own-fund" }),
24
+ h("stencil-route", { url: SuperSelectionAppRoutes.MyOwnFundEngagementStep, component: "sss-my-own-fund-engagement-step-host" }),
23
25
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillInvalidMyOwnFundPage, component: "sss-prefill-invalid-my-own-fund" }),
24
26
  h("stencil-route", { url: SuperSelectionAppRoutes.Prefill, component: "sss-prefill" }),
25
27
  h("stencil-route", { url: SuperSelectionAppRoutes.PrefillMyOwnFundPage, component: "sss-prefill-my-own-fund" }),
@@ -99,6 +99,8 @@ export class SuperSelectionAppService {
99
99
  this._state.profileConfiguration = O.fromNullable(appStateResponse.profileConfiguration);
100
100
  this._state.superBuyer = O.fromNullable(appStateResponse.superBuyer);
101
101
  this._state.promotedFunds = O.fromNullable(appStateResponse.promotedFunds);
102
+ this._state.bringYourOwnFundCustomStepEnabled =
103
+ appStateResponse.bringYourOwnFundCustomStepEnabled;
102
104
  this._state.superChoicePrefill = O.fromNullable(appStateResponse.prefill);
103
105
  this._state.isDefinedBenefitsEligible = O.fromNullable(appStateResponse.isDefinedBenefitsEligible);
104
106
  }
@@ -132,15 +134,25 @@ export class SuperSelectionAppService {
132
134
  get isUsingSuperCampaign() {
133
135
  return this.state.superCampaignEnabled && this.superCampaignState !== undefined;
134
136
  }
137
+ get isBringYourOwnFundCustomStepEnabled() {
138
+ return this.state.bringYourOwnFundCustomStepEnabled;
139
+ }
135
140
  get isSuperCampaignFallbackActivated() {
136
141
  return (this.state.superCampaignEnabled &&
137
142
  this.superCampaignComponentStatus === SuperCampaignComponentStatus.NotWorking);
138
143
  }
139
- get superCampaignIsInView() {
140
- return this._state.superCampaignIsInView;
144
+ get hideFooterSection() {
145
+ return this._state.hideFooterSection;
146
+ }
147
+ set hideFooterSection(value) {
148
+ this._state.hideFooterSection = value;
149
+ }
150
+ get backendUrl() {
151
+ return O.map(this.getBaseUrl)(this.state.apiBaseUrl);
141
152
  }
142
- set superCampaignIsInView(value) {
143
- this._state.superCampaignIsInView = value;
153
+ getBaseUrl(url) {
154
+ const parsedUrl = new URL(url);
155
+ return `${parsedUrl.protocol}//${parsedUrl.hostname}${parsedUrl.port.length > 0 ? `:${parsedUrl.port}` : ''}`;
144
156
  }
145
157
  }
146
158
  export default new SuperSelectionAppService();
@@ -38,5 +38,6 @@ export const initialState = {
38
38
  superCampaignEnabled: true,
39
39
  superCampaignState: undefined,
40
40
  superCampaignComponentStatus: SuperCampaignComponentStatus.NotLoaded,
41
- superCampaignIsInView: false
41
+ hideFooterSection: false,
42
+ bringYourOwnFundCustomStepEnabled: false
42
43
  };