@flarehr/apollo-super-selection 1.3.18899 → 1.3.19033
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-4ca10ecd.js → p-026415b5.js} +1 -1
- package/dist/lib/apollo-super-selection/p-39f2bdf3.system.entry.js +69 -0
- package/dist/lib/apollo-super-selection/p-469c33ff.entry.js +14 -0
- package/dist/lib/apollo-super-selection/p-613cd290.entry.js +1 -0
- package/dist/lib/apollo-super-selection/{p-c60c8281.system.js → p-9c959cc0.system.js} +1 -1
- package/dist/lib/apollo-super-selection/p-bd6e6a8f.system.js +1 -1
- package/dist/lib/apollo-super-selection/p-c00d428d.system.entry.js +1 -0
- package/dist/lib/cjs/{custom-fund-choice.api-538e59d2.js → custom-fund-choice.api-0545c774.js} +34 -2
- package/dist/lib/cjs/sss-button_31.cjs.entry.js +25 -58
- package/dist/lib/cjs/sss-super-byof-host.cjs.entry.js +13 -1
- package/dist/lib/collection/components/super-byof/super-byof.js +14 -1
- package/dist/lib/esm/{custom-fund-choice.api-b7f9d60c.js → custom-fund-choice.api-1d1d018f.js} +34 -1
- package/dist/lib/esm/sss-button_31.entry.js +2 -35
- package/dist/lib/esm/sss-super-byof-host.entry.js +13 -1
- package/dist/lib/esm-es5/{custom-fund-choice.api-b7f9d60c.js → custom-fund-choice.api-1d1d018f.js} +1 -1
- package/dist/lib/esm-es5/sss-button_31.entry.js +1 -1
- package/dist/lib/esm-es5/sss-super-byof-host.entry.js +1 -1
- package/package.json +1 -1
- package/dist/lib/apollo-super-selection/p-6c830612.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-b237cac7.system.entry.js +0 -69
- package/dist/lib/apollo-super-selection/p-dc0abac1.entry.js +0 -1
- package/dist/lib/apollo-super-selection/p-e4862f8c.system.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,H as e}from"./p-db0bded8.js";import{E as i,a as o,O as r,l as a,b as n,S as m,e as d,c as h}from"./p-026415b5.js";import"./p-fdadb647.js";var u;!function(s){s[s.NotLoaded=1]="NotLoaded",s[s.Loaded=2]="Loaded"}(u||(u={}));let c=u.NotLoaded;const f=class{constructor(t){s(this,t),this.eventTrackingService=i.Instance,this.subscribeToSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.addEventListener(s,this.byofEventHandlers[s])},this.unSubscribeFromSuperByofEvents=()=>{for(const s in this.byofEventHandlers)document.removeEventListener(s,this.byofEventHandlers[s])},this.byofLoaded=async s=>("super-byof"===s.detail.sender&&(c=u.Loaded,clearTimeout(this.loadingTimeoutRef),this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:o.promotedFunds,defaultFundUsiSet:r.toUndefined(o.defaultFundUsi)})),Promise.resolve()),this.byofCompleted=async s=>{if("super-byof"===s.detail.sender){if(a.myOwnFundForm={fundUsi:r.fromNullable(s.detail.fundUsi),fundName:r.fromNullable(s.detail.fundName),memberNumber:r.fromNullable(s.detail.memberNumber),memberFirstName:r.fromNullable(s.detail.memberFirstName),memberFamilyName:r.fromNullable(s.detail.memberLastName)},o.isBringYourOwnFundCustomStepEnabled&&o.isUsingSuperCampaign)return void n.navigateInternally(this.history,m.MyOwnFundEngagementStep);n.navigateInternallyToStandardChoice({history:this.history,fundName:s.detail.fundName,fundDetails:{type:"myOwnFund",fundName:s.detail.fundName,fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:s.detail.fundUsi,memberNumber:s.detail.memberNumber,memberFirstName:s.detail.memberFirstName,memberFamilyName:s.detail.memberLastName,standardChoiceFormSignature:t},o.promotedFundsConfig);await d.submitCustomFundChoiceAsync(e)}})}},this.byofCancelled=async s=>{"super-byof"===s.detail.sender&&await n.navigateInternally(this.history,m.ChoicePage)},this.byofEventHandlers={"byof-loaded":this.byofLoaded.bind(this),"byof-completed":this.byofCompleted.bind(this),"byof-cancelled":this.byofCancelled.bind(this)}}async componentWillLoad(){if(!r.isSome(o.backendUrl)||!r.isSome(o.state.jwt))throw Error("SuperByofHost pre-requisites not met.");this.backendUrl=o.backendUrl.value,this.accessToken=o.state.jwt.value,c===u.NotLoaded&&(this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),3e4)),this.subscribeToSuperByofEvents()}disconnectedCallback(){clearTimeout(this.loadingTimeoutRef),this.unSubscribeFromSuperByofEvents()}render(){return t(e,null,t("sss-header-section",null),t("div",{class:"flex justify-center mt-11"},t("sss-custom-fund",null,t("apollo-super-byof",{"backend-url":this.backendUrl,"access-token":this.accessToken}))))}async byofLoadingTimeoutTriggered(){if(c!==u.Loaded)throw Error("BYOF component failed to load.")}};h(f);export{f as sss_super_byof_host}
|
|
@@ -1 +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 u(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(u,a)}s((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,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.e;n=e.f;r=e.h},function(e){i=e.A}],execute:function(){e({S:void 0,c:l,h:le,j:ae,k:pe,l:he,p:void 0,t:f,v:c});var o=e("i",(function(e){return e._tag==="Some"}));var u=e("g",(function(e){return e._tag==="None"}));var a=e("n",{_tag:"None"});var s=e("s",(function(e){return{_tag:"Some",value:e}}));function c(e){return e==null?a:s(e)}function f(e){return u(e)?undefined:e.value}function l(e){i.injectProps(e,["history","location"])}function p(){d({type:"appReady"})}function d(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function h(e,t){d({type:"contentResized",height:e,width:t})}function v(e){d({type:"pageNavigated",url:e})}function m(){d({type:"complete"})}function g(){d({type:"submitSuccess"})}var y=e("q",{appReady:p,resize:h,navigation:v,complete:m,submitSuccess:g});var b=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var w=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var _=function(e){return!("isConnected"in e)||e.isConnected};var S=w((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(_))}}),2e3);var F=function(e){var r=e.on;var i=new Map;if(typeof t==="function"){r("dispose",(function(){i.clear()}));r("get",(function(e){var n=t();if(n){b(i,e,n)}}));r("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}S(i)}));r("reset",(function(){i.forEach((function(e){return e.forEach(n)}));S(i)}))}};var C=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 i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(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){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){E(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};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){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:s,get:u,set:a,on:c,onChange:f,use:l,dispose:o,reset:i}};var E=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var P=e("d",(function(e,t){var n=C(e,t);F(n);return n}));var A={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var N=P(A).state;e("m",N);var O;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(O||(O=e("S",{})));var k=e("r",[r("stencil-route",{url:O.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:O.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:O.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:O.MyOwnFund,component:"sss-super-byof-host"}),r("stencil-route",{url:O.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:O.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:O.Prefill,component:"sss-prefill"}),r("stencil-route",{url:O.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:O.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:O.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:O.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:O.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:O.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:O.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:O.Success,component:"sss-success"})]);function D(e,t,n){return n={path:t,exports:{},require:function(e,t){return I()}},e(n,n.exports),n.exports}function I(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var M=D((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 i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function u(e,t,n,r,i,o,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 n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(o(i(r(n(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 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 l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=p;function d(e,t,n,r,i,o,u,a,s,c,f,l,p,d,h,v,m,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 i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return s(a(u(o(i(r(n(t(e))))))));case 10:return c(s(a(u(o(i(r(n(t(e)))))))));case 11:return f(c(s(a(u(o(i(r(n(t(e))))))))));case 12:return l(f(c(s(a(u(o(i(r(n(t(e)))))))))));case 13:return p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))));case 14:return d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))));case 15:return h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))));case 16:return v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(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 v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var R=e("O",D((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 i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function u(e){return function(n){return e(n)?t.some(n):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 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 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(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 o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return M.pipe(e,t.map(n))};var g=function(e,n){return M.pipe(e,t.ap(n))};var y=function(e,n){return M.pipe(e,t.chain(n))};var b=function(e,n,r){return M.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return M.pipe(e,n(t))}};var _=function(e,n,r){return M.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return M.pipe(e,n(t))}};var F=function(e,n){return M.pipe(e,t.alt(n))};var C=function(e,n){return M.pipe(e,t.filter(n))};var E=function(e,n){return M.pipe(e,t.filterMap(n))};var P=function(e,n){return M.pipe(e,t.extend(n))};var A=function(e,n){return M.pipe(e,t.partition(n))};var N=function(e,n){return M.pipe(e,t.partitionMap(n))};var O=function(e){var n=t.wither(e);return function(e,t){return M.pipe(e,n(t))}};var k=function(e){var n=t.wilt(e);return function(e,t){return M.pipe(e,n(t))}};var D=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=D;var I=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=I;var R=function(e){return M.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=R;var j=function(e){return M.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=j;t.of=t.some;var U=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=U;var T=function(e){return t.chain((function(n){return M.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=T;t.flatten=t.chain(M.identity);var B=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var q=function(){return t.none};t.throwError=q;var L=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=L;t.duplicate=t.extend(M.identity);var W=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=W;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var J={left:t.none,right:t.none};var K=function(e){var n=M.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?J:n.value};t.separate=K;var Y=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=Y;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=Q;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var G=function(e){return M.flow(t.map(e),t.separate)};t.partitionMap=G;var H=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=H;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var ee=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=ee;t.URI="Option";function te(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=te;function ne(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=ne;function re(e){return{equals:ne(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=re;function ie(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=ie;function oe(e){return{concat:ie(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=oe;function ue(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function se(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=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:_};t.Alt={URI:t.URI,map:m,alt:F};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:P};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N,wither:O,wilt:k};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:P,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:A,partitionMap:N,wither:O,wilt:k,throwError:t.throwError};function ce(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ce;function fe(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=fe;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(M.bindTo_(e))};t.bindTo=pe;var de=function(e,n){return t.chain((function(r){return M.pipe(n(r),t.map((function(t){return M.bind_(r,e,t)})))}))};t.bind=de;var he=function(e,n){return M.flow(t.map((function(t){return function(n){return M.bind_(t,e,n)}})),t.ap(n))};t.apS=he;var ve=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(M.identity)})));function j(e){this.message=e}j.prototype=new Error,j.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new j("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?u+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);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(U(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 U(t)}}function B(e){this.message=e}function x(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(T(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}}B.prototype=new Error,B.prototype.name="InvalidTokenError";var q=undefined&&undefined.__assign||function(){q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return q.apply(this,arguments)};var L=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var W=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=q({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?L(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=W(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var V=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var z={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,i=r===void 0?true:r,o=n.instance,u=o===void 0?false:o;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return u&&c?new(c.bind.apply(c,V([void 0],a))):c}};var J=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Y.callbacks.delete(t);if(Y.callbacks.size<1){Y.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var K=function(e,t){if(!Y.observer&&e&&t){Y.observer=new t((function(t){Y.callbacks.forEach((function(n,r){J(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Y.observer};var Y={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=z.polyfill("performance",{doThrow:false});var r=z.polyfill("PerformanceObserver",{doThrow:false});if(!K(n,r))return;if(!J(n,e,t,n)){if(Y.callbacks.size<1)Y.observer.observe({entryTypes:["resource","measure"]});Y.callbacks.set(e,t)}}};var Q=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var X=function(){function e(e){this.error=e}return e}();var G=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var u=new Map(n);var a=W(z.defaults,o);var s=z.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=Q(i)(z.polyfill("fetch"))(t,a);var l=f.catch((function(e){throw new X(e)})).then((function(e){c.clear();if(!e.ok){return e[z.errorType||"text"]().then((function(t){var n=new Error(t);n[z.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var p=function(t){return t.catch((function(t){c.clear();var n=t instanceof X?t.error:t;if(t instanceof X&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};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){f.then((function(t){return Y.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){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 r.reduce((function(t,n){return n(t,e)}),h)};var H=undefined&&undefined.__assign||function(){H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return H.apply(this,arguments)};var $=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var Z="application/json";var ee="Content-Type";var te=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}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,i=r===void 0?this._url:r,o=n.options,u=o===void 0?this._options:o,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,l=n.middlewares,p=l===void 0?this._middlewares:l,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(i,H({},u),new Map(s),$(f),$(p),$(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}z.defaults=t?W(z.defaults,e):e;return this};e.prototype.errorType=function(e){z.errorType=e;return this};e.prototype.polyfills=function(e){z.polyfills=H(H({},z.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?W(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:ne(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:W(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[ee]=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:H(H({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:$(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:$(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:$(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 i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==ee.toLowerCase()||n.startsWith(Z)})))?this.json(n):this.body(n);i=i.options(H(H({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return G(o)};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:H(H({},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()===ee.toLowerCase()&&n.startsWith(Z)})))===null||t===void 0?void 0:t[1];return this.content(n||Z).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(re(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:oe(e)).content("application/x-www-form-urlencoded")};return e}();var ne=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=z.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var u=0,a=t[o];u<a.length;u++){var s=a[u];i.append(o,s)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function re(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=z.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+i+"]":i;if(o instanceof Array){for(var a=0,s=o;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){re(o,t,n,$(r,[i]))}}else{n.append(u,o)}}));return n}function ie(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function oe(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return ie(t,e)})).join("&")}return ie(t,n)})).join("&")}var ue=e("u",te.factory);ue["default"]=te.factory;function ae(){var e=Se.jwt;var t=Se.profileId;var n=Se.accountIdOrDefault;var r=Se.partnerIdOrDefault;return ue(Se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var se=e("o",{fundId:"slate",usi:"32367272075001"});function ce(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 fe(e){switch(e.kind){case"slate":return se.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 le(e){switch(e.kind){case"slate":return se.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 pe(e){switch(e.kind){case"Promoted":return s(fe(e.promoted));case"MyOwnFund":return s(e.myOwnFund.usi);case"SMSF":return a;case"Default":return s(e.default.usi);case"PromotedDefault":return s(e.promotedDefault.usi);case"DefinedBenefits":return s(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.usi);default:return a}}function de(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 he(e){switch(e.kind){case"Promoted":return s(de(e.promoted));case"MyOwnFund":return s(e.myOwnFund.memberNumber);case"DefinedBenefits":return s(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return a;default:return a}}function ve(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 me=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,ae().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,ae().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,ae().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){ve(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":ce(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,ae().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,ae().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 i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var ge=e("e",new me);var ye;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(ye||(ye=e("p",{})));var be=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 we={apiBaseUrl:R.none,appBaseUrl:R.none,profileId:R.none,jwt:R.none,superBuyer:R.none,superChoicePrefill:R.none,promotedFunds:R.none,accountConfiguration:R.none,profileConfiguration:R.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:R.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:ye.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var _e=function(){function e(){var e=this;var t=P(we),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=M.pipe(t,R.chain((function(e){return R.fromNullable(x(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(R.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(R.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(R.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(R.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 R.fromNullable(this.superCampaignState.DefaultFundPosition)}return R.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:R.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(R.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=M.pipe(this._state.profileConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten);if(R.isSome(e)){return e}return M.pipe(this._state.accountConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return M.pipe(this._state.accountConfiguration,R.map((function(e){return e.accountId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return M.pipe(this._state.superBuyer,R.map((function(e){return e.partnerId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(R.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,ge.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=R.fromNullable(e.accountConfiguration);this._state.profileConfiguration=R.fromNullable(e.profileConfiguration);this._state.superBuyer=R.fromNullable(e.superBuyer);this._state.promotedFunds=R.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=R.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=R.fromNullable(e.isDefinedBenefitsEligible);if(R.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 ge.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===ye.Loaded){this._state.superCampaignComponentStatus=ye.Loaded;this._state.superCampaignState=new be}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,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===ye.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 R.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 _e);var Fe=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);y.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){N.handleSubmitFn=e.handleSubmitFn;N.fundName=e.fundName;N.fundDetails=e.fundDetails;N.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,O.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Se.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Ce=e("b",new Fe);var Ee=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("analytics-events").post(e).res()]}))}))};return e}();var Pe=function(){function e(){this.eventTrackingApi=Ee.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();e("E",Pe);var Ae=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var Ne=e("f",new Ae)}}}));
|
|
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 u(e){try{s(r.next(e))}catch(e){o(e)}}function a(e){try{s(r["throw"](e))}catch(e){o(e)}}function s(e){e.done?n(e.value):i(e.value).then(u,a)}s((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,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-71ca4cf8.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.e;n=e.f;r=e.h},function(e){i=e.A}],execute:function(){e({C:void 0,S:void 0,c:l,g:le,h:ae,j:pe,k:he,p:void 0,t:f,v:c});var o=e("i",(function(e){return e._tag==="Some"}));var u=e("f",(function(e){return e._tag==="None"}));var a=e("n",{_tag:"None"});var s=e("s",(function(e){return{_tag:"Some",value:e}}));function c(e){return e==null?a:s(e)}function f(e){return u(e)?undefined:e.value}function l(e){i.injectProps(e,["history","location"])}function p(){d({type:"appReady"})}function d(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function h(e,t){d({type:"contentResized",height:e,width:t})}function v(e){d({type:"pageNavigated",url:e})}function m(){d({type:"complete"})}function g(){d({type:"submitSuccess"})}var y=e("q",{appReady:p,resize:h,navigation:v,complete:m,submitSuccess:g});var b=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var w=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var _=function(e){return!("isConnected"in e)||e.isConnected};var S=w((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(_))}}),2e3);var F=function(e){var r=e.on;var i=new Map;if(typeof t==="function"){r("dispose",(function(){i.clear()}));r("get",(function(e){var n=t();if(n){b(i,e,n)}}));r("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}S(i)}));r("reset",(function(){i.forEach((function(e){return e.forEach(n)}));S(i)}))}};var C=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 i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var o=function(){r.dispose.forEach((function(e){return e()}));i()};var u=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var a=function(e,i){var o=n.get(e);if(t(i,o,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,o)}))}};var s=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return u(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){a(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){E(r[e],t)}};var f=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};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){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:s,get:u,set:a,on:c,onChange:f,use:l,dispose:o,reset:i}};var E=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var A=function(e,t){var n=C(e,t);F(n);return n};var P={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var N=A(P).state;e("m",N);var O;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(O||(O=e("S",{})));var k=e("r",[r("stencil-route",{url:O.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:O.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:O.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:O.MyOwnFund,component:"sss-super-byof-host"}),r("stencil-route",{url:O.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:O.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:O.Prefill,component:"sss-prefill"}),r("stencil-route",{url:O.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:O.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:O.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:O.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:O.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:O.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:O.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:O.Success,component:"sss-success"})]);function D(e,t,n){return n={path:t,exports:{},require:function(e,t){return M()}},e(n,n.exports),n.exports}function M(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var I=D((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 i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function o(e){return function(t,n){return e(n,t)}}t.flip=o;function u(e,t,n,r,i,o,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 n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return s(a(u(o(i(r(n(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 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 l(e){return function(t){return e.apply(void 0,t)}}t.tupled=l;function p(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=p;function d(e,t,n,r,i,o,u,a,s,c,f,l,p,d,h,v,m,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 i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return s(a(u(o(i(r(n(t(e))))))));case 10:return c(s(a(u(o(i(r(n(t(e)))))))));case 11:return f(c(s(a(u(o(i(r(n(t(e))))))))));case 12:return l(f(c(s(a(u(o(i(r(n(t(e)))))))))));case 13:return p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))));case 14:return d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))));case 15:return h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))));case 16:return v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))));case 17:return m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(d(p(l(f(c(s(a(u(o(i(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 v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var R=e("O",D((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 i=function(e){return{_tag:"Some",value:e}};t.some=i;function o(e){return e==null?t.none:t.some(e)}t.fromNullable=o;function u(e){return function(n){return e(n)?t.some(n):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 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 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(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 o(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:o(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return I.pipe(e,t.map(n))};var g=function(e,n){return I.pipe(e,t.ap(n))};var y=function(e,n){return I.pipe(e,t.chain(n))};var b=function(e,n,r){return I.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return I.pipe(e,n(t))}};var _=function(e,n,r){return I.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return I.pipe(e,n(t))}};var F=function(e,n){return I.pipe(e,t.alt(n))};var C=function(e,n){return I.pipe(e,t.filter(n))};var E=function(e,n){return I.pipe(e,t.filterMap(n))};var A=function(e,n){return I.pipe(e,t.extend(n))};var P=function(e,n){return I.pipe(e,t.partition(n))};var N=function(e,n){return I.pipe(e,t.partitionMap(n))};var O=function(e){var n=t.wither(e);return function(e,t){return I.pipe(e,n(t))}};var k=function(e){var n=t.wilt(e);return function(e,t){return I.pipe(e,n(t))}};var D=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=D;var M=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=M;var R=function(e){return I.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=R;var j=function(e){return I.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=j;t.of=t.some;var U=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=U;var T=function(e){return t.chain((function(n){return I.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=T;t.flatten=t.chain(I.identity);var B=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=B;t.alt=t.altW;var x=function(){return t.none};t.zero=x;var q=function(){return t.none};t.throwError=q;var L=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=L;t.duplicate=t.extend(I.identity);var W=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=W;var V=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=V;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var J={left:t.none,right:t.none};var K=function(e){var n=I.pipe(e,t.map((function(e){return{left:s(e),right:c(e)}})));return t.isNone(n)?J:n.value};t.separate=K;var Y=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=Y;var Q=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=Q;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var G=function(e){return I.flow(t.map(e),t.separate)};t.partitionMap=G;var H=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=H;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var ee=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=ee;t.URI="Option";function te(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=te;function ne(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=ne;function re(e){return{equals:ne(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=re;function ie(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=ie;function oe(e){return{concat:ie(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=oe;function ue(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ue;function ae(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=ae;function se(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=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:_};t.Alt={URI:t.URI,map:m,alt:F};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:F,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:A};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N,wither:O,wilt:k};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:_,traverse:S,sequence:t.sequence,zero:t.zero,alt:F,extend:A,compact:t.compact,separate:t.separate,filter:C,filterMap:E,partition:P,partitionMap:N,wither:O,wilt:k,throwError:t.throwError};function ce(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ce;function fe(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=fe;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var pe=function(e){return t.map(I.bindTo_(e))};t.bindTo=pe;var de=function(e,n){return t.chain((function(r){return I.pipe(n(r),t.map((function(t){return I.bind_(r,e,t)})))}))};t.bind=de;var he=function(e,n){return I.flow(t.map((function(t){return function(n){return I.bind_(t,e,n)}})),t.ap(n))};t.apS=he;var ve=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var o=e(i,n[i]);if(t.isNone(o)){return t.none}r.push(o.value)}return t.some(r)}};t.traverseArrayWithIndex=ve;var me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(I.identity)})));function j(e){this.message=e}j.prototype=new Error,j.prototype.name="InvalidCharacterError";var U="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new j("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?u+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);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(U(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 U(t)}}function B(e){this.message=e}function x(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(T(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}}B.prototype=new Error,B.prototype.name="InvalidTokenError";var q=undefined&&undefined.__assign||function(){q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return q.apply(this,arguments)};var L=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var W=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=q({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?L(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=W(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var V=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var z={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,i=r===void 0?true:r,o=n.instance,u=o===void 0?false:o;var a=[];for(var s=2;s<arguments.length;s++){a[s-2]=arguments[s]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return u&&c?new(c.bind.apply(c,V([void 0],a))):c}};var J=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);Y.callbacks.delete(t);if(Y.callbacks.size<1){Y.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var K=function(e,t){if(!Y.observer&&e&&t){Y.observer=new t((function(t){Y.callbacks.forEach((function(n,r){J(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return Y.observer};var Y={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=z.polyfill("performance",{doThrow:false});var r=z.polyfill("PerformanceObserver",{doThrow:false});if(!K(n,r))return;if(!J(n,e,t,n)){if(Y.callbacks.size<1)Y.observer.observe({entryTypes:["resource","measure"]});Y.callbacks.set(e,t)}}};var Q=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var X=function(){function e(e){this.error=e}return e}();var G=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,o=e._options;var u=new Map(n);var a=W(z.defaults,o);var s=z.polyfill("AbortController",{doThrow:false,instance:true});if(!a["signal"]&&s){a["signal"]=s.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var f=Q(i)(z.polyfill("fetch"))(t,a);var l=f.catch((function(e){throw new X(e)})).then((function(e){c.clear();if(!e.ok){return e[z.errorType||"text"]().then((function(t){var n=new Error(t);n[z.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var p=function(t){return t.catch((function(t){c.clear();var n=t instanceof X?t.error:t;if(t instanceof X&&u.has("__fromFetch"))return u.get("__fromFetch")(n,e);else if(u.has(n.status))return u.get(n.status)(n,e);else if(u.has(n.name))return u.get(n.name)(n,e);else throw n}))};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){f.then((function(t){return Y.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){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 r.reduce((function(t,n){return n(t,e)}),h)};var H=undefined&&undefined.__assign||function(){H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return H.apply(this,arguments)};var $=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),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r};var Z="application/json";var ee="Content-Type";var te=function(){function e(e,t,n,r,i,o){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(o===void 0){o=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=o}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,i=r===void 0?this._url:r,o=n.options,u=o===void 0?this._options:o,a=n.catchers,s=a===void 0?this._catchers:a,c=n.resolvers,f=c===void 0?this._resolvers:c,l=n.middlewares,p=l===void 0?this._middlewares:l,d=n.deferredChain,h=d===void 0?this._deferredChain:d;return new e(i,H({},u),new Map(s),$(f),$(p),$(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}z.defaults=t?W(z.defaults,e):e;return this};e.prototype.errorType=function(e){z.errorType=e;return this};e.prototype.polyfills=function(e){z.polyfills=H(H({},z.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?W(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:ne(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:W(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[ee]=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:H(H({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:$(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:$(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:$(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 i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==ee.toLowerCase()||n.startsWith(Z)})))?this.json(n):this.body(n);i=i.options(H(H({},t),{method:e}));var o=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return G(o)};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:H(H({},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()===ee.toLowerCase()&&n.startsWith(Z)})))===null||t===void 0?void 0:t[1];return this.content(n||Z).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(re(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:oe(e)).content("application/x-www-form-urlencoded")};return e}();var ne=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=z.polyfill("URLSearchParams",{instance:true});for(var o in t){if(t[o]instanceof Array){for(var u=0,a=t[o];u<a.length;u++){var s=a[u];i.append(o,s)}}else{i.append(o,t[o])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function re(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=z.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],o=e[1];var u=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);u=u?u+"["+i+"]":i;if(o instanceof Array){for(var a=0,s=o;a<s.length;a++){var c=s[a];n.append(u+"[]",c)}}else if(t&&typeof o==="object"&&(!(t instanceof Array)||!t.includes(i))){if(o!==null){re(o,t,n,$(r,[i]))}}else{n.append(u,o)}}));return n}function ie(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function oe(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return ie(t,e)})).join("&")}return ie(t,n)})).join("&")}var ue=e("u",te.factory);ue["default"]=te.factory;function ae(){var e=Se.jwt;var t=Se.profileId;var n=Se.accountIdOrDefault;var r=Se.partnerIdOrDefault;return ue(Se.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var se=e("o",{fundId:"slate",usi:"32367272075001"});function ce(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 fe(e){switch(e.kind){case"slate":return se.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 le(e){switch(e.kind){case"slate":return se.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 pe(e){switch(e.kind){case"Promoted":return s(fe(e.promoted));case"MyOwnFund":return s(e.myOwnFund.usi);case"SMSF":return a;case"Default":return s(e.default.usi);case"PromotedDefault":return s(e.promotedDefault.usi);case"DefinedBenefits":return s(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.usi);default:return a}}function de(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 he(e){switch(e.kind){case"Promoted":return s(de(e.promoted));case"MyOwnFund":return s(e.myOwnFund.memberNumber);case"DefinedBenefits":return s(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return a;default:return a}}function ve(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 me=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,ae().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,ae().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,ae().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){ve(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":ce(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,ae().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,ae().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 i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var ge=e("d",new me);var ye;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(ye||(ye=e("p",{})));var be=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 we={apiBaseUrl:R.none,appBaseUrl:R.none,profileId:R.none,jwt:R.none,superBuyer:R.none,superChoicePrefill:R.none,promotedFunds:R.none,accountConfiguration:R.none,profileConfiguration:R.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:R.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:ye.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var _e=function(){function e(){var e=this;var t=A(we),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=I.pipe(t,R.chain((function(e){return R.fromNullable(x(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(R.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(R.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(R.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(R.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 R.fromNullable(this.superCampaignState.DefaultFundPosition)}return R.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:R.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(R.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=I.pipe(this._state.profileConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten);if(R.isSome(e)){return e}return I.pipe(this._state.accountConfiguration,R.map((function(e){return R.fromNullable(e.defaultFundUsi)})),R.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return I.pipe(this._state.accountConfiguration,R.map((function(e){return e.accountId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return I.pipe(this._state.superBuyer,R.map((function(e){return e.partnerId})),R.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(R.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,ge.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=R.fromNullable(e.accountConfiguration);this._state.profileConfiguration=R.fromNullable(e.profileConfiguration);this._state.superBuyer=R.fromNullable(e.superBuyer);this._state.promotedFunds=R.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=R.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=R.fromNullable(e.isDefinedBenefitsEligible);if(R.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 ge.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===ye.Loaded){this._state.superCampaignComponentStatus=ye.Loaded;this._state.superCampaignState=new be}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,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===ye.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 R.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 _e);var Fe=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);y.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){N.handleSubmitFn=e.handleSubmitFn;N.fundName=e.fundName;N.fundDetails=e.fundDetails;N.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,O.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=Se.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Ce=e("b",new Fe);var Ee;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(Ee||(Ee=e("C",{})));var Ae={myOwnFundForm:{fundUsi:a,fundName:a,memberNumber:a,memberFirstName:a,memberFamilyName:a},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var Pe=A(Ae),Ne=Pe.state,Oe=Pe.reset;e("l",Ne);var ke=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("analytics-events").post(e).res()]}))}))};return e}();var De=function(){function e(){this.eventTrackingApi=ke.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();e("E",De);var Me=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,ae().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,ae().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var Ie=e("e",new Me)}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-
|
|
1
|
+
System.register(["./p-71ca4cf8.system.js","./p-14885f78.system.js","./p-15f0e5eb.system.js"],(function(e,s){"use strict";var t,i,r;return{setters:[function(e){t=e.p;i=e.b},function(){},function(e){r=e.g}],execute:function(){var e=function(){var e=s.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){r();return i([["p-c00d428d.system",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-53b231f0.system",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-2b42304a.system",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-22939048.system",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-e957b393.system",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-c775c0e4.system",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-39f2bdf3.system",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[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-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[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-loading-page"],[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-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[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"]}]]]],e)}))}}}));
|
|
@@ -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-9c959cc0.system.js","./p-97188c78.system.js"],(function(e){"use strict";var t,n,r,i,o,a,s,u,d,l,c;return{setters:[function(e){t=e.r;n=e.h;r=e.H},function(e){i=e.E;o=e.a;a=e.O;s=e.l;u=e.b;d=e.S;l=e.e;c=e.c},function(){}],execute:function(){var f=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=i.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:o.promotedFunds,defaultFundUsiSet:a.toUndefined(o.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"){s.myOwnFundForm={fundUsi:a.fromNullable(e.detail.fundUsi),fundName:a.fromNullable(e.detail.fundName),memberNumber:a.fromNullable(e.detail.memberNumber),memberFirstName:a.fromNullable(e.detail.memberFirstName),memberFamilyName:a.fromNullable(e.detail.memberLastName)};if(o.isBringYourOwnFundCustomStepEnabled&&o.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},o.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(a.isSome(o.backendUrl)&&a.isSome(o.state.jwt)){this.backendUrl=o.backendUrl.value;this.accessToken=o.state.jwt.value;if(b===m.NotLoaded){this.loadingTimeoutRef=setTimeout(this.byofLoadingTimeoutTriggered.bind(this),f)}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}());c(h)}}}));
|
package/dist/lib/cjs/{custom-fund-choice.api-538e59d2.js → custom-fund-choice.api-0545c774.js}
RENAMED
|
@@ -2969,6 +2969,38 @@ class NavigationService {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
const navigationService = new NavigationService();
|
|
2971
2971
|
|
|
2972
|
+
(function (CustomFundTypes) {
|
|
2973
|
+
CustomFundTypes["MyOwnFund"] = "Existing super fund";
|
|
2974
|
+
CustomFundTypes["DefaultFund"] = "Default super fund";
|
|
2975
|
+
CustomFundTypes["SelfManagedFund"] = "Self-managed super fund";
|
|
2976
|
+
CustomFundTypes["FeaturedFunds"] = "Featured super funds";
|
|
2977
|
+
})(exports.CustomFundTypes || (exports.CustomFundTypes = {}));
|
|
2978
|
+
const initialStateCustomFund = {
|
|
2979
|
+
myOwnFundForm: {
|
|
2980
|
+
fundUsi: none,
|
|
2981
|
+
fundName: none,
|
|
2982
|
+
memberNumber: none,
|
|
2983
|
+
memberFirstName: none,
|
|
2984
|
+
memberFamilyName: none
|
|
2985
|
+
},
|
|
2986
|
+
selfManagedFundForm: {
|
|
2987
|
+
fundName: '',
|
|
2988
|
+
fundAbn: '',
|
|
2989
|
+
fundEsa: '',
|
|
2990
|
+
addressLine1: '',
|
|
2991
|
+
addressLine2: '',
|
|
2992
|
+
state: '',
|
|
2993
|
+
postcode: '',
|
|
2994
|
+
city: '',
|
|
2995
|
+
bankAccountName: '',
|
|
2996
|
+
bsb: '',
|
|
2997
|
+
bankAccountNumber: '',
|
|
2998
|
+
memberFirstName: '',
|
|
2999
|
+
memberFamilyName: ''
|
|
3000
|
+
}
|
|
3001
|
+
};
|
|
3002
|
+
const { state: state$1, reset } = createStore(initialStateCustomFund);
|
|
3003
|
+
|
|
2972
3004
|
class EventTrackingApi {
|
|
2973
3005
|
static get Instance() {
|
|
2974
3006
|
return this.instance || (this.instance = new this());
|
|
@@ -3138,7 +3170,6 @@ const customFundChoiceApi = new CustomFundChoiceApi();
|
|
|
3138
3170
|
exports.EventTrackingService = EventTrackingService;
|
|
3139
3171
|
exports.Option = Option;
|
|
3140
3172
|
exports.buildBackendApiClient = buildBackendApiClient;
|
|
3141
|
-
exports.createStore = createStore;
|
|
3142
3173
|
exports.customFundChoiceApi = customFundChoiceApi;
|
|
3143
3174
|
exports.factory = factory;
|
|
3144
3175
|
exports.fromNullable = fromNullable;
|
|
@@ -3153,7 +3184,8 @@ exports.navigationService = navigationService;
|
|
|
3153
3184
|
exports.none = none;
|
|
3154
3185
|
exports.slate = slate;
|
|
3155
3186
|
exports.some = some;
|
|
3156
|
-
exports.state = state;
|
|
3187
|
+
exports.state = state$1;
|
|
3188
|
+
exports.state$1 = state;
|
|
3157
3189
|
exports.superSelectionApi = superSelectionApi;
|
|
3158
3190
|
exports.superSelectionAppService = superSelectionAppService;
|
|
3159
3191
|
exports.superSelectionAppStencilRoutes = superSelectionAppStencilRoutes;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-eb4f212f.js');
|
|
6
6
|
const datoramaAkita = require('./datorama-akita-6c9cb8fb.js');
|
|
7
|
-
const customFundChoice_api = require('./custom-fund-choice.api-
|
|
7
|
+
const customFundChoice_api = require('./custom-fund-choice.api-0545c774.js');
|
|
8
8
|
const activeRouter = require('./active-router-1f555f75.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -285,7 +285,7 @@ class TapSubscriber extends datoramaAkita.Subscriber {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
const AppVersion = '1.3.
|
|
288
|
+
const AppVersion = '1.3.19033';
|
|
289
289
|
|
|
290
290
|
class Lazy {
|
|
291
291
|
constructor(factory) {
|
|
@@ -877,41 +877,8 @@ const ChoiceRouter = class {
|
|
|
877
877
|
};
|
|
878
878
|
customFundChoice_api.injectHistory(ChoiceRouter);
|
|
879
879
|
|
|
880
|
-
var CustomFundTypes;
|
|
881
|
-
(function (CustomFundTypes) {
|
|
882
|
-
CustomFundTypes["MyOwnFund"] = "Existing super fund";
|
|
883
|
-
CustomFundTypes["DefaultFund"] = "Default super fund";
|
|
884
|
-
CustomFundTypes["SelfManagedFund"] = "Self-managed super fund";
|
|
885
|
-
CustomFundTypes["FeaturedFunds"] = "Featured super funds";
|
|
886
|
-
})(CustomFundTypes || (CustomFundTypes = {}));
|
|
887
|
-
const initialStateCustomFund = {
|
|
888
|
-
myOwnFundForm: {
|
|
889
|
-
fundUsi: customFundChoice_api.none,
|
|
890
|
-
fundName: customFundChoice_api.none,
|
|
891
|
-
memberNumber: customFundChoice_api.none,
|
|
892
|
-
memberFirstName: customFundChoice_api.none,
|
|
893
|
-
memberFamilyName: customFundChoice_api.none
|
|
894
|
-
},
|
|
895
|
-
selfManagedFundForm: {
|
|
896
|
-
fundName: '',
|
|
897
|
-
fundAbn: '',
|
|
898
|
-
fundEsa: '',
|
|
899
|
-
addressLine1: '',
|
|
900
|
-
addressLine2: '',
|
|
901
|
-
state: '',
|
|
902
|
-
postcode: '',
|
|
903
|
-
city: '',
|
|
904
|
-
bankAccountName: '',
|
|
905
|
-
bsb: '',
|
|
906
|
-
bankAccountNumber: '',
|
|
907
|
-
memberFirstName: '',
|
|
908
|
-
memberFamilyName: ''
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
const { state, reset } = customFundChoice_api.createStore(initialStateCustomFund);
|
|
912
|
-
|
|
913
880
|
const myOwnFundCustomOption = {
|
|
914
|
-
label: CustomFundTypes.MyOwnFund,
|
|
881
|
+
label: customFundChoice_api.CustomFundTypes.MyOwnFund,
|
|
915
882
|
value: customFundChoice_api.SuperSelectionAppRoutes.MyOwnFund
|
|
916
883
|
};
|
|
917
884
|
const CustomFund = class {
|
|
@@ -933,19 +900,19 @@ const CustomFund = class {
|
|
|
933
900
|
this.fundOptionsList = [
|
|
934
901
|
myOwnFundCustomOption,
|
|
935
902
|
{
|
|
936
|
-
label: CustomFundTypes.SelfManagedFund,
|
|
903
|
+
label: customFundChoice_api.CustomFundTypes.SelfManagedFund,
|
|
937
904
|
value: customFundChoice_api.SuperSelectionAppRoutes.SelfManagedFund
|
|
938
905
|
}
|
|
939
906
|
];
|
|
940
907
|
if (customFundChoice_api.superSelectionAppService.isFeaturedFundsEnabled &&
|
|
941
908
|
customFundChoice_api.superSelectionAppService.isUsingSuperCampaign) {
|
|
942
909
|
this.fundOptionsList.push({
|
|
943
|
-
label: CustomFundTypes.FeaturedFunds,
|
|
910
|
+
label: customFundChoice_api.CustomFundTypes.FeaturedFunds,
|
|
944
911
|
value: customFundChoice_api.SuperSelectionAppRoutes.FeaturedFunds
|
|
945
912
|
});
|
|
946
913
|
}
|
|
947
914
|
this.fundOptionsList.push({
|
|
948
|
-
label: CustomFundTypes.DefaultFund,
|
|
915
|
+
label: customFundChoice_api.CustomFundTypes.DefaultFund,
|
|
949
916
|
value: customFundChoice_api.SuperSelectionAppRoutes.DefaultFund
|
|
950
917
|
});
|
|
951
918
|
this.currentCustomFund =
|
|
@@ -1516,20 +1483,20 @@ const MyOwnFundEngagementStep = class {
|
|
|
1516
1483
|
async componentWillLoad() {
|
|
1517
1484
|
if (customFundChoice_api.superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
|
|
1518
1485
|
customFundChoice_api.superSelectionAppService.isUsingSuperCampaign &&
|
|
1519
|
-
customFundChoice_api.Option.isSome(state.myOwnFundForm.fundUsi) &&
|
|
1520
|
-
customFundChoice_api.Option.isSome(state.myOwnFundForm.fundName) &&
|
|
1521
|
-
customFundChoice_api.Option.isSome(state.myOwnFundForm.memberNumber) &&
|
|
1522
|
-
customFundChoice_api.Option.isSome(state.myOwnFundForm.memberFirstName) &&
|
|
1523
|
-
customFundChoice_api.Option.isSome(state.myOwnFundForm.memberFamilyName) &&
|
|
1486
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.state.myOwnFundForm.fundUsi) &&
|
|
1487
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.state.myOwnFundForm.fundName) &&
|
|
1488
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.state.myOwnFundForm.memberNumber) &&
|
|
1489
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.state.myOwnFundForm.memberFirstName) &&
|
|
1490
|
+
customFundChoice_api.Option.isSome(customFundChoice_api.state.myOwnFundForm.memberFamilyName) &&
|
|
1524
1491
|
customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.backendUrl) &&
|
|
1525
1492
|
customFundChoice_api.Option.isSome(customFundChoice_api.superSelectionAppService.state.jwt)) {
|
|
1526
1493
|
this.backendUrl = customFundChoice_api.superSelectionAppService.backendUrl.value;
|
|
1527
1494
|
this.accessToken = customFundChoice_api.superSelectionAppService.state.jwt.value;
|
|
1528
|
-
this.fundUsi = state.myOwnFundForm.fundUsi.value;
|
|
1529
|
-
this.fundName = state.myOwnFundForm.fundName.value;
|
|
1530
|
-
this.memberNumber = state.myOwnFundForm.memberNumber.value;
|
|
1531
|
-
this.memberFirstName = state.myOwnFundForm.memberFirstName.value;
|
|
1532
|
-
this.memberFamilyName = state.myOwnFundForm.memberFamilyName.value;
|
|
1495
|
+
this.fundUsi = customFundChoice_api.state.myOwnFundForm.fundUsi.value;
|
|
1496
|
+
this.fundName = customFundChoice_api.state.myOwnFundForm.fundName.value;
|
|
1497
|
+
this.memberNumber = customFundChoice_api.state.myOwnFundForm.memberNumber.value;
|
|
1498
|
+
this.memberFirstName = customFundChoice_api.state.myOwnFundForm.memberFirstName.value;
|
|
1499
|
+
this.memberFamilyName = customFundChoice_api.state.myOwnFundForm.memberFamilyName.value;
|
|
1533
1500
|
this.unSubscribeFromStepEvents();
|
|
1534
1501
|
this.subscribeToStepEvents();
|
|
1535
1502
|
customFundChoice_api.superSelectionAppService.hideFooterSection = true;
|
|
@@ -2632,7 +2599,7 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
2632
2599
|
window.removeEventListener('popstate', this.ignorePopState);
|
|
2633
2600
|
}
|
|
2634
2601
|
render() {
|
|
2635
|
-
return (index.h(index.Host, null, index.h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"), index.h("div", { class: "sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8" }, "Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."), index.h("div", { class: "flex justify-center mt-8 sm:mt-12" }, index.h("div", { class: "max-w-560" }, index.h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" }, this.renderLogo(), index.h("div", { class: "flex justify-between w-full" }, index.h("div", null, index.h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"), index.h("div", { class: "text-sm mt-2" }, customFundChoice_api.state.fundName)), index.h("div", { class: "grid content-center ml-4" }, index.h("sss-button", { testid: "change-fund-button", size: "xs", variant: "secondary", promiseFn: async () => {
|
|
2602
|
+
return (index.h(index.Host, null, index.h("div", { class: "text-2xl sm:text-3xl font-bold text-center" }, "Confirm your super choice"), index.h("div", { class: "sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8" }, "Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."), index.h("div", { class: "flex justify-center mt-8 sm:mt-12" }, index.h("div", { class: "max-w-560" }, index.h("div", { class: "p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row" }, this.renderLogo(), index.h("div", { class: "flex justify-between w-full" }, index.h("div", null, index.h("div", { class: "text-xs font-semibold text-gray-500 uppercase" }, "Nominated fund"), index.h("div", { class: "text-sm mt-2" }, customFundChoice_api.state$1.fundName)), index.h("div", { class: "grid content-center ml-4" }, index.h("sss-button", { testid: "change-fund-button", size: "xs", variant: "secondary", promiseFn: async () => {
|
|
2636
2603
|
await this.trackChangeRequestedAsync();
|
|
2637
2604
|
customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.ChoicePage);
|
|
2638
2605
|
} }, "Change")))), index.h("div", { class: "mt-4 p-4 sm:p-6 border shadow-sm rounded-lg" }, index.h("div", { class: "sm:text-lg font-bold" }, "Superannuation Standard Choice Form"), index.h("div", { class: "bg-blue-50 border-l-4 border-blue-400 p-4 mt-3" }, index.h("div", { class: "flex" }, index.h("div", { class: "flex-shrink-0" }, index.h("img", { class: "h-5 w-5", src: index.getAssetPath('assets/icon-information-circle.svg') })), index.h("div", { class: "ml-2" }, index.h("p", { class: "text-sm text-blue-800 leading-5" }, "Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))), index.h("form", { noValidate: true, onSubmit: (ev) => ev.preventDefault(), class: {
|
|
@@ -2665,35 +2632,35 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
2665
2632
|
promotedFundsShown: customFundChoice_api.superSelectionAppService.promotedFunds,
|
|
2666
2633
|
defaultFundUsiSet: customFundChoice_api.toUndefined(customFundChoice_api.superSelectionAppService.defaultFundUsi)
|
|
2667
2634
|
};
|
|
2668
|
-
switch (customFundChoice_api.state.fundDetails.type) {
|
|
2635
|
+
switch (customFundChoice_api.state$1.fundDetails.type) {
|
|
2669
2636
|
case 'default':
|
|
2670
2637
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2671
|
-
DefaultFund: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2638
|
+
DefaultFund: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2672
2639
|
});
|
|
2673
2640
|
break;
|
|
2674
2641
|
case 'myOwnFund':
|
|
2675
2642
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2676
|
-
MyOwnFund: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2643
|
+
MyOwnFund: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2677
2644
|
});
|
|
2678
2645
|
break;
|
|
2679
2646
|
case 'smsf':
|
|
2680
2647
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2681
|
-
Smsf: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2648
|
+
Smsf: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2682
2649
|
});
|
|
2683
2650
|
break;
|
|
2684
2651
|
case 'promoted':
|
|
2685
2652
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2686
|
-
PromotedFund: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2653
|
+
PromotedFund: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2687
2654
|
});
|
|
2688
2655
|
break;
|
|
2689
2656
|
case 'promotedDefault':
|
|
2690
2657
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2691
|
-
PromotedDefaultFund: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2658
|
+
PromotedDefaultFund: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2692
2659
|
});
|
|
2693
2660
|
break;
|
|
2694
2661
|
case 'promotedDefaultWithJoin':
|
|
2695
2662
|
await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({
|
|
2696
|
-
PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, customFundChoice_api.state.fundDetails), common)
|
|
2663
|
+
PromotedDefaultFundWithJoin: Object.assign(Object.assign({}, customFundChoice_api.state$1.fundDetails), common)
|
|
2697
2664
|
});
|
|
2698
2665
|
break;
|
|
2699
2666
|
case 'null':
|
|
@@ -2703,7 +2670,7 @@ const StandardChoiceFormInputDefaultFund = class {
|
|
|
2703
2670
|
async handleSubmitForm() {
|
|
2704
2671
|
this.formState = 'validated';
|
|
2705
2672
|
if (this.formElement.checkValidity()) {
|
|
2706
|
-
await customFundChoice_api.state.handleSubmitFn(this.standardChoiceFormSignature.trim());
|
|
2673
|
+
await customFundChoice_api.state$1.handleSubmitFn(this.standardChoiceFormSignature.trim());
|
|
2707
2674
|
customFundChoice_api.superSelectionAppService.markSuperSelectionAsSubmitted();
|
|
2708
2675
|
}
|
|
2709
2676
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-eb4f212f.js');
|
|
6
|
-
const customFundChoice_api = require('./custom-fund-choice.api-
|
|
6
|
+
const customFundChoice_api = require('./custom-fund-choice.api-0545c774.js');
|
|
7
7
|
require('./active-router-1f555f75.js');
|
|
8
8
|
|
|
9
9
|
const LoadWaitingTimeout = 30000;
|
|
@@ -41,6 +41,18 @@ const SuperByofHost = class {
|
|
|
41
41
|
};
|
|
42
42
|
this.byofCompleted = async (event) => {
|
|
43
43
|
if (event.detail.sender === 'super-byof') {
|
|
44
|
+
customFundChoice_api.state.myOwnFundForm = {
|
|
45
|
+
fundUsi: customFundChoice_api.Option.fromNullable(event.detail.fundUsi),
|
|
46
|
+
fundName: customFundChoice_api.Option.fromNullable(event.detail.fundName),
|
|
47
|
+
memberNumber: customFundChoice_api.Option.fromNullable(event.detail.memberNumber),
|
|
48
|
+
memberFirstName: customFundChoice_api.Option.fromNullable(event.detail.memberFirstName),
|
|
49
|
+
memberFamilyName: customFundChoice_api.Option.fromNullable(event.detail.memberLastName)
|
|
50
|
+
};
|
|
51
|
+
if (customFundChoice_api.superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
|
|
52
|
+
customFundChoice_api.superSelectionAppService.isUsingSuperCampaign) {
|
|
53
|
+
customFundChoice_api.navigationService.navigateInternally(this.history, customFundChoice_api.SuperSelectionAppRoutes.MyOwnFundEngagementStep);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
44
56
|
customFundChoice_api.navigationService.navigateInternallyToStandardChoice({
|
|
45
57
|
history: this.history,
|
|
46
58
|
fundName: event.detail.fundName,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Component, h, Host, Prop, State } from '@stencil/core';
|
|
2
2
|
import { injectHistory } from '@stencil/router';
|
|
3
|
-
import { isSome, toUndefined } from 'fp-ts/lib/Option';
|
|
3
|
+
import { fromNullable, isSome, toUndefined } from 'fp-ts/lib/Option';
|
|
4
4
|
import customFundChoiceApi from '../super-selection-app/funds/custom-fund/api/custom-fund-choice.api';
|
|
5
|
+
import customFundState from '../super-selection-app/funds/custom-fund/custom-fund.store';
|
|
5
6
|
import { EventTrackingService } from '../super-selection-app/services/event-tracking.service';
|
|
6
7
|
import navigationService from '../super-selection-app/services/navigation.service';
|
|
7
8
|
import { SuperSelectionAppRoutes } from '../super-selection-app/services/super-selection-app.routes';
|
|
@@ -39,6 +40,18 @@ export class SuperByofHost {
|
|
|
39
40
|
};
|
|
40
41
|
this.byofCompleted = async (event) => {
|
|
41
42
|
if (event.detail.sender === 'super-byof') {
|
|
43
|
+
customFundState.myOwnFundForm = {
|
|
44
|
+
fundUsi: fromNullable(event.detail.fundUsi),
|
|
45
|
+
fundName: fromNullable(event.detail.fundName),
|
|
46
|
+
memberNumber: fromNullable(event.detail.memberNumber),
|
|
47
|
+
memberFirstName: fromNullable(event.detail.memberFirstName),
|
|
48
|
+
memberFamilyName: fromNullable(event.detail.memberLastName)
|
|
49
|
+
};
|
|
50
|
+
if (superSelectionAppService.isBringYourOwnFundCustomStepEnabled &&
|
|
51
|
+
superSelectionAppService.isUsingSuperCampaign) {
|
|
52
|
+
navigationService.navigateInternally(this.history, SuperSelectionAppRoutes.MyOwnFundEngagementStep);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
42
55
|
navigationService.navigateInternallyToStandardChoice({
|
|
43
56
|
history: this.history,
|
|
44
57
|
fundName: event.detail.fundName,
|