@flarehr/apollo-super-selection 1.3.17241 → 1.3.17357
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.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/p-4ca10ecd.js +1 -0
- package/dist/lib/apollo-super-selection/p-79a1a1b0.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-afac96fe.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/{p-2590548f.system.js → p-c60c8281.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-dc0abac1.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-e4862f8c.system.entry.js +1 -0
- package/dist/lib/cjs/{custom-fund-choice.api-713823d3.js → custom-fund-choice.api-538e59d2.js} +117 -0
- package/dist/lib/cjs/sss-button_31.cjs.entry.js +22 -133
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +6 -1
- package/dist/lib/collection/components/super-byof/super-byof.js +7 -1
- package/dist/lib/collection/components/super-smsf/super-smsf.js +7 -1
- package/dist/lib/esm/{custom-fund-choice.api-45fa478c.js → custom-fund-choice.api-b7f9d60c.js} +117 -1
- package/dist/lib/esm/sss-button_31.entry.js +7 -118
- package/dist/lib/esm/sss-super-byof-host.entry.js +6 -1
- package/dist/lib/esm-es5/{custom-fund-choice.api-45fa478c.js → custom-fund-choice.api-b7f9d60c.js} +1 -1
- package/dist/lib/esm-es5/sss-button_31.entry.js +5 -5
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/types/components/super-byof/super-byof.d.ts +1 -0
- package/dist/lib/types/components/super-smsf/super-smsf.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-645755ee.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-67bbc99e.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-6b03f1b2.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-915f68a8.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-99266549.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as t,H as e}from"./p-db0bded8.js";import{b as i,a as o,g as r,S as a,O as n,c as h}from"./p-99266549.js";import"./p-fdadb647.js";var c;!function(s){s[s.NotLoaded=1]="NotLoaded",s[s.Loaded=2]="Loaded"}(c||(c={}));let d=c.NotLoaded;const m=class{constructor(t){s(this,t),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&&(d=c.Loaded,clearTimeout(this.loadingTimeoutRef)),Promise.resolve()),this.byofCompleted=async s=>{"super-byof"===s.detail.sender&&i.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 r.submitCustomFundChoiceAsync(e)}})},this.byofCancelled=async s=>{"super-byof"===s.detail.sender&&await i.navigateInternally(this.history,a.ChoicePage)},this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}async componentWillLoad(){if(!n.isSome(o.backendUrl)||!n.isSome(o.state.jwt))throw Error("SuperByofHost pre-requisites not met.");this.backendUrl=o.backendUrl.value,this.accessToken=o.state.jwt.value,d===c.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(d!==c.Loaded)throw Error("BYOF component failed to load.")}};h(m);export{m as sss_super_byof_host}
|