@flarehr/apollo-super-selection 5.57.17073 → 5.59.18050
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-2f07912f.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-4ca10ecd.js +1 -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-cf6d9d21.system.entry.js +69 -0
- 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-6b03f1b2.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-8cb7c7f3.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-99266549.js +0 -1
- package/dist/lib/apollo-super-selection/p-be94959a.system.entry.js +0 -69
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):r(e.value).then(a,s)}u((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(o.next(e))}catch(e){i(e)}}function s(e){try{u(o["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):r(e.value).then(a,s)}u((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{E as EventTrackingService,a as superSelectionAppService,O as Option,b as navigationService,f as customFundChoiceApi,S as SuperSelectionAppRoutes,c as injectHistory}from"./custom-fund-choice.api-b7f9d60c.js";import"./active-router-d18b36fb.js";var LoadWaitingTimeout=3e4;var SuperByofComponentStatus;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(SuperByofComponentStatus||(SuperByofComponentStatus={}));var superByofComponentStatus=SuperByofComponentStatus.NotLoaded;var SuperByofHost=function(){function e(e){var t=this;registerInstance(this,e);this.eventTrackingService=EventTrackingService.Instance;this.subscribeToSuperByofEvents=function(){for(var e in t.byofEventHandlers){document.addEventListener(e,t.byofEventHandlers[e])}};this.unSubscribeFromSuperByofEvents=function(){for(var e in t.byofEventHandlers){document.removeEventListener(e,t.byofEventHandlers[e])}};this.byofLoaded=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-byof"){superByofComponentStatus=SuperByofComponentStatus.Loaded;clearTimeout(this.loadingTimeoutRef);this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:superSelectionAppService.promotedFunds,defaultFundUsiSet:Option.toUndefined(superSelectionAppService.defaultFundUsi)})}return[2,Promise.resolve()]}))}))};this.byofCompleted=function(e){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-byof"){navigationService.navigateInternallyToStandardChoice({history:this.history,fundName:e.detail.fundName,fundDetails:{type:"myOwnFund",fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber},handleSubmitFn:function(n){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(o){switch(o.label){case 0:t=Object.assign({fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber,memberFirstName:e.detail.memberFirstName,memberFamilyName:e.detail.memberLastName,standardChoiceFormSignature:n},superSelectionAppService.promotedFundsConfig);return[4,customFundChoiceApi.submitCustomFundChoiceAsync(t)];case 1:o.sent();return[2]}}))}))}})}return[2]}))}))};this.byofCancelled=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-byof"))return[3,2];return[4,navigationService.navigateInternally(this.history,SuperSelectionAppRoutes.ChoicePage)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(Option.isSome(superSelectionAppService.backendUrl)&&Option.isSome(superSelectionAppService.state.jwt)){this.backendUrl=superSelectionAppService.backendUrl.value;this.accessToken=superSelectionAppService.state.jwt.value;if(superByofComponentStatus===SuperByofComponentStatus.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),LoadWaitingTimeout)}this.subscribeToSuperByofEvents()}else{throw Error("SuperByofHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperByofEvents()};e.prototype.render=function(){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-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))};e.prototype.byofLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(superByofComponentStatus!==SuperByofComponentStatus.Loaded){throw Error("BYOF component failed to load.")}return[2]}))}))};return e}();injectHistory(SuperByofHost);export{SuperByofHost as sss_super_byof_host};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-2590548f.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,c;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){i=e.b;o=e.a;a=e.g;s=e.S;u=e.O;c=e.c},function(){}],execute:function(){var d=3e4;var f;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(f||(f={}));var l=f.NotLoaded;var b=e("sss_super_byof_host",function(){function e(e){var n=this;t(this,e);this.subscribeToSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.addEventListener(e,n.byofEventHandlers[e])}};this.unSubscribeFromSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.removeEventListener(e,n.byofEventHandlers[e])}};this.byofLoaded=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-byof"){l=f.Loaded;clearTimeout(this.loadingTimeoutRef)}return[2,Promise.resolve()]}))}))};this.byofCompleted=function(e){return __awaiter(n,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-byof"){i.navigateInternallyToStandardChoice({history:this.history,fundName:e.detail.fundName,fundDetails:{type:"myOwnFund",fundName:e.detail.fundName,fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber},handleSubmitFn:function(n){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Object.assign({fundUsi:e.detail.fundUsi,memberNumber:e.detail.memberNumber,memberFirstName:e.detail.memberFirstName,memberFamilyName:e.detail.memberLastName,standardChoiceFormSignature:n},o.promotedFundsConfig);return[4,a.submitCustomFundChoiceAsync(t)];case 1:r.sent();return[2]}}))}))}})}return[2]}))}))};this.byofCancelled=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-byof"))return[3,2];return[4,i.navigateInternally(this.history,s.ChoicePage)];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(u.isSome(o.backendUrl)&&u.isSome(o.state.jwt)){this.backendUrl=o.backendUrl.value;this.accessToken=o.state.jwt.value;if(l===f.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),d)}this.subscribeToSuperByofEvents()}else{throw Error("SuperByofHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperByofEvents()};e.prototype.render=function(){return n(r,null,n("sss-header-section",null),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))};e.prototype.byofLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(l!==f.Loaded){throw Error("BYOF component failed to load.")}return[2]}))}))};return e}());c(b)}}}));
|
|
@@ -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}
|