@flarehr/apollo-super-selection 1.4.56819 → 1.4.56936

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 (75) hide show
  1. package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
  2. package/dist/lib/apollo-super-selection/p-07893761.system.entry.js +1 -0
  3. package/dist/lib/apollo-super-selection/p-23fd6656.system.entry.js +69 -0
  4. package/dist/lib/apollo-super-selection/p-2c136506.system.entry.js +1 -0
  5. package/dist/lib/apollo-super-selection/p-37ed5963.system.entry.js +1 -0
  6. package/dist/lib/apollo-super-selection/p-4a95528c.js +1 -0
  7. package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
  8. package/dist/lib/apollo-super-selection/p-5716179f.js +1 -0
  9. package/dist/lib/apollo-super-selection/p-65607828.entry.js +14 -0
  10. package/dist/lib/apollo-super-selection/p-6d4e757b.system.js +1 -0
  11. package/dist/lib/apollo-super-selection/p-89c8d0e2.entry.js +1 -0
  12. package/dist/lib/apollo-super-selection/p-9cd765f5.system.js +1 -0
  13. package/dist/lib/apollo-super-selection/p-a2b4e667.system.js +1 -0
  14. package/dist/lib/apollo-super-selection/p-a99c601b.js +1 -0
  15. package/dist/lib/apollo-super-selection/p-b3f43d1a.entry.js +1 -0
  16. package/dist/lib/apollo-super-selection/p-bbe230d9.entry.js +1 -0
  17. package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
  18. package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
  19. package/dist/lib/apollo-super-selection/p-dac37462.system.js +1 -0
  20. package/dist/lib/apollo-super-selection/p-f8bb280b.js +1 -0
  21. package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
  22. package/dist/lib/cjs/australian-fund-lookup.service-4be59dec.js +19 -0
  23. package/dist/lib/cjs/custom-fund.store-3d1ac996.js +37 -0
  24. package/dist/lib/cjs/event-tracking.service-ed12699a.js +296 -0
  25. package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
  26. package/dist/lib/cjs/loader.cjs.js +1 -1
  27. package/dist/lib/cjs/sss-button_32.cjs.entry.js +382 -351
  28. package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
  29. package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
  30. package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
  31. package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-ca52a1fc.js} +7 -331
  32. package/dist/lib/collection/collection-manifest.json +3 -1
  33. package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
  34. package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
  35. package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
  36. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +1 -1
  37. package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +4 -0
  38. package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +2 -1
  39. package/dist/lib/esm/apollo-super-selection.js +1 -1
  40. package/dist/lib/esm/australian-fund-lookup.service-a2f593d3.js +17 -0
  41. package/dist/lib/esm/custom-fund.store-dcc61edf.js +36 -0
  42. package/dist/lib/esm/event-tracking.service-9398a317.js +290 -0
  43. package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
  44. package/dist/lib/esm/loader.js +1 -1
  45. package/dist/lib/esm/sss-button_32.entry.js +89 -58
  46. package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
  47. package/dist/lib/esm/sss-default-fund.entry.js +57 -0
  48. package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
  49. package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-50f199de.js} +8 -327
  50. package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
  51. package/dist/lib/esm-es5/australian-fund-lookup.service-a2f593d3.js +1 -0
  52. package/dist/lib/esm-es5/custom-fund.store-dcc61edf.js +1 -0
  53. package/dist/lib/esm-es5/event-tracking.service-9398a317.js +1 -0
  54. package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
  55. package/dist/lib/esm-es5/loader.js +1 -1
  56. package/dist/lib/esm-es5/sss-button_32.entry.js +5 -5
  57. package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
  58. package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
  59. package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
  60. package/dist/lib/esm-es5/super-selection-app.service-50f199de.js +1 -0
  61. package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
  62. package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
  63. package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +1 -0
  64. package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
  65. package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +1 -0
  66. package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +1 -0
  67. package/dist/lib/types/components.d.ts +30 -0
  68. package/package.json +1 -1
  69. package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
  70. package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
  71. package/dist/lib/apollo-super-selection/p-aa9dedee.system.entry.js +0 -69
  72. package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
  73. package/dist/lib/apollo-super-selection/p-c7ab3701.entry.js +0 -14
  74. package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
  75. package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as e}from"./p-db0bded8.js";import{E as i,a as o,O as r,l as a,b as n,S as m,e as d,c as h}from"./p-24d6e2b8.js";import"./p-fdadb647.js";var u;!function(s){s[s.NotLoaded=1]="NotLoaded",s[s.Loaded=2]="Loaded"}(u||(u={}));let c=u.NotLoaded;const f=class{constructor(t){s(this,t),this.eventTrackingService=i.Instance,this.subscribeToSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.addEventListener(s,this.byofEventHandlers[s])},this.unSubscribeFromSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.removeEventListener(s,this.byofEventHandlers[s])},this.byofLoaded=async s=>("super-byof"===s.detail.sender&&(c=u.Loaded,clearTimeout(this.loadingTimeoutRef),this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:o.promotedFunds,defaultFundUsiSet:r.toUndefined(o.defaultFundUsi)})),Promise.resolve()),this.byofCompleted=async s=>{if("super-byof"===s.detail.sender){if(a.myOwnFundForm={fundUsi:r.fromNullable(s.detail.fundUsi),fundName:r.fromNullable(s.detail.fundName),memberNumber:r.fromNullable(s.detail.memberNumber),memberFirstName:r.fromNullable(s.detail.memberFirstName),memberFamilyName:r.fromNullable(s.detail.memberLastName)},o.isBringYourOwnFundCustomStepEnabled&&o.isUsingSuperCampaign)return void n.navigateInternally(this.history,m.MyOwnFundEngagementStep);n.navigateInternallyToStandardChoice({history:this.history,fundName:s.detail.fundName,fundDetails:{type:"myOwnFund",fundName:s.detail.fundName,fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber,memberFirstName:s.detail.memberFirstName,memberFamilyName:s.detail.memberLastName,standardChoiceFormSignature:t},o.promotedFundsConfig);await d.submitCustomFundChoiceAsync(e)}})}},this.byofCancelled=async s=>{"super-byof"===s.detail.sender&&await n.navigateInternally(this.history,m.ChoicePage)},this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}async componentWillLoad(){if(!r.isSome(o.backendUrl)||!r.isSome(o.state.jwt))throw Error("SuperByofHost pre-requisites not met.");this.backendUrl=o.backendUrl.value,this.accessToken=o.state.jwt.value,c===u.NotLoaded&&(this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),3e4)),this.subscribeToSuperByofEvents()}disconnectedCallback(){clearTimeout(this.loadingTimeoutRef),this.unSubscribeFromSuperByofEvents()}render(){return t(e,null,t("sss-header-section",null),t("div",{class:"flex justify-center mt-11"},t("sss-custom-fund",null,t("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))}async byofLoadingTimeoutTriggered(){if(c!==u.Loaded)throw Error("BYOF component failed to load.")}};h(f);export{f as sss_super_byof_host}