@flarehr/apollo-super-selection 5.60.18811 → 5.62.19178
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-50f74f33.system.entry.js +69 -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/apollo-super-selection/p-c0d65783.entry.js +14 -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-6f4a2b84.entry.js +0 -14
- package/dist/lib/apollo-super-selection/p-776db5b8.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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-
|
|
1
|
+
import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-613cd290",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-69bbf1dd",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-4e871154",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-9d2a7c0e",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-33eca162",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-5c73c587",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-c0d65783",[[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))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const y=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function g(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=g((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,y,g){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return g(y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=g((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0,t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},y=function(n,e){return S.pipe(n,t.partitionMap(e))},g=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function D(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=D,t.getApplyMonoid=function(n){return{concat:D(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function D(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function C(n){this.message=n}(C.prototype=new Error).name="InvalidTokenError";var E=function(){return(E=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},P=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},T=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=E({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?P(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?T(n[u],t[u],e):t[u]);return r},R=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},I={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,R([void 0],s))):a}},O=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=I.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){O(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,I.polyfill("PerformanceObserver",{doThrow:!1}))&&(O(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},B=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),I.defaults=t?T(I.defaults,n):n,this},n.prototype.errorType=function(n){return I.errorType=n,this},n.prototype.polyfills=function(n){return I.polyfills=j(j({},I.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?T(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:N(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:T(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=T(I.defaults,u),s=I.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(I.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[I.errorType||"text"]().then((function(t){var e=new Error(t);throw e[I.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(V(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return x(n,t)})).join("&"):x(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),N=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=I.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function V(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=I.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&V(i,t,e,k(r,[u]))})),e}function x(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=B.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=B.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new C("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(D(n.split(".")[e]))}catch(n){throw new C("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};class K{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class Z{constructor(){this.eventTrackingApi=K.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const nn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{Z as E,F as O,w as S,Y as a,G as b,f as c,m as d,W as e,nn as f,i as g,$ as h,u as i,_ as j,J as k,z as l,v as m,o as n,L as o,X as p,l as q,y as r,s,a as t,q as u,c as v}
|
|
1
|
+
import{e as n,f as t,h as e}from"./p-db0bded8.js";import{A as r}from"./p-fdadb647.js";var u=function(n){return"Some"===n._tag},i=function(n){return"None"===n._tag},o={_tag:"None"},s=function(n){return{_tag:"Some",value:n}};function c(n){return null==n?o:s(n)}function a(n){return i(n)?void 0:n.value}function f(n){r.injectProps(n,["history","location"])}function d(n,t){void 0===t&&(t="*"),n.sender="flare",window.parent.postMessage(n,t)}const l={appReady:function(){d({type:"appReady"})},resize:function(n,t){d({type:"contentResized",height:n,width:t})},navigation:function(n){d({type:"pageNavigated",url:n})},complete:function(){d({type:"complete"})},submitSuccess:function(){d({type:"submitSuccess"})}},h=n=>!("isConnected"in n)||n.isConnected,p=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(h))})(...t)}),2e3)}})(),m=(e,r)=>{const u=((n,t=((n,t)=>n!==t))=>{let e=new Map(Object.entries(null!=n?n:{}));const r={dispose:[],get:[],set:[],reset:[]},u=()=>{e=new Map(Object.entries(null!=n?n:{})),r.reset.forEach((n=>n()))},i=n=>(r.get.forEach((t=>t(n))),e.get(n)),o=(n,u)=>{const i=e.get(n);t(u,i,n)&&(e.set(n,u),r.set.forEach((t=>t(n,u,i))))},s="undefined"==typeof Proxy?{}:new Proxy(n,{get:(n,t)=>i(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,e)=>(o(t,e),!0)}),c=(n,t)=>(r[n].push(t),()=>{((n,t)=>{const e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.length--)})(r[n],t)});return{state:s,get:i,set:o,on:c,onChange:(t,e)=>{const r=c("set",((n,r)=>{n===t&&e(r)})),u=c("reset",(()=>e(n[t])));return()=>{r(),u()}},use:(...n)=>n.forEach((n=>{n.set&&c("set",n.set),n.get&&c("get",n.get),n.reset&&c("reset",n.reset)})),dispose:()=>{r.dispose.forEach((n=>n())),u()},reset:u}})(e,r);return(({on:e})=>{const r=new Map;"function"==typeof n&&(e("dispose",(()=>{r.clear()})),e("get",(t=>{const e=n();e&&((n,t,e)=>{const r=n.get(t);r?r.includes(e)||r.push(e):n.set(t,[e])})(r,t,e)})),e("set",(n=>{const e=r.get(n);e&&r.set(n,e.filter(t)),p(r)})),e("reset",(()=>{r.forEach((n=>n.forEach(t))),p(r)})))})(u),u},{state:v}=m({handleSubmitFn:async function(){},fundName:"",fundDetails:{type:"null"},promotedFundId:void 0});var w;!function(n){n.ExistingChoicePage="/existing",n.SuperCampaign="/super-campaign",n.ChoicePage="/",n.MyOwnFund="/super-choice/my-own-fund/",n.MyOwnFundEngagementStep="/super-choice/my-own-fund-engagement/",n.Prefill="/super-choice/prefill/",n.PrefillInvalidMyOwnFundPage="/super-choice/sss-prefill-invalid-my-own-fund/",n.PrefillMyOwnFundPage="/super-choice/prefill-my-own-fund/",n.PrefillSMSFPage="/super-choice/prefill-smsf/",n.PrefillInvalidSMSFPage="/super-choice/prefill-invalid-smsf/",n.SelfManagedFund="/super-choice/smsf/",n.DefaultFund="/super-choice/default/",n.FeaturedFunds="/super-choice/featured-funds/",n.StandardChoice="/standard-choice/",n.Success="/success/"}(w||(w={}));const y=[e("stencil-route",{url:w.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{url:w.SuperCampaign,component:"sss-super-campaign-host"}),e("stencil-route",{exact:!0,url:w.ChoicePage,component:"sss-choice-router"}),e("stencil-route",{url:w.MyOwnFund,component:"sss-super-byof-host"}),e("stencil-route",{url:w.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),e("stencil-route",{url:w.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),e("stencil-route",{url:w.Prefill,component:"sss-prefill"}),e("stencil-route",{url:w.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),e("stencil-route",{url:w.PrefillSMSFPage,component:"sss-prefill-smsf"}),e("stencil-route",{url:w.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),e("stencil-route",{url:w.SelfManagedFund,component:"sss-super-smsf-host"}),e("stencil-route",{url:w.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:w.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),e("stencil-route",{url:w.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:w.Success,component:"sss-success"})];function g(n,t,e){return n(e={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var S=g((function(n,t){function e(n){return n}function r(n){return function(){return n}}function u(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(t,"__esModule",{value:!0}),t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0,t.identity=e,t.unsafeCoerce=e,t.not=function(n){return function(t){return!n(t)}},t.constant=r,t.constTrue=r(!0),t.constFalse=r(!1),t.constNull=r(null),t.constUndefined=r(void 0),t.constVoid=t.constUndefined,t.flip=function(n){return function(t,e){return n(e,t)}},t.flow=function(n,t,e,r,u,i,o,s,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return u(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return i(u(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(i(u(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return s(o(i(u(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(s(o(i(u(r(e(t(n.apply(this,arguments)))))))))}}},t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=function(n){return n+1},t.decrement=function(n){return n-1},t.absurd=u,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,u,i,o,s,c,a,f,d,l,h,p,m,v,w,y,g){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return u(r(e(t(n))));case 6:return i(u(r(e(t(n)))));case 7:return o(i(u(r(e(t(n))))));case 8:return s(o(i(u(r(e(t(n)))))));case 9:return c(s(o(i(u(r(e(t(n))))))));case 10:return a(c(s(o(i(u(r(e(t(n)))))))));case 11:return f(a(c(s(o(i(u(r(e(t(n))))))))));case 12:return d(f(a(c(s(o(i(u(r(e(t(n)))))))))));case 13:return l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))));case 14:return h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))));case 15:return p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))));case 16:return m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))));case 17:return v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))));case 18:return w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))));case 19:return y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n))))))))))))))))));case 20:return g(y(w(v(m(p(h(l(d(f(a(c(s(o(i(u(r(e(t(n)))))))))))))))))))}},t.hole=u,t.bind_=function(n,t,e){var r;return Object.assign({},n,((r={})[t]=e,r))},t.bindTo_=function(n){return function(t){var e;return(e={})[n]=t,e}}})),F=g((function(n,t){function e(n){return null==n?t.none:t.some(n)}function r(n){return"Right"===n._tag?t.none:t.some(n.left)}function u(n){return"Left"===n._tag?t.none:t.some(n.right)}function i(n){return function(r){return t.isNone(r)?t.none:e(n(r.value))}}Object.defineProperty(t,"__esModule",{value:!0}),t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0,t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0,t.isSome=function(n){return"Some"===n._tag},t.isNone=function(n){return"None"===n._tag},t.none={_tag:"None"},t.some=function(n){return{_tag:"Some",value:n}},t.fromNullable=e,t.fromPredicate=function(n){return function(e){return n(e)?t.some(e):t.none}},t.tryCatch=function(n){try{return t.some(n())}catch(n){return t.none}},t.getLeft=r,t.getRight=u,t.fromEither=u,t.fold=function(n,e){return function(r){return t.isNone(r)?n():e(r.value)}},t.toNullable=function(n){return t.isNone(n)?null:n.value},t.toUndefined=function(n){return t.isNone(n)?void 0:n.value},t.getOrElseW=function(n){return function(e){return t.isNone(e)?n():e.value}},t.getOrElse=t.getOrElseW,t.fromNullableK=function(n){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e(n.apply(void 0,t))}},t.mapNullable=i,t.chainNullableK=i;var o=function(n,e){return S.pipe(n,t.map(e))},s=function(n,e){return S.pipe(n,t.ap(e))},c=function(n,e){return S.pipe(n,t.chain(e))},a=function(n,e,r){return S.pipe(n,t.reduce(e,r))},f=function(n){var e=t.foldMap(n);return function(n,t){return S.pipe(n,e(t))}},d=function(n,e,r){return S.pipe(n,t.reduceRight(e,r))},l=function(n){var e=t.traverse(n);return function(n,t){return S.pipe(n,e(t))}},h=function(n,e){return S.pipe(n,t.alt(e))},p=function(n,e){return S.pipe(n,t.filter(e))},m=function(n,e){return S.pipe(n,t.filterMap(e))},v=function(n,e){return S.pipe(n,t.extend(e))},w=function(n,e){return S.pipe(n,t.partition(e))},y=function(n,e){return S.pipe(n,t.partitionMap(e))},g=function(n){var e=t.wither(n);return function(n,t){return S.pipe(n,e(t))}},F=function(n){var e=t.wilt(n);return function(n,t){return S.pipe(n,e(t))}};t.map=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e.value))}},t.ap=function(n){return function(e){return t.isNone(e)||t.isNone(n)?t.none:t.some(e.value(n.value))}},t.apFirst=function(n){return S.flow(t.map((function(n){return function(){return n}})),t.ap(n))},t.apSecond=function(n){return S.flow(t.map((function(){return function(n){return n}})),t.ap(n))},t.of=t.some,t.chain=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.chainFirst=function(n){return t.chain((function(e){return S.pipe(n(e),t.map((function(){return e})))}))},t.flatten=t.chain(S.identity),t.altW=function(n){return function(e){return t.isNone(e)?n():e}},t.alt=t.altW,t.zero=function(){return t.none},t.throwError=function(){return t.none},t.extend=function(n){return function(e){return t.isNone(e)?t.none:t.some(n(e))}},t.duplicate=t.extend(S.identity),t.reduce=function(n,e){return function(r){return t.isNone(r)?n:e(n,r.value)}},t.foldMap=function(n){return function(e){return function(r){return t.isNone(r)?n.empty:e(r.value)}}},t.reduceRight=function(n,e){return function(r){return t.isNone(r)?n:e(r.value,n)}},t.compact=t.flatten;var b={left:t.none,right:t.none};function A(n){return{equals:function(e,r){return e===r||(t.isNone(e)?t.isNone(r):!t.isNone(r)&&n.equals(e.value,r.value))}}}function D(n){return{concat:function(e,r){return t.isSome(e)&&t.isSome(r)?t.some(n.concat(e.value,r.value)):t.none}}}t.separate=function(n){var e=S.pipe(n,t.map((function(n){return{left:r(n),right:u(n)}})));return t.isNone(e)?b:e.value},t.filter=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)?e:t.none}},t.filterMap=function(n){return function(e){return t.isNone(e)?t.none:n(e.value)}},t.partition=function(n){return function(t){return{left:p(t,(function(t){return!n(t)})),right:p(t,n)}}},t.partitionMap=function(n){return S.flow(t.map(n),t.separate)},t.traverse=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):n.map(e(r.value),t.some)}}},t.sequence=function(n){return function(e){return t.isNone(e)?n.of(t.none):n.map(e.value,t.some)}},t.wither=function(n){return function(e){return function(r){return t.isNone(r)?n.of(t.none):e(r.value)}}},t.wilt=function(n){return function(e){return function(i){return t.isNone(i)?n.of({left:t.none,right:t.none}):n.map(e(i.value),(function(n){return{left:r(n),right:u(n)}}))}}},t.URI="Option",t.getShow=function(n){return{show:function(e){return t.isNone(e)?"none":"some("+n.show(e.value)+")"}}},t.getEq=A,t.getOrd=function(n){return{equals:A(n).equals,compare:function(e,r){return e===r?0:t.isSome(e)?t.isSome(r)?n.compare(e.value,r.value):1:-1}}},t.getApplySemigroup=D,t.getApplyMonoid=function(n){return{concat:D(n).concat,empty:t.some(n.empty)}},t.getFirstMonoid=function(){return{concat:function(n,e){return t.isNone(n)?e:n},empty:t.none}},t.getLastMonoid=function(){return{concat:function(n,e){return t.isNone(e)?n:e},empty:t.none}},t.getMonoid=function(n){return{concat:function(e,r){return t.isNone(e)?r:t.isNone(r)?e:t.some(n.concat(e.value,r.value))},empty:t.none}},t.Functor={URI:t.URI,map:o},t.Applicative={URI:t.URI,map:o,ap:s,of:t.of},t.Monad={URI:t.URI,map:o,ap:s,of:t.of,chain:c},t.Foldable={URI:t.URI,reduce:a,foldMap:f,reduceRight:d},t.Alt={URI:t.URI,map:o,alt:h},t.Alternative={URI:t.URI,map:o,ap:s,of:t.of,alt:h,zero:t.zero},t.Extend={URI:t.URI,map:o,extend:v},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:o,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y},t.Traversable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence},t.Witherable={URI:t.URI,map:o,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F},t.MonadThrow={URI:t.URI,map:o,ap:s,of:t.of,chain:c,throwError:t.throwError},t.option={URI:t.URI,map:o,of:t.of,ap:s,chain:c,reduce:a,foldMap:f,reduceRight:d,traverse:l,sequence:t.sequence,zero:t.zero,alt:h,extend:v,compact:t.compact,separate:t.separate,filter:p,filterMap:m,partition:w,partitionMap:y,wither:g,wilt:F,throwError:t.throwError},t.elem=function(n){return function(e,r){return!t.isNone(r)&&n.equals(e,r.value)}},t.exists=function(n){return function(e){return!t.isNone(e)&&n(e.value)}},t.getRefinement=function(n){return function(e){return t.isSome(n(e))}},t.Do=t.of({}),t.bindTo=function(n){return t.map(S.bindTo_(n))},t.bind=function(n,e){return t.chain((function(r){return S.pipe(e(r),t.map((function(t){return S.bind_(r,n,t)})))}))},t.apS=function(n,e){return S.flow(t.map((function(t){return function(e){return S.bind_(t,n,e)}})),t.ap(e))},t.traverseArrayWithIndex=function(n){return function(e){for(var r=[],u=0;u<e.length;u++){var i=n(u,e[u]);if(t.isNone(i))return t.none;r.push(i.value)}return t.some(r)}},t.traverseArray=function(n){return t.traverseArrayWithIndex((function(t,e){return n(e)}))},t.sequenceArray=t.traverseArray(S.identity)}));function b(n){this.message=n}(b.prototype=new Error).name="InvalidCharacterError";var A="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new b("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,u=0,i=0,o="";r=t.charAt(i++);~r&&(e=u%4?64*e+r:r,u++%4)?o+=String.fromCharCode(255&e>>(-2*u&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function D(n){var t=n.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(n){return decodeURIComponent(A(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return A(t)}}function C(n){this.message=n}(C.prototype=new Error).name="InvalidTokenError";var E=function(){return(E=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},P=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},T=function(n,t,e){if(void 0===e&&(e=!1),!n||!t||"object"!=typeof n||"object"!=typeof t)return n;var r=E({},n);for(var u in t)t.hasOwnProperty(u)&&(r[u]=t[u]instanceof Array&&n[u]instanceof Array?e?P(n[u],t[u]):t[u]:"object"==typeof t[u]&&"object"==typeof n[u]?T(n[u],t[u],e):t[u]);return r},O=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},R={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(n,t){for(var e=void 0===t?{}:t,r=e.doThrow,u=void 0===r||r,i=e.instance,o=void 0!==i&&i,s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var a=this.polyfills[n]||("undefined"!=typeof self?self[n]:null)||("undefined"!=typeof global?global[n]:null);if(u&&!a)throw new Error(n+" is not defined");return o&&a?new(a.bind.apply(a,O([void 0],s))):a}},I=function(n,t,e,r){if(!n.getEntriesByName)return!1;var u=n.getEntriesByName(t);return!!(u&&u.length>0)&&(e(u.reverse()[0]),r.clearMeasures&&r.clearMeasures(t),M.callbacks.delete(t),M.callbacks.size<1&&(M.observer.disconnect(),r.clearResourceTimings&&r.clearResourceTimings()),!0)},M={callbacks:new Map,observer:null,observe:function(n,t){if(n&&t){var e=R.polyfill("performance",{doThrow:!1});(function(n,t){return!M.observer&&n&&t&&(M.observer=new t((function(t){M.callbacks.forEach((function(e,r){I(t,r,e,n)}))})),n.clearResourceTimings&&n.clearResourceTimings()),M.observer})(e,R.polyfill("PerformanceObserver",{doThrow:!1}))&&(I(e,n,t,e)||(M.callbacks.size<1&&M.observer.observe({entryTypes:["resource","measure"]}),M.callbacks.set(n,t)))}}},U=function(n){this.error=n},j=function(){return(j=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var u in t=arguments[e])Object.prototype.hasOwnProperty.call(t,u)&&(n[u]=t[u]);return n}).apply(this,arguments)},k=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),u=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,u++)r[u]=i[o];return r},N=function(){function n(n,t,e,r,u,i){void 0===e&&(e=new Map),void 0===r&&(r=[]),void 0===u&&(u=[]),void 0===i&&(i=[]),this._url=n,this._options=t,this._catchers=e,this._resolvers=r,this._middlewares=u,this._deferredChain=i}return n.factory=function(t,e){return void 0===t&&(t=""),void 0===e&&(e={}),new n(t,e)},n.prototype.selfFactory=function(t){var e=void 0===t?{}:t,r=e.url,u=e.options,i=e.catchers,o=void 0===i?this._catchers:i,s=e.resolvers,c=void 0===s?this._resolvers:s,a=e.middlewares,f=void 0===a?this._middlewares:a,d=e.deferredChain,l=void 0===d?this._deferredChain:d;return new n(void 0===r?this._url:r,j({},void 0===u?this._options:u),new Map(o),k(c),k(f),k(l))},n.prototype.defaults=function(n,t){return void 0===t&&(t=!1),R.defaults=t?T(R.defaults,n):n,this},n.prototype.errorType=function(n){return R.errorType=n,this},n.prototype.polyfills=function(n){return R.polyfills=j(j({},R.polyfills),n),this},n.prototype.url=function(n,t){if(void 0===t&&(t=!1),t)return this.selfFactory({url:n});var e=this._url.split("?");return this.selfFactory({url:e.length>1?e[0]+n+"?"+e[1]:this._url+n})},n.prototype.options=function(n,t){return void 0===t&&(t=!0),this.selfFactory({options:t?T(this._options,n):n})},n.prototype.query=function(n,t){return void 0===t&&(t=!1),this.selfFactory({url:B(this._url,n,t)})},n.prototype.headers=function(n){return this.selfFactory({options:T(this._options,{headers:n||{}})})},n.prototype.accept=function(n){return this.headers({Accept:n})},n.prototype.content=function(n){var t;return this.headers(((t={})["Content-Type"]=n,t))},n.prototype.auth=function(n){return this.headers({Authorization:n})},n.prototype.catcher=function(n,t){var e=new Map(this._catchers);return e.set(n,t),this.selfFactory({catchers:e})},n.prototype.signal=function(n){return this.selfFactory({options:j(j({},this._options),{signal:n.signal})})},n.prototype.resolve=function(n,t){return void 0===t&&(t=!1),this.selfFactory({resolvers:t?[n]:k(this._resolvers,[n])})},n.prototype.defer=function(n,t){return void 0===t&&(t=!1),this.selfFactory({deferredChain:t?[n]:k(this._deferredChain,[n])})},n.prototype.middlewares=function(n,t){return void 0===t&&(t=!1),this.selfFactory({middlewares:t?n:k(this._middlewares,n)})},n.prototype.method=function(n,t,e){void 0===t&&(t={}),void 0===e&&(e=null);var r=this._options.headers,u=e?"object"!=typeof e||r&&!Object.entries(r).every((function(n){var t=n[1];return n[0].toLowerCase()!=="Content-Type".toLowerCase()||t.startsWith("application/json")}))?this.body(e):this.json(e):this;return function(n){var t=n._url,e=n._resolvers,r=n._middlewares,u=n._options,i=new Map(n._catchers),o=T(R.defaults,u),s=R.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&s&&(o.signal=s.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},a=function(n){return function(t){return 0===n.length?t:1===n.length?n[0](t):n.reduceRight((function(e,r,u){return r(u===n.length-2?e(t):e)}))}}(r)(R.polyfill("fetch"))(t,o),f=a.catch((function(n){throw new U(n)})).then((function(n){return c.clear(),n.ok?n:n[R.errorType||"text"]().then((function(t){var e=new Error(t);throw e[R.errorType||"text"]=t,e.status=n.status,e.response=n,e}))})),d=function(t){return function(e){return(t?f.then((function(n){return n&&n[t]()})).then((function(n){return e?e(n):n})):f.then((function(n){return e?e(n):n}))).catch((function(t){c.clear();var e=t instanceof U?t.error:t;if(t instanceof U&&i.has("__fromFetch"))return i.get("__fromFetch")(e,n);if(i.has(e.status))return i.get(e.status)(e,n);if(i.has(e.name))return i.get(e.name)(e,n);throw e}))}},l={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(n){return a.then((function(t){return M.observe(t.url,n)})),l},setTimeout:function(n,t){return void 0===t&&(t=s),c.clear(),c.ref=setTimeout((function(){return t.abort()}),n),l},controller:function(){return[s,l]},error:function(n,t){return i.set(n,t),l},badRequest:function(n){return l.error(400,n)},unauthorized:function(n){return l.error(401,n)},forbidden:function(n){return l.error(403,n)},notFound:function(n){return l.error(404,n)},timeout:function(n){return l.error(408,n)},internalError:function(n){return l.error(500,n)},fetchError:function(n){return l.error("__fromFetch",n)},onAbort:function(n){return l.error("AbortError",n)}};return e.reduce((function(t,e){return e(t,n)}),l)}((u=u.options(j(j({},t),{method:n})))._deferredChain.reduce((function(n,t){return t(n,n._url,n._options)}),u))},n.prototype.get=function(n){return this.method("GET",n)},n.prototype.delete=function(n){return this.method("DELETE",n)},n.prototype.put=function(n,t){return this.method("PUT",t,n)},n.prototype.post=function(n,t){return this.method("POST",t,n)},n.prototype.patch=function(n,t){return this.method("PATCH",t,n)},n.prototype.head=function(n){return this.method("HEAD",n)},n.prototype.opts=function(n){return this.method("OPTIONS",n)},n.prototype.replay=function(n){return this.method(this._options.method,n)},n.prototype.body=function(n){return this.selfFactory({options:j(j({},this._options),{body:n})})},n.prototype.json=function(n){var t,e=null===(t=Object.entries(this._options.headers||{}).find((function(n){var t=n[1];return n[0].toLowerCase()==="Content-Type".toLowerCase()&&t.startsWith("application/json")})))||void 0===t?void 0:t[1];return this.content(e||"application/json").body(JSON.stringify(n))},n.prototype.formData=function(n,t){return void 0===t&&(t=!1),this.body(x(n,t))},n.prototype.formUrl=function(n){return this.body("string"==typeof n?n:(t=n,Object.keys(t).map((function(n){var e=t[n];return e instanceof Array?e.map((function(t){return V(n,t)})).join("&"):V(n,e)})).join("&"))).content("application/x-www-form-urlencoded");var t},n}(),B=function(n,t,e){var r;if("string"==typeof t)r=t;else{var u=R.polyfill("URLSearchParams",{instance:!0});for(var i in t)if(t[i]instanceof Array)for(var o=0,s=t[i];o<s.length;o++)u.append(i,s[o]);else u.append(i,t[i]);r=u.toString()}var c=n.split("?");return e||c.length<2?c[0]+"?"+r:n+"&"+r};function x(n,t,e,r){return void 0===t&&(t=!1),void 0===e&&(e=R.polyfill("FormData",{instance:!0})),void 0===r&&(r=[]),Object.entries(n).forEach((function(n){var u=n[0],i=n[1],o=r.reduce((function(n,t){return n?n+"["+t+"]":t}),null);if(o=o?o+"["+u+"]":u,i instanceof Array)for(var s=0,c=i;s<c.length;s++)e.append(o+"[]",c[s]);else!t||"object"!=typeof i||t instanceof Array&&t.includes(u)?e.append(o,i):null!==i&&x(i,t,e,k(r,[u]))})),e}function V(n,t){return encodeURIComponent(n)+"="+encodeURIComponent("object"==typeof t?JSON.stringify(t):""+t)}var q=N.factory;function _(){const n=Y.jwt,t=Y.profileId,e=Y.accountIdOrDefault,r=Y.partnerIdOrDefault;return q(Y.apiBaseUrl).headers({Authorization:"Bearer "+n,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":e})}q.default=N.factory;const L={fundId:"slate",usi:"32367272075001"};function $(n){switch(n.kind){case"slate":return L.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return n.generic.fundId;default:return""}}function J(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return L.usi;case"australianRetirementTrust":return n.australianRetirementTrust.usi;case"aware":return n.aware.usi;case"active":return n.active.usi;case"australianEthical":return n.australianEthical.usi;case"virgin":return n.virgin.usi;case"spirit":return n.spirit.usi;case"firstSuper":return n.firstSuper.usi;case"mercerMyChoice":return n.mercerMyChoice.usi;case"generic":return n.generic.usi;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.usi);case"SMSF":return o;case"Default":return s(n.default.usi);case"PromotedDefault":return s(n.promotedDefault.usi);case"DefinedBenefits":return s(n.definedBenefits.usi);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.usi);default:return o}}function z(n){switch(n.kind){case"Promoted":return s(function(n){switch(n.kind){case"slate":return n.slate.memberNumber;case"australianRetirementTrust":return n.australianRetirementTrust.memberNumber;case"aware":return n.aware.memberNumber;case"active":return n.active.memberNumber;case"australianEthical":return n.australianEthical.memberNumber;case"virgin":return n.virgin.memberNumber;case"spirit":return n.spirit.memberNumber;case"firstSuper":return n.firstSuper.memberNumber;case"mercerMyChoice":return n.mercerMyChoice.memberNumber;case"generic":return n.generic.memberNumber;default:return""}}(n.promoted));case"MyOwnFund":return s(n.myOwnFund.memberNumber);case"DefinedBenefits":return s(n.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return s(n.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":default:return o}}const W=new class{async getAustralianFundsAsync(n,t=!1){return _().url("super-choice/australian-funds-v2?"+this.toQueryString(t,n)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAustralianFundAsync(n,t){const e=t?"?includeInactive=true":"";return _().url(`super-choice/australian-funds/${n}${e}`).get().notFound((()=>{throw new Error("Failed to fetch australian super fund.")})).json()}async getAppStateAsync(){var n;const t=await _().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json();if(null===(n=t.superBuyer.superChoice)||void 0===n?void 0:n.choiceDetails)switch("promoted"in(e=t.superBuyer.superChoice.choiceDetails)?e.kind="Promoted":"myOwnFund"in e?e.kind="MyOwnFund":"smsf"in e?e.kind="SMSF":"default"in e?e.kind="Default":"promotedDefault"in e?e.kind="PromotedDefault":"definedBenefits"in e?e.kind="DefinedBenefits":"promotedDefaultWithJoin"in e&&(e.kind="PromotedDefaultWithJoin"),t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":!function(n){"slate"in n?n.kind="slate":"australianRetirementTrust"in n?n.kind="australianRetirementTrust":"aware"in n?n.kind="aware":"active"in n?n.kind="active":"australianEthical"in n?n.kind="australianEthical":"virgin"in n?n.kind="virgin":"spirit"in n?n.kind="spirit":"firstSuper"in n?n.kind="firstSuper":"mercerMyChoice"in n?n.kind="mercerMyChoice":"generic"in n&&(n.kind="generic")}(t.superBuyer.superChoice.choiceDetails.promoted)}var e;return t}async clickPromotedTileAsync(n){return _().url("click-promoted-tile").post(n).res()}async viewSuperFundPanelAsync(n){return _().url("view-super-fund-panel").post(n).res()}toSearchFilterQueryString(n){return"search="+n.searchString+(n.maxRecordCount>0?"&maxRecordCount="+n.maxRecordCount:"")}toQueryString(n,t){return[this.toSearchFilterQueryString(t),n?"includeInactive=true":""].filter((n=>n&&n.length)).join("&")}};var X;!function(n){n[n.NotLoaded=1]="NotLoaded",n[n.Loaded=2]="Loaded",n[n.NotWorking=3]="NotWorking"}(X||(X={}));class H{constructor(){this._promotedFundsShown=[]}get PromotedFundIds(){return this._promotedFundsShown.map((n=>n.fundId))}set promotedFundsShown(n){this._promotedFundsShown=n}get DefaultFundPosition(){const n=this._promotedFundsShown.findIndex((n=>"promoted-default"===n.fundType));if(-1!==n)return n+1}}const Q={apiBaseUrl:F.none,appBaseUrl:F.none,profileId:F.none,jwt:F.none,superBuyer:F.none,superChoicePrefill:F.none,promotedFunds:F.none,accountConfiguration:F.none,profileConfiguration:F.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1,isDefinedBenefitsEligible:F.none,superCampaignEnabled:!0,superCampaignState:void 0,superCampaignComponentStatus:X.NotLoaded,hideFooterSection:!1,bringYourOwnFundCustomStepEnabled:!1,featuredFundsEnabled:!1},Y=new class{constructor(){const{state:n,onChange:t}=m(Q);this._state=n,this._onChange=t,t("jwt",(n=>{this._state.profileId=S.pipe(n,F.chain((n=>F.fromNullable(function(n,t){if("string"!=typeof n)throw new C("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(D(n.split(".")[e]))}catch(n){throw new C("Invalid token specified: "+n.message)}}(n).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(F.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(F.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(F.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(this.state.superCampaignEnabled&&void 0!==this.superCampaignState)return this.superCampaignState.PromotedFundIds;if(F.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get promotedDefaultFundPosition(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState?F.fromNullable(this.superCampaignState.DefaultFundPosition):F.none}get promotedFundsConfig(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:F.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}}get profileId(){if(F.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const n=S.pipe(this._state.profileConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten);return F.isSome(n)?n:S.pipe(this._state.accountConfiguration,F.map((n=>F.fromNullable(n.defaultFundUsi))),F.flatten)}get accountIdOrDefault(){return S.pipe(this._state.accountConfiguration,F.map((n=>n.accountId)),F.getOrElse((()=>"")))}get partnerIdOrDefault(){return S.pipe(this._state.superBuyer,F.map((n=>n.partnerId)),F.getOrElse((()=>"")))}get jwt(){if(F.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}get isDefinedBenefitsEligible(){return this._state.isDefinedBenefitsEligible}async loadAppStateAsync(){const n=await W.getAppStateAsync();this._state.accountConfiguration=F.fromNullable(n.accountConfiguration),this._state.profileConfiguration=F.fromNullable(n.profileConfiguration),this._state.superBuyer=F.fromNullable(n.superBuyer),this._state.promotedFunds=F.fromNullable(n.promotedFunds),this._state.bringYourOwnFundCustomStepEnabled=n.bringYourOwnFundCustomStepEnabled,this._state.featuredFundsEnabled=n.featuredFundsEnabled,this._state.superChoicePrefill=F.fromNullable(n.prefill),this._state.isDefinedBenefitsEligible=F.fromNullable(n.isDefinedBenefitsEligible),F.isSome(this._state.accountConfiguration)&&"basic"===this._state.accountConfiguration.value.featureSet.type&&(this._state.superCampaignEnabled=!1)}setSuperCampaignPromotedFundsShown(n){if(void 0===this._state.superCampaignState)throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined");this._state.superCampaignState.promotedFundsShown=n}viewSuperFundPanelAsync(n,t){return W.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t||this.promotedFundsConfig.shownFunds,placementId:n}))}get superCampaignState(){return this._state.superCampaignState}get superCampaignComponentStatus(){return this._state.superCampaignComponentStatus}set superCampaignComponentStatus(n){n===X.Loaded?(this._state.superCampaignComponentStatus=X.Loaded,this._state.superCampaignState=new H):(this._state.superCampaignComponentStatus=n,this._state.superCampaignState=void 0)}get isUsingSuperCampaign(){return this.state.superCampaignEnabled&&void 0!==this.superCampaignState}get isBringYourOwnFundCustomStepEnabled(){return this.state.bringYourOwnFundCustomStepEnabled}get isFeaturedFundsEnabled(){return this.state.featuredFundsEnabled}get superCampaignCanNotBeActivated(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===X.NotWorking}get hideFooterSection(){return this._state.hideFooterSection}set hideFooterSection(n){this._state.hideFooterSection=n}get backendUrl(){return F.map(this.getBaseUrl)(this.state.apiBaseUrl)}getBaseUrl(n){const t=new URL(n);return`${t.protocol}//${t.hostname}${t.port.length>0?":"+t.port:""}`}},G=new class{navigateInternally(n,t){const e=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(t)}`;l.navigation(e),n.push(e)}navigateInternallyToStandardChoice(n){v.handleSubmitFn=n.handleSubmitFn,v.fundName=n.fundName,v.fundDetails=n.fundDetails,v.promotedFundId=n.promotedFundId,this.navigateInternally(n.history,w.StandardChoice)}toExternalUrl(n){const t=new URL(n);return t.searchParams.append("_extnav","true"),t.href}get appBaseUrl(){return Y.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(n){return n.length>0&&"/"===n[0]?n:"/"+n}};var K;!function(n){n.MyOwnFund="Existing super fund",n.DefaultFund="Default super fund",n.SelfManagedFund="Self-managed super fund",n.FeaturedFunds="Featured super funds"}(K||(K={}));const Z={myOwnFundForm:{fundUsi:o,fundName:o,memberNumber:o,memberFirstName:o,memberFamilyName:o},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}},{state:nn}=m(Z);class tn{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(n){return _().url("analytics-events").post(n).res()}}class en{constructor(){this.eventTrackingApi=tn.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackSuperFundPdsViewedAsync(n){return this.trackEventAsync({SuperFundPdsViewed:n})}async TrackPromotedSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:n}})}async TrackPromotedDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:n}})}async TrackMyOwnSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:n}})}async TrackSmsfSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:n}})}async TrackDefaultSuperFundDetailViewedAsync(n){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:n}})}async TrackSuperFundNominationViewedAsync(n){return this.trackEventAsync({SuperFundNominationViewed:n})}async TrackSuperFundNominationDeclinedAsync(n){return this.trackEventAsync({SuperFundNominationDeclined:n})}async TrackSuperFundDisclaimerViewedAsync(n){return this.trackEventAsync({SuperFundDisclaimerViewed:n})}async TrackSuperFundDisclaimerAcceptedAsync(n){return this.trackEventAsync({SuperFundDisclaimerAccepted:n})}async TrackSuperFundPrefillViewedAsync(n){return this.trackEventAsync({SuperFundPrefillViewed:n})}async TrackSuperFundPrefillDeclinedAsync(n){return this.trackEventAsync({SuperFundPrefillDeclined:n})}async TrackSuperFundDetailChangeRequestedAsync(n){return this.trackEventAsync({SuperFundDetailChangeRequested:n})}async TrackSuperCampaignActivationSucceededAsync(n){return this.trackEventAsync({SuperCampaignActivationSucceeded:n})}async TrackSuperMyOwnFundEngagementStepActivationSucceeded(n){return this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:n}})}async TrackSuperMyOwnFundEngagementStepContinued(n,t){return this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:n,reason:t}})}async trackEventAsync(n){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:n})}catch(n){return}}}const rn=new class{async submitDefaultFundChoiceAsync(n){return _().url("super-choice/default").post(n).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(n){return _().url("super-choice/custom-fund").post(n).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(n){return _().url("super-choice/smsf").post(n).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async submitDefinedBenefitsChoiceAsync(n){return _().url("super-choice/defined-benefits").post(n).badRequest((()=>{throw new Error("Failed to process Defined Benefits choice request")})).text()}async validateAbnForSMSF(n){return(await _().url(`super-choice/smsf/${n}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}};export{K as C,en as E,F as O,w as S,Y as a,G as b,f as c,W as d,rn as e,i as f,$ as g,_ as h,u as i,J as j,z as k,nn as l,v as m,o as n,L as o,X as p,l as q,y as r,s,a as t,q as u,c as v}
|