@flarehr/apollo-super-selection 5.86.53344 → 5.88.58802
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-035b3fcf.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-10c435ea.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-157712cb.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-19a451d6.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-19be074b.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-240b48ec.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-36ea14fc.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-3cec4189.system.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-524b1ff5.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-6a4fc9a6.js +1 -0
- package/dist/lib/apollo-super-selection/p-7b1087e8.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-9640d3ea.js +1 -0
- package/dist/lib/apollo-super-selection/p-9a268e32.js +1 -0
- package/dist/lib/apollo-super-selection/p-a68b9b0f.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-a7025e9f.js +1 -0
- package/dist/lib/apollo-super-selection/p-b819e464.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-b88cf353.system.js +1 -0
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-d5c7a35f.js +1 -0
- package/dist/lib/apollo-super-selection/p-e435c64b.entry.js +1 -0
- package/dist/lib/apollo-super-selection/p-f924ae7d.system.entry.js +1 -0
- package/dist/lib/cjs/apollo-super-selection.cjs.js +1 -1
- package/dist/lib/cjs/australian-fund-lookup.service-ee589d6c.js +19 -0
- package/dist/lib/cjs/custom-fund.store-f56ea1fb.js +37 -0
- package/dist/lib/cjs/event-tracking.service-35513098.js +296 -0
- package/dist/lib/cjs/injectHistory-eb188cf0.js +9 -0
- package/dist/lib/cjs/loader.cjs.js +1 -1
- package/dist/lib/cjs/{sss-button_32.cjs.entry.js → sss-button_33.cjs.entry.js} +579 -387
- package/dist/lib/cjs/sss-default-fund-router.cjs.entry.js +23 -0
- package/dist/lib/cjs/sss-default-fund.cjs.entry.js +61 -0
- package/dist/lib/cjs/sss-promoted-fund-router.cjs.entry.js +23 -0
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +24 -21
- package/dist/lib/cjs/{custom-fund-choice.api-293c1ace.js → super-selection-app.service-352ccc67.js} +12 -331
- package/dist/lib/collection/collection-manifest.json +6 -1
- package/dist/lib/collection/components/default-fund/super-default-fund-types.js +1 -0
- package/dist/lib/collection/components/default-fund/super-default-fund.js +130 -0
- package/dist/lib/collection/components/promoted-fund/super-promoted-fund-types.js +1 -0
- package/dist/lib/collection/components/promoted-fund/super-promoted-fund.js +194 -0
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.js +37 -0
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-router.js +37 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.routes.js +2 -2
- package/dist/lib/collection/components/super-selection-app/services/super-selection-app.service.js +8 -0
- package/dist/lib/collection/components/super-selection-app/services/super-selection.store.js +3 -1
- package/dist/lib/esm/apollo-super-selection.js +1 -1
- package/dist/lib/esm/australian-fund-lookup.service-139f6b9d.js +17 -0
- package/dist/lib/esm/custom-fund.store-59962585.js +36 -0
- package/dist/lib/esm/event-tracking.service-83984310.js +290 -0
- package/dist/lib/esm/injectHistory-e92e4664.js +7 -0
- package/dist/lib/esm/loader.js +1 -1
- package/dist/lib/esm/{sss-button_32.entry.js → sss-button_33.entry.js} +289 -98
- package/dist/lib/esm/sss-default-fund-router.entry.js +19 -0
- package/dist/lib/esm/sss-default-fund.entry.js +57 -0
- package/dist/lib/esm/sss-promoted-fund-router.entry.js +19 -0
- package/dist/lib/esm/sss-super-byof-host.entry.js +4 -1
- package/dist/lib/esm/{custom-fund-choice.api-42801d64.js → super-selection-app.service-312ba6b0.js} +13 -327
- package/dist/lib/esm-es5/apollo-super-selection.js +1 -1
- package/dist/lib/esm-es5/australian-fund-lookup.service-139f6b9d.js +1 -0
- package/dist/lib/esm-es5/custom-fund.store-59962585.js +1 -0
- package/dist/lib/esm-es5/event-tracking.service-83984310.js +1 -0
- package/dist/lib/esm-es5/injectHistory-e92e4664.js +1 -0
- package/dist/lib/esm-es5/loader.js +1 -1
- package/dist/lib/esm-es5/sss-button_33.entry.js +69 -0
- package/dist/lib/esm-es5/sss-default-fund-router.entry.js +1 -0
- package/dist/lib/esm-es5/sss-default-fund.entry.js +1 -0
- package/dist/lib/esm-es5/sss-promoted-fund-router.entry.js +1 -0
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/dist/lib/esm-es5/super-selection-app.service-312ba6b0.js +1 -0
- package/dist/lib/types/components/default-fund/super-default-fund-types.d.ts +23 -0
- package/dist/lib/types/components/default-fund/super-default-fund.d.ts +20 -0
- package/dist/lib/types/components/promoted-fund/super-promoted-fund-types.d.ts +41 -0
- package/dist/lib/types/components/promoted-fund/super-promoted-fund.d.ts +23 -0
- package/dist/lib/types/components/super-selection-app/api/super-selection.api.dto.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/funds/custom-fund/default-fund/default-fund-router.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/promoted-fund-router.d.ts +5 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts +2 -0
- package/dist/lib/types/components/super-selection-app/services/super-selection.store.d.ts +2 -0
- package/dist/lib/types/components.d.ts +60 -0
- package/package.json +3 -2
- package/dist/lib/apollo-super-selection/p-24d6e2b8.js +0 -1
- package/dist/lib/apollo-super-selection/p-40bfe38f.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-a0063575.system.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-b00f648b.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-b2de6265.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-cd3ed541.system.js +0 -1
- package/dist/lib/esm-es5/custom-fund-choice.api-42801d64.js +0 -1
- package/dist/lib/esm-es5/sss-button_32.entry.js +0 -69
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{a as superSelectionAppService}from"./super-selection-app.service-312ba6b0.js";import"./active-router-d18b36fb.js";import{i as injectHistory}from"./injectHistory-e92e4664.js";var DefaultFundRouter=function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){if(superSelectionAppService.isDefaultFundNewComponentEnabled){return h(Host,null,h("sss-default-fund-host",{history:this.history}))}return h(Host,null,h("sss-default-fund",{history:this.history}))};return t}();injectHistory(DefaultFundRouter);export{DefaultFundRouter as sss_default_fund_router};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{o(i.next(e))}catch(e){a(e)}}function u(e){try{o(i["throw"](e))}catch(e){a(e)}}function o(e){e.done?n(e.value):s(e.value).then(r,u)}o((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,s,a,r;return r={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function u(e){return function(t){return o([e,t])}}function o(r){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,s&&(a=r[0]&2?s["return"]:r[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,r[1])).done)return a;if(s=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;s=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];s=0}finally{i=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,h,g as getAssetPath,H as Host}from"./index-107d7c24.js";import{O as Option,a as superSelectionAppService}from"./super-selection-app.service-312ba6b0.js";import{E as EventTrackingService,S as SuperSelectionAppRoutes,n as navigationService,c as customFundChoiceApi}from"./event-tracking.service-83984310.js";import{a as australianFundLookupService}from"./australian-fund-lookup.service-139f6b9d.js";var DefaultFund=function(){function e(e){registerInstance(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=EventTrackingService.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=superSelectionAppService.defaultFundUsi;if(Option.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,australianFundLookupService.getFundAsync(e.value,true)];case 1:t=n.sent();if(Option.isNone(t)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){var e,t,n,i;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(t=(e=this.defaultFund)===null||e===void 0?void 0:e.usi)!==null&&t!==void 0?t:"",fundName:(i=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&i!==void 0?i:"",promotedFundsShown:superSelectionAppService.promotedFunds,defaultFundUsiSet:Option.toUndefined(superSelectionAppService.defaultFundUsi)})};e.prototype.render=function(){var e=this;return h(Host,null,h("sss-header-section",null),h("div",{class:"flex justify-center mt-11"},h("sss-custom-fund",null,h("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},h("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&h("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},h("div",{class:"flex"},h("div",{class:"flex-shrink-0"},h("img",{class:"h-5 w-5",src:getAssetPath("assets/icon-exclamation.svg")})),h("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},h("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&h("div",null,h("div",{class:"mt-3"},h("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),h("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),h("div",{class:"mt-3"},h("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),h("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),h("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),h("div",{class:"text-sm text-gray-700"},h("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),h("ul",{class:"list-disc list-outside pl-5"},h("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),h("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),h("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),h("div",{class:"flex justify-center mt-8"},h("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&h("div",{class:"mb-4"},h("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),h("stencil-route-link",{url:SuperSelectionAppRoutes.ChoicePage},h("sss-button",{testid:"back-button",fillWidth:true,variant:"secondary"},"Back")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(this.isInvalidDefaultFund){return[2]}navigationService.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,customFundChoiceApi.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},superSelectionAppService.promotedFundsConfig))];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}();export{DefaultFund as sss_default_fund};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-107d7c24.js";import{a as superSelectionAppService}from"./super-selection-app.service-312ba6b0.js";import"./active-router-d18b36fb.js";import{i as injectHistory}from"./injectHistory-e92e4664.js";var PromotedFundRouter=function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){if(superSelectionAppService.isPromotedFundNewComponentEnabled){return h(Host,null,h("sss-promoted-fund-host",{history:this.history}))}return h(Host,null,h("sss-super-campaign-host",{history:this.history}))};return t}();injectHistory(PromotedFundRouter);export{PromotedFundRouter as sss_promoted_fund_router};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(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(r.next(e))}catch(e){i(e)}}function s(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(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(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=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++;o=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];o=0}finally{r=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,r){function o(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(r.next(e))}catch(e){i(e)}}function s(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):o(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(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=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++;o=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];o=0}finally{r=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{a as superSelectionAppService,O as Option}from"./super-selection-app.service-312ba6b0.js";import"./active-router-d18b36fb.js";import{i as injectHistory}from"./injectHistory-e92e4664.js";import{E as EventTrackingService,n as navigationService,S as SuperSelectionAppRoutes,c as customFundChoiceApi}from"./event-tracking.service-83984310.js";import{s as state}from"./custom-fund.store-59962585.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"){state.myOwnFundForm={fundUsi:Option.fromNullable(e.detail.fundUsi),fundName:Option.fromNullable(e.detail.fundName),memberNumber:Option.fromNullable(e.detail.memberNumber),memberFirstName:Option.fromNullable(e.detail.memberFirstName),memberFamilyName:Option.fromNullable(e.detail.memberLastName)};if(superSelectionAppService.isBringYourOwnFundCustomStepEnabled&&superSelectionAppService.isUsingSuperCampaign){navigationService.navigateInternally(this.history,SuperSelectionAppRoutes.MyOwnFundEngagementStep);return[2]}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(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},superSelectionAppService.promotedFundsConfig);return[4,customFundChoiceApi.submitCustomFundChoiceAsync(t)];case 1:r.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):o(e.value).then(a,u)}s((r=r.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:[]},r,o,i,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=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++;o=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];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{e as getRenderingRef,f as forceUpdate}from"./index-107d7c24.js";var isSome=function(e){return e._tag==="Some"};var isNone=function(e){return e._tag==="None"};var none={_tag:"None"};var some=function(e){return{_tag:"Some",value:e}};function fromNullable(e){return e==null?none:some(e)}function toUndefined(e){return isNone(e)?undefined:e.value}var appendToMap=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var debounce=function(e,t){var n;return function(){var r=[];for(var o=0;o<arguments.length;o++){r[o]=arguments[o]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var isConnected=function(e){return!("isConnected"in e)||e.isConnected};var cleanupElements=debounce((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(isConnected))}}),2e3);var stencilSubscription=function(e){var t=e.on;var n=new Map;if(typeof getRenderingRef==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=getRenderingRef();if(t){appendToMap(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(forceUpdate))}cleanupElements(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(forceUpdate)}));cleanupElements(n)}))}};var createObservableMap=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var o=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var i=function(){r.dispose.forEach((function(e){return e()}));o()};var a=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var u=function(e,o){var i=n.get(e);if(t(o,i,e)){n.set(e,o);r.set.forEach((function(t){return t(e,o,i)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){u(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){removeFromArray(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var o=c("reset",(function(){return n(e[t])}));return function(){r();o()}};var p=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:s,get:a,set:u,on:c,onChange:f,use:p,dispose:i,reset:o}};var removeFromArray=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var createStore=function(e,t){var n=createObservableMap(e,t);stencilSubscription(n);return n};function createCommonjsModule(e,t,n){return n={path:t,exports:{},require:function(e,t){return commonjsRequire()}},e(n,n.exports),n.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var _function=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function o(e){return function(){return e}}t.constant=o;t.constTrue=o(true);t.constFalse=o(false);t.constNull=o(null);t.constUndefined=o(undefined);t.constVoid=t.constUndefined;function i(e){return function(t,n){return e(n,t)}}t.flip=i;function a(e,t,n,r,o,i,a,u,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return o(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return i(o(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return a(i(o(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return u(a(i(o(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(u(a(i(o(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=a;function u(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=u;function s(e){return e+1}t.increment=s;function c(e){return e-1}t.decrement=c;function f(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=f;function p(e){return function(t){return e.apply(void 0,t)}}t.tupled=p;function l(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=l;function d(e,t,n,r,o,i,a,u,s,c,f,p,l,d,h,m,v,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return o(r(n(t(e))));case 6:return i(o(r(n(t(e)))));case 7:return a(i(o(r(n(t(e))))));case 8:return u(a(i(o(r(n(t(e)))))));case 9:return s(u(a(i(o(r(n(t(e))))))));case 10:return c(s(u(a(i(o(r(n(t(e)))))))));case 11:return f(c(s(u(a(i(o(r(n(t(e))))))))));case 12:return p(f(c(s(u(a(i(o(r(n(t(e)))))))))));case 13:return l(p(f(c(s(u(a(i(o(r(n(t(e))))))))))));case 14:return d(l(p(f(c(s(u(a(i(o(r(n(t(e)))))))))))));case 15:return h(d(l(p(f(c(s(u(a(i(o(r(n(t(e))))))))))))));case 16:return m(h(d(l(p(f(c(s(u(a(i(o(r(n(t(e)))))))))))))));case 17:return v(m(h(d(l(p(f(c(s(u(a(i(o(r(n(t(e))))))))))))))));case 18:return g(v(m(h(d(l(p(f(c(s(u(a(i(o(r(n(t(e)))))))))))))))));case 19:return y(g(v(m(h(d(l(p(f(c(s(u(a(i(o(r(n(t(e))))))))))))))))));case 20:return b(y(g(v(m(h(d(l(p(f(c(s(u(a(i(o(r(n(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=f;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var m=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=m}));var Option=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var o=function(e){return{_tag:"Some",value:e}};t.some=o;function i(e){return e==null?t.none:t.some(e)}t.fromNullable=i;function a(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=a;function u(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=u;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function f(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=f;function p(e){return t.isNone(e)?null:e.value}t.toNullable=p;function l(e){return t.isNone(e)?undefined:e.value}t.toUndefined=l;var d=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return i(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=m;function m(e){return function(n){return t.isNone(n)?t.none:i(e(n.value))}}t.chainNullableK=m;var v=function(e,n){return _function.pipe(e,t.map(n))};var g=function(e,n){return _function.pipe(e,t.ap(n))};var y=function(e,n){return _function.pipe(e,t.chain(n))};var b=function(e,n,r){return _function.pipe(e,t.reduce(n,r))};var _=function(e){var n=t.foldMap(e);return function(e,t){return _function.pipe(e,n(t))}};var w=function(e,n,r){return _function.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return _function.pipe(e,n(t))}};var C=function(e,n){return _function.pipe(e,t.alt(n))};var O=function(e,n){return _function.pipe(e,t.filter(n))};var E=function(e,n){return _function.pipe(e,t.filterMap(n))};var F=function(e,n){return _function.pipe(e,t.extend(n))};var N=function(e,n){return _function.pipe(e,t.partition(n))};var A=function(e,n){return _function.pipe(e,t.partitionMap(n))};var P=function(e){var n=t.wither(e);return function(e,t){return _function.pipe(e,n(t))}};var R=function(e){var n=t.wilt(e);return function(e,t){return _function.pipe(e,n(t))}};var M=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=M;var U=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=U;var j=function(e){return _function.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=j;var I=function(e){return _function.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=I;t.of=t.some;var T=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=T;var D=function(e){return t.chain((function(n){return _function.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=D;t.flatten=t.chain(_function.identity);var k=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=k;t.alt=t.altW;var B=function(){return t.none};t.zero=B;var x=function(){return t.none};t.throwError=x;var W=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=W;t.duplicate=t.extend(_function.identity);var q=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=q;var L=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=L;var $=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=$;t.compact=t.flatten;var J={left:t.none,right:t.none};var z=function(e){var n=_function.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?J:n.value};t.separate=z;var K=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=K;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=Q;var Y=function(e){return function(t){return{left:O(t,(function(t){return!e(t)})),right:O(t,e)}}};t.partition=Y;var H=function(e){return _function.flow(t.map(e),t.separate)};t.partitionMap=H;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=V;var X=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=X;var G=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=G;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:s(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function oe(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=oe;function ie(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function ue(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=ue;t.Functor={URI:t.URI,map:v};t.Applicative={URI:t.URI,map:v,ap:g,of:t.of};t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:_,reduceRight:w};t.Alt={URI:t.URI,map:v,alt:C};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:C,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:F};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:N,partitionMap:A};t.Traversable={URI:t.URI,map:v,reduce:b,foldMap:_,reduceRight:w,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:b,foldMap:_,reduceRight:w,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:N,partitionMap:A,wither:P,wilt:R};t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:v,of:t.of,ap:g,chain:y,reduce:b,foldMap:_,reduceRight:w,traverse:S,sequence:t.sequence,zero:t.zero,alt:C,extend:F,compact:t.compact,separate:t.separate,filter:O,filterMap:E,partition:N,partitionMap:A,wither:P,wilt:R,throwError:t.throwError};function se(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=se;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function fe(e){return function(n){return t.isSome(e(n))}}t.getRefinement=fe;t.Do=t.of({});var pe=function(e){return t.map(_function.bindTo_(e))};t.bindTo=pe;var le=function(e,n){return t.chain((function(r){return _function.pipe(n(r),t.map((function(t){return _function.bind_(r,e,t)})))}))};t.bind=le;var de=function(e,n){return _function.flow(t.map((function(t){return function(n){return _function.bind_(t,e,n)}})),t.ap(n))};t.apS=de;var he=function(e){return function(n){var r=[];for(var o=0;o<n.length;o++){var i=e(o,n[o]);if(t.isNone(i)){return t.none}r.push(i.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(_function.identity)}));function e(e){this.message=e}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,a=0,u="";o=n.charAt(a++);~o&&(r=i%4?64*r+o:o,i++%4)?u+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return u};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";var __assign=undefined&&undefined.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __spreadArrays=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r};var mix=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=__assign({},e);for(var o in t){if(t.hasOwnProperty(o)){if(t[o]instanceof Array&&e[o]instanceof Array){r[o]=n?__spreadArrays(e[o],t[o]):t[o]}else if(typeof t[o]==="object"&&typeof e[o]==="object"){r[o]=mix(e[o],t[o],n)}else{r[o]=t[o]}}}return r};var __spreadArrays$1=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r};var config={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,o=r===void 0?true:r,i=n.instance,a=i===void 0?false:i;var u=[];for(var s=2;s<arguments.length;s++){u[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(o&&!c)throw new Error(e+" is not defined");return a&&c?new(c.bind.apply(c,__spreadArrays$1([void 0],u))):c}};var onMatch=function(e,t,n,r){if(!e.getEntriesByName)return false;var o=e.getEntriesByName(t);if(o&&o.length>0){n(o.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);perfs.callbacks.delete(t);if(perfs.callbacks.size<1){perfs.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var lazyObserver=function(e,t){if(!perfs.observer&&e&&t){perfs.observer=new t((function(t){perfs.callbacks.forEach((function(n,r){onMatch(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return perfs.observer};var perfs={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=config.polyfill("performance",{doThrow:false});var r=config.polyfill("PerformanceObserver",{doThrow:false});if(!lazyObserver(n,r))return;if(!onMatch(n,e,t,n)){if(perfs.callbacks.size<1)perfs.observer.observe({entryTypes:["resource","measure"]});perfs.callbacks.set(e,t)}}};var middlewareHelper=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,o){return o===e.length-2?r(n(t)):r(n)}))}};var WretchErrorWrapper=function(){function e(e){this.error=e}return e}();var resolver=function(e){var t=e._url,n=e._catchers,r=e._resolvers,o=e._middlewares,i=e._options;var a=new Map(n);var u=mix(config.defaults,i);var s=config.polyfill("AbortController",{doThrow:false,instance:true});if(!u["signal"]&&s){u["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=middlewareHelper(o)(config.polyfill("fetch"))(t,u);var p=f.catch((function(e){throw new WretchErrorWrapper(e)})).then((function(e){c.clear();if(!e.ok){return e[config.errorType||"text"]().then((function(t){var n=new Error(t);n[config.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var l=function(t){return t.catch((function(t){c.clear();var n=t instanceof WretchErrorWrapper?t.error:t;if(t instanceof WretchErrorWrapper&&a.has("__fromFetch"))return a.get("__fromFetch")(n,e);else if(a.has(n.status))return a.get(n.status)(n,e);else if(a.has(n.name))return a.get(n.name)(n,e);else throw n}))};var d=function(e){return function(t){return e?l(p.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):l(p.then((function(e){return t?t(e):e})))}};var h={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(e){f.then((function(t){return perfs.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){a.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var __assign$1=undefined&&undefined.__assign||function(){__assign$1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign$1.apply(this,arguments)};var __spreadArrays$2=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r};var JSON_MIME="application/json";var CONTENT_TYPE_HEADER="Content-Type";var Wretcher=function(){function e(e,t,n,r,o,i){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(o===void 0){o=[]}if(i===void 0){i=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=o;this._deferredChain=i}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,o=r===void 0?this._url:r,i=n.options,a=i===void 0?this._options:i,u=n.catchers,s=u===void 0?this._catchers:u,c=n.resolvers,f=c===void 0?this._resolvers:c,p=n.middlewares,l=p===void 0?this._middlewares:p,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(o,__assign$1({},a),new Map(s),__spreadArrays$2(f),__spreadArrays$2(l),__spreadArrays$2(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}config.defaults=t?mix(config.defaults,e):e;return this};e.prototype.errorType=function(e){config.errorType=e;return this};e.prototype.polyfills=function(e){config.polyfills=__assign$1(__assign$1({},config.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?mix(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:appendQueryParams(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:mix(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[CONTENT_TYPE_HEADER]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:__assign$1(__assign$1({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:__spreadArrays$2(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:__spreadArrays$2(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:__spreadArrays$2(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var o=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==CONTENT_TYPE_HEADER.toLowerCase()||n.startsWith(JSON_MIME)})))?this.json(n):this.body(n);o=o.options(__assign$1(__assign$1({},t),{method:e}));var i=o._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),o);return resolver(i)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:__assign$1(__assign$1({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===CONTENT_TYPE_HEADER.toLowerCase()&&n.startsWith(JSON_MIME)})))===null||t===void 0?void 0:t[1];return this.content(n||JSON_MIME).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(convertFormData(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:convertFormUrl(e)).content("application/x-www-form-urlencoded")};return e}();var appendQueryParams=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var o=config.polyfill("URLSearchParams",{instance:true});for(var i in t){if(t[i]instanceof Array){for(var a=0,u=t[i];a<u.length;a++){var s=u[a];o.append(i,s)}}else{o.append(i,t[i])}}r=o.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function convertFormData(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=config.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var o=e[0],i=e[1];var a=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);a=a?a+"["+o+"]":o;if(i instanceof Array){for(var u=0,s=i;u<s.length;u++){var c=s[u];n.append(a+"[]",c)}}else if(t&&typeof i==="object"&&(!(t instanceof Array)||!t.includes(o))){if(i!==null){convertFormData(i,t,n,__spreadArrays$2(r,[o]))}}else{n.append(a,i)}}));return n}function encodeQueryValue(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function convertFormUrl(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return encodeQueryValue(t,e)})).join("&")}return encodeQueryValue(t,n)})).join("&")}var factory=Wretcher.factory;factory["default"]=Wretcher.factory;function buildBackendApiClient(){var e=superSelectionAppService.jwt;var t=superSelectionAppService.profileId;var n=superSelectionAppService.accountIdOrDefault;var r=superSelectionAppService.partnerIdOrDefault;return factory(superSelectionAppService.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var slate={fundId:"slate",usi:"32367272075001"};function hydratePromotedFundChoiceDtoKind(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function getPromotedFundUsi(e){switch(e.kind){case"slate":return slate.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function getPromotedFundId(e){switch(e.kind){case"slate":return slate.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function getSuperChoiceUsi(e){switch(e.kind){case"Promoted":return some(getPromotedFundUsi(e.promoted));case"MyOwnFund":return some(e.myOwnFund.usi);case"SMSF":return none;case"Default":return some(e.default.usi);case"PromotedDefault":return some(e.promotedDefault.usi);case"DefinedBenefits":return some(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return some(e.promotedDefaultWithJoin.usi);default:return none}}function getPromotedFundMemberNumber(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function getSuperChoiceMemberNumber(e){switch(e.kind){case"Promoted":return some(getPromotedFundMemberNumber(e.promoted));case"MyOwnFund":return some(e.myOwnFund.memberNumber);case"DefinedBenefits":return some(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return some(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return none;default:return none}}function hydrateSuperChoiceDetailsDtoKind(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var SuperSelectionApi=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,buildBackendApiClient().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,buildBackendApiClient().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,buildBackendApiClient().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){hydrateSuperChoiceDetailsDtoKind(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":hydratePromotedFundChoiceDtoKind(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,buildBackendApiClient().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var o=function(e){return e&&e.length};return[n,r].filter(o).join("&")};return e}();var superSelectionApi=new SuperSelectionApi;var SuperCampaignComponentStatus;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(SuperCampaignComponentStatus||(SuperCampaignComponentStatus={}));var SuperCampaignState=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var initialState={apiBaseUrl:Option.none,appBaseUrl:Option.none,profileId:Option.none,jwt:Option.none,superBuyer:Option.none,superChoicePrefill:Option.none,promotedFunds:Option.none,accountConfiguration:Option.none,profileConfiguration:Option.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:Option.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:SuperCampaignComponentStatus.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,smsfCustomStepEnabled:false,featuredFundsEnabled:false,defaultFundNewComponentEnabled:false,promotedFundNewComponentEnabled:false};var SuperSelectionAppService=function(){function e(){var e=this;var t=createStore(initialState),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=_function.pipe(t,Option.chain((function(e){return Option.fromNullable(o(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(Option.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(Option.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(Option.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(Option.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return Option.fromNullable(this.superCampaignState.DefaultFundPosition)}return Option.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:Option.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(Option.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=_function.pipe(this._state.profileConfiguration,Option.map((function(e){return Option.fromNullable(e.defaultFundUsi)})),Option.flatten);if(Option.isSome(e)){return e}return _function.pipe(this._state.accountConfiguration,Option.map((function(e){return Option.fromNullable(e.defaultFundUsi)})),Option.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return _function.pipe(this._state.accountConfiguration,Option.map((function(e){return e.accountId})),Option.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return _function.pipe(this._state.superBuyer,Option.map((function(e){return e.partnerId})),Option.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(Option.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,superSelectionApi.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=Option.fromNullable(e.accountConfiguration);this._state.profileConfiguration=Option.fromNullable(e.profileConfiguration);this._state.superBuyer=Option.fromNullable(e.superBuyer);this._state.promotedFunds=Option.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.smsfCustomStepEnabled=e.smsfCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.defaultFundNewComponentEnabled=e.defaultFundNewComponentEnabled;this._state.promotedFundNewComponentEnabled=e.promotedFundNewComponentEnabled;this._state.superChoicePrefill=Option.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=Option.fromNullable(e.isDefinedBenefitsEligible);if(Option.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return superSelectionApi.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===SuperCampaignComponentStatus.Loaded){this._state.superCampaignComponentStatus=SuperCampaignComponentStatus.Loaded;this._state.superCampaignState=new SuperCampaignState}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSmsfCustomStepEnabled",{get:function(){return this.state.smsfCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDefaultFundNewComponentEnabled",{get:function(){return this.state.defaultFundNewComponentEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isPromotedFundNewComponentEnabled",{get:function(){return this.state.promotedFundNewComponentEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===SuperCampaignComponentStatus.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return Option.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var superSelectionAppService=new SuperSelectionAppService;export{Option as O,SuperCampaignComponentStatus as S,superSelectionAppService as a,isNone as b,buildBackendApiClient as c,getSuperChoiceUsi as d,getSuperChoiceMemberNumber as e,superSelectionApi as f,getPromotedFundId as g,slate as h,isSome as i,factory as j,fromNullable as k,createStore as l,none as n,some as s,toUndefined as t};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare type Sender = 'super-default-fund';
|
|
2
|
+
export declare type DefaultFundCommonEventPayload = {
|
|
3
|
+
sender: Sender;
|
|
4
|
+
};
|
|
5
|
+
export declare type DefaultFundCancelledEvent = DefaultFundCommonEventPayload & {
|
|
6
|
+
type: 'default-fund-cancelled';
|
|
7
|
+
};
|
|
8
|
+
export declare type DefaultFundCompletedEvent = DefaultFundCommonEventPayload & {
|
|
9
|
+
type: 'default-fund-completed';
|
|
10
|
+
fundUsi: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type DefaultFundLoadedEvent = DefaultFundCommonEventPayload & {
|
|
13
|
+
type: 'default-fund-loaded';
|
|
14
|
+
fundUsi: string;
|
|
15
|
+
};
|
|
16
|
+
export declare type EventPayload = DefaultFundCancelledEvent | DefaultFundCompletedEvent | DefaultFundLoadedEvent;
|
|
17
|
+
export declare type EventType = EventPayload['type'];
|
|
18
|
+
export declare type EventHandlers = {
|
|
19
|
+
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
20
|
+
type: k;
|
|
21
|
+
}>>) => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export declare const LoadWaitingTimeout = 30000;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RouterHistory } from '@stencil/router';
|
|
2
|
+
export declare class SuperDefaultFundHost {
|
|
3
|
+
history: RouterHistory;
|
|
4
|
+
private backendUrl;
|
|
5
|
+
private accessToken;
|
|
6
|
+
private readonly productName;
|
|
7
|
+
private readonly defaultFundEventHandlers;
|
|
8
|
+
private loadingTimeoutRef;
|
|
9
|
+
private readonly eventTrackingService;
|
|
10
|
+
constructor();
|
|
11
|
+
componentWillLoad(): Promise<void>;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
render(): Element[];
|
|
14
|
+
private subscribeToSuperDefaultFundEvents;
|
|
15
|
+
private unSubscribeFromSuperDefaultFundEvents;
|
|
16
|
+
private defaultFundLoaded;
|
|
17
|
+
private defaultFundCompleted;
|
|
18
|
+
private defaultFundCancelled;
|
|
19
|
+
private defaultFundLoadingTimeoutTriggered;
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare type Sender = 'super-promoted-fund';
|
|
2
|
+
export declare type PromotedFundCommonEventPayload = {
|
|
3
|
+
sender: Sender;
|
|
4
|
+
};
|
|
5
|
+
export declare type PromotedFundCancelledEvent = PromotedFundCommonEventPayload & {
|
|
6
|
+
type: 'promoted-fund-cancelled';
|
|
7
|
+
};
|
|
8
|
+
export declare type PromotedFundType = 'Promoted' | 'PromotedDefault' | 'PromotedDefaultWithJoin';
|
|
9
|
+
export declare type PromotedFundCompletedEvent = PromotedFundCommonEventPayload & {
|
|
10
|
+
type: 'promoted-fund-completed';
|
|
11
|
+
fundType: PromotedFundType;
|
|
12
|
+
fundId: string;
|
|
13
|
+
fundUsi: string;
|
|
14
|
+
fundName: string;
|
|
15
|
+
memberNumber?: string;
|
|
16
|
+
memberFirstName?: string;
|
|
17
|
+
memberFamilyName?: string;
|
|
18
|
+
sourceOfJoin?: string;
|
|
19
|
+
isDefaultExclusive?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare type PromotedFundLoadedEvent = PromotedFundCommonEventPayload & {
|
|
22
|
+
type: 'promoted-fund-loaded';
|
|
23
|
+
};
|
|
24
|
+
export declare type SuperCampaignLoadFailedEvent = {
|
|
25
|
+
sender: Sender;
|
|
26
|
+
type: 'super-campaign-load-failed';
|
|
27
|
+
reason: string;
|
|
28
|
+
};
|
|
29
|
+
export declare type SuperCampaignFailedEvent = {
|
|
30
|
+
sender: Sender;
|
|
31
|
+
type: 'super-campaign-failed';
|
|
32
|
+
reason: string;
|
|
33
|
+
};
|
|
34
|
+
export declare type EventPayload = PromotedFundCancelledEvent | PromotedFundCompletedEvent | PromotedFundLoadedEvent | SuperCampaignLoadFailedEvent | SuperCampaignFailedEvent;
|
|
35
|
+
export declare type EventType = EventPayload['type'];
|
|
36
|
+
export declare type EventHandlers = {
|
|
37
|
+
[k in EventType]: (event: CustomEvent<Extract<EventPayload, {
|
|
38
|
+
type: k;
|
|
39
|
+
}>>) => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export declare const LoadWaitingTimeout = 30000;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RouterHistory } from '@stencil/router';
|
|
2
|
+
export declare class SuperPromotedFundHost {
|
|
3
|
+
history: RouterHistory;
|
|
4
|
+
private backendUrl;
|
|
5
|
+
private accessToken;
|
|
6
|
+
private readonly promotedFundEventHandlers;
|
|
7
|
+
private loadingTimeoutRef;
|
|
8
|
+
constructor();
|
|
9
|
+
componentWillLoad(): Promise<void>;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
render(): Element[];
|
|
12
|
+
private subscribeToSuperPromotedFundEvents;
|
|
13
|
+
private unSubscribeFromSuperPromotedFundEvents;
|
|
14
|
+
private promotedFundLoaded;
|
|
15
|
+
private promotedFundCompleted;
|
|
16
|
+
private buildFundDetails;
|
|
17
|
+
private buildHandleSubmitFn;
|
|
18
|
+
private promotedFundCancelled;
|
|
19
|
+
private superCampaignLoadFailed;
|
|
20
|
+
private superCampaignFailed;
|
|
21
|
+
private activateFallbackMechanism;
|
|
22
|
+
private promotedFundLoadingTimeoutTriggered;
|
|
23
|
+
}
|
|
@@ -221,6 +221,8 @@ export declare type AppStateDto = {
|
|
|
221
221
|
bringYourOwnFundCustomStepEnabled: boolean;
|
|
222
222
|
smsfCustomStepEnabled: boolean;
|
|
223
223
|
featuredFundsEnabled: boolean;
|
|
224
|
+
defaultFundNewComponentEnabled: boolean;
|
|
225
|
+
promotedFundNewComponentEnabled: boolean;
|
|
224
226
|
isDefinedBenefitsEligible: boolean | null;
|
|
225
227
|
prefill: SuperChoicePrefillDto | null;
|
|
226
228
|
};
|
package/dist/lib/types/components/super-selection-app/services/super-selection-app.service.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export declare class SuperSelectionAppService {
|
|
|
33
33
|
get isBringYourOwnFundCustomStepEnabled(): boolean;
|
|
34
34
|
get isSmsfCustomStepEnabled(): boolean;
|
|
35
35
|
get isFeaturedFundsEnabled(): boolean;
|
|
36
|
+
get isDefaultFundNewComponentEnabled(): boolean;
|
|
37
|
+
get isPromotedFundNewComponentEnabled(): boolean;
|
|
36
38
|
get superCampaignCanNotBeActivated(): boolean;
|
|
37
39
|
get hideFooterSection(): boolean;
|
|
38
40
|
set hideFooterSection(value: boolean);
|
|
@@ -23,6 +23,8 @@ export declare type AppContextState = {
|
|
|
23
23
|
bringYourOwnFundCustomStepEnabled: boolean;
|
|
24
24
|
smsfCustomStepEnabled: boolean;
|
|
25
25
|
featuredFundsEnabled: boolean;
|
|
26
|
+
defaultFundNewComponentEnabled: boolean;
|
|
27
|
+
promotedFundNewComponentEnabled: boolean;
|
|
26
28
|
superCampaignState: SuperCampaignState | undefined;
|
|
27
29
|
superCampaignComponentStatus: SuperCampaignComponentStatus;
|
|
28
30
|
hideFooterSection: boolean;
|
|
@@ -30,6 +30,12 @@ export namespace Components {
|
|
|
30
30
|
interface SssDefaultFund {
|
|
31
31
|
"history": RouterHistory;
|
|
32
32
|
}
|
|
33
|
+
interface SssDefaultFundHost {
|
|
34
|
+
"history": RouterHistory;
|
|
35
|
+
}
|
|
36
|
+
interface SssDefaultFundRouter {
|
|
37
|
+
"history": RouterHistory;
|
|
38
|
+
}
|
|
33
39
|
interface SssDropdownAsync {
|
|
34
40
|
"disabled": boolean;
|
|
35
41
|
"minSearchStringLength": number;
|
|
@@ -94,6 +100,12 @@ export namespace Components {
|
|
|
94
100
|
interface SssPrefillWarningBox {
|
|
95
101
|
"notificationList": string[];
|
|
96
102
|
}
|
|
103
|
+
interface SssPromotedFundHost {
|
|
104
|
+
"history": RouterHistory;
|
|
105
|
+
}
|
|
106
|
+
interface SssPromotedFundRouter {
|
|
107
|
+
"history": RouterHistory;
|
|
108
|
+
}
|
|
97
109
|
interface SssSmsfEngagementStepHost {
|
|
98
110
|
"history": RouterHistory;
|
|
99
111
|
}
|
|
@@ -151,6 +163,18 @@ declare global {
|
|
|
151
163
|
prototype: HTMLSssDefaultFundElement;
|
|
152
164
|
new (): HTMLSssDefaultFundElement;
|
|
153
165
|
};
|
|
166
|
+
interface HTMLSssDefaultFundHostElement extends Components.SssDefaultFundHost, HTMLStencilElement {
|
|
167
|
+
}
|
|
168
|
+
var HTMLSssDefaultFundHostElement: {
|
|
169
|
+
prototype: HTMLSssDefaultFundHostElement;
|
|
170
|
+
new (): HTMLSssDefaultFundHostElement;
|
|
171
|
+
};
|
|
172
|
+
interface HTMLSssDefaultFundRouterElement extends Components.SssDefaultFundRouter, HTMLStencilElement {
|
|
173
|
+
}
|
|
174
|
+
var HTMLSssDefaultFundRouterElement: {
|
|
175
|
+
prototype: HTMLSssDefaultFundRouterElement;
|
|
176
|
+
new (): HTMLSssDefaultFundRouterElement;
|
|
177
|
+
};
|
|
154
178
|
interface HTMLSssDropdownAsyncElement extends Components.SssDropdownAsync, HTMLStencilElement {
|
|
155
179
|
}
|
|
156
180
|
var HTMLSssDropdownAsyncElement: {
|
|
@@ -247,6 +271,18 @@ declare global {
|
|
|
247
271
|
prototype: HTMLSssPrefillWarningBoxElement;
|
|
248
272
|
new (): HTMLSssPrefillWarningBoxElement;
|
|
249
273
|
};
|
|
274
|
+
interface HTMLSssPromotedFundHostElement extends Components.SssPromotedFundHost, HTMLStencilElement {
|
|
275
|
+
}
|
|
276
|
+
var HTMLSssPromotedFundHostElement: {
|
|
277
|
+
prototype: HTMLSssPromotedFundHostElement;
|
|
278
|
+
new (): HTMLSssPromotedFundHostElement;
|
|
279
|
+
};
|
|
280
|
+
interface HTMLSssPromotedFundRouterElement extends Components.SssPromotedFundRouter, HTMLStencilElement {
|
|
281
|
+
}
|
|
282
|
+
var HTMLSssPromotedFundRouterElement: {
|
|
283
|
+
prototype: HTMLSssPromotedFundRouterElement;
|
|
284
|
+
new (): HTMLSssPromotedFundRouterElement;
|
|
285
|
+
};
|
|
250
286
|
interface HTMLSssSmsfEngagementStepHostElement extends Components.SssSmsfEngagementStepHost, HTMLStencilElement {
|
|
251
287
|
}
|
|
252
288
|
var HTMLSssSmsfEngagementStepHostElement: {
|
|
@@ -306,6 +342,8 @@ declare global {
|
|
|
306
342
|
"sss-choice-router": HTMLSssChoiceRouterElement;
|
|
307
343
|
"sss-custom-fund": HTMLSssCustomFundElement;
|
|
308
344
|
"sss-default-fund": HTMLSssDefaultFundElement;
|
|
345
|
+
"sss-default-fund-host": HTMLSssDefaultFundHostElement;
|
|
346
|
+
"sss-default-fund-router": HTMLSssDefaultFundRouterElement;
|
|
309
347
|
"sss-dropdown-async": HTMLSssDropdownAsyncElement;
|
|
310
348
|
"sss-existing-choice-page": HTMLSssExistingChoicePageElement;
|
|
311
349
|
"sss-footer-section": HTMLSssFooterSectionElement;
|
|
@@ -322,6 +360,8 @@ declare global {
|
|
|
322
360
|
"sss-prefill-my-own-fund": HTMLSssPrefillMyOwnFundElement;
|
|
323
361
|
"sss-prefill-smsf": HTMLSssPrefillSmsfElement;
|
|
324
362
|
"sss-prefill-warning-box": HTMLSssPrefillWarningBoxElement;
|
|
363
|
+
"sss-promoted-fund-host": HTMLSssPromotedFundHostElement;
|
|
364
|
+
"sss-promoted-fund-router": HTMLSssPromotedFundRouterElement;
|
|
325
365
|
"sss-smsf-engagement-step-host": HTMLSssSmsfEngagementStepHostElement;
|
|
326
366
|
"sss-standard-choice-form": HTMLSssStandardChoiceFormElement;
|
|
327
367
|
"sss-success": HTMLSssSuccessElement;
|
|
@@ -352,6 +392,12 @@ declare namespace LocalJSX {
|
|
|
352
392
|
interface SssDefaultFund {
|
|
353
393
|
"history"?: RouterHistory;
|
|
354
394
|
}
|
|
395
|
+
interface SssDefaultFundHost {
|
|
396
|
+
"history"?: RouterHistory;
|
|
397
|
+
}
|
|
398
|
+
interface SssDefaultFundRouter {
|
|
399
|
+
"history"?: RouterHistory;
|
|
400
|
+
}
|
|
355
401
|
interface SssDropdownAsync {
|
|
356
402
|
"disabled"?: boolean;
|
|
357
403
|
"minSearchStringLength"?: number;
|
|
@@ -418,6 +464,12 @@ declare namespace LocalJSX {
|
|
|
418
464
|
interface SssPrefillWarningBox {
|
|
419
465
|
"notificationList"?: string[];
|
|
420
466
|
}
|
|
467
|
+
interface SssPromotedFundHost {
|
|
468
|
+
"history"?: RouterHistory;
|
|
469
|
+
}
|
|
470
|
+
interface SssPromotedFundRouter {
|
|
471
|
+
"history"?: RouterHistory;
|
|
472
|
+
}
|
|
421
473
|
interface SssSmsfEngagementStepHost {
|
|
422
474
|
"history"?: RouterHistory;
|
|
423
475
|
}
|
|
@@ -457,6 +509,8 @@ declare namespace LocalJSX {
|
|
|
457
509
|
"sss-choice-router": SssChoiceRouter;
|
|
458
510
|
"sss-custom-fund": SssCustomFund;
|
|
459
511
|
"sss-default-fund": SssDefaultFund;
|
|
512
|
+
"sss-default-fund-host": SssDefaultFundHost;
|
|
513
|
+
"sss-default-fund-router": SssDefaultFundRouter;
|
|
460
514
|
"sss-dropdown-async": SssDropdownAsync;
|
|
461
515
|
"sss-existing-choice-page": SssExistingChoicePage;
|
|
462
516
|
"sss-footer-section": SssFooterSection;
|
|
@@ -473,6 +527,8 @@ declare namespace LocalJSX {
|
|
|
473
527
|
"sss-prefill-my-own-fund": SssPrefillMyOwnFund;
|
|
474
528
|
"sss-prefill-smsf": SssPrefillSmsf;
|
|
475
529
|
"sss-prefill-warning-box": SssPrefillWarningBox;
|
|
530
|
+
"sss-promoted-fund-host": SssPromotedFundHost;
|
|
531
|
+
"sss-promoted-fund-router": SssPromotedFundRouter;
|
|
476
532
|
"sss-smsf-engagement-step-host": SssSmsfEngagementStepHost;
|
|
477
533
|
"sss-standard-choice-form": SssStandardChoiceForm;
|
|
478
534
|
"sss-success": SssSuccess;
|
|
@@ -492,6 +548,8 @@ declare module "@stencil/core" {
|
|
|
492
548
|
"sss-choice-router": LocalJSX.SssChoiceRouter & JSXBase.HTMLAttributes<HTMLSssChoiceRouterElement>;
|
|
493
549
|
"sss-custom-fund": LocalJSX.SssCustomFund & JSXBase.HTMLAttributes<HTMLSssCustomFundElement>;
|
|
494
550
|
"sss-default-fund": LocalJSX.SssDefaultFund & JSXBase.HTMLAttributes<HTMLSssDefaultFundElement>;
|
|
551
|
+
"sss-default-fund-host": LocalJSX.SssDefaultFundHost & JSXBase.HTMLAttributes<HTMLSssDefaultFundHostElement>;
|
|
552
|
+
"sss-default-fund-router": LocalJSX.SssDefaultFundRouter & JSXBase.HTMLAttributes<HTMLSssDefaultFundRouterElement>;
|
|
495
553
|
"sss-dropdown-async": LocalJSX.SssDropdownAsync & JSXBase.HTMLAttributes<HTMLSssDropdownAsyncElement>;
|
|
496
554
|
"sss-existing-choice-page": LocalJSX.SssExistingChoicePage & JSXBase.HTMLAttributes<HTMLSssExistingChoicePageElement>;
|
|
497
555
|
"sss-footer-section": LocalJSX.SssFooterSection & JSXBase.HTMLAttributes<HTMLSssFooterSectionElement>;
|
|
@@ -508,6 +566,8 @@ declare module "@stencil/core" {
|
|
|
508
566
|
"sss-prefill-my-own-fund": LocalJSX.SssPrefillMyOwnFund & JSXBase.HTMLAttributes<HTMLSssPrefillMyOwnFundElement>;
|
|
509
567
|
"sss-prefill-smsf": LocalJSX.SssPrefillSmsf & JSXBase.HTMLAttributes<HTMLSssPrefillSmsfElement>;
|
|
510
568
|
"sss-prefill-warning-box": LocalJSX.SssPrefillWarningBox & JSXBase.HTMLAttributes<HTMLSssPrefillWarningBoxElement>;
|
|
569
|
+
"sss-promoted-fund-host": LocalJSX.SssPromotedFundHost & JSXBase.HTMLAttributes<HTMLSssPromotedFundHostElement>;
|
|
570
|
+
"sss-promoted-fund-router": LocalJSX.SssPromotedFundRouter & JSXBase.HTMLAttributes<HTMLSssPromotedFundRouterElement>;
|
|
511
571
|
"sss-smsf-engagement-step-host": LocalJSX.SssSmsfEngagementStepHost & JSXBase.HTMLAttributes<HTMLSssSmsfEngagementStepHostElement>;
|
|
512
572
|
"sss-standard-choice-form": LocalJSX.SssStandardChoiceForm & JSXBase.HTMLAttributes<HTMLSssStandardChoiceFormElement>;
|
|
513
573
|
"sss-success": LocalJSX.SssSuccess & JSXBase.HTMLAttributes<HTMLSssSuccessElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/apollo-super-selection",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.88.58802",
|
|
4
4
|
"description": "Apollo Super Selection",
|
|
5
5
|
"main": "dist/lib/index.cjs.js",
|
|
6
6
|
"module": "dist/lib/index.js",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"@juggle/resize-observer": "^3.3.0",
|
|
63
63
|
"@microsoft/applicationinsights-web": "^2.5.10",
|
|
64
64
|
"@stencil/router": "1.0.1",
|
|
65
|
-
"
|
|
65
|
+
"baseline-browser-mapping": "^2.9.11",
|
|
66
|
+
"caniuse-lite": "^1.0.30001762",
|
|
66
67
|
"date-fns": "^2.16.1",
|
|
67
68
|
"fp-ts": "^2.9.3",
|
|
68
69
|
"jwt-decode": "^3.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.SmsfEngagementStep="/super-choice/smsf-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const g=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.SmsfEngagementStep,component:"sss-smsf-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function y(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=y((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,g,y){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return g(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return y(g(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=y((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0,t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},g=function(n,e){return S.pipe(n,t.partitionMap(e))},y=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function C(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=C,t.getApplyMonoid=function(n){return{concat:C(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g,wither:y,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:g,wither:y,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function C(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function E(n){this.message=n}(E.prototype=new Error).name="InvalidTokenError";var D=function(){return(D=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},T=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},P=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=D({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?T(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?P(n[u],t[u],e):t[u]);return r},O=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},R={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,O([void 0],s))):a}},I=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=R.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){I(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,R.polyfill("PerformanceObserver",{doThrow:!1}))&&(I(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},N=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),R.defaults=t?P(R.defaults,n):n,this},n.prototype.errorType=function(n){return R.errorType=n,this},n.prototype.polyfills=function(n){return R.polyfills=j(j({},R.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?P(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:B(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:P(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=P(R.defaults,u),s=R.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(R.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[R.errorType||"text"]().then((function(t){var e=new Error(t);throw e[R.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(x(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return V(n,t)})).join("&"):V(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),B=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=R.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function x(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=R.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&x(i,t,e,k(r,[u]))})),e}function V(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=N.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=N.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,smsfCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new E("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(n.split(".")[e]))}catch(n){throw new E("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.smsfCustomStepEnabled=n.smsfCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isSmsfCustomStepEnabled(){return this.state.smsfCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};var K;!function(n){n.MyOwnFund="Existing super fund",n.DefaultFund="Default super fund",n.SelfManagedFund="Self-managed super fund",n.FeaturedFunds="Featured super funds"}(K||(K={}));const Z={myOwnFundForm:{fundUsi:o,fundName:o,memberNumber:o,memberFirstName:o,memberFamilyName:o},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}},{state:nn}=m(Z);class tn{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class en{constructor(){this.eventTrackingApi=tn.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async TrackSuperSmsfEngagementStepActivationSucceeded(){return this.trackEventAsync({SuperSmsfEngagementStepActivationSucceeded:{}})}async TrackSuperSmsfEngagementStepContinued(n){return this.trackEventAsync({SuperSmsfEngagementStepContinued:{reason:n}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const rn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{K as C,en as E,F as O,w as S,Y as a,G as b,f as c,W as d,rn as e,i as f,$ as g,_ as h,u as i,J as j,z as k,nn as l,v as m,o as n,L as o,X as p,l as q,g as r,s,a as t,q as u,c as v}
|