@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-
|
|
1
|
+
import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-157712cb",[[0,"sss-default-fund-router",{history:[16]}]]],["p-19be074b",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-19a451d6",[[0,"sss-promoted-fund-router",{history:[16]}]]],["p-69bbf1dd",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-4e871154",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-9d2a7c0e",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-33eca162",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-5c73c587",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-36ea14fc",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-default-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-loading-page"],[0,"sss-promoted-fund-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]],["p-e435c64b",[[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function u(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):o(e.value).then(u,a)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;o=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.e;r=e.f}],execute:function(){e({S:void 0,c:Q,d:Z,e:ee,g:V,k:a,t:s});var n=e("i",(function(e){return e._tag==="Some"}));var o=e("b",(function(e){return e._tag==="None"}));var i=e("n",{_tag:"None"});var u=e("s",(function(e){return{_tag:"Some",value:e}}));function a(e){return e==null?i:u(e)}function s(e){return o(e)?undefined:e.value}var f=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var c=function(e,t){var r;return function(){var n=[];for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var l=function(e){return!("isConnected"in e)||e.isConnected};var p=c((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(l))}}),2e3);var d=function(e){var n=e.on;var o=new Map;if(typeof t==="function"){n("dispose",(function(){o.clear()}));n("get",(function(e){var r=t();if(r){f(o,e,r)}}));n("set",(function(e){var t=o.get(e);if(t){o.set(e,t.filter(r))}p(o)}));n("reset",(function(){o.forEach((function(e){return e.forEach(r)}));p(o)}))}};var h=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var o=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var i=function(){n.dispose.forEach((function(e){return e()}));o()};var u=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var a=function(e,o){var i=r.get(e);if(t(o,i,e)){r.set(e,o);n.set.forEach((function(t){return t(e,o,i)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){a(t,r);return true}});var f=function(e,t){n[e].push(t);return function(){m(n[e],t)}};var c=function(t,r){var n=f("set",(function(e,n){if(e===t){r(n)}}));var o=f("reset",(function(){return r(e[t])}));return function(){n();o()}};var l=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){f("set",e.set)}if(e.get){f("get",e.get)}if(e.reset){f("reset",e.reset)}}))};return{state:s,get:u,set:a,on:f,onChange:c,use:l,dispose:i,reset:o}};var m=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var v=e("l",(function(e,t){var r=h(e,t);d(r);return r}));function g(e,t,r){return r={path:t,exports:{},require:function(e,t){return y()}},e(r,r.exports),r.exports}function y(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var b=g((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 r(e){return e}t.identity=r;t.unsafeCoerce=r;function n(e){return function(t){return!e(t)}}t.not=n;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,r){return e(r,t)}}t.flip=i;function u(e,t,r,n,o,i,u,a,s){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return r(t(e.apply(this,arguments)))};case 4:return function(){return n(r(t(e.apply(this,arguments))))};case 5:return function(){return o(n(r(t(e.apply(this,arguments)))))};case 6:return function(){return i(o(n(r(t(e.apply(this,arguments))))))};case 7:return function(){return u(i(o(n(r(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(i(o(n(r(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(i(o(n(r(t(e.apply(this,arguments)))))))))}}return}t.flow=u;function a(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=a;function s(e){return e+1}t.increment=s;function f(e){return e-1}t.decrement=f;function c(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=c;function l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return e(t)}}t.untupled=p;function d(e,t,r,n,o,i,u,a,s,f,c,l,p,d,h,m,v,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return r(t(e));case 4:return n(r(t(e)));case 5:return o(n(r(t(e))));case 6:return i(o(n(r(t(e)))));case 7:return u(i(o(n(r(t(e))))));case 8:return a(u(i(o(n(r(t(e)))))));case 9:return s(a(u(i(o(n(r(t(e))))))));case 10:return f(s(a(u(i(o(n(r(t(e)))))))));case 11:return c(f(s(a(u(i(o(n(r(t(e))))))))));case 12:return l(c(f(s(a(u(i(o(n(r(t(e)))))))))));case 13:return p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))));case 14:return d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))));case 15:return h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))));case 16:return m(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))));case 17:return v(m(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))))));case 18:return g(v(m(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))))));case 19:return y(g(v(m(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e))))))))))))))))));case 20:return b(y(g(v(m(h(d(p(l(c(f(s(a(u(i(o(n(r(t(e)))))))))))))))))))}return}t.pipe=d;t.hole=c;var h=function(e,t,r){var n;return Object.assign({},e,(n={},n[t]=r,n))};t.bind_=h;var m=function(e){return function(t){var r;return r={},r[e]=t,r}};t.bindTo_=m}));var w=e("O",g((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 r=function(e){return e._tag==="Some"};t.isSome=r;var n=function(e){return e._tag==="None"};t.isNone=n;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 u(e){return function(r){return e(r)?t.some(r):t.none}}t.fromPredicate=u;function a(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=a;function s(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=s;function f(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=f;t.fromEither=f;function c(e,r){return function(n){return t.isNone(n)?e():r(n.value)}}t.fold=c;function l(e){return t.isNone(e)?null:e.value}t.toNullable=l;function p(e){return t.isNone(e)?undefined:e.value}t.toUndefined=p;var d=function(e){return function(r){return t.isNone(r)?e():r.value}};t.getOrElseW=d;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return i(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=m;function m(e){return function(r){return t.isNone(r)?t.none:i(e(r.value))}}t.chainNullableK=m;var v=function(e,r){return b.pipe(e,t.map(r))};var g=function(e,r){return b.pipe(e,t.ap(r))};var y=function(e,r){return b.pipe(e,t.chain(r))};var w=function(e,r,n){return b.pipe(e,t.reduce(r,n))};var _=function(e){var r=t.foldMap(e);return function(e,t){return b.pipe(e,r(t))}};var C=function(e,r,n){return b.pipe(e,t.reduceRight(r,n))};var S=function(e){var r=t.traverse(e);return function(e,t){return b.pipe(e,r(t))}};var F=function(e,r){return b.pipe(e,t.alt(r))};var N=function(e,r){return b.pipe(e,t.filter(r))};var E=function(e,r){return b.pipe(e,t.filterMap(r))};var O=function(e,r){return b.pipe(e,t.extend(r))};var P=function(e,r){return b.pipe(e,t.partition(r))};var j=function(e,r){return b.pipe(e,t.partitionMap(r))};var I=function(e){var r=t.wither(e);return function(e,t){return b.pipe(e,r(t))}};var R=function(e){var r=t.wilt(e);return function(e,t){return b.pipe(e,r(t))}};var U=function(e){return function(r){return t.isNone(r)?t.none:t.some(e(r.value))}};t.map=U;var A=function(e){return function(r){return t.isNone(r)?t.none:t.isNone(e)?t.none:t.some(r.value(e.value))}};t.ap=A;var M=function(e){return b.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=M;var k=function(e){return b.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=k;t.of=t.some;var T=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)}};t.chain=T;var D=function(e){return t.chain((function(r){return b.pipe(e(r),t.map((function(){return r})))}))};t.chainFirst=D;t.flatten=t.chain(b.identity);var B=function(e){return function(r){return t.isNone(r)?e():r}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var L=function(){return t.none};t.throwError=L;var W=function(e){return function(r){return t.isNone(r)?t.none:t.some(e(r))}};t.extend=W;t.duplicate=t.extend(b.identity);var q=function(e,r){return function(n){return t.isNone(n)?e:r(e,n.value)}};t.reduce=q;var z=function(e){return function(r){return function(n){return t.isNone(n)?e.empty:r(n.value)}}};t.foldMap=z;var J=function(e,r){return function(n){return t.isNone(n)?e:r(n.value,e)}};t.reduceRight=J;t.compact=t.flatten;var K={left:t.none,right:t.none};var Y=function(e){var r=b.pipe(e,t.map((function(e){return{left:s(e),right:f(e)}})));return t.isNone(r)?K:r.value};t.separate=Y;var Q=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)?r:t.none}};t.filter=Q;var X=function(e){return function(r){return t.isNone(r)?t.none:e(r.value)}};t.filterMap=X;var G=function(e){return function(t){return{left:N(t,(function(t){return!e(t)})),right:N(t,e)}}};t.partition=G;var H=function(e){return b.flow(t.map(e),t.separate)};t.partitionMap=H;var V=function(e){return function(r){return function(n){return t.isNone(n)?e.of(t.none):e.map(r(n.value),t.some)}}};t.traverse=V;var Z=function(e){return function(r){return t.isNone(r)?e.of(t.none):e.map(r.value,t.some)}};t.sequence=Z;var $=function(e){return function(r){return function(n){return t.isNone(n)?e.of(t.none):r(n.value)}}};t.wither=$;var ee=function(e){return function(r){return function(n){return t.isNone(n)?e.of({left:t.none,right:t.none}):e.map(r(n.value),(function(e){return{left:s(e),right:f(e)}}))}}};t.wilt=ee;t.URI="Option";function te(e){return{show:function(r){return t.isNone(r)?"none":"some("+e.show(r.value)+")"}}}t.getShow=te;function re(e){return{equals:function(r,n){return r===n||(t.isNone(r)?t.isNone(n):t.isNone(n)?false:e.equals(r.value,n.value))}}}t.getEq=re;function ne(e){return{equals:re(e).equals,compare:function(r,n){return r===n?0:t.isSome(r)?t.isSome(n)?e.compare(r.value,n.value):1:-1}}}t.getOrd=ne;function oe(e){return{concat:function(r,n){return t.isSome(r)&&t.isSome(n)?t.some(e.concat(r.value,n.value)):t.none}}}t.getApplySemigroup=oe;function ie(e){return{concat:oe(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ue(){return{concat:function(e,r){return t.isNone(e)?r:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,r){return t.isNone(r)?e:r},empty:t.none}}t.getLastMonoid=ae;function se(e){return{concat:function(r,n){return t.isNone(r)?n:t.isNone(n)?r:t.some(e.concat(r.value,n.value))},empty:t.none}}t.getMonoid=se;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:w,foldMap:_,reduceRight:C};t.Alt={URI:t.URI,map:v,alt:F};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:O};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:N,filterMap:E,partition:P,partitionMap:j};t.Traversable={URI:t.URI,map:v,reduce:w,foldMap:_,reduceRight:C,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:w,foldMap:_,reduceRight:C,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:N,filterMap:E,partition:P,partitionMap:j,wither:I,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:w,foldMap:_,reduceRight:C,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:O,compact:t.compact,separate:t.separate,filter:N,filterMap:E,partition:P,partitionMap:j,wither:I,wilt:R,throwError:t.throwError};function fe(e){return function(r,n){return t.isNone(n)?false:e.equals(r,n.value)}}t.elem=fe;function ce(e){return function(r){return t.isNone(r)?false:e(r.value)}}t.exists=ce;function le(e){return function(r){return t.isSome(e(r))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(b.bindTo_(e))};t.bindTo=pe;var de=function(e,r){return t.chain((function(n){return b.pipe(r(n),t.map((function(t){return b.bind_(n,e,t)})))}))};t.bind=de;var he=function(e,r){return b.flow(t.map((function(t){return function(r){return b.bind_(t,e,r)}})),t.ap(r))};t.apS=he;var me=function(e){return function(r){var n=[];for(var o=0;o<r.length;o++){var i=e(o,r[o]);if(t.isNone(i)){return t.none}n.push(i.value)}return t.some(n)}};t.traverseArrayWithIndex=me;var ve=function(e){return t.traverseArrayWithIndex((function(t,r){return e(r)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(b.identity)})));function _(e){this.message=e}_.prototype=new Error,_.prototype.name="InvalidCharacterError";var C="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new _("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,u="";n=t.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?u+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return u};function S(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(C(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return C(t)}}function F(e){this.message=e}function N(e,t){if("string"!=typeof e)throw new F("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(S(e.split(".")[r]))}catch(e){throw new F("Invalid token specified: "+e.message)}}F.prototype=new Error,F.prototype.name="InvalidTokenError";var E=undefined&&undefined.__assign||function(){E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return E.apply(this,arguments)};var O=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var P=function(e,t,r){if(r===void 0){r=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var n=E({},e);for(var o in t){if(t.hasOwnProperty(o)){if(t[o]instanceof Array&&e[o]instanceof Array){n[o]=r?O(e[o],t[o]):t[o]}else if(typeof t[o]==="object"&&typeof e[o]==="object"){n[o]=P(e[o],t[o],r)}else{n[o]=t[o]}}}return n};var j=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var I={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var r=t===void 0?{}:t,n=r.doThrow,o=n===void 0?true:n,i=r.instance,u=i===void 0?false:i;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var f=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(o&&!f)throw new Error(e+" is not defined");return u&&f?new(f.bind.apply(f,j([void 0],a))):f}};var R=function(e,t,r,n){if(!e.getEntriesByName)return false;var o=e.getEntriesByName(t);if(o&&o.length>0){r(o.reverse()[0]);if(n.clearMeasures)n.clearMeasures(t);A.callbacks.delete(t);if(A.callbacks.size<1){A.observer.disconnect();if(n.clearResourceTimings){n.clearResourceTimings()}}return true}return false};var U=function(e,t){if(!A.observer&&e&&t){A.observer=new t((function(t){A.callbacks.forEach((function(r,n){R(t,n,r,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return A.observer};var A={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var r=I.polyfill("performance",{doThrow:false});var n=I.polyfill("PerformanceObserver",{doThrow:false});if(!U(r,n))return;if(!R(r,e,t,r)){if(A.callbacks.size<1)A.observer.observe({entryTypes:["resource","measure"]});A.callbacks.set(e,t)}}};var M=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(r,n,o){return o===e.length-2?n(r(t)):n(r)}))}};var k=function(){function e(e){this.error=e}return e}();var T=function(e){var t=e._url,r=e._catchers,n=e._resolvers,o=e._middlewares,i=e._options;var u=new Map(r);var a=P(I.defaults,i);var s=I.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var f={ref:null,clear:function(){if(f.ref){clearTimeout(f.ref);f.ref=null}}};var c=M(o)(I.polyfill("fetch"))(t,a);var l=c.catch((function(e){throw new k(e)})).then((function(e){f.clear();if(!e.ok){return e[I.errorType||"text"]().then((function(t){var r=new Error(t);r[I.errorType||"text"]=t;r["status"]=e.status;r["response"]=e;throw r}))}return e}));var p=function(t){return t.catch((function(t){f.clear();var r=t instanceof k?t.error:t;if(t instanceof k&&u.has("__fromFetch"))return u.get("__fromFetch")(r,e);else if(u.has(r.status))return u.get(r.status)(r,e);else if(u.has(r.name))return u.get(r.name)(r,e);else throw r}))};var d=function(e){return function(t){return e?p(l.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):p(l.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){c.then((function(t){return A.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=s}f.clear();f.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[s,h]},error:function(e,t){u.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 n.reduce((function(t,r){return r(t,e)}),h)};var D=undefined&&undefined.__assign||function(){D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return D.apply(this,arguments)};var B=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],u=0,a=i.length;u<a;u++,o++)n[o]=i[u];return n};var x="application/json";var L="Content-Type";var W=function(){function e(e,t,r,n,o,i){if(r===void 0){r=new Map}if(n===void 0){n=[]}if(o===void 0){o=[]}if(i===void 0){i=[]}this._url=e;this._options=t;this._catchers=r;this._resolvers=n;this._middlewares=o;this._deferredChain=i}e.factory=function(t,r){if(t===void 0){t=""}if(r===void 0){r={}}return new e(t,r)};e.prototype.selfFactory=function(t){var r=t===void 0?{}:t,n=r.url,o=n===void 0?this._url:n,i=r.options,u=i===void 0?this._options:i,a=r.catchers,s=a===void 0?this._catchers:a,f=r.resolvers,c=f===void 0?this._resolvers:f,l=r.middlewares,p=l===void 0?this._middlewares:l,d=r.deferredChain,h=d===void 0?this._deferredChain:d;return new e(o,D({},u),new Map(s),B(c),B(p),B(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}I.defaults=t?P(I.defaults,e):e;return this};e.prototype.errorType=function(e){I.errorType=e;return this};e.prototype.polyfills=function(e){I.polyfills=D(D({},I.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var r=this._url.split("?");return this.selfFactory({url:r.length>1?r[0]+e+"?"+r[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?P(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:q(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:P(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[L]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var r=new Map(this._catchers);r.set(e,t);return this.selfFactory({catchers:r})};e.prototype.signal=function(e){return this.selfFactory({options:D(D({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:B(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:B(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:B(this._middlewares,e)})};e.prototype.method=function(e,t,r){if(t===void 0){t={}}if(r===void 0){r=null}var n=this._options.headers;var o=!r?this:typeof r==="object"&&(!n||Object.entries(n).every((function(e){var t=e[0],r=e[1];return t.toLowerCase()!==L.toLowerCase()||r.startsWith(x)})))?this.json(r):this.body(r);o=o.options(D(D({},t),{method:e}));var i=o._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),o);return T(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:D(D({},this._options),{body:e})})};e.prototype.json=function(e){var t;var r=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],r=e[1];return t.toLowerCase()===L.toLowerCase()&&r.startsWith(x)})))===null||t===void 0?void 0:t[1];return this.content(r||x).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(z(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:K(e)).content("application/x-www-form-urlencoded")};return e}();var q=function(e,t,r){var n;if(typeof t==="string"){n=t}else{var o=I.polyfill("URLSearchParams",{instance:true});for(var i in t){if(t[i]instanceof Array){for(var u=0,a=t[i];u<a.length;u++){var s=a[u];o.append(i,s)}}else{o.append(i,t[i])}}n=o.toString()}var f=e.split("?");if(r||f.length<2)return f[0]+"?"+n;return e+"&"+n};function z(e,t,r,n){if(t===void 0){t=false}if(r===void 0){r=I.polyfill("FormData",{instance:true})}if(n===void 0){n=[]}Object.entries(e).forEach((function(e){var o=e[0],i=e[1];var u=n.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+o+"]":o;if(i instanceof Array){for(var a=0,s=i;a<s.length;a++){var f=s[a];r.append(u+"[]",f)}}else if(t&&typeof i==="object"&&(!(t instanceof Array)||!t.includes(o))){if(i!==null){z(i,t,r,B(n,[o]))}}else{r.append(u,i)}}));return r}function J(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function K(e){return Object.keys(e).map((function(t){var r=e[t];if(r instanceof Array){return r.map((function(e){return J(t,e)})).join("&")}return J(t,r)})).join("&")}var Y=e("j",W.factory);Y["default"]=W.factory;function Q(){var e=se.jwt;var t=se.profileId;var r=se.accountIdOrDefault;var n=se.partnerIdOrDefault;return Y(se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":n,"X-ACCOUNT-ID":r})}var X=e("h",{fundId:"slate",usi:"32367272075001"});function G(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 H(e){switch(e.kind){case"slate":return X.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 V(e){switch(e.kind){case"slate":return X.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 Z(e){switch(e.kind){case"Promoted":return u(H(e.promoted));case"MyOwnFund":return u(e.myOwnFund.usi);case"SMSF":return i;case"Default":return u(e.default.usi);case"PromotedDefault":return u(e.promotedDefault.usi);case"DefinedBenefits":return u(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return u(e.promotedDefaultWithJoin.usi);default:return i}}function $(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 ee(e){switch(e.kind){case"Promoted":return u($(e.promoted));case"MyOwnFund":return u(e.myOwnFund.memberNumber);case"DefinedBenefits":return u(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return u(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return i;default:return i}}function te(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 re=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(r){return[2,Q().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 r;return __generator(this,(function(n){r=t?"?includeInactive=true":"";return[2,Q().url("super-choice/australian-funds/"+e+r).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(r){switch(r.label){case 0:return[4,Q().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=r.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){te(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":G(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,Q().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,Q().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 r=this.toSearchFilterQueryString(t);var n=e?"includeInactive=true":"";var o=function(e){return e&&e.length};return[r,n].filter(o).join("&")};return e}();var ne=e("f",new re);var oe;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(oe||(oe=e("S",{})));var ie=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 ue={apiBaseUrl:w.none,appBaseUrl:w.none,profileId:w.none,jwt:w.none,superBuyer:w.none,superChoicePrefill:w.none,promotedFunds:w.none,accountConfiguration:w.none,profileConfiguration:w.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:w.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:oe.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,smsfCustomStepEnabled:false,featuredFundsEnabled:false,defaultFundNewComponentEnabled:false,promotedFundNewComponentEnabled:false};var ae=function(){function e(){var e=this;var t=v(ue),r=t.state,n=t.onChange;this._state=r;this._onChange=n;n("jwt",(function(t){e._state.profileId=b.pipe(t,w.chain((function(e){return w.fromNullable(N(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(w.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(w.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(w.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(w.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 w.fromNullable(this.superCampaignState.DefaultFundPosition)}return w.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:w.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(w.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=b.pipe(this._state.profileConfiguration,w.map((function(e){return w.fromNullable(e.defaultFundUsi)})),w.flatten);if(w.isSome(e)){return e}return b.pipe(this._state.accountConfiguration,w.map((function(e){return w.fromNullable(e.defaultFundUsi)})),w.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return b.pipe(this._state.accountConfiguration,w.map((function(e){return e.accountId})),w.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return b.pipe(this._state.superBuyer,w.map((function(e){return e.partnerId})),w.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(w.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,ne.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=w.fromNullable(e.accountConfiguration);this._state.profileConfiguration=w.fromNullable(e.profileConfiguration);this._state.superBuyer=w.fromNullable(e.superBuyer);this._state.promotedFunds=w.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=w.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=w.fromNullable(e.isDefinedBenefitsEligible);if(w.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 ne.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===oe.Loaded){this._state.superCampaignComponentStatus=oe.Loaded;this._state.superCampaignState=new ie}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===oe.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 w.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 se=e("a",new ae)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-71ca4cf8.system.js","./p-035b3fcf.system.js","./p-97188c78.system.js","./p-524b1ff5.system.js"],(function(t){"use strict";var s,n,e,r,o;return{setters:[function(t){s=t.r;n=t.h;e=t.H},function(t){r=t.a},function(){},function(t){o=t.i}],execute:function(){var i=t("sss_promoted_fund_router",function(){function t(t){s(this,t)}t.prototype.render=function(){if(r.isPromotedFundNewComponentEnabled){return n(e,null,n("sss-promoted-fund-host",{history:this.history}))}return n(e,null,n("sss-super-campaign-host",{history:this.history}))};return t}());o(i)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r,H as t}from"./p-db0bded8.js";import{a as d}from"./p-9640d3ea.js";import"./p-fdadb647.js";import{i as o}from"./p-d5c7a35f.js";const a=class{constructor(r){s(this,r)}render(){return r(t,null,r(d.isDefaultFundNewComponentEnabled?"sss-default-fund-host":"sss-default-fund",{history:this.history}))}};o(a);export{a as sss_default_fund_router}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as r,H as o}from"./p-db0bded8.js";import{a as t}from"./p-9640d3ea.js";import"./p-fdadb647.js";import{i as p}from"./p-d5c7a35f.js";const a=class{constructor(r){s(this,r)}render(){return r(o,null,r(t.isPromotedFundNewComponentEnabled?"sss-promoted-fund-host":"sss-super-campaign-host",{history:this.history}))}};p(a);export{a as sss_promoted_fund_router}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as e}from"./p-db0bded8.js";import{a as i,O as o}from"./p-9640d3ea.js";import"./p-fdadb647.js";import{i as r}from"./p-d5c7a35f.js";import{E as a,n as m,S as n,c as d}from"./p-6a4fc9a6.js";import{s as h}from"./p-9a268e32.js";var u;!function(s){s[s.NotLoaded=1]="NotLoaded",s[s.Loaded=2]="Loaded"}(u||(u={}));let c=u.NotLoaded;const f=class{constructor(t){s(this,t),this.eventTrackingService=a.Instance,this.subscribeToSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.addEventListener(s,this.byofEventHandlers[s])},this.unSubscribeFromSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.removeEventListener(s,this.byofEventHandlers[s])},this.byofLoaded=async s=>("super-byof"===s.detail.sender&&(c=u.Loaded,clearTimeout(this.loadingTimeoutRef),this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:i.promotedFunds,defaultFundUsiSet:o.toUndefined(i.defaultFundUsi)})),Promise.resolve()),this.byofCompleted=async s=>{if("super-byof"===s.detail.sender){if(h.myOwnFundForm={fundUsi:o.fromNullable(s.detail.fundUsi),fundName:o.fromNullable(s.detail.fundName),memberNumber:o.fromNullable(s.detail.memberNumber),memberFirstName:o.fromNullable(s.detail.memberFirstName),memberFamilyName:o.fromNullable(s.detail.memberLastName)},i.isBringYourOwnFundCustomStepEnabled&&i.isUsingSuperCampaign)return void m.navigateInternally(this.history,n.MyOwnFundEngagementStep);m.navigateInternallyToStandardChoice({history:this.history,fundName:s.detail.fundName,fundDetails:{type:"myOwnFund",fundName:s.detail.fundName,fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber,memberFirstName:s.detail.memberFirstName,memberFamilyName:s.detail.memberLastName,standardChoiceFormSignature:t},i.promotedFundsConfig);await d.submitCustomFundChoiceAsync(e)}})}},this.byofCancelled=async s=>{"super-byof"===s.detail.sender&&await m.navigateInternally(this.history,n.ChoicePage)},this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}async componentWillLoad(){if(!o.isSome(i.backendUrl)||!o.isSome(i.state.jwt))throw Error("SuperByofHost pre-requisites not met.");this.backendUrl=i.backendUrl.value,this.accessToken=i.state.jwt.value,c===u.NotLoaded&&(this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),3e4)),this.subscribeToSuperByofEvents()}disconnectedCallback(){clearTimeout(this.loadingTimeoutRef),this.unSubscribeFromSuperByofEvents()}render(){return t(e,null,t("sss-header-section",null),t("div",{class:"flex justify-center mt-11"},t("sss-custom-fund",null,t("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))}async byofLoadingTimeoutTriggered(){if(c!==u.Loaded)throw Error("BYOF component failed to load.")}};r(f);export{f as sss_super_byof_host}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-035b3fcf.system.js","./p-97188c78.system.js","./p-524b1ff5.system.js","./p-b88cf353.system.js","./p-a68b9b0f.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,d,l,f;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){i=e.a;o=e.O},function(){},function(e){a=e.i},function(e){s=e.E;u=e.n;d=e.S;l=e.c},function(e){f=e.s}],execute:function(){var c=3e4;var m;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded"})(m||(m={}));var b=m.NotLoaded;var h=e("sss_super_byof_host",function(){function e(e){var n=this;t(this,e);this.eventTrackingService=s.Instance;this.subscribeToSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.addEventListener(e,n.byofEventHandlers[e])}};this.unSubscribeFromSuperByofEvents=function(){for(var e in n.byofEventHandlers){document.removeEventListener(e,n.byofEventHandlers[e])}};this.byofLoaded=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){if(e.detail.sender==="super-byof"){b=m.Loaded;clearTimeout(this.loadingTimeoutRef);this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:i.promotedFunds,defaultFundUsiSet:o.toUndefined(i.defaultFundUsi)})}return[2,Promise.resolve()]}))}))};this.byofCompleted=function(e){return __awaiter(n,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){if(e.detail.sender==="super-byof"){f.myOwnFundForm={fundUsi:o.fromNullable(e.detail.fundUsi),fundName:o.fromNullable(e.detail.fundName),memberNumber:o.fromNullable(e.detail.memberNumber),memberFirstName:o.fromNullable(e.detail.memberFirstName),memberFamilyName:o.fromNullable(e.detail.memberLastName)};if(i.isBringYourOwnFundCustomStepEnabled&&i.isUsingSuperCampaign){u.navigateInternally(this.history,d.MyOwnFundEngagementStep);return[2]}u.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},i.promotedFundsConfig);return[4,l.submitCustomFundChoiceAsync(t)];case 1:r.sent();return[2]}}))}))}})}return[2]}))}))};this.byofCancelled=function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender==="super-byof"))return[3,2];return[4,u.navigateInternally(this.history,d.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(o.isSome(i.backendUrl)&&o.isSome(i.state.jwt)){this.backendUrl=i.backendUrl.value;this.accessToken=i.state.jwt.value;if(b===m.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),c)}this.subscribeToSuperByofEvents()}else{throw Error("SuperByofHost pre-requisites not met.")}return[2]}))}))};e.prototype.disconnectedCallback=function(){clearTimeout(this.loadingTimeoutRef);this.unSubscribeFromSuperByofEvents()};e.prototype.render=function(){return n(r,null,n("sss-header-section",null),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))};e.prototype.byofLoadingTimeoutTriggered=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(b!==m.Loaded){throw Error("BYOF component failed to load.")}return[2]}))}))};return e}());a(h)}}}));
|