@flarehr/apollo-super-selection 4.7.19177 → 4.9.20170
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-79eadac8.entry.js → p-41ab9fa2.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-d01334e7.system.entry.js → p-936e27f1.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-bdcfc026.system.js +1 -1
- package/dist/lib/cjs/sss-button_29.cjs.entry.js +1 -1
- package/dist/lib/esm/sss-button_29.entry.js +1 -1
- package/dist/lib/esm-es5/sss-button_29.entry.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,g as n,f as i,a as r,H as s,c as o,F as a,d as u,e as c,s as l}from"./p-51c6dd08.js";import{f as d,m as f,S as h,a as p,i as m,b as v,O as g,c as y,d as w,g as b,h as x,j as k,k as S,l as C,Q as A}from"./p-29c11183.js";import{A as F}from"./p-7a89efaf.js";function _(){}function M(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(M(((n,i)=>d(t(n,i)).pipe(f(((t,r)=>e(n,t,i,r))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new E(t,n)))}class E{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new I(t,this.project,this.concurrent))}}class I extends h{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)}_innerSub(t){const e=new p(this),n=this.destination;n.add(e);const i=m(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t,e,n,i){return y(n)&&(i=n,n=void 0),i?B(t,e,n).pipe(f((t=>v(t)?i(...t):i(t)))):new g((i=>{T(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function T(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)T(t[s],e,n,i,r)}i.add(s)}class j{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new P(t,this.dueTime,this.scheduler))}}class P extends b{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(N,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function N(t){t.debouncedNext()}function R(t,e,n){return function(i){return i.lift(new D(t,e,n))}}class D{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new O(t,this.nextOrObserver,this.error,this.complete))}}class O extends b{constructor(t,e,n,i){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=i||_,y(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var L=function(t){return"Some"===t._tag},U=function(t){return"None"===t._tag},q={_tag:"None"},V=function(t){return{_tag:"Some",value:t}};function H(t){return U(t)?void 0:t.value}class z{constructor(t){this.factory=t,this._value=q}get value(){if(L(this._value))return this._value.value;const t=this.factory();return this._value=V(t),t}}function W(t){F.injectProps(t,["history","location"])}const $=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),X=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),G=t=>t.replace(/([=!:$/()])/g,"\\$1"),J=t=>t&&t.sensitive?"":"i",K=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,s=X(n.delimiter||"/"),o=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(X).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var d=t[l];if("string"==typeof d)u+=X(d),c=l===t.length-1&&o.indexOf(d[d.length-1])>-1;else{var f=X(d.prefix||""),h=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;e&&e.push(d),u+=d.optional?d.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}return r?(i||(u+="(?:"+s+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+s+"(?="+a+"))?"),c||(u+="(?="+s+"|"+a+")")),new RegExp("^"+u,J(n))},Y=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(Y(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",J(n))})(t,e,n):((t,e,n)=>K(((t,e)=>{for(var n,i=[],r=0,s=0,o="",a=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=$.exec(t));){var l=n[0],d=n[1],f=n.index;if(o+=t.slice(s,f),s=f+l.length,d)o+=d[1],c=!0;else{var h="",p=t[s],m=n[2],v=n[3],g=n[4],y=n[5];if(!c&&o.length){var w=o.length-1;u.indexOf(o[w])>-1&&(h=o[w],o=o.slice(0,w))}o&&(i.push(o),o="",c=!1);var b=h||a,x=v||g;i.push({name:m||r++,prefix:h,delimiter:b,optional:"?"===y||"*"===y,repeat:"+"===y||"*"===y,partial:""!==h&&void 0!==p&&p!==h,pattern:x?G(x):"[^"+X(b)+"]+?"})}}return(o||s<t.length)&&i.push(o+t.substr(s)),i})(t,n),e,n))(t,e,n),Q=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),Z=(t,e)=>Q(t,e)?t.substr(e.length):t,tt=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,et=t=>"/"===t.charAt(0)?t:"/"+t,nt=t=>"/"===t.charAt(0)?t.substr(1):t,it=t=>{const{pathname:e,search:n,hash:i}=t;let r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},rt=t=>"/"===t.charAt(0),st=t=>Math.random().toString(36).substr(2,t),ot=(t,e)=>{for(let n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()},at=(t,e)=>{if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>at(t,e[n])));const n=typeof t;if(n!==typeof e)return!1;if("object"===n){const n=t.valueOf(),i=e.valueOf();if(n!==t||i!==e)return at(n,i);const r=Object.keys(t),s=Object.keys(e);return r.length===s.length&&r.every((n=>at(t[n],e[n])))}return!1},ut=(t,e,n,i)=>{let r;"string"==typeof t?(r=(t=>{let e=t||"/",n="",i="";const r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));const s=e.indexOf("?");return-1!==s&&(n=e.substr(s),e=e.substr(0,s)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(r.state=e)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var s;return r.key=n,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],r=0;const s=t&&t.split("/")||[],o=t&&rt(t),a=e&&rt(e),u=o||a;if(t&&rt(t)?i=s:s.length&&(i.pop(),i=i.concat(s)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?ot(i,t):".."===e?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!u)for(;r--;r)i.unshift("..");!u||""===i[0]||i[0]&&rt(i[0])||i.unshift("");let c=i.join("/");return n&&"/"!==c.substr(-1)&&(c+="/"),c})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(s=r.search||"")?(/^[?#]/.test(s)?s.slice(1):s).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ct=0;const lt={},dt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:r=!1}=e,{re:s,keys:o}=((t,e)=>{const n=`${e.end}${e.strict}`,i=lt[n]||(lt[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const s=[],o={re:Y(t,s,e),keys:s};return ct<1e4&&(i[r]=o,ct+=1),o})(n,{end:i,strict:r}),a=s.exec(t);if(!a)return null;const[u,...c]=a,l=t===u;return i&&!l?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:l,params:o.reduce(((t,e,n)=>(t[e.name]=c[n],t)),{})}};var ft;!function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(ft||(ft={}));const ht=class{constructor(e){t(this,e),this.fillWidth=!1,this.fillWidthOnMobile=!1,this.disabled=!1,this.variant="primary",this.size="base",this.promiseFn=()=>Promise.resolve(),this.state=ft.Available}render(){return e("button",{class:{[{xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"}[this.size]]:!0,"inline-flex items-center justify-center border font-medium":!0,"rounded-md shadow-sm focus:outline-none focus:ring-2":!0,"focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto":!0,"disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400":!0,"border-transparent text-white bg-primary-base hover:bg-primary-hover":"primary"===this.variant,"border-gray-300 text-gray-700 bg-white hover:bg-gray-50":"secondary"===this.variant,"w-full":this.fillWidth||this.fillWidthOnMobile,"sm:w-auto":this.fillWidthOnMobile},disabled:this.disabled,onClick:()=>this.clicked()},this.state===ft.Pending&&e("sss-loading-indicator",{theme:"primary"===this.variant?"light":"primary",size:16}),e("div",{class:{hidden:this.state===ft.Pending}},e("slot",null)))}async clicked(){if(this.promiseFn&&this.state!==ft.Pending)try{this.state=ft.Pending,await this.promiseFn(),this.state=ft.Available}catch(t){throw this.state=ft.Error,t}}};var pt=function(){return(pt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},mt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},vt=function(t,e,n){if(void 0===n&&(n=!1),!t||!e||"object"!=typeof t||"object"!=typeof e)return t;var i=pt({},t);for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]instanceof Array&&t[r]instanceof Array?n?mt(t[r],e[r]):e[r]:"object"==typeof e[r]&&"object"==typeof t[r]?vt(t[r],e[r],n):e[r]);return i},gt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},yt={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,e){for(var n=void 0===e?{}:e,i=n.doThrow,r=void 0===i||i,s=n.instance,o=void 0!==s&&s,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];var c=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!c)throw new Error(t+" is not defined");return o&&c?new(c.bind.apply(c,gt([void 0],a))):c}},wt=function(t,e,n,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(e);return!!(r&&r.length>0)&&(n(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(e),bt.callbacks.delete(e),bt.callbacks.size<1&&(bt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},bt={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var n=yt.polyfill("performance",{doThrow:!1});(function(t,e){return!bt.observer&&t&&e&&(bt.observer=new e((function(e){bt.callbacks.forEach((function(n,i){wt(e,i,n,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),bt.observer})(n,yt.polyfill("PerformanceObserver",{doThrow:!1}))&&(wt(n,t,e,n)||(bt.callbacks.size<1&&bt.observer.observe({entryTypes:["resource","measure"]}),bt.callbacks.set(t,e)))}}},xt=function(t){this.error=t},kt=function(){return(kt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},St=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},Ct=function(){function t(t,e,n,i,r,s){void 0===n&&(n=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===s&&(s=[]),this._url=t,this._options=e,this._catchers=n,this._resolvers=i,this._middlewares=r,this._deferredChain=s}return t.factory=function(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),new t(e,n)},t.prototype.selfFactory=function(e){var n=void 0===e?{}:e,i=n.url,r=n.options,s=n.catchers,o=void 0===s?this._catchers:s,a=n.resolvers,u=void 0===a?this._resolvers:a,c=n.middlewares,l=void 0===c?this._middlewares:c,d=n.deferredChain,f=void 0===d?this._deferredChain:d;return new t(void 0===i?this._url:i,kt({},void 0===r?this._options:r),new Map(o),St(u),St(l),St(f))},t.prototype.defaults=function(t,e){return void 0===e&&(e=!1),yt.defaults=e?vt(yt.defaults,t):t,this},t.prototype.errorType=function(t){return yt.errorType=t,this},t.prototype.polyfills=function(t){return yt.polyfills=kt(kt({},yt.polyfills),t),this},t.prototype.url=function(t,e){if(void 0===e&&(e=!1),e)return this.selfFactory({url:t});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+t+"?"+n[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?vt(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:At(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:vt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})["Content-Type"]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var n=new Map(this._catchers);return n.set(t,e),this.selfFactory({catchers:n})},t.prototype.signal=function(t){return this.selfFactory({options:kt(kt({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:St(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:St(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:St(this._middlewares,t)})},t.prototype.method=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=null);var i=this._options.headers,r=n?"object"!=typeof n||i&&!Object.entries(i).every((function(t){var e=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||e.startsWith("application/json")}))?this.body(n):this.json(n):this;return function(t){var e=t._url,n=t._resolvers,i=t._middlewares,r=t._options,s=new Map(t._catchers),o=vt(yt.defaults,r),a=yt.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&a&&(o.signal=a.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},c=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(n,i,r){return i(r===t.length-2?n(e):n)}))}}(i)(yt.polyfill("fetch"))(e,o),l=c.catch((function(t){throw new xt(t)})).then((function(t){return u.clear(),t.ok?t:t[yt.errorType||"text"]().then((function(e){var n=new Error(e);throw n[yt.errorType||"text"]=e,n.status=t.status,n.response=t,n}))})),d=function(e){return function(n){return(e?l.then((function(t){return t&&t[e]()})).then((function(t){return n?n(t):t})):l.then((function(t){return n?n(t):t}))).catch((function(e){u.clear();var n=e instanceof xt?e.error:e;if(e instanceof xt&&s.has("__fromFetch"))return s.get("__fromFetch")(n,t);if(s.has(n.status))return s.get(n.status)(n,t);if(s.has(n.name))return s.get(n.name)(n,t);throw n}))}},f={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(t){return c.then((function(e){return bt.observe(e.url,t)})),f},setTimeout:function(t,e){return void 0===e&&(e=a),u.clear(),u.ref=setTimeout((function(){return e.abort()}),t),f},controller:function(){return[a,f]},error:function(t,e){return s.set(t,e),f},badRequest:function(t){return f.error(400,t)},unauthorized:function(t){return f.error(401,t)},forbidden:function(t){return f.error(403,t)},notFound:function(t){return f.error(404,t)},timeout:function(t){return f.error(408,t)},internalError:function(t){return f.error(500,t)},fetchError:function(t){return f.error("__fromFetch",t)},onAbort:function(t){return f.error("AbortError",t)}};return n.reduce((function(e,n){return n(e,t)}),f)}((r=r.options(kt(kt({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:kt(kt({},this._options),{body:t})})},t.prototype.json=function(t){var e,n=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&e.startsWith("application/json")})))||void 0===e?void 0:e[1];return this.content(n||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body(Ft(t,e))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(e=t,Object.keys(e).map((function(t){var n=e[t];return n instanceof Array?n.map((function(e){return _t(t,e)})).join("&"):_t(t,n)})).join("&"))).content("application/x-www-form-urlencoded");var e},t}(),At=function(t,e,n){var i;if("string"==typeof e)i=e;else{var r=yt.polyfill("URLSearchParams",{instance:!0});for(var s in e)if(e[s]instanceof Array)for(var o=0,a=e[s];o<a.length;o++)r.append(s,a[o]);else r.append(s,e[s]);i=r.toString()}var u=t.split("?");return n||u.length<2?u[0]+"?"+i:t+"&"+i};function Ft(t,e,n,i){return void 0===e&&(e=!1),void 0===n&&(n=yt.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],s=t[1],o=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(o=o?o+"["+r+"]":r,s instanceof Array)for(var a=0,u=s;a<u.length;a++)n.append(o+"[]",u[a]);else!e||"object"!=typeof s||e instanceof Array&&e.includes(r)?n.append(o,s):null!==s&&Ft(s,e,n,St(i,[r]))})),n}function _t(t,e){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof e?JSON.stringify(e):""+e)}var Mt=Ct.factory;Mt.default=Ct.factory;const Et=t=>!("isConnected"in t)||t.isConnected,It=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Et))})(...e)}),2e3)}})(),Bt=(t,e)=>{const r=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},s=t=>(i.get.forEach((e=>e(t))),n.get(t)),o=(t,r)=>{const s=n.get(t);e(r,s,t)&&(n.set(t,r),i.set.forEach((e=>e(t,r,s))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>s(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(o(e,n),!0)}),u=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:a,get:s,set:o,on:u,onChange:(e,n)=>{const i=u("set",((t,i)=>{t===e&&n(i)})),r=u("reset",(()=>n(t[e])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,e);return(({on:t})=>{const e=new Map;"function"==typeof n&&(t("dispose",(()=>{e.clear()})),t("get",(t=>{const i=n();i&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(e,t,i)})),t("set",(t=>{const n=e.get(t);n&&e.set(t,n.filter(i)),It(e)})),t("reset",(()=>{e.forEach((t=>t.forEach(i))),It(e)})))})(r),r};function Tt(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var jt=Tt((function(t,e){function n(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(e,"__esModule",{value:!0}),e.bindTo_=e.bind_=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.not=e.unsafeCoerce=e.identity=void 0,e.identity=n,e.unsafeCoerce=n,e.not=function(t){return function(e){return!t(e)}},e.constant=i,e.constTrue=i(!0),e.constFalse=i(!1),e.constNull=i(null),e.constUndefined=i(void 0),e.constVoid=e.constUndefined,e.flip=function(t){return function(e,n){return t(n,e)}},e.flow=function(t,e,n,i,r,s,o,a,u){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return i(n(e(t.apply(this,arguments))))};case 5:return function(){return r(i(n(e(t.apply(this,arguments)))))};case 6:return function(){return s(r(i(n(e(t.apply(this,arguments))))))};case 7:return function(){return o(s(r(i(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(o(s(r(i(n(e(t.apply(this,arguments))))))))};case 9:return function(){return u(a(o(s(r(i(n(e(t.apply(this,arguments)))))))))}}},e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},e.increment=function(t){return t+1},e.decrement=function(t){return t-1},e.absurd=r,e.tupled=function(t){return function(e){return t.apply(void 0,e)}},e.untupled=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}},e.pipe=function(t,e,n,i,r,s,o,a,u,c,l,d,f,h,p,m,v,g,y,w){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return r(i(n(e(t))));case 6:return s(r(i(n(e(t)))));case 7:return o(s(r(i(n(e(t))))));case 8:return a(o(s(r(i(n(e(t)))))));case 9:return u(a(o(s(r(i(n(e(t))))))));case 10:return c(u(a(o(s(r(i(n(e(t)))))))));case 11:return l(c(u(a(o(s(r(i(n(e(t))))))))));case 12:return d(l(c(u(a(o(s(r(i(n(e(t)))))))))));case 13:return f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))));case 14:return h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))));case 15:return p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))));case 16:return m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))));case 17:return v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))))));case 18:return g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))))));case 19:return y(g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))))))));case 20:return w(y(g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))))))))}},e.hole=r,e.bind_=function(t,e,n){var i;return Object.assign({},t,((i={})[e]=n,i))},e.bindTo_=function(t){return function(e){var n;return(n={})[t]=e,n}}})),Pt=Tt((function(t,e){function n(t){return null==t?e.none:e.some(t)}function i(t){return"Right"===t._tag?e.none:e.some(t.left)}function r(t){return"Left"===t._tag?e.none:e.some(t.right)}function s(t){return function(i){return e.isNone(i)?e.none:n(t(i.value))}}Object.defineProperty(e,"__esModule",{value:!0}),e.getApplySemigroup=e.getOrd=e.getEq=e.getShow=e.URI=e.wilt=e.wither=e.sequence=e.traverse=e.partitionMap=e.partition=e.filterMap=e.filter=e.separate=e.compact=e.reduceRight=e.foldMap=e.reduce=e.duplicate=e.extend=e.throwError=e.zero=e.alt=e.altW=e.flatten=e.chainFirst=e.chain=e.of=e.apSecond=e.apFirst=e.ap=e.map=e.chainNullableK=e.mapNullable=e.fromNullableK=e.getOrElse=e.getOrElseW=e.toUndefined=e.toNullable=e.fold=e.fromEither=e.getRight=e.getLeft=e.tryCatch=e.fromPredicate=e.fromNullable=e.some=e.none=e.isNone=e.isSome=void 0,e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.apS=e.bind=e.bindTo=e.Do=e.getRefinement=e.exists=e.elem=e.option=e.MonadThrow=e.Witherable=e.Traversable=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.Alt=e.Foldable=e.Monad=e.Applicative=e.Functor=e.getMonoid=e.getLastMonoid=e.getFirstMonoid=e.getApplyMonoid=void 0,e.isSome=function(t){return"Some"===t._tag},e.isNone=function(t){return"None"===t._tag},e.none={_tag:"None"},e.some=function(t){return{_tag:"Some",value:t}},e.fromNullable=n,e.fromPredicate=function(t){return function(n){return t(n)?e.some(n):e.none}},e.tryCatch=function(t){try{return e.some(t())}catch(t){return e.none}},e.getLeft=i,e.getRight=r,e.fromEither=r,e.fold=function(t,n){return function(i){return e.isNone(i)?t():n(i.value)}},e.toNullable=function(t){return e.isNone(t)?null:t.value},e.toUndefined=function(t){return e.isNone(t)?void 0:t.value},e.getOrElseW=function(t){return function(n){return e.isNone(n)?t():n.value}},e.getOrElse=e.getOrElseW,e.fromNullableK=function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return n(t.apply(void 0,e))}},e.mapNullable=s,e.chainNullableK=s;var o=function(t,n){return jt.pipe(t,e.map(n))},a=function(t,n){return jt.pipe(t,e.ap(n))},u=function(t,n){return jt.pipe(t,e.chain(n))},c=function(t,n,i){return jt.pipe(t,e.reduce(n,i))},l=function(t){var n=e.foldMap(t);return function(t,e){return jt.pipe(t,n(e))}},d=function(t,n,i){return jt.pipe(t,e.reduceRight(n,i))},f=function(t){var n=e.traverse(t);return function(t,e){return jt.pipe(t,n(e))}},h=function(t,n){return jt.pipe(t,e.alt(n))},p=function(t,n){return jt.pipe(t,e.filter(n))},m=function(t,n){return jt.pipe(t,e.filterMap(n))},v=function(t,n){return jt.pipe(t,e.extend(n))},g=function(t,n){return jt.pipe(t,e.partition(n))},y=function(t,n){return jt.pipe(t,e.partitionMap(n))},w=function(t){var n=e.wither(t);return function(t,e){return jt.pipe(t,n(e))}},b=function(t){var n=e.wilt(t);return function(t,e){return jt.pipe(t,n(e))}};e.map=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n.value))}},e.ap=function(t){return function(n){return e.isNone(n)||e.isNone(t)?e.none:e.some(n.value(t.value))}},e.apFirst=function(t){return jt.flow(e.map((function(t){return function(){return t}})),e.ap(t))},e.apSecond=function(t){return jt.flow(e.map((function(){return function(t){return t}})),e.ap(t))},e.of=e.some,e.chain=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.chainFirst=function(t){return e.chain((function(n){return jt.pipe(t(n),e.map((function(){return n})))}))},e.flatten=e.chain(jt.identity),e.altW=function(t){return function(n){return e.isNone(n)?t():n}},e.alt=e.altW,e.zero=function(){return e.none},e.throwError=function(){return e.none},e.extend=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n))}},e.duplicate=e.extend(jt.identity),e.reduce=function(t,n){return function(i){return e.isNone(i)?t:n(t,i.value)}},e.foldMap=function(t){return function(n){return function(i){return e.isNone(i)?t.empty:n(i.value)}}},e.reduceRight=function(t,n){return function(i){return e.isNone(i)?t:n(i.value,t)}},e.compact=e.flatten;var x={left:e.none,right:e.none};function k(t){return{equals:function(n,i){return n===i||(e.isNone(n)?e.isNone(i):!e.isNone(i)&&t.equals(n.value,i.value))}}}function S(t){return{concat:function(n,i){return e.isSome(n)&&e.isSome(i)?e.some(t.concat(n.value,i.value)):e.none}}}e.separate=function(t){var n=jt.pipe(t,e.map((function(t){return{left:i(t),right:r(t)}})));return e.isNone(n)?x:n.value},e.filter=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)?n:e.none}},e.filterMap=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.partition=function(t){return function(e){return{left:p(e,(function(e){return!t(e)})),right:p(e,t)}}},e.partitionMap=function(t){return jt.flow(e.map(t),e.separate)},e.traverse=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):t.map(n(i.value),e.some)}}},e.sequence=function(t){return function(n){return e.isNone(n)?t.of(e.none):t.map(n.value,e.some)}},e.wither=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):n(i.value)}}},e.wilt=function(t){return function(n){return function(s){return e.isNone(s)?t.of({left:e.none,right:e.none}):t.map(n(s.value),(function(t){return{left:i(t),right:r(t)}}))}}},e.URI="Option",e.getShow=function(t){return{show:function(n){return e.isNone(n)?"none":"some("+t.show(n.value)+")"}}},e.getEq=k,e.getOrd=function(t){return{equals:k(t).equals,compare:function(n,i){return n===i?0:e.isSome(n)?e.isSome(i)?t.compare(n.value,i.value):1:-1}}},e.getApplySemigroup=S,e.getApplyMonoid=function(t){return{concat:S(t).concat,empty:e.some(t.empty)}},e.getFirstMonoid=function(){return{concat:function(t,n){return e.isNone(t)?n:t},empty:e.none}},e.getLastMonoid=function(){return{concat:function(t,n){return e.isNone(n)?t:n},empty:e.none}},e.getMonoid=function(t){return{concat:function(n,i){return e.isNone(n)?i:e.isNone(i)?n:e.some(t.concat(n.value,i.value))},empty:e.none}},e.Functor={URI:e.URI,map:o},e.Applicative={URI:e.URI,map:o,ap:a,of:e.of},e.Monad={URI:e.URI,map:o,ap:a,of:e.of,chain:u},e.Foldable={URI:e.URI,reduce:c,foldMap:l,reduceRight:d},e.Alt={URI:e.URI,map:o,alt:h},e.Alternative={URI:e.URI,map:o,ap:a,of:e.of,alt:h,zero:e.zero},e.Extend={URI:e.URI,map:o,extend:v},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:o,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y},e.Traversable={URI:e.URI,map:o,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence},e.Witherable={URI:e.URI,map:o,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y,wither:w,wilt:b},e.MonadThrow={URI:e.URI,map:o,ap:a,of:e.of,chain:u,throwError:e.throwError},e.option={URI:e.URI,map:o,of:e.of,ap:a,chain:u,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence,zero:e.zero,alt:h,extend:v,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y,wither:w,wilt:b,throwError:e.throwError},e.elem=function(t){return function(n,i){return!e.isNone(i)&&t.equals(n,i.value)}},e.exists=function(t){return function(n){return!e.isNone(n)&&t(n.value)}},e.getRefinement=function(t){return function(n){return e.isSome(t(n))}},e.Do=e.of({}),e.bindTo=function(t){return e.map(jt.bindTo_(t))},e.bind=function(t,n){return e.chain((function(i){return jt.pipe(n(i),e.map((function(e){return jt.bind_(i,t,e)})))}))},e.apS=function(t,n){return jt.flow(e.map((function(e){return function(n){return jt.bind_(e,t,n)}})),e.ap(n))},e.traverseArrayWithIndex=function(t){return function(n){for(var i=[],r=0;r<n.length;r++){var s=t(r,n[r]);if(e.isNone(s))return e.none;i.push(s.value)}return e.some(i)}},e.traverseArray=function(t){return e.traverseArrayWithIndex((function(e,n){return t(n)}))},e.sequenceArray=e.traverseArray(jt.identity)}));function Nt(t){this.message=t}(Nt.prototype=new Error).name="InvalidCharacterError";var Rt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new Nt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,s=0,o="";i=e.charAt(s++);~i&&(n=r%4?64*n+i:i,r++%4)?o+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};function Dt(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Rt(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return Rt(e)}}function Ot(t){this.message=t}(Ot.prototype=new Error).name="InvalidTokenError";const Lt=new class{async getAustralianFundsAsync(t,e=!1){return Vt().url("super-choice/australian-funds?"+this.toQueryString(e,t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Vt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toSearchFilterQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}toQueryString(t,e){return[this.toSearchFilterQueryString(e),t?"includeInactive=true":""].filter((t=>t&&t.length)).join("&")}},Ut={apiBaseUrl:Pt.none,appBaseUrl:Pt.none,profileId:Pt.none,jwt:Pt.none,superBuyer:Pt.none,promotedFunds:Pt.none,accountConfiguration:Pt.none,profileConfiguration:Pt.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},qt=new class{constructor(){const{state:t,onChange:e}=Bt(Ut);this._state=t,this._onChange=e,e("jwt",(t=>{this._state.profileId=jt.pipe(t,Pt.chain((t=>Pt.fromNullable(function(t,e){if("string"!=typeof t)throw new Ot("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(Dt(t.split(".")[n]))}catch(t){throw new Ot("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(Pt.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(Pt.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(Pt.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(Pt.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(Pt.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const t=jt.pipe(this._state.profileConfiguration,Pt.map((t=>Pt.fromNullable(t.defaultFundUsi))),Pt.flatten);return Pt.isSome(t)?t:jt.pipe(this._state.accountConfiguration,Pt.map((t=>Pt.fromNullable(t.defaultFundUsi))),Pt.flatten)}get accountIdOrDefault(){return jt.pipe(this._state.accountConfiguration,Pt.map((t=>t.accountId)),Pt.getOrElse((()=>"")))}get partnerIdOrDefault(){return jt.pipe(this._state.superBuyer,Pt.map((t=>t.partnerId)),Pt.getOrElse((()=>"")))}get jwt(){if(Pt.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}async loadAppStateAsync(){const t=await Lt.getAppStateAsync();this._state.accountConfiguration=Pt.fromNullable(t.accountConfiguration),this._state.profileConfiguration=Pt.fromNullable(t.profileConfiguration),this._state.superBuyer=Pt.fromNullable(t.superBuyer),this._state.promotedFunds=Pt.fromNullable(t.promotedFunds)}};function Vt(){const t=qt.jwt,e=qt.profileId,n=qt.accountIdOrDefault,i=qt.partnerIdOrDefault;return Mt(qt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":e,"X-PARTNER-ID":i,"X-ACCOUNT-ID":n})}class Ht{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Vt().url("analytics-events").post(t).res()}}class zt{constructor(){this.eventTrackingApi=Ht.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async TrackSuperFundNominationViewedAsync(t){return this.trackEventAsync({SuperFundNominationViewed:t})}async TrackSuperFundNominationDeclinedAsync(t){return this.trackEventAsync({SuperFundNominationDeclined:t})}async TrackSuperFundDisclaimerViewedAsync(t){return this.trackEventAsync({SuperFundDisclaimerViewed:t})}async TrackSuperFundDisclaimerAcceptedAsync(t){return this.trackEventAsync({SuperFundDisclaimerAccepted:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}function Wt(t,e){void 0===e&&(e="*"),t.sender="flare",window.parent.postMessage(t,e)}const $t=function(){Wt({type:"appReady"})},Xt=function(t,e){Wt({type:"contentResized",height:t,width:e})},Gt=function(t){Wt({type:"pageNavigated",url:t})},Jt=function(){Wt({type:"complete"})},Kt=function(){Wt({type:"submitSuccess"})},{state:Yt}=Bt({handleSubmitFn:async function(){},fundName:"",promotedFundId:void 0});var Qt;!function(t){t.ConsentPage="/consent",t.ExistingChoicePage="/existing",t.ChoicePage="/",t.SlateJoin="/slate/join/",t.PromotedFundJoinV1="/promoted-fund/join/v1",t.PromotedFundJoinV2="/promoted-fund/join/v2",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.StandardChoice="/standard-choice/",t.Success="/success/"}(Qt||(Qt={}));const Zt=[e("stencil-route",{url:Qt.ConsentPage,component:"sss-consent-page"}),e("stencil-route",{url:Qt.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{exact:!0,url:Qt.ChoicePage,component:"sss-super-choice-page"}),e("stencil-route",{url:Qt.SlateJoin,component:"sss-slate-join-page"}),e("stencil-route",{url:Qt.PromotedFundJoinV1,component:"sss-promoted-fund-join-v1-page"}),e("stencil-route",{url:Qt.PromotedFundJoinV2,component:"sss-promoted-fund-join-v2-page"}),e("stencil-route",{url:Qt.MyOwnFund,component:"sss-my-own-fund"}),e("stencil-route",{url:Qt.SelfManagedFund,component:"sss-self-managed-fund"}),e("stencil-route",{url:Qt.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:Qt.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:Qt.Success,component:"sss-success"})],te=new class{navigateInternally(t,e){const n=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(e)}`;Gt(n),t.push(n)}navigateInternallyToStandardChoice(t){Yt.handleSubmitFn=t.handleSubmitFn,Yt.fundName=t.fundName,Yt.promotedFundId=t.promotedFundId,this.navigateInternally(t.history,Qt.StandardChoice)}toExternalUrl(t){const e=new URL(t);return e.searchParams.append("_extnav","true"),e.href}get appBaseUrl(){return qt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}},ee=class{constructor(e){t(this,e),this.promotedFunds=qt.promotedFunds,this.eventTrackingService=zt.Instance}componentDidLoad(){return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync({promotedFundsShown:this.promotedFunds})}render(){return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center leading-8"},"Important information about super"),e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7 sm:leading-8"},"The choice of superannuation fund is an important personal financial decision. Next, you’ll be asked to nominate a super fund to receive your employer contributions."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg"},e("div",{class:"sm:text-lg font-bold leading-6"},"By clicking “Continue” you acknowledge that:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6"},e("li",null,"Flare (we/us) provides this paperless employee management service, will feature superannuation funds and offer you employee benefits that you may be interested in;"),e("li",null,"all content contained in the following pages does not take into account any of your objectives, financial situation or needs and does not constitute financial product advice;"),e("li",null,"in featuring any superannuation funds, we, the technology partner you are accessing us via, or your employer, are not providing any opinion or recommendation (actual or implied) in relation to the suitability or appropriateness of the featured funds;"),e("li",null,"if you do choose one of the featured superannuation funds, we and our associates will normally receive a fee for you doing so.")),e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSuperFundDisclaimerAccepted()},"Continue"))))}async handleSuperFundDisclaimerAccepted(){const t={promotedFundsShown:this.promotedFunds};await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync(t),te.navigateInternally(this.history,Qt.ChoicePage)}};var ne;!function(t){t.MyOwnFund="Your current super fund",t.DefaultFund="Your employer's default fund",t.SelfManagedFund="Your self-managed super fund"}(ne||(ne={}));const ie={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:q,fundName:q,memberNumber:q},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:""},currentCustomFundType:ne.MyOwnFund,customFunds:[{label:ne.MyOwnFund,value:Qt.MyOwnFund},{label:ne.SelfManagedFund,value:Qt.SelfManagedFund},{label:ne.DefaultFund,value:Qt.DefaultFund}]},{state:re}=Bt(ie),se=re.customFunds,oe=class{constructor(e){t(this,e),this.currentCustomFund=se[0],this.fundOptionsList=se,this.showFundOptionsSelection=!1}componentWillLoad(){let t="";window.location.pathname.includes(Qt.MyOwnFund)&&(t=Qt.MyOwnFund),window.location.pathname.includes(Qt.DefaultFund)&&(t=Qt.DefaultFund),window.location.pathname.includes(Qt.SelfManagedFund)&&(t=Qt.SelfManagedFund),this.currentCustomFund=se.find((e=>e.value===t))||se[0],te.navigateInternally(this.history,t)}render(){const t=()=>e("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}));return e("div",{class:"max-w-560 relative"},e("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),e("div",{class:"mt-1 mb-4"},e("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:()=>this.showFundOptionsSelection=!this.showFundOptionsSelection},e("span",{class:{"block truncate":!0,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))),null))),this.showFundOptionsSelection&&e("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((n=>e("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base",onClick:()=>{this.showFundOptionsSelection=!this.showFundOptionsSelection,te.navigateInternally(this.history,n.value)}},e("span",{class:{"block truncate":!0,"font-semibold":this.currentCustomFund===n}},n.label),this.currentCustomFund===n&&e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},e(t,null))))))),e("div",{onClick:()=>this.showFundOptionsSelection=!1},e("slot",null)))}};W(oe);const ae=new class{searchFundsAsync(t,e){return Lt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:e})}async getActiveFundByUsiAsync(t){const e=await Lt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===e.length?Pt.some(e[0]):Pt.none}async getFundByUsiAsync(t){const e=await Lt.getAustralianFundsAsync({type:"usiMatch",usi:t},!0);return 1===e.length?Pt.some(e[0]):Pt.none}},ue=new class{async submitDefaultFundChoiceAsync(t){return Vt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Vt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Vt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async validateAbnForSMSF(t){return(await Vt().url(`super-choice/smsf/${t}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}},ce=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=zt.Instance}async componentWillLoad(){const t=qt.defaultFundUsi;if(Pt.isNone(t))return;this.isDefaultFundExists=!0;const e=await ae.getActiveFundByUsiAsync(t.value);Pt.isNone(e)?this.isInvalidDefaultFund=!0:(this.defaultFund=e.value,this.defaultFundProductName=e.value.productName)}componentDidLoad(){var t,e,n,i;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:null!==(e=null===(t=this.defaultFund)||void 0===t?void 0:t.usi)&&void 0!==e?e:"",fundName:null!==(i=null===(n=this.defaultFund)||void 0===n?void 0:n.productName)&&void 0!==i?i:"",promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},e("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",null,e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),e("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),e("div",{class:"text-sm text-gray-700"},e("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),e("ul",{class:"list-disc list-outside pl-5"},e("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),e("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),e("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",{class:"mb-4"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm()},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||te.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",handleSubmitFn:async t=>{await ue.submitDefaultFundChoiceAsync({standardChoiceFormSignature:t})}})}},le=class{constructor(n){t(this,n),this.valueChanged=o(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results"):"in progress"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching..."):0===this.filteredOptions.length?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":!0,"bg-primary-base":this.isOptionSelected(t)},onClick:()=>{this.highlightedOptionIndex=n,this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,e;this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightItem("Next"),!0;case"ArrowUp":return this.highlightItem("Prev"),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightItem=t=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(Math.max(0,this.highlightedOptionIndex+("Next"===t?1:-1)),this.filteredOptions.length-1),void 0!==this.highlightedOptionIndex&&this.selectOption(this.filteredOptions[this.highlightedOptionIndex]))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=B(this.inputElement,"keyup").pipe(function(t,e=w){return n=>n.lift(new j(t,e))}(500),f((()=>this.inputElement.value)),x(),k(this.shouldExecuteSearch),R(this.onBeginSearch),M(this._searchFunction),R(this.onCompleteSearch)).subscribe()}disconnectedCallback(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return e(s,null,e("div",{class:"relative"},e("input",{type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":!0,hidden:!this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":!0,hidden:!this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults())))}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction");return this.searchFunction}};le.style="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";const de="https://www.australianethical.com.au/super/pds-forms/",fe=[{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"},{dtoPropName:"active",id:"active"},{dtoPropName:"australianEthical",id:"australian-ethical"},{dtoPropName:"virgin",id:"virgin"},{dtoPropName:"spirit",id:"spirit"},{dtoPropName:"firstSuper",id:"first-super"}],he=t=>{switch(t){case"slate":return"Slate Super";case"australian-retirement-trust":return"Australian Retirement Trust";case"aware":return"Aware Super";case"active":return"Active Super";case"australian-ethical":return"Australian Ethical";case"virgin":return"Virgin Money Super";case"spirit":return"Spirit Super";case"first-super":return"First Super";default:return}},pe=t=>{switch(t){case"slate":return"32367272075001";default:return}},me=t=>{let e="";switch(t){case"slate":e="logo-slate.png";break;case"australian-retirement-trust":e="logo-art.svg";break;case"aware":e="logo-aware.svg";break;case"active":e="logo-active.svg";break;case"australian-ethical":e="logo-aus-eth.svg";break;case"virgin":e="logo-virgin.svg";break;case"spirit":e="logo-spirit.svg";break;case"first-super":e="logo-first.svg";break;default:return}if(""!==e)return r("assets/"+e)};const ve=new class{async GetExistingFundAsync(){var t,e;const n=qt.superBuyer.superChoice,i=null===(t=qt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!n)return q;if(!i)return q;const r=null==n.dateSubmitted?q:V(new Date(n.dateSubmitted)),s="promoted"in(a=i)?function(t){return"slate"in t?q:"australianRetirementTrust"in t?V(t.australianRetirementTrust.usi):"aware"in t?V(t.aware.usi):"active"in t?V(t.active.usi):"australianEthical"in t?V(t.australianEthical.usi):"virgin"in t?V(t.virgin.usi):"spirit"in t?V(t.spirit.usi):"firstSuper"in t?V(t.firstSuper.usi):q}(a.promoted):"myOwnFund"in a?V(a.myOwnFund.usi):"smsf"in a?q:"default"in a?V(a.default.usi):q,o=function(t){return"promoted"in t?function(t){return"slate"in t?V(t.slate.memberNumber):"australianRetirementTrust"in t?V(t.australianRetirementTrust.memberNumber):"aware"in t?V(t.aware.memberNumber):"active"in t?V(t.active.memberNumber):"australianEthical"in t?V(t.australianEthical.memberNumber):"virgin"in t?V(t.virgin.memberNumber):"spirit"in t?V(t.spirit.memberNumber):"firstSuper"in t?V(t.firstSuper.memberNumber):q}(t.promoted):"myOwnFund"in t?V(t.myOwnFund.memberNumber):q}(i);var a;if("promoted"in i){const t=fe.find((t=>t.dtoPropName in i.promoted));return null==(null==t?void 0:t.id)?q:V({type:"Promoted Fund",id:t.id,name:null!==(e=he(t.id))&&void 0!==e?e:"",usi:s,valid:"Active",memberNumber:o,lastNominatedAt:r})}if("smsf"in i)return V({type:"Self Managed Fund",name:i.smsf.fundName,valid:"Unknown",lastNominatedAt:r});if("myOwnFund"in i){const t=i.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return V({type:"My Own Fund",name:L(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:o,lastNominatedAt:r})}if("default"in i){const t=i.default.usi,e=await this.getFundByUsiAsync(t);return V({type:"Default Fund",name:L(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:r})}return q}async submitRetainSuperFundAsync(t){return Vt().url("super-choice/retain-super-fund").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}getFundByUsiAsync(t){return ae.getFundByUsiAsync(t)}toFundValidState(t){return L(t)?t.value.isActive?"Active":"Inactive":"Unknown"}};class ge{static isNewComplianceEnabled(){return!0}}const ye=class{constructor(e){t(this,e),this.eventTrackingService=zt.Instance,this.createSuperFundNominationDetail=t=>{function e(t){return L(t)?t.value:void 0}return{fundType:t.type.toString(),fundName:t.name,fundUsi:function(t){return"usi"in t?e(t.usi):void 0}(t),memberNumber:function(t){return"memberNumber"in t?e(t.memberNumber):void 0}(t),fundStatus:t.valid.toString(),lastNominatedAt:L(t.lastNominatedAt)?t.lastNominatedAt.value.toISOString():""}}}componentDidLoad(){const t=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(t)}async componentWillLoad(){const t=await ve.GetExistingFundAsync();L(t)&&"Inactive"!==t.value.valid?this.existingFund=t.value:te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}render(){const t=t=>e("div",{class:"flex justify-center"},e("img",{class:"h-16 object-contain w-full max-w-140",alt:he(t.id),src:me(t.id)})),n=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"})))),i=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"})))),r=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},e("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"}))));return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super choice"),e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-400 w-full"},e("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},e("div",{class:"space-y-4"},(()=>{switch(this.existingFund.type){case"Promoted Fund":return e(t,{id:this.existingFund.id});case"Self Managed Fund":return e(i,null);case"My Own Fund":return e(n,null);case"Default Fund":return e(r,null)}})(),e("div",{class:"sm:text-lg font-bold leading-6"},(()=>{switch(this.existingFund.type){case"Default Fund":return"Employer's default fund";default:return this.existingFund.name}})())),e("div",{class:"mt-6"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleFundNominationAccepted()},"Continue with this fund"))),e("div",{class:"mt-4"},e("sss-button",{fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund")))))}async handleFundNominationAccepted(){const t=this.createSuperFundNominationDetail(this.existingFund);await ve.submitRetainSuperFundAsync(t),qt.markSuperSelectionAsSubmitted()}async handleFundNominationDeclined(){const t=this.createSuperFundNominationDetail(this.existingFund);await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(t),te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}},we=class{constructor(e){t(this,e)}render(){return e("div",{class:"text-center text-gray-500 text-xs mt-8 sm:mt-20 w-full max-w-960 mx-auto"},e("span",null,"Powered by Flare"),e("p",{class:"block text-transparent"},"v","4.7.19177"),!ge.isNewComplianceEnabled()&&e("p",{class:"mt-4"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds."))}},be=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex justify-center"},e("div",{class:"text-center max-w-800"},e("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),ge.isNewComplianceEnabled()&&e(a,null,e("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},"You can choose any super fund, including your current fund/SMSF, your employer’s default fund, or alternatively, you can select from one of the featured funds."),e("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},e("stencil-route-link",{exact:!0,url:Qt.ChoicePage,anchorClass:"hover:bg-primary-hover block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus relative focus:z-10 border border-transparent text-gray-700 text-white rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full",activeClass:"hover:bg-white block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full bg-white border-gray-200 text-gray-900 shadow-sm text-primary-base"},"Featured super funds"),e("stencil-route-link",{exact:!0,url:Qt.MyOwnFund,anchorClass:"hover:bg-primary-hover block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 border border-transparent text-gray-700 text-white rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full",activeClass:"hover:bg-white block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full bg-white border-gray-200 text-gray-900 shadow-sm text-primary-base"},"Choose another fund")))))}},xe=class{constructor(e){t(this,e)}componentDidLoad(){this.build(this.iframeElement)}render(){return e("div",{class:"w-screen"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},ke=class{constructor(e){t(this,e),this.theme="primary",this.size=48}render(){return e("div",{class:"inline-block animate-spin"},e("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),e("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"primary"===this.theme?"fill-primary-base":"fill-white"})))}},Se=class{constructor(e){t(this,e)}render(){return e(s,{class:"flex flex-col justify-center items-center"},e("h5",{class:"text-lg"},"Loading your superannuation step"),e("sss-loading-indicator",null))}},Ce=class{constructor(e){t(this,e),this.isNotAllInformationProvidedMessageVisible=!1,this.isSubmitDisabled=!0,this.eventTrackingService=zt.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:H(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-2"},e("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},e("li",null,"Make sure you are a current member of the fund before completing this step."),e("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),e("sss-my-own-fund-inputs",{myOwnFundForm:re.myOwnFundForm,showValidationErrors:"validated"===this.formState,onFormChanged:t=>{re.myOwnFundForm=Object.assign(Object.assign({},re.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}}),this.isNotAllInformationProvidedMessageVisible&&e("div",{class:"mt-4 rounded-md bg-red-50 p-4 text-sm text-red-700"},"All fields are required to complete submission. Make sure you have selected a fund.")),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},e("div",{class:"mb-4"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back"))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(L(re.myOwnFundForm.fundUsi)&&L(re.myOwnFundForm.memberNumber)?te.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(re.myOwnFundForm.fundName),handleSubmitFn:async t=>{const e={fundUsi:this.getOrError(re.myOwnFundForm.fundUsi),memberNumber:this.getOrError(re.myOwnFundForm.memberNumber),standardChoiceFormSignature:t};await ue.submitCustomFundChoiceAsync(e)}}):this.isNotAllInformationProvidedMessageVisible=!0)}getOrError(t){return jt.pipe(t,(e=()=>{throw new Error("Option value is none.")},function(t){return U(t)?e():t.value}));var e}};W(Ce);const Ae=class{constructor(e){t(this,e),this.formChanged=o(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await ae.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,e)=>t.productName.localeCompare(e.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return e("div",null,e("div",null,e("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),e("div",{class:"mt-1"},e("sss-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:"Type to search by name or USI...",value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFund(t.detail)},showValidationErrors:this.showValidationErrors})),L(this.myOwnFundForm.fundUsi)&&e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.myOwnFundForm.fundUsi.value))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Member number"),e("div",{class:"mt-1"},e("input",{type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:H(re.myOwnFundForm.memberNumber),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))))}updateFund(t){this.formChanged.emit({fundUsi:V(t.value),fundName:V(t.label)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:V(t)})}},Fe=new class{async submitChoiceAsync(t){return Vt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},{state:_e}=Bt({fundId:""}),Me=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"===window.location.origin,this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:qt.partnerIdOrDefault,accountId:qt.accountIdOrDefault,fundId:_e.fundId,authToken:qt.jwt}),i=n=>{var r;const{data:s}=n;if(s)if("promoted-fund-redirect"!==s.sender){if("promoted-fund-join"===s.sender)switch(s.type){case"contentResized":t.height=s.height>0?s.height:t.height,t.width=s.width>0?s.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),Gt(window.location.href)}}else switch(window.removeEventListener("message",i),s.type){case"cancel":te.navigateInternally(e,Qt.ChoicePage);break;case"success":if(s.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:null!==(r=he(_e.fundId))&&void 0!==r?r:"",handleSubmitFn:t=>Fe.submitChoiceAsync(Object.assign(Object.assign({},_e),{memberNumber:s.memberNumber,usi:s.usi.replace(/ /g,""),standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})),promotedFundId:_e.fundId});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const s=r.createElement("form");let o;for(o in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),n){const t=n[o];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=o,e.value=t,s.append(e)}}r.appendChild(s),r.close(),s.submit()}getMemberData(){var t,e;const n=qt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},Ee=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Me.build(t,this.history)})}},Ie=new class{constructor(){this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}api.simplefinancialchoices.com/promoted-funds/embed`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:qt.partnerIdOrDefault,accountId:qt.accountIdOrDefault,fundId:_e.fundId,authToken:qt.jwt}),i=n=>{var r;const{data:s}=n;if(s)if("promoted-fund-redirect"!==s.sender){if("promoted-fund-join"===s.sender)switch(s.type){case"contentResized":t.height=s.height>0?s.height:t.height,t.width=s.width>0?s.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),Gt(window.location.href)}}else switch(window.removeEventListener("message",i),s.type){case"cancel":te.navigateInternally(e,Qt.ChoicePage);break;case"success":if(s.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:null!==(r=he(_e.fundId))&&void 0!==r?r:"",handleSubmitFn:t=>Fe.submitChoiceAsync(Object.assign(Object.assign({},_e),{memberNumber:s.memberNumber,usi:s.usi.replace(/ /g,""),standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})),promotedFundId:_e.fundId});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const s=r.createElement("form");let o;for(o in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),n){const t=n[o];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=o,e.value=t,s.append(e)}}r.appendChild(s),r.close(),s.submit()}getMemberData(){var t,e;const n=qt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},Be=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Ie.build(t,this.history)})}};function Te(t){const e=t.split("").map(Number),n=e.every((t=>!isNaN(t))),i=[10,1,3,5,7,9,11,13,15,17,19];return!(!n||e.length!==i.length)&&(e[0]--,e.reduce(((t,e,n)=>t+e*i[n]),0)%89==0)}const je=class{constructor(e){t(this,e),this.isSubmitDisabled=!0,this.isAbnValid=Te(re.selfManagedFundForm.fundAbn),this.eventTrackingService=zt.Instance,this.success=()=>{te.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",handleSubmitFn:async t=>{const e={smsfChoice:{abn:re.selfManagedFundForm.fundAbn,fundName:re.selfManagedFundForm.fundName,fundAddress:{addressLine1:re.selfManagedFundForm.addressLine1,addressLine2:re.selfManagedFundForm.addressLine2,city:re.selfManagedFundForm.city,state:re.selfManagedFundForm.state,postcode:re.selfManagedFundForm.postcode},bsb:re.selfManagedFundForm.bsb,bankAccountName:re.selfManagedFundForm.bankAccountName,bankAccountNumber:re.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:re.selfManagedFundForm.fundEsa},standardChoiceFormSignature:t};await ue.submitSelfManagedFundChoiceAsync(e)}})}}componentDidLoad(){return this.updateIsSubmitDisabled(),this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:H(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"},e("p",{class:"sm:text-lg font-bold"},"Fund details"),e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))),e("sss-self-managed-fund-inputs",{fundForm:re.selfManagedFundForm,showValidationErrors:"validated"===this.formState,onFormChanged:t=>{re.selfManagedFundForm=Object.assign(Object.assign({},re.selfManagedFundForm),t.detail),void 0!==t.detail.isAbnValid&&(this.isAbnValid=t.detail.isAbnValid),this.updateIsSubmitDisabled()}})),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},e("div",{class:"mb-4",onClick:()=>this.formState="validated"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back"))))))))}updateIsSubmitDisabled(){this.isSubmitDisabled=!this.formElement.checkValidity()||!this.isAbnValid}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&this.success()}};W(je);const Pe={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"},Ne=class{constructor(e){t(this,e),this.formChanged=o(this,"formChanged",7),this.isAbnValid=!1,this.isAbnTouched=!1,this.isAbnUsedForRegulated=!1,this.currentBank=q,this.addressErrorMessage=q,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){const t={"relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors};return e("div",null,e("div",null,e("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundName",id:"fundName",value:re.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund name"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund ABN"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:re.selfManagedFundForm.fundAbn,inputmode:"numeric",pattern:"[0-9]*",onKeyUp:async t=>{const e=t.target.value;this.updateFormField("fundAbn",e.trim()),this.isAbnValid=Te(e),this.isAbnValid&&(this.isAbnUsedForRegulated=await this.isAbnUsedForRegulatedAsync(e)),this.updateFormField("isAbnValid",this.isAbnValid)},onBlur:()=>this.isAbnTouched=!0}),this.renderAbnValidationError())),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Electronic service address alias (ESA)"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:re.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund ESA"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),e("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},e("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none rounded-t-md shadow-none":!0}),required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:re.selfManagedFundForm.addressLine1,onChange:t=>{this.updateFormField("addressLine1",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.addressLine1Element=t}),e("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":!0}),name:"addressLine2",id:"addressLine2",value:re.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),e("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":!0}),name:"city",required:!0,id:"city",value:re.selfManagedFundForm.city,onChange:t=>{this.updateFormField("city",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.cityElement=t}),e("div",{class:"flex -space-x-px"},e("div",{class:"w-1/2 flex-1 min-w-0"},e("input",{placeholder:"Postcode",type:"text",required:!0,class:Object.assign(Object.assign({},t),{"rounded-none rounded-bl-md shadow-none":!0}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:re.selfManagedFundForm.postcode,inputmode:"numeric",onChange:t=>{this.updateFormField("postcode",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.postcodeElement=t})),e("div",{class:"flex-1 min-w-0"},e("select",{class:Object.assign(Object.assign({},t),{"rounded-none rounded-br-md shadow-none":!0,"text-gray-500":void 0!==this.fundForm.state}),name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.stateElement=t},e("option",{disabled:!0,selected:void 0!==this.fundForm.state,value:""},"State"),this.stateOptions.map((t=>e("option",{value:t.value,selected:this.fundForm.state===t.value},t.label))))))),L(this.addressErrorMessage)&&this.showValidationErrors&&e("div",{class:"mt-2 text-sm text-red-600"},this.addressErrorMessage.value)),e("h3",{class:"text-lg font-bold mt-6"},"Fund bank details"),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Account name"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bankAccountName",minlength:"2",id:"bankAccountName",value:re.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account name"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"BSB"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bsb",id:"bsb",minlength:"6",maxlength:"7",inputmode:"numeric",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:re.selfManagedFundForm.bsb}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid BSB"))),L(this.currentBank)&&e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Bank name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm"},this.currentBank.value)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Account number"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,inputmode:"numeric",value:re.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account number"))))}updateFormField(t,e){this.formChanged.emit({[t]:e})}async isAbnUsedForRegulatedAsync(t){return!await ue.validateAbnForSMSF(t)}renderAbnValidationError(){if(this.isAbnTouched||this.showValidationErrors){if(!this.isAbnValid)return e("div",{class:"mt-2 text-sm text-red-600"},"Enter a valid fund ABN (digits only)");if(this.isAbnUsedForRegulated)return e("div",{class:"mt-2 text-sm text-red-600"},"The supplied ABN is for a regulated fund")}return[]}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const e=this.filterDigits(t.target.value),n=e.substring(0,2),i=e.substring(0,3),r=Pe[n],s=Pe[i];r&&(this.currentBank=V(r)),s&&(this.currentBank=V(s)),(""===e||e.length>6)&&(this.currentBank=q),this.updateFormField("bsb",e)}updateCurrentBankAccountNumber(t){const e=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",e)}updateAddressErrorMessage(){let t=q;U(t)&&!this.addressLine1Element.checkValidity()&&(t=V("Enter a valid address line 1")),U(t)&&!this.cityElement.checkValidity()&&(t=V("Enter a valid city/suburb")),U(t)&&!this.postcodeElement.checkValidity()&&(t=V("Enter a valid post code")),U(t)&&!this.stateElement.checkValidity()&&(t=V("Select a state")),this.addressErrorMessage=t}};var Re;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(Re||(Re={}));class De{}let Oe=class extends C{constructor(){super({authenticationState:Re.Unauthorized,jwt:q,reactNativeInterop:q,iframeInterop:q,appConfiguration:q,ignoreExistingSelection:!1})}};Oe=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}([S({name:"sss-session",resettable:!0})],Oe);const Le=new Oe,Ue=new class extends A{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return L(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return L(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(U(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(Le),qe=new class{async submitSlateChoiceAsync(t){return Vt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},Ve=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"===window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>Ue.isReactNativeInteropEnabled()?"true":"false",this.skipInsurance=()=>Ue.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:n,cancelRedirectUrl:n,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});this.includeJwt()&&(i.authToken=qt.jwt);const r=n=>{const{data:i,origin:s}=n;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&s.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:"Slate Super",handleSubmitFn:t=>qe.submitSlateChoiceAsync({memberNumber:i.memberNumber,standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)}),promotedFundId:"slate"});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",r);const s=t.contentDocument;s.open();const o=s.createElement("form");let a;for(a in o.method="POST",o.target="_self",o.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,o.append(e)}}s.appendChild(o),s.close(),o.submit()}getSlateJoinMemberData(){var t,e;const n=qt.superBuyer;return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},He=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Ve.build(t,this.history)})}},ze=class{constructor(e){t(this,e),this.standardChoiceFormSignature="",this.isSubmitDisabled=!0}render(){return e(s,null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),e("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."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-560"},e("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},Yt.promotedFundId&&me(Yt.promotedFundId)&&e("div",{class:"pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start"},e("img",{class:"h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain",alt:Yt.fundName,src:me(Yt.promotedFundId)})),e("div",{class:"flex justify-between w-full"},e("div",null,e("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),e("div",{class:"text-sm mt-2"},Yt.fundName)),e("div",{class:"grid content-center ml-4"},e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{size:"xs",variant:"secondary"},"Change"))))),e("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},e("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),e("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-information-circle.svg")})),e("div",{class:"ml-2"},e("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.")))),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"mt-3":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),e("input",{type:"text",autocomplete:"off",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-focus w-full text-base sm:text-sm border-gray-300 rounded-md mt-1":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":"validated"===this.formState},required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:t=>this.standardChoiceFormSignature=t.target.value}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),e("div",{class:"mt-6"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Confirm and continue")))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await Yt.handleSubmitFn(this.standardChoiceFormSignature.trim()),qt.markSuperSelectionAsSubmitted())}},We=class{constructor(e){t(this,e)}render(){return e(s,{class:"text-center"},e("div",{class:"flex justify-center"},e("div",{class:"relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},e("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))),null)))),e("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),e("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),e("div",{class:"flex justify-center mt-8"},e("div",{class:"max-w-[200px] w-full"},e("sss-button",{size:"xl",fillWidth:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))}handleContinueButtonClick(t){qt.completeSuperSelectionFlow()}},$e=class{constructor(e){t(this,e),this.joinFundClicked=o(this,"joinFundClicked",7)}render(){return e(s,null,e("div",{class:"py-6 px-4 lg:px-6 flex flex-col justify-between h-full"},e("div",null,e("div",{class:"md:max-w-[240px] lg:max-w-full"},e("sss-button",{class:"uuid-button-continue",fillWidth:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),e("div",{class:"text-xs text-gray-500 mt-6 leading-4"},this.disclaimer)),this.abnInfo&&this.abn&&e("div",{class:"text-xs text-gray-500 mt-2"},e("p",null,`${ge.isNewComplianceEnabled()?"Issued by ":""}${this.abnInfo}.`),e("p",null,"ABN: ",this.abn))))}handleFundClick(){return this.joinFundClicked.emit()}},Xe=class{constructor(e){t(this,e)}render(){return e(s,null,e("div",{class:"px-4 lg:px-6 pt-6"},e("div",{class:"text-right w-100 -mt-5 -mr-3.5 lg:-mr-5"},e("span",{class:"text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5"},ge.isNewComplianceEnabled()?"Featured":"Advertised")),e("div",{class:"flex lg:block mt-2 md:mt-0 lg:mt-4"},e("img",{class:"h-12 md:h-14 lg:h-16 object-contain w-auto w-[80px] md:w-[96px] lg:w-[140px] md:hidden lg:block lg:object-left",alt:this.name,src:r("assets/"+this.logo)}),e("div",{class:"grid content-center"},e("p",{class:"text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0 lg:mt-4"},this.name))),e("div",{class:"mt-4 sm:mt-2 text-sm space-y-2"},this.features.map((t=>e("div",{class:"flex"},e("div",{class:"h-5 w-5 flex-none mr-1.5"},e("img",{alt:"checked",src:r("assets/icon-check.svg")})),e("div",{class:"leading-5"},t))))),this.featureSubText&&e("p",{class:"text-xs text-gray-500 italic mt-4 leading-4"},this.featureSubText)))}},Ge=class{constructor(e){t(this,e),this.promotedFunds=this.getPromotedFunds(),this.eventTrackingService=zt.Instance}componentDidLoad(){const t=this.promotedFunds.map((t=>t.fundId));return this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})}render(){return e(s,null,e("div",null,e("sss-header-section",{currentPage:"choice"}),ge.isNewComplianceEnabled()&&e("div",{class:"mt-8 text-sm text-center leading-6"},e("p",{class:"leading-6"},"Not ready to join a new fund, or want to nominate another super fund?"),e("stencil-route-link",{url:Qt.MyOwnFund},e("span",{class:"inline-block text-primary-base font-medium mt-3"},"Skip Featured Funds ",e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"inline h-5 w-5 fill-primary-base group-hover:fill-white"},e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))))),!ge.isNewComplianceEnabled()&&e("div",{class:"flex justify-center pb-4"},e("div",{class:"text-center space-y-4 max-w-960 text-sm leading-6"},e("p",{class:"text-lg leading-8 text-gray-600"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund."),e("p",null,"Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),e("p",null,"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion."),e("p",null,"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."),e("p",null,"You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so."))),e("div",{class:"flex justify-center mt-8"},e("div",{class:{"lg:grid border-l border-t lg:border-b rounded-lg":!0,"lg:grid-cols-1 max-w-400":1===this.promotedFunds.length,"lg:grid-cols-2 max-w-720":2===this.promotedFunds.length,"lg:grid-cols-3 max-w-960":3===this.promotedFunds.length}},this.promotedFunds.map(((t,n)=>e("div",{class:{"border-r":!0,"rounded-tr-lg":0===n,"lg:rounded-tr-none":0===n&&n!==this.promotedFunds.length-1,"rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg":n===this.promotedFunds.length-1}},e("div",{class:{"flex border-b lg:border-b-0":!0,"rounded-b-lg":n===this.promotedFunds.length-1}},e("div",{class:"hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6"},e("img",{class:"h-16 object-contain w-full max-w-[96px]",alt:t.name,src:r("assets/"+t.logo)})),e("div",{class:"w-full"},e("sss-super-choice-item-top",{logo:t.logo,name:t.name,features:t.features,featureSubText:t.featureSubText}),e("div",{class:"lg:hidden"},e("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))))),this.promotedFunds.map(((t,n)=>e("div",{class:{"hidden lg:block border-r":!0,"rounded-br-lg":n===this.promotedFunds.length-1}},e("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)})))))),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"pb-8 sm:pb-12 max-w-720 border-b"},e("h5",{class:"font-bold sm:text-lg"},"Or, choose another super fund:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base"},e("li",null,"Select this option if you'd like to use your current account with another super fund, your self-managed super fund, or your employer's default fund."),e("li",null,"If you are unsure of your current super fund details, you can find out at"," ",e("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:te.toExternalUrl("https://my.gov.au")},"www.my.gov.au")),e("li",null,"A full list of super funds can be viewed at"," ",e("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:te.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au"))),e("stencil-route-link",{url:Qt.MyOwnFund},e("sss-button",{fillWidthOnMobile:!0},"Choose another super fund")))),ge.isNewComplianceEnabled()&&e("div",{class:"flex justify-center"},e("div",{class:"pt-8 sm:pt-12 max-w-720"},e("h5",{class:"font-semibold"},"IMPORTANT INFORMATION:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6"},e("li",null,"The superannuation funds featured above are for your information only. The order, position and placement of content should not be interpreted as an opinion or recommendation (actual or implied) by Flare as to the suitability or appropriateness of any superannuation fund for you. In featuring these superannuation funds, Flare has not taken into account your objectives, financial situation or needs."),e("li",null,"This is not a comparison service. This page contains factual information only and does not constitute either general or personal advice about any financial products. We do not take into account your objectives, financial situation or needs. If you have questions or need help making a decision about your superannuation fund, you should speak to a licensed financial product advice provider."),e("li",null,"Flare, the technology partner you are accessing Flare via and your employer do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the featured superannuation funds. Flare does not endorse or accept responsibility for any of the content shown about any of the featured superannuation funds."),e("li",null,"You should consider the relevant superannuation fund’s PDS and TMD (if applicable) in deciding whether to apply to join the superannuation fund. Each of the superannuation funds featured above include a link to their PDS and TMD (if applicable) for your convenience. If you are considering joining another superannuation fund, you can typically find the PDS and TMD (if applicable) on that fund’s website."),e("li",null,"You should be aware that, if you do choose one of the featured superannuation funds, Flare and it’s associates will normally receive a fee for you doing so (this includes Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, which is a sub-promoter of Slate Super)."))))))}allFunds(){const t=(t,n)=>e("a",{class:t.className||"font-medium underline hover:text-gray-600",target:"_blank",href:te.toExternalUrl(t.href),onClick:t.onClick},n);return[{fundId:"slate",name:"Slate Super",logo:"logo-slate.png",route:Qt.SlateJoin,features:[e("p",null,"A lifestage investment strategy that evolves with you"),e("p",null,"Advanced mobile app with retirement forecast and smart features"),e("p",null,"Member advocates at Slate to assist with your account")],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e(t,{href:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",e(t,{href:"https://slate.co/forms-and-documents/target-market-determination/"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:"49 006 421 638"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",logo:"logo-art.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"$200 billion in retirement savings"),e("p",null,"2+ million members"),e("p",null,"A focus on delivering strong, long‑term returns")],featureSubText:e("span",null,"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option."),disclaimer:e("p",null,"You should consider the"," ",e(t,{href:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","and"," ",e(t,{href:"https://www.australianretirementtrust.com.au/tmd"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:"60 905 115 063"},{fundId:"aware",name:"Aware Super",logo:"logo-aware.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"Acting on climate change"),e("p",null,"All profits go to members"),e("p",null,"One of Australia’s largest funds")],disclaimer:e("p",null,"You should consider the"," ",e(t,{href:"https://aware.com.au/member/forms-and-resources/pds/FSS",onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:"53 226 460 365"},{fundId:"active",name:"Active Super",logo:"logo-active.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"Winner of Canstar's 2023 Outstanding Value – Superannuation Award considering investment performance, fees and product features*"),e("p",null,"Recognised as a leader in responsible investment"),e("p",null,"Calls answered in 20 seconds (average over 5 years)")],featureSubText:e("span",null,"*Based on a comparison of the Active Super Accumulation Scheme held by those aged 20-69 years and balances between $30,000 and $1.5 million."),disclaimer:e("p",null,"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at"," ",e(t,{onClick:()=>this.pdsViewedAsync("Active Super"),href:"https://www.activesuper.com.au/pds"},"activesuper.com.au")," ","before making a decision.")},{fundId:"australian-ethical",name:"Australian Ethical",logo:"logo-aus-eth.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Fastest growing super fund in Australia",e("sup",{class:"text-tiny"},"1")),e("p",null,"Nil investments in fossil fuel companies",e("sup",{class:"text-tiny"},"2")),e("p",null,"Competitive returns")],featureSubText:e("ol",{class:"list-decimal list-outside ml-3"},e("li",null,"Source: KPMG Super Insights Report 2022."),e("li",null,"All our options go through positive and negative ethical screening in accordance with the Australian Ethical Charter (in place since 1986).")),disclaimer:e("p",null,"Issued by Australian Ethical Superannuation Pty Ltd (ABN 43 079 259 733, RSE L0001441, AFSL 526055). Please consider the"," ",e(t,{href:"https://www.australianethical.com.au/globalassets/pdf-files/forms--pds/superpension/important-information/ae-financial-services-guide_sec.pdf"},"Financial Services Guide"),", the"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"Product Disclosure Statement")," ","and"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"Target Market Determination")," ","available on our"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"website"),".")},{fundId:"virgin",name:"Virgin Money Super",logo:"logo-virgin.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Returns above industry and retail super fund medians over the past 5 years",e("sup",{class:"text-tiny"},"1")),e("p",null,"One of the lowest fees in the market"),e("p",null,"Virgin Money rewards you with Velocity Points on your contributions",e("sup",{class:"text-tiny"},"2"))],featureSubText:e("div",{class:"m-4 pt-2"},e("ol",{class:"list-decimal space-y-2"},e("li",null,e("span",null,"Past performance is not a reliable indicator of future performance. Source: SuperRatings Fund Crediting Rate Survey April 2022.")),e("li",null,e("span",null,e(t,{className:"underline hover:text-gray-600",href:"https://virginmoney.com.au/superannuation/forms-and-key-information/key-documents"},"Eligibility and T&Cs apply"))))),disclaimer:e("p",null,"Prepared by Virgin Money Financial Services Pty Ltd ABN 51 113 285 395 AFSL 286869 (‘Virgin Money’). Virgin Money Super is a plan in the Mercer Super Trust ABN 19 905 422 981. Virgin Money Super is issued by Mercer Superannuation (Australia) Limited (MSAL) ABN 79 004 717 533 AFSL 235906 as trustee of the Mercer Super Trust. Consider the PDS and TMD at"," ",e(t,{href:"https://virginmoney.com.au/superannuation/",onClick:()=>this.pdsViewedAsync("Virgin Money Super")},"www.virginmoney.com.au")," ","before making a decision")},{fundId:"spirit",name:"Spirit Super",logo:"logo-spirit.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Proud Industry SuperFund - all profits go back to members"),e("p",null,"Best customer experience in super",e("sup",{class:"text-tiny"},"1")," and best for value",e("sup",{class:"text-tiny"},"2")),e("p",null,"Low fees",e("sup",{class:"text-tiny"},"3")," with a focus on strong returns and investing with impact in communities",e("sup",{class:"text-tiny"},"4"))],featureSubText:e("div",{class:"m-4 pt-2"},e("ol",{class:"list-decimal space-y-2"},e("li",null,e("span",null,"CSBA SenseCX Benchmark 2021-22")),e("li",null,e("span",null,"Awarded Best for Value in the WeMoney Superannuation Awards 2022")),e("li",null,e("span",null,"Just $67.60 + 0.15% pa admin fees, capped at $517.60")),e("li",null,e("span",null,"Rainmaker ESG Leader Rating 2022")))),disclaimer:e("p",null,"Past performance isn’t a reliable indicator of future performance. Consider the PDS and TMD at"," ",e(t,{href:"https://www.spiritsuper.com.au/pds",onClick:()=>this.pdsViewedAsync("Spirit Super")},"www.spiritsuper.com.au/pds")," ","before making a decision. Issuer is Motor Trades Association of Australia Superannuation Fund Pty Ltd (AFSL 238 718, ABN 14 008 650 628), the trustee of Spirit Super (ABN 74 559 365 913). Advice is provided by Quadrant First Pty Ltd (ABN 78 102 167 877, AFSL 284443).")},{fundId:"first-super",name:"First Super",logo:"logo-first.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Industry SuperFund that offers five investment options and default insurance"),e("p",null,"Strong long-term investment returns and superior customer service - members first"),e("p",null,"Established super fund – anyone can join including KiwiSaver members")],disclaimer:e("div",null,e("p",null,"General advice only which has been prepared without taking into account your objectives, financial situation or needs. Consider whether the advice is appropriate for you and read the Product Disclosure Statement (PDS) before making any investment decisions. PDS and Target Market Determination are available at our"," ",e(t,{onClick:()=>this.pdsViewedAsync("First Super"),href:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/"},"website"),". Past performance is not a reliable indicator of future performance."),e("br",null),e("p",null,"Issued by First Super Pty Ltd ABN 42 053 498 472, AFSL 223988 (Trustee) as Trustee of First Super ABN 56 286 625 181."))}]}getPromotedFunds(){const t=[];return qt.promotedFunds.forEach((e=>{const n=this.allFunds().find((t=>e===t.fundId));void 0!==n&&t.push(n)})),t}async handleJoinSuperClickAsync(t){var e;const n=qt.promotedFunds;return await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:pe(t.fundId),fundName:null!==(e=he(t.fundId))&&void 0!==e?e:"",promotedFundId:t.fundId,promotedFundsShown:n,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)}),_e.fundId=t.fundId,te.navigateInternally(this.history,t.route)}pdsViewedAsync(t,e){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:e,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}},Je=class{constructor(e){t(this,e),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const e=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!e)return this.previousMatch=this.match,this.match=dt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var e,n;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(n=this.previousMatch,null==(e=this.match)&&null==n||null!=n&&e&&n&&e.path===n.path&&e.url===n.url&&at(e.params,n.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?e(this.component,Object.assign({},t)):void 0}get el(){return u(this)}static get watchers(){return{location:["computeMatch"]}}};F.injectProps(Je,["location","history","historyType","routeViewsUpdated"]),Je.style="stencil-route.inactive{display:none}";const Ke=(t,e,n)=>n(t.confirm(e)),Ye=(t,e)=>{const n=t[e],i="__storage_test__";try{return n.setItem(i,i),n.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},Qe=class{constructor(e){t(this,e),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=dt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var e,n,i;if(!((e=t).metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(n=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+n:i+n))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),e(this.custom,Object.assign({},t),e("slot",null))}get el(){return u(this)}static get watchers(){return{location:["computeMatch"]}}};F.injectProps(Qe,["history","location","root"]);const Ze=t=>"STENCIL-ROUTE"===t.tagName,tn=class{constructor(e){t(this,e),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=c(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let e=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(Ze).map(((n,i)=>{const r=dt(t.pathname,{path:n.url,exact:n.exact,strict:!0});return r&&-1===e&&(e=i),{el:n,match:r}})),-1===e)return;if(this.activeIndex===e)return void(this.subscribers[e].el.match=this.subscribers[e].match);this.activeIndex=e;const n=this.subscribers[this.activeIndex];this.scrollTopOffset&&(n.el.scrollTopOffset=this.scrollTopOffset),n.el.group=this.group,n.el.match=n.match,n.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,e)=>{if(t.el.componentUpdated=void 0,e===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return e("slot",null)}get el(){return u(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};F.injectProps(tn,["location","routeViewsUpdated"]);const en=(t,...e)=>{t||console.warn(...e)},nn=()=>{let t,e=[];return{setPrompt:e=>(en(null==t,"A history supports only one prompt at a time"),t=e,()=>{t===e&&(t=null)}),confirmTransitionTo:(e,n,i,r)=>{if(null!=t){const s="function"==typeof t?t(e,n):t;"string"==typeof s?"function"==typeof i?i(s,r):(en(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==s)}else r(!0)},appendListener:t=>{let n=!0;const i=(...e)=>{n&&t(...e)};return e.push(i),()=>{n=!1,e=e.filter((t=>t!==i))}},notifyListeners:(...t)=>{e.forEach((e=>e(...t)))}}},rn=(t,e="scrollPositions")=>{let n=new Map;const i=(e,i)=>{if(n.set(e,i),Ye(t,"sessionStorage")){const e=[];n.forEach(((t,n)=>{e.push([n,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(e))}};if(Ye(t,"sessionStorage")){const i=t.sessionStorage.getItem(e);n=i?new Map(JSON.parse(i)):n}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>n.get(t),has:t=>n.has(t),capture:e=>{i(e,[t.scrollX,t.scrollY])}}},sn={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+nt(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:nt,decodePath:et},slash:{encodePath:et,decodePath:et}},on=(t,e)=>{const n=0==t.pathname.indexOf(e)?"/"+t.pathname.slice(e.length):t.pathname;return Object.assign({},t,{pathname:n})},an={browser:(t,e={})=>{let n=!1;const i=t.history,r=t.location,s=t.navigator,o=(t=>{const e=t.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===s.userAgent.indexOf("Trident")),u=rn(t),c=null!=e.forceRefresh&&e.forceRefresh,l=null!=e.getUserConfirmation?e.getUserConfirmation:Ke,d=null!=e.keyLength?e.keyLength:6,f=e.basename?tt(et(e.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:e,state:n}=t,{pathname:i,search:s,hash:o}=r;let a=i+s+o;return en(!f||Q(a,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+f+'".'),f&&(a=Z(a,f)),ut(a,n,e||st(d))},m=nn(),v=t=>{u.capture(M.location.key),Object.assign(M,t),M.location.scrollPosition=u.get(M.location.key),M.length=i.length,m.notifyListeners(M.location,M.action)},g=t=>{((t,e)=>void 0===e.state&&-1===t.userAgent.indexOf("CriOS"))(s,t)||w(p(t.state))},y=()=>{w(p(h()))},w=t=>{if(n)n=!1,v();else{const e="POP";m.confirmTransitionTo(t,e,l,(n=>{n?v({action:e,location:t}):b(t)}))}},b=t=>{let e=k.indexOf(M.location.key),i=k.indexOf(t.key);-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,F(r))},x=p(h());let k=[x.key],S=0,C=!1;const A=t=>f+it(t),F=t=>{i.go(t)},_=e=>{S+=e,1===S?(t.addEventListener("popstate",g),a&&t.addEventListener("hashchange",y)):0===S&&(t.removeEventListener("popstate",g),a&&t.removeEventListener("hashchange",y))},M={length:i.length,action:"POP",location:x,createHref:A,push:(t,e)=>{en(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const n="PUSH",s=ut(t,e,st(d),M.location);m.confirmTransitionTo(s,n,l,(t=>{if(!t)return;const e=A(s),{key:a,state:u}=s;if(o)if(i.pushState({key:a,state:u},"",e),c)r.href=e;else{const t=k.indexOf(M.location.key),e=k.slice(0,-1===t?0:t+1);e.push(s.key),k=e,v({action:n,location:s})}else en(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=e}))},replace:(t,e)=>{en(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const n="REPLACE",s=ut(t,e,st(d),M.location);m.confirmTransitionTo(s,n,l,(t=>{if(!t)return;const e=A(s),{key:a,state:u}=s;if(o)if(i.replaceState({key:a,state:u},"",e),c)r.replace(e);else{const t=k.indexOf(M.location.key);-1!==t&&(k[t]=s.key),v({action:n,location:s})}else en(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(e)}))},go:F,goBack:()=>F(-1),goForward:()=>F(1),block:(t="")=>{const e=m.setPrompt(t);return C||(_(1),C=!0),()=>(C&&(C=!1,_(-1)),e())},listen:t=>{const e=m.appendListener(t);return _(1),()=>{_(-1),e()}},win:t};return M},hash:(t,e={})=>{let n=!1,i=null,r=0,s=!1;const o=t.location,a=t.history,u=-1===t.navigator.userAgent.indexOf("Firefox"),c=null!=e.keyLength?e.keyLength:6,{getUserConfirmation:l=Ke,hashType:d="slash"}=e,f=e.basename?tt(et(e.basename)):"",{encodePath:h,decodePath:p}=sn[d],m=()=>{const t=o.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},v=t=>{const e=o.href.indexOf("#");o.replace(o.href.slice(0,e>=0?e:0)+"#"+t)},g=()=>{let t=p(m());return en(!f||Q(t,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+f+'".'),f&&(t=Z(t,f)),ut(t,void 0,st(c))},y=nn(),w=t=>{Object.assign(E,t),E.length=a.length,y.notifyListeners(E.location,E.action)},b=()=>{const t=m(),e=h(t);if(t!==e)v(e);else{const t=g(),e=E.location;if(!n&&(r=e).pathname===(s=t).pathname&&r.search===s.search&&r.hash===s.hash&&r.key===s.key&&at(r.state,s.state))return;if(i===it(t))return;i=null,x(t)}var r,s},x=t=>{if(n)n=!1,w();else{const e="POP";y.confirmTransitionTo(t,e,l,(n=>{n?w({action:e,location:t}):k(t)}))}},k=t=>{let e=F.lastIndexOf(it(E.location)),i=F.lastIndexOf(it(t));-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,_(r))},S=m(),C=h(S);S!==C&&v(C);const A=g();let F=[it(A)];const _=t=>{en(u,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},M=(t,e)=>{r+=e,1===r?t.addEventListener("hashchange",b):0===r&&t.removeEventListener("hashchange",b)},E={length:a.length,action:"POP",location:A,createHref:t=>"#"+h(f+it(t)),push:(t,e)=>{en(void 0===e,"Hash history cannot push state; it is ignored");const n="PUSH",r=ut(t,void 0,st(c),E.location);y.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=it(r),s=h(f+e);if(m()!==s){i=e,(t=>{o.hash=t})(s);const t=F.lastIndexOf(it(E.location)),a=F.slice(0,-1===t?0:t+1);a.push(e),F=a,w({action:n,location:r})}else en(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}))},replace:(t,e)=>{en(void 0===e,"Hash history cannot replace state; it is ignored");const n="REPLACE",r=ut(t,void 0,st(c),E.location);y.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=it(r),s=h(f+e);m()!==s&&(i=e,v(s));const o=F.indexOf(it(E.location));-1!==o&&(F[o]=e),w({action:n,location:r})}))},go:_,goBack:()=>_(-1),goForward:()=>_(1),block:(e="")=>{const n=y.setPrompt(e);return s||(M(t,1),s=!0),()=>(s&&(s=!1,M(t,-1)),n())},listen:e=>{const n=y.appendListener(e);return M(t,1),()=>{M(t,-1),n()}},win:t};return E}},un=class{constructor(e){t(this,e),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const e=this.history.win.document.getElementById(t.scrollToId);if(e)return e.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=c(this,"isServer"),this.queue=c(this,"queue")}componentWillLoad(){this.history=an[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=on(t,this.root),this.location=t})),this.location=on(this.history.location,this.root)}scrollTo(t){const e=this.history;if(null!=t&&!this.isServer&&e)return"POP"===e.action&&Array.isArray(e.location.scrollPosition)?this.queue.write((()=>{e&&e.location&&Array.isArray(e.location.scrollPosition)&&e.win.scrollTo(e.location.scrollPosition[0],e.location.scrollPosition[1])})):this.queue.write((()=>{e.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return e(F.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},e("slot",null))}get el(){return u(this)}},cn=class{constructor(e){t(this,e),this.stepSubmitSuccess=o(this,"step-completion",7),this.successPageAcknowledged=o(this,"successPageAcknowledged",5),this.initialised=o(this,"initialised",7),this.isSelfHosted=!1,this.isAppInitialised=!1}async componentWillLoad(){const t=Pt.fromNullable(this.accessToken);if(Pt.isNone(t))throw Error("jwt property is missing.");qt.state.jwt=t;const e=Pt.fromNullable(this.backendUrl);if(Pt.isNone(e))throw Error("apiBaseUrl property is missing.");qt.state.apiBaseUrl=Pt.some(e.value.replace(/\/$/,"")+"/");const n=Pt.fromNullable(this.appBaseUrl);if(Pt.isNone(n))throw Error("appBaseUrl property is missing.");qt.state.appBaseUrl=Pt.some(n.value.replace(/\/$/,"")),qt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),qt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),qt.state.hasSuperSelectionBeenSubmitted=!1,this.isSelfHosted&&te.navigateInternally(this.history,Qt.Success))}))}async componentDidLoad(){await qt.loadAppStateAsync();const t=await ve.GetExistingFundAsync();this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:qt.accountIdOrDefault,partnerIdOrDefault:qt.partnerIdOrDefault,profileId:qt.profileId}),$t();const e=Pt.fromNullable(this.ignoreExistingSelection),n=Pt.isSome(e)&&e.value;Pt.isSome(t)&&"Inactive"!==t.value.valid&&!n?te.navigateInternally(this.history,Qt.ExistingChoicePage):te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}authTokenChanged(t){qt.state.jwt=Pt.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return e(s,null,e("link",{rel:"stylesheet",href:r("apollo-super-selection.css"),media:"all"}),this.renderAppContent())}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return e("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},e("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?e("div",{class:{"pt-28":!0,"-mt-12 pb-6":!this.isFundJoinPage(),"-mt-28":this.isFundJoinPage()}},Zt,e("sss-footer-section",null)):e("div",{class:"flex justify-center py-20"},e("sss-loading-indicator",null))))}isFundJoinPage(){return window.location.pathname.includes(Qt.SlateJoin)||window.location.pathname.includes(Qt.PromotedFundJoinV1)||window.location.pathname.includes(Qt.PromotedFundJoinV2)}static get assetsDirs(){return["assets"]}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};W(cn),cn.style="html{scroll-behavior:smooth}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-pack:center;justify-content:center}stencil-route:empty{display:none}input+.invalid-feedback{display:none}select+.invalid-feedback{display:none}.was-validated input:invalid+.invalid-feedback{display:block}.was-validated select:invalid+.invalid-feedback{display:block}";var ln,dn=[],fn="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(ln||(ln={}));var hn,pn=function(t){return Object.freeze(t)},mn=function(t,e){this.inlineSize=t,this.blockSize=e,pn(this)},vn=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pn(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),gn=function(t){return t instanceof SVGElement&&"getBBox"in t},yn=function(t){if(gn(t)){var e=t.getBBox();return!e.width&&!e.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},wn=function(t){var e,n,i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},bn="undefined"!=typeof window?window:{},xn=new WeakMap,kn=/auto|scroll/,Sn=/^tb|vertical/,Cn=/msie|trident/i.test(bn.navigator&&bn.navigator.userAgent),An=function(t){return parseFloat(t||"0")},Fn=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new mn((n?e:t)||0,(n?t:e)||0)},_n=pn({devicePixelContentBoxSize:Fn(),borderBoxSize:Fn(),contentBoxSize:Fn(),contentRect:new vn(0,0,0,0)}),Mn=function(t,e){if(void 0===e&&(e=!1),xn.has(t)&&!e)return xn.get(t);if(yn(t))return xn.set(t,_n),_n;var n=getComputedStyle(t),i=gn(t)&&t.ownerSVGElement&&t.getBBox(),r=!Cn&&"border-box"===n.boxSizing,s=Sn.test(n.writingMode||""),o=!i&&kn.test(n.overflowY||""),a=!i&&kn.test(n.overflowX||""),u=i?0:An(n.paddingTop),c=i?0:An(n.paddingRight),l=i?0:An(n.paddingBottom),d=i?0:An(n.paddingLeft),f=i?0:An(n.borderTopWidth),h=i?0:An(n.borderRightWidth),p=i?0:An(n.borderBottomWidth),m=d+c,v=u+l,g=(i?0:An(n.borderLeftWidth))+h,y=f+p,w=a?t.offsetHeight-y-t.clientHeight:0,b=o?t.offsetWidth-g-t.clientWidth:0,x=r?m+g:0,k=r?v+y:0,S=i?i.width:An(n.width)-x-b,C=i?i.height:An(n.height)-k-w,A=S+m+b+g,F=C+v+w+y,_=pn({devicePixelContentBoxSize:Fn(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),s),borderBoxSize:Fn(A,F,s),contentBoxSize:Fn(S,C,s),contentRect:new vn(d,u,S,C)});return xn.set(t,_),_},En=function(t,e,n){var i=Mn(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case ln.DEVICE_PIXEL_CONTENT_BOX:return o;case ln.BORDER_BOX:return r;default:return s}},In=function(t){var e=Mn(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=pn([e.borderBoxSize]),this.contentBoxSize=pn([e.contentBoxSize]),this.devicePixelContentBoxSize=pn([e.devicePixelContentBoxSize])},Bn=function(t){if(yn(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Tn=function(){var t=1/0,e=[];dn.forEach((function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach((function(e){var n=new In(e.target),r=Bn(e.target);i.push(n),e.lastReportedSize=En(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},jn=function(t){dn.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(Bn(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},Pn=[],Nn=0,Rn={attributes:!0,characterData:!0,childList:!0,subtree:!0},Dn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],On=function(t){return void 0===t&&(t=0),Date.now()+t},Ln=!1,Un=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Ln){Ln=!0;var n,i=On(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(jn(e);dn.some((function(t){return t.activeTargets.length>0}));)e=Tn(),jn(e);return dn.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:fn}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=fn),window.dispatchEvent(t)),e>0}()}finally{if(Ln=!1,t=i-On(),!Nn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!hn){var e=0,n=document.createTextNode("");new MutationObserver((function(){return Pn.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),hn=function(){n.textContent=""+(e?e--:e++)}}Pn.push(t),hn()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Rn)};document.body?e():bn.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Dn.forEach((function(e){return bn.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Dn.forEach((function(e){return bn.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),qn=function(t){!Nn&&t>0&&Un.start(),!(Nn+=t)&&Un.stop()},Vn=function(){function t(t,e){this.target=t,this.observedBox=e||ln.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=En(this.target,this.observedBox,!0);return gn(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Hn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},zn=new WeakMap,Wn=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},$n=function(){function t(){}return t.connect=function(t,e){var n=new Hn(t,e);zn.set(t,n)},t.observe=function(t,e,n){var i=zn.get(t),r=0===i.observationTargets.length;Wn(i.observationTargets,e)<0&&(r&&dn.push(i),i.observationTargets.push(new Vn(e,n&&n.box)),qn(1),Un.schedule())},t.unobserve=function(t,e){var n=zn.get(t),i=Wn(n.observationTargets,e);i>=0&&(1===n.observationTargets.length&&dn.splice(dn.indexOf(n),1),n.observationTargets.splice(i,1),qn(-1))},t.disconnect=function(t){var e=this,n=zn.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),Xn=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$n.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wn(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$n.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wn(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$n.unobserve(this,t)},t.prototype.disconnect=function(){$n.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Gn=new class{constructor(){this._appRootUrl=new z((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Mt(this.getAppRootUrl()+"config.json").get().json();Le.update({appConfiguration:Pt.fromNullable(t)})}resolveRootUrl(){const t=Pt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(Pt.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}},Jn=new class{constructor(){this.ignoreExistingSelectionQueryParameter="ignoreExistingSelection"}init(t){const e=new URLSearchParams(t),n=Pt.fromNullable(e.get(this.ignoreExistingSelectionQueryParameter)),i=Pt.fold((()=>!1),(t=>"true"===t))(n);Le.update({ignoreExistingSelection:i})}};function Kn(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Yn(t){var e=Object.create;if(e)return e(t);if(null==t)return{};var n=typeof t;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var Qn,Zn,ti=function(t,e){return(ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},ei=Kn()||{};Zn=function(t,e){function n(){this.constructor=t}ti(t,e),t.prototype=null===e?Yn(e):(n.prototype=e.prototype,new n)},(Qn=ei).__assign||(Qn.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}),Qn.__extends||(Qn.__extends=Zn),__assign||(__assign=ei.__assign),__extends||(__extends=ei.__extends);var ni=Kn;function ii(t){var e=ni();return e&&e[t]?e[t]:"window"===t&&ri()?window:null}function ri(){return Boolean("object"==typeof window&&window)}function si(){return ri()?window:ii("window")}function oi(){return Boolean("object"==typeof document&&document)}function ai(){return oi()?document:ii("document")}function ui(){return Boolean("object"==typeof navigator&&navigator)?navigator:ii("navigator")}function ci(){return"object"==typeof location&&location?location:ii("location")}function li(){return ii("performance")}function di(){return Boolean("object"==typeof JSON&&JSON||null!==ii("JSON"))}function fi(){return di()?JSON||ii("JSON"):null}var hi=null,pi=!1,mi=123456789,vi=987654321;function gi(t){t<0&&(t>>>=0),mi=123456789+t&4294967295,vi=987654321-t&4294967295,pi=!0}function yi(){gi(4294967296*Math.random()^(new Date).getTime())}function wi(t,e){return typeof t===e}function bi(t){return wi(t,"undefined")||void 0===t}function xi(t){return bi(t)||null===t}function ki(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function Si(t){return wi(t,"object")}function Ci(t){return wi(t,"function")}function Ai(t,e,n,i){void 0===i&&(i=!1);var r=!1;if(!xi(t))try{xi(t.addEventListener)?xi(t.attachEvent)||(t.attachEvent("on"+e,n),r=!0):(t.addEventListener(e,n,i),r=!0)}catch(t){}return r}function Fi(t,e,n,i){if(void 0===i&&(i=!1),!xi(t))try{xi(t.removeEventListener)?xi(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function _i(t,e){if(t&&Si(t))for(var n in t)ki(t,n)&&e.call(t,n,t[n])}var Mi,Ei=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return wi(t,"string")},t.isNumber=function(t){return wi(t,"number")},t.isBoolean=function(t){return wi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ii,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,r=0;r<i;r++)r in t&&e.call(n||t,t[r],r,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,r=n||0,s=Math.max(r>=0?r:i-Math.abs(r),0);s<i;s++)if(s in t&&t[s]===e)return s;return-1},t.arrMap=function(t,e,n){for(var i=t.length,r=n||t,s=new Array(i),o=0;o<i;o++)o in t&&(s[o]=e.call(r,t[o],t));return s},t.arrReduce=function(t,e,n){var i,r=t.length,s=0;if(arguments.length>=3)i=arguments[2];else{for(;s<r&&!(s in t);)s++;i=t[s++]}for(;s<r;)s in t&&(i=e(i,t[s],s,t)),s++;return i},t.strTrim=function(e){return t.isString(e)?e.replace(/^\s+|\s+$/g,""):e},t.objKeys=function(t){var e=!{toString:null}.propertyIsEnumerable("toString");if(!(Ci(t)||Si(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)ki(t,i)&&n.push(i);if(e)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length,o=0;o<s;o++)ki(t,r[o])&&n.push(r[o]);return n},t.objDefineAccessors=function(t,e,n,i){var r=Object.defineProperty;if(r)try{var s={enumerable:!0,configurable:!0};return n&&(s.get=n),i&&(s.set=i),r(t,e,s),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=si();i&&(n=Ai(i,t,e),n=Ai(i.body,t,e)||n);var r=ai();return r&&(n=Bi.Attach(r,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=li();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,r="";r.length<e;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return r},t.isIE=function(){if(null===hi){var t=((ui()||{}).userAgent||"").toLowerCase();hi=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return hi},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=ii("crypto")||ii("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(pi||yi(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?gi(t):yi()},t.mwcRandom32=function(t){var e=((vi=36969*(65535&vi)+(vi>>16)&4294967295)<<16)+(65535&(mi=18e3*(65535&mi)+(mi>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var s=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+s+i.substr(16,3)+i.substr(19,12)},t.isTypeof=wi,t.isUndefined=bi,t.isNullOrUndefined=xi,t.hasOwnProperty=ki,t.isFunction=Ci,t.isObject=Si,t.objCreate=Yn,t}(),Ii=/[xy]/g,Bi=function(){function t(){}return t.Attach=Ai,t.AttachEvent=Ai,t.Detach=Fi,t.DetachEvent=Fi,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(Mi||(Mi={}));var Ti=Object.getPrototypeOf,ji=0;
|
|
1
|
+
import{r as t,h as e,g as n,f as i,a as r,H as s,c as o,F as a,d as u,e as c,s as l}from"./p-51c6dd08.js";import{f as d,m as f,S as h,a as p,i as m,b as v,O as g,c as y,d as w,g as b,h as x,j as k,k as S,l as C,Q as A}from"./p-29c11183.js";import{A as F}from"./p-7a89efaf.js";function _(){}function M(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(M(((n,i)=>d(t(n,i)).pipe(f(((t,r)=>e(n,t,i,r))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new E(t,n)))}class E{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new I(t,this.project,this.concurrent))}}class I extends h{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)}_innerSub(t){const e=new p(this),n=this.destination;n.add(e);const i=m(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function B(t,e,n,i){return y(n)&&(i=n,n=void 0),i?B(t,e,n).pipe(f((t=>v(t)?i(...t):i(t)))):new g((i=>{T(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function T(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)T(t[s],e,n,i,r)}i.add(s)}class j{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new P(t,this.dueTime,this.scheduler))}}class P extends b{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(N,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function N(t){t.debouncedNext()}function R(t,e,n){return function(i){return i.lift(new D(t,e,n))}}class D{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new O(t,this.nextOrObserver,this.error,this.complete))}}class O extends b{constructor(t,e,n,i){super(t),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=i||_,y(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||_,this._tapError=e.error||_,this._tapComplete=e.complete||_)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var L=function(t){return"Some"===t._tag},U=function(t){return"None"===t._tag},q={_tag:"None"},V=function(t){return{_tag:"Some",value:t}};function H(t){return U(t)?void 0:t.value}class z{constructor(t){this.factory=t,this._value=q}get value(){if(L(this._value))return this._value.value;const t=this.factory();return this._value=V(t),t}}function W(t){F.injectProps(t,["history","location"])}const $=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),X=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),G=t=>t.replace(/([=!:$/()])/g,"\\$1"),J=t=>t&&t.sensitive?"":"i",K=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,s=X(n.delimiter||"/"),o=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(X).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var d=t[l];if("string"==typeof d)u+=X(d),c=l===t.length-1&&o.indexOf(d[d.length-1])>-1;else{var f=X(d.prefix||""),h=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;e&&e.push(d),u+=d.optional?d.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}return r?(i||(u+="(?:"+s+")?"),u+="$"===a?"$":"(?="+a+")"):(i||(u+="(?:"+s+"(?="+a+"))?"),c||(u+="(?="+s+"|"+a+")")),new RegExp("^"+u,J(n))},Y=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(Y(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",J(n))})(t,e,n):((t,e,n)=>K(((t,e)=>{for(var n,i=[],r=0,s=0,o="",a=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=$.exec(t));){var l=n[0],d=n[1],f=n.index;if(o+=t.slice(s,f),s=f+l.length,d)o+=d[1],c=!0;else{var h="",p=t[s],m=n[2],v=n[3],g=n[4],y=n[5];if(!c&&o.length){var w=o.length-1;u.indexOf(o[w])>-1&&(h=o[w],o=o.slice(0,w))}o&&(i.push(o),o="",c=!1);var b=h||a,x=v||g;i.push({name:m||r++,prefix:h,delimiter:b,optional:"?"===y||"*"===y,repeat:"+"===y||"*"===y,partial:""!==h&&void 0!==p&&p!==h,pattern:x?G(x):"[^"+X(b)+"]+?"})}}return(o||s<t.length)&&i.push(o+t.substr(s)),i})(t,n),e,n))(t,e,n),Q=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),Z=(t,e)=>Q(t,e)?t.substr(e.length):t,tt=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,et=t=>"/"===t.charAt(0)?t:"/"+t,nt=t=>"/"===t.charAt(0)?t.substr(1):t,it=t=>{const{pathname:e,search:n,hash:i}=t;let r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},rt=t=>"/"===t.charAt(0),st=t=>Math.random().toString(36).substr(2,t),ot=(t,e)=>{for(let n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()},at=(t,e)=>{if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>at(t,e[n])));const n=typeof t;if(n!==typeof e)return!1;if("object"===n){const n=t.valueOf(),i=e.valueOf();if(n!==t||i!==e)return at(n,i);const r=Object.keys(t),s=Object.keys(e);return r.length===s.length&&r.every((n=>at(t[n],e[n])))}return!1},ut=(t,e,n,i)=>{let r;"string"==typeof t?(r=(t=>{let e=t||"/",n="",i="";const r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));const s=e.indexOf("?");return-1!==s&&(n=e.substr(s),e=e.substr(0,s)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(r.state=e)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var s;return r.key=n,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],r=0;const s=t&&t.split("/")||[],o=t&&rt(t),a=e&&rt(e),u=o||a;if(t&&rt(t)?i=s:s.length&&(i.pop(),i=i.concat(s)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?ot(i,t):".."===e?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!u)for(;r--;r)i.unshift("..");!u||""===i[0]||i[0]&&rt(i[0])||i.unshift("");let c=i.join("/");return n&&"/"!==c.substr(-1)&&(c+="/"),c})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(s=r.search||"")?(/^[?#]/.test(s)?s.slice(1):s).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ct=0;const lt={},dt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:r=!1}=e,{re:s,keys:o}=((t,e)=>{const n=`${e.end}${e.strict}`,i=lt[n]||(lt[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const s=[],o={re:Y(t,s,e),keys:s};return ct<1e4&&(i[r]=o,ct+=1),o})(n,{end:i,strict:r}),a=s.exec(t);if(!a)return null;const[u,...c]=a,l=t===u;return i&&!l?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:l,params:o.reduce(((t,e,n)=>(t[e.name]=c[n],t)),{})}};var ft;!function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(ft||(ft={}));const ht=class{constructor(e){t(this,e),this.fillWidth=!1,this.fillWidthOnMobile=!1,this.disabled=!1,this.variant="primary",this.size="base",this.promiseFn=()=>Promise.resolve(),this.state=ft.Available}render(){return e("button",{class:{[{xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"}[this.size]]:!0,"inline-flex items-center justify-center border font-medium":!0,"rounded-md shadow-sm focus:outline-none focus:ring-2":!0,"focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto":!0,"disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400":!0,"border-transparent text-white bg-primary-base hover:bg-primary-hover":"primary"===this.variant,"border-gray-300 text-gray-700 bg-white hover:bg-gray-50":"secondary"===this.variant,"w-full":this.fillWidth||this.fillWidthOnMobile,"sm:w-auto":this.fillWidthOnMobile},disabled:this.disabled,onClick:()=>this.clicked()},this.state===ft.Pending&&e("sss-loading-indicator",{theme:"primary"===this.variant?"light":"primary",size:16}),e("div",{class:{hidden:this.state===ft.Pending}},e("slot",null)))}async clicked(){if(this.promiseFn&&this.state!==ft.Pending)try{this.state=ft.Pending,await this.promiseFn(),this.state=ft.Available}catch(t){throw this.state=ft.Error,t}}};var pt=function(){return(pt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},mt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},vt=function(t,e,n){if(void 0===n&&(n=!1),!t||!e||"object"!=typeof t||"object"!=typeof e)return t;var i=pt({},t);for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]instanceof Array&&t[r]instanceof Array?n?mt(t[r],e[r]):e[r]:"object"==typeof e[r]&&"object"==typeof t[r]?vt(t[r],e[r],n):e[r]);return i},gt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},yt={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,e){for(var n=void 0===e?{}:e,i=n.doThrow,r=void 0===i||i,s=n.instance,o=void 0!==s&&s,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];var c=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!c)throw new Error(t+" is not defined");return o&&c?new(c.bind.apply(c,gt([void 0],a))):c}},wt=function(t,e,n,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(e);return!!(r&&r.length>0)&&(n(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(e),bt.callbacks.delete(e),bt.callbacks.size<1&&(bt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},bt={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var n=yt.polyfill("performance",{doThrow:!1});(function(t,e){return!bt.observer&&t&&e&&(bt.observer=new e((function(e){bt.callbacks.forEach((function(n,i){wt(e,i,n,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),bt.observer})(n,yt.polyfill("PerformanceObserver",{doThrow:!1}))&&(wt(n,t,e,n)||(bt.callbacks.size<1&&bt.observer.observe({entryTypes:["resource","measure"]}),bt.callbacks.set(t,e)))}}},xt=function(t){this.error=t},kt=function(){return(kt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},St=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)i[r]=s[o];return i},Ct=function(){function t(t,e,n,i,r,s){void 0===n&&(n=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===s&&(s=[]),this._url=t,this._options=e,this._catchers=n,this._resolvers=i,this._middlewares=r,this._deferredChain=s}return t.factory=function(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),new t(e,n)},t.prototype.selfFactory=function(e){var n=void 0===e?{}:e,i=n.url,r=n.options,s=n.catchers,o=void 0===s?this._catchers:s,a=n.resolvers,u=void 0===a?this._resolvers:a,c=n.middlewares,l=void 0===c?this._middlewares:c,d=n.deferredChain,f=void 0===d?this._deferredChain:d;return new t(void 0===i?this._url:i,kt({},void 0===r?this._options:r),new Map(o),St(u),St(l),St(f))},t.prototype.defaults=function(t,e){return void 0===e&&(e=!1),yt.defaults=e?vt(yt.defaults,t):t,this},t.prototype.errorType=function(t){return yt.errorType=t,this},t.prototype.polyfills=function(t){return yt.polyfills=kt(kt({},yt.polyfills),t),this},t.prototype.url=function(t,e){if(void 0===e&&(e=!1),e)return this.selfFactory({url:t});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+t+"?"+n[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?vt(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:At(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:vt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})["Content-Type"]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var n=new Map(this._catchers);return n.set(t,e),this.selfFactory({catchers:n})},t.prototype.signal=function(t){return this.selfFactory({options:kt(kt({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:St(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:St(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:St(this._middlewares,t)})},t.prototype.method=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=null);var i=this._options.headers,r=n?"object"!=typeof n||i&&!Object.entries(i).every((function(t){var e=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||e.startsWith("application/json")}))?this.body(n):this.json(n):this;return function(t){var e=t._url,n=t._resolvers,i=t._middlewares,r=t._options,s=new Map(t._catchers),o=vt(yt.defaults,r),a=yt.polyfill("AbortController",{doThrow:!1,instance:!0});!o.signal&&a&&(o.signal=a.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},c=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(n,i,r){return i(r===t.length-2?n(e):n)}))}}(i)(yt.polyfill("fetch"))(e,o),l=c.catch((function(t){throw new xt(t)})).then((function(t){return u.clear(),t.ok?t:t[yt.errorType||"text"]().then((function(e){var n=new Error(e);throw n[yt.errorType||"text"]=e,n.status=t.status,n.response=t,n}))})),d=function(e){return function(n){return(e?l.then((function(t){return t&&t[e]()})).then((function(t){return n?n(t):t})):l.then((function(t){return n?n(t):t}))).catch((function(e){u.clear();var n=e instanceof xt?e.error:e;if(e instanceof xt&&s.has("__fromFetch"))return s.get("__fromFetch")(n,t);if(s.has(n.status))return s.get(n.status)(n,t);if(s.has(n.name))return s.get(n.name)(n,t);throw n}))}},f={res:d(null),json:d("json"),blob:d("blob"),formData:d("formData"),arrayBuffer:d("arrayBuffer"),text:d("text"),perfs:function(t){return c.then((function(e){return bt.observe(e.url,t)})),f},setTimeout:function(t,e){return void 0===e&&(e=a),u.clear(),u.ref=setTimeout((function(){return e.abort()}),t),f},controller:function(){return[a,f]},error:function(t,e){return s.set(t,e),f},badRequest:function(t){return f.error(400,t)},unauthorized:function(t){return f.error(401,t)},forbidden:function(t){return f.error(403,t)},notFound:function(t){return f.error(404,t)},timeout:function(t){return f.error(408,t)},internalError:function(t){return f.error(500,t)},fetchError:function(t){return f.error("__fromFetch",t)},onAbort:function(t){return f.error("AbortError",t)}};return n.reduce((function(e,n){return n(e,t)}),f)}((r=r.options(kt(kt({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:kt(kt({},this._options),{body:t})})},t.prototype.json=function(t){var e,n=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&e.startsWith("application/json")})))||void 0===e?void 0:e[1];return this.content(n||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body(Ft(t,e))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(e=t,Object.keys(e).map((function(t){var n=e[t];return n instanceof Array?n.map((function(e){return _t(t,e)})).join("&"):_t(t,n)})).join("&"))).content("application/x-www-form-urlencoded");var e},t}(),At=function(t,e,n){var i;if("string"==typeof e)i=e;else{var r=yt.polyfill("URLSearchParams",{instance:!0});for(var s in e)if(e[s]instanceof Array)for(var o=0,a=e[s];o<a.length;o++)r.append(s,a[o]);else r.append(s,e[s]);i=r.toString()}var u=t.split("?");return n||u.length<2?u[0]+"?"+i:t+"&"+i};function Ft(t,e,n,i){return void 0===e&&(e=!1),void 0===n&&(n=yt.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],s=t[1],o=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(o=o?o+"["+r+"]":r,s instanceof Array)for(var a=0,u=s;a<u.length;a++)n.append(o+"[]",u[a]);else!e||"object"!=typeof s||e instanceof Array&&e.includes(r)?n.append(o,s):null!==s&&Ft(s,e,n,St(i,[r]))})),n}function _t(t,e){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof e?JSON.stringify(e):""+e)}var Mt=Ct.factory;Mt.default=Ct.factory;const Et=t=>!("isConnected"in t)||t.isConnected,It=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(Et))})(...e)}),2e3)}})(),Bt=(t,e)=>{const r=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},s=t=>(i.get.forEach((e=>e(t))),n.get(t)),o=(t,r)=>{const s=n.get(t);e(r,s,t)&&(n.set(t,r),i.set.forEach((e=>e(t,r,s))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>s(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(o(e,n),!0)}),u=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:a,get:s,set:o,on:u,onChange:(e,n)=>{const i=u("set",((t,i)=>{t===e&&n(i)})),r=u("reset",(()=>n(t[e])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,e);return(({on:t})=>{const e=new Map;"function"==typeof n&&(t("dispose",(()=>{e.clear()})),t("get",(t=>{const i=n();i&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(e,t,i)})),t("set",(t=>{const n=e.get(t);n&&e.set(t,n.filter(i)),It(e)})),t("reset",(()=>{e.forEach((t=>t.forEach(i))),It(e)})))})(r),r};function Tt(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var jt=Tt((function(t,e){function n(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(e,"__esModule",{value:!0}),e.bindTo_=e.bind_=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.not=e.unsafeCoerce=e.identity=void 0,e.identity=n,e.unsafeCoerce=n,e.not=function(t){return function(e){return!t(e)}},e.constant=i,e.constTrue=i(!0),e.constFalse=i(!1),e.constNull=i(null),e.constUndefined=i(void 0),e.constVoid=e.constUndefined,e.flip=function(t){return function(e,n){return t(n,e)}},e.flow=function(t,e,n,i,r,s,o,a,u){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return i(n(e(t.apply(this,arguments))))};case 5:return function(){return r(i(n(e(t.apply(this,arguments)))))};case 6:return function(){return s(r(i(n(e(t.apply(this,arguments))))))};case 7:return function(){return o(s(r(i(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(o(s(r(i(n(e(t.apply(this,arguments))))))))};case 9:return function(){return u(a(o(s(r(i(n(e(t.apply(this,arguments)))))))))}}},e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},e.increment=function(t){return t+1},e.decrement=function(t){return t-1},e.absurd=r,e.tupled=function(t){return function(e){return t.apply(void 0,e)}},e.untupled=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}},e.pipe=function(t,e,n,i,r,s,o,a,u,c,l,d,f,h,p,m,v,g,y,w){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return r(i(n(e(t))));case 6:return s(r(i(n(e(t)))));case 7:return o(s(r(i(n(e(t))))));case 8:return a(o(s(r(i(n(e(t)))))));case 9:return u(a(o(s(r(i(n(e(t))))))));case 10:return c(u(a(o(s(r(i(n(e(t)))))))));case 11:return l(c(u(a(o(s(r(i(n(e(t))))))))));case 12:return d(l(c(u(a(o(s(r(i(n(e(t)))))))))));case 13:return f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))));case 14:return h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))));case 15:return p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))));case 16:return m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))));case 17:return v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))))));case 18:return g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))))));case 19:return y(g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t))))))))))))))))));case 20:return w(y(g(v(m(p(h(f(d(l(c(u(a(o(s(r(i(n(e(t)))))))))))))))))))}},e.hole=r,e.bind_=function(t,e,n){var i;return Object.assign({},t,((i={})[e]=n,i))},e.bindTo_=function(t){return function(e){var n;return(n={})[t]=e,n}}})),Pt=Tt((function(t,e){function n(t){return null==t?e.none:e.some(t)}function i(t){return"Right"===t._tag?e.none:e.some(t.left)}function r(t){return"Left"===t._tag?e.none:e.some(t.right)}function s(t){return function(i){return e.isNone(i)?e.none:n(t(i.value))}}Object.defineProperty(e,"__esModule",{value:!0}),e.getApplySemigroup=e.getOrd=e.getEq=e.getShow=e.URI=e.wilt=e.wither=e.sequence=e.traverse=e.partitionMap=e.partition=e.filterMap=e.filter=e.separate=e.compact=e.reduceRight=e.foldMap=e.reduce=e.duplicate=e.extend=e.throwError=e.zero=e.alt=e.altW=e.flatten=e.chainFirst=e.chain=e.of=e.apSecond=e.apFirst=e.ap=e.map=e.chainNullableK=e.mapNullable=e.fromNullableK=e.getOrElse=e.getOrElseW=e.toUndefined=e.toNullable=e.fold=e.fromEither=e.getRight=e.getLeft=e.tryCatch=e.fromPredicate=e.fromNullable=e.some=e.none=e.isNone=e.isSome=void 0,e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.apS=e.bind=e.bindTo=e.Do=e.getRefinement=e.exists=e.elem=e.option=e.MonadThrow=e.Witherable=e.Traversable=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.Alt=e.Foldable=e.Monad=e.Applicative=e.Functor=e.getMonoid=e.getLastMonoid=e.getFirstMonoid=e.getApplyMonoid=void 0,e.isSome=function(t){return"Some"===t._tag},e.isNone=function(t){return"None"===t._tag},e.none={_tag:"None"},e.some=function(t){return{_tag:"Some",value:t}},e.fromNullable=n,e.fromPredicate=function(t){return function(n){return t(n)?e.some(n):e.none}},e.tryCatch=function(t){try{return e.some(t())}catch(t){return e.none}},e.getLeft=i,e.getRight=r,e.fromEither=r,e.fold=function(t,n){return function(i){return e.isNone(i)?t():n(i.value)}},e.toNullable=function(t){return e.isNone(t)?null:t.value},e.toUndefined=function(t){return e.isNone(t)?void 0:t.value},e.getOrElseW=function(t){return function(n){return e.isNone(n)?t():n.value}},e.getOrElse=e.getOrElseW,e.fromNullableK=function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return n(t.apply(void 0,e))}},e.mapNullable=s,e.chainNullableK=s;var o=function(t,n){return jt.pipe(t,e.map(n))},a=function(t,n){return jt.pipe(t,e.ap(n))},u=function(t,n){return jt.pipe(t,e.chain(n))},c=function(t,n,i){return jt.pipe(t,e.reduce(n,i))},l=function(t){var n=e.foldMap(t);return function(t,e){return jt.pipe(t,n(e))}},d=function(t,n,i){return jt.pipe(t,e.reduceRight(n,i))},f=function(t){var n=e.traverse(t);return function(t,e){return jt.pipe(t,n(e))}},h=function(t,n){return jt.pipe(t,e.alt(n))},p=function(t,n){return jt.pipe(t,e.filter(n))},m=function(t,n){return jt.pipe(t,e.filterMap(n))},v=function(t,n){return jt.pipe(t,e.extend(n))},g=function(t,n){return jt.pipe(t,e.partition(n))},y=function(t,n){return jt.pipe(t,e.partitionMap(n))},w=function(t){var n=e.wither(t);return function(t,e){return jt.pipe(t,n(e))}},b=function(t){var n=e.wilt(t);return function(t,e){return jt.pipe(t,n(e))}};e.map=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n.value))}},e.ap=function(t){return function(n){return e.isNone(n)||e.isNone(t)?e.none:e.some(n.value(t.value))}},e.apFirst=function(t){return jt.flow(e.map((function(t){return function(){return t}})),e.ap(t))},e.apSecond=function(t){return jt.flow(e.map((function(){return function(t){return t}})),e.ap(t))},e.of=e.some,e.chain=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.chainFirst=function(t){return e.chain((function(n){return jt.pipe(t(n),e.map((function(){return n})))}))},e.flatten=e.chain(jt.identity),e.altW=function(t){return function(n){return e.isNone(n)?t():n}},e.alt=e.altW,e.zero=function(){return e.none},e.throwError=function(){return e.none},e.extend=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n))}},e.duplicate=e.extend(jt.identity),e.reduce=function(t,n){return function(i){return e.isNone(i)?t:n(t,i.value)}},e.foldMap=function(t){return function(n){return function(i){return e.isNone(i)?t.empty:n(i.value)}}},e.reduceRight=function(t,n){return function(i){return e.isNone(i)?t:n(i.value,t)}},e.compact=e.flatten;var x={left:e.none,right:e.none};function k(t){return{equals:function(n,i){return n===i||(e.isNone(n)?e.isNone(i):!e.isNone(i)&&t.equals(n.value,i.value))}}}function S(t){return{concat:function(n,i){return e.isSome(n)&&e.isSome(i)?e.some(t.concat(n.value,i.value)):e.none}}}e.separate=function(t){var n=jt.pipe(t,e.map((function(t){return{left:i(t),right:r(t)}})));return e.isNone(n)?x:n.value},e.filter=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)?n:e.none}},e.filterMap=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.partition=function(t){return function(e){return{left:p(e,(function(e){return!t(e)})),right:p(e,t)}}},e.partitionMap=function(t){return jt.flow(e.map(t),e.separate)},e.traverse=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):t.map(n(i.value),e.some)}}},e.sequence=function(t){return function(n){return e.isNone(n)?t.of(e.none):t.map(n.value,e.some)}},e.wither=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):n(i.value)}}},e.wilt=function(t){return function(n){return function(s){return e.isNone(s)?t.of({left:e.none,right:e.none}):t.map(n(s.value),(function(t){return{left:i(t),right:r(t)}}))}}},e.URI="Option",e.getShow=function(t){return{show:function(n){return e.isNone(n)?"none":"some("+t.show(n.value)+")"}}},e.getEq=k,e.getOrd=function(t){return{equals:k(t).equals,compare:function(n,i){return n===i?0:e.isSome(n)?e.isSome(i)?t.compare(n.value,i.value):1:-1}}},e.getApplySemigroup=S,e.getApplyMonoid=function(t){return{concat:S(t).concat,empty:e.some(t.empty)}},e.getFirstMonoid=function(){return{concat:function(t,n){return e.isNone(t)?n:t},empty:e.none}},e.getLastMonoid=function(){return{concat:function(t,n){return e.isNone(n)?t:n},empty:e.none}},e.getMonoid=function(t){return{concat:function(n,i){return e.isNone(n)?i:e.isNone(i)?n:e.some(t.concat(n.value,i.value))},empty:e.none}},e.Functor={URI:e.URI,map:o},e.Applicative={URI:e.URI,map:o,ap:a,of:e.of},e.Monad={URI:e.URI,map:o,ap:a,of:e.of,chain:u},e.Foldable={URI:e.URI,reduce:c,foldMap:l,reduceRight:d},e.Alt={URI:e.URI,map:o,alt:h},e.Alternative={URI:e.URI,map:o,ap:a,of:e.of,alt:h,zero:e.zero},e.Extend={URI:e.URI,map:o,extend:v},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:o,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y},e.Traversable={URI:e.URI,map:o,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence},e.Witherable={URI:e.URI,map:o,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y,wither:w,wilt:b},e.MonadThrow={URI:e.URI,map:o,ap:a,of:e.of,chain:u,throwError:e.throwError},e.option={URI:e.URI,map:o,of:e.of,ap:a,chain:u,reduce:c,foldMap:l,reduceRight:d,traverse:f,sequence:e.sequence,zero:e.zero,alt:h,extend:v,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:g,partitionMap:y,wither:w,wilt:b,throwError:e.throwError},e.elem=function(t){return function(n,i){return!e.isNone(i)&&t.equals(n,i.value)}},e.exists=function(t){return function(n){return!e.isNone(n)&&t(n.value)}},e.getRefinement=function(t){return function(n){return e.isSome(t(n))}},e.Do=e.of({}),e.bindTo=function(t){return e.map(jt.bindTo_(t))},e.bind=function(t,n){return e.chain((function(i){return jt.pipe(n(i),e.map((function(e){return jt.bind_(i,t,e)})))}))},e.apS=function(t,n){return jt.flow(e.map((function(e){return function(n){return jt.bind_(e,t,n)}})),e.ap(n))},e.traverseArrayWithIndex=function(t){return function(n){for(var i=[],r=0;r<n.length;r++){var s=t(r,n[r]);if(e.isNone(s))return e.none;i.push(s.value)}return e.some(i)}},e.traverseArray=function(t){return e.traverseArrayWithIndex((function(e,n){return t(n)}))},e.sequenceArray=e.traverseArray(jt.identity)}));function Nt(t){this.message=t}(Nt.prototype=new Error).name="InvalidCharacterError";var Rt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new Nt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,s=0,o="";i=e.charAt(s++);~i&&(n=r%4?64*n+i:i,r++%4)?o+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};function Dt(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Rt(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return Rt(e)}}function Ot(t){this.message=t}(Ot.prototype=new Error).name="InvalidTokenError";const Lt=new class{async getAustralianFundsAsync(t,e=!1){return Vt().url("super-choice/australian-funds?"+this.toQueryString(e,t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Vt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toSearchFilterQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}toQueryString(t,e){return[this.toSearchFilterQueryString(e),t?"includeInactive=true":""].filter((t=>t&&t.length)).join("&")}},Ut={apiBaseUrl:Pt.none,appBaseUrl:Pt.none,profileId:Pt.none,jwt:Pt.none,superBuyer:Pt.none,promotedFunds:Pt.none,accountConfiguration:Pt.none,profileConfiguration:Pt.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},qt=new class{constructor(){const{state:t,onChange:e}=Bt(Ut);this._state=t,this._onChange=e,e("jwt",(t=>{this._state.profileId=jt.pipe(t,Pt.chain((t=>Pt.fromNullable(function(t,e){if("string"!=typeof t)throw new Ot("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(Dt(t.split(".")[n]))}catch(t){throw new Ot("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(Pt.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(Pt.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(Pt.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(Pt.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(Pt.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){const t=jt.pipe(this._state.profileConfiguration,Pt.map((t=>Pt.fromNullable(t.defaultFundUsi))),Pt.flatten);return Pt.isSome(t)?t:jt.pipe(this._state.accountConfiguration,Pt.map((t=>Pt.fromNullable(t.defaultFundUsi))),Pt.flatten)}get accountIdOrDefault(){return jt.pipe(this._state.accountConfiguration,Pt.map((t=>t.accountId)),Pt.getOrElse((()=>"")))}get partnerIdOrDefault(){return jt.pipe(this._state.superBuyer,Pt.map((t=>t.partnerId)),Pt.getOrElse((()=>"")))}get jwt(){if(Pt.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}async loadAppStateAsync(){const t=await Lt.getAppStateAsync();this._state.accountConfiguration=Pt.fromNullable(t.accountConfiguration),this._state.profileConfiguration=Pt.fromNullable(t.profileConfiguration),this._state.superBuyer=Pt.fromNullable(t.superBuyer),this._state.promotedFunds=Pt.fromNullable(t.promotedFunds)}};function Vt(){const t=qt.jwt,e=qt.profileId,n=qt.accountIdOrDefault,i=qt.partnerIdOrDefault;return Mt(qt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":e,"X-PARTNER-ID":i,"X-ACCOUNT-ID":n})}class Ht{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Vt().url("analytics-events").post(t).res()}}class zt{constructor(){this.eventTrackingApi=Ht.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async TrackSuperFundNominationViewedAsync(t){return this.trackEventAsync({SuperFundNominationViewed:t})}async TrackSuperFundNominationDeclinedAsync(t){return this.trackEventAsync({SuperFundNominationDeclined:t})}async TrackSuperFundDisclaimerViewedAsync(t){return this.trackEventAsync({SuperFundDisclaimerViewed:t})}async TrackSuperFundDisclaimerAcceptedAsync(t){return this.trackEventAsync({SuperFundDisclaimerAccepted:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}function Wt(t,e){void 0===e&&(e="*"),t.sender="flare",window.parent.postMessage(t,e)}const $t=function(){Wt({type:"appReady"})},Xt=function(t,e){Wt({type:"contentResized",height:t,width:e})},Gt=function(t){Wt({type:"pageNavigated",url:t})},Jt=function(){Wt({type:"complete"})},Kt=function(){Wt({type:"submitSuccess"})},{state:Yt}=Bt({handleSubmitFn:async function(){},fundName:"",promotedFundId:void 0});var Qt;!function(t){t.ConsentPage="/consent",t.ExistingChoicePage="/existing",t.ChoicePage="/",t.SlateJoin="/slate/join/",t.PromotedFundJoinV1="/promoted-fund/join/v1",t.PromotedFundJoinV2="/promoted-fund/join/v2",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.StandardChoice="/standard-choice/",t.Success="/success/"}(Qt||(Qt={}));const Zt=[e("stencil-route",{url:Qt.ConsentPage,component:"sss-consent-page"}),e("stencil-route",{url:Qt.ExistingChoicePage,component:"sss-existing-choice-page"}),e("stencil-route",{exact:!0,url:Qt.ChoicePage,component:"sss-super-choice-page"}),e("stencil-route",{url:Qt.SlateJoin,component:"sss-slate-join-page"}),e("stencil-route",{url:Qt.PromotedFundJoinV1,component:"sss-promoted-fund-join-v1-page"}),e("stencil-route",{url:Qt.PromotedFundJoinV2,component:"sss-promoted-fund-join-v2-page"}),e("stencil-route",{url:Qt.MyOwnFund,component:"sss-my-own-fund"}),e("stencil-route",{url:Qt.SelfManagedFund,component:"sss-self-managed-fund"}),e("stencil-route",{url:Qt.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:Qt.StandardChoice,component:"sss-standard-choice-form"}),e("stencil-route",{url:Qt.Success,component:"sss-success"})],te=new class{navigateInternally(t,e){const n=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(e)}`;Gt(n),t.push(n)}navigateInternallyToStandardChoice(t){Yt.handleSubmitFn=t.handleSubmitFn,Yt.fundName=t.fundName,Yt.promotedFundId=t.promotedFundId,this.navigateInternally(t.history,Qt.StandardChoice)}toExternalUrl(t){const e=new URL(t);return e.searchParams.append("_extnav","true"),e.href}get appBaseUrl(){return qt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}},ee=class{constructor(e){t(this,e),this.promotedFunds=qt.promotedFunds,this.eventTrackingService=zt.Instance}componentDidLoad(){return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync({promotedFundsShown:this.promotedFunds})}render(){return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center leading-8"},"Important information about super"),e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7 sm:leading-8"},"The choice of superannuation fund is an important personal financial decision. Next, you’ll be asked to nominate a super fund to receive your employer contributions."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg"},e("div",{class:"sm:text-lg font-bold leading-6"},"By clicking “Continue” you acknowledge that:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6"},e("li",null,"Flare (we/us) provides this paperless employee management service, will feature superannuation funds and offer you employee benefits that you may be interested in;"),e("li",null,"all content contained in the following pages does not take into account any of your objectives, financial situation or needs and does not constitute financial product advice;"),e("li",null,"in featuring any superannuation funds, we, the technology partner you are accessing us via, or your employer, are not providing any opinion or recommendation (actual or implied) in relation to the suitability or appropriateness of the featured funds;"),e("li",null,"if you do choose one of the featured superannuation funds, we and our associates will normally receive a fee for you doing so.")),e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSuperFundDisclaimerAccepted()},"Continue"))))}async handleSuperFundDisclaimerAccepted(){const t={promotedFundsShown:this.promotedFunds};await this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync(t),te.navigateInternally(this.history,Qt.ChoicePage)}};var ne;!function(t){t.MyOwnFund="Your current super fund",t.DefaultFund="Your employer's default fund",t.SelfManagedFund="Your self-managed super fund"}(ne||(ne={}));const ie={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:q,fundName:q,memberNumber:q},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:""},currentCustomFundType:ne.MyOwnFund,customFunds:[{label:ne.MyOwnFund,value:Qt.MyOwnFund},{label:ne.SelfManagedFund,value:Qt.SelfManagedFund},{label:ne.DefaultFund,value:Qt.DefaultFund}]},{state:re}=Bt(ie),se=re.customFunds,oe=class{constructor(e){t(this,e),this.currentCustomFund=se[0],this.fundOptionsList=se,this.showFundOptionsSelection=!1}componentWillLoad(){let t="";window.location.pathname.includes(Qt.MyOwnFund)&&(t=Qt.MyOwnFund),window.location.pathname.includes(Qt.DefaultFund)&&(t=Qt.DefaultFund),window.location.pathname.includes(Qt.SelfManagedFund)&&(t=Qt.SelfManagedFund),this.currentCustomFund=se.find((e=>e.value===t))||se[0],te.navigateInternally(this.history,t)}render(){const t=()=>e("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}));return e("div",{class:"max-w-560 relative"},e("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),e("div",{class:"mt-1 mb-4"},e("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:()=>this.showFundOptionsSelection=!this.showFundOptionsSelection},e("span",{class:{"block truncate":!0,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))),null))),this.showFundOptionsSelection&&e("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((n=>e("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base",onClick:()=>{this.showFundOptionsSelection=!this.showFundOptionsSelection,te.navigateInternally(this.history,n.value)}},e("span",{class:{"block truncate":!0,"font-semibold":this.currentCustomFund===n}},n.label),this.currentCustomFund===n&&e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},e(t,null))))))),e("div",{onClick:()=>this.showFundOptionsSelection=!1},e("slot",null)))}};W(oe);const ae=new class{searchFundsAsync(t,e){return Lt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:e})}async getActiveFundByUsiAsync(t){const e=await Lt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===e.length?Pt.some(e[0]):Pt.none}async getFundByUsiAsync(t){const e=await Lt.getAustralianFundsAsync({type:"usiMatch",usi:t},!0);return 1===e.length?Pt.some(e[0]):Pt.none}},ue=new class{async submitDefaultFundChoiceAsync(t){return Vt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Vt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Vt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}async validateAbnForSMSF(t){return(await Vt().url(`super-choice/smsf/${t}/validate`).get().badRequest((()=>{throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()).result}},ce=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=zt.Instance}async componentWillLoad(){const t=qt.defaultFundUsi;if(Pt.isNone(t))return;this.isDefaultFundExists=!0;const e=await ae.getActiveFundByUsiAsync(t.value);Pt.isNone(e)?this.isInvalidDefaultFund=!0:(this.defaultFund=e.value,this.defaultFundProductName=e.value.productName)}componentDidLoad(){var t,e,n,i;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:null!==(e=null===(t=this.defaultFund)||void 0===t?void 0:t.usi)&&void 0!==e?e:"",fundName:null!==(i=null===(n=this.defaultFund)||void 0===n?void 0:n.productName)&&void 0!==i?i:"",promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},e("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",null,e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),e("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),e("div",{class:"text-sm text-gray-700"},e("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),e("ul",{class:"list-disc list-outside pl-5"},e("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),e("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),e("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",{class:"mb-4"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm()},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||te.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",handleSubmitFn:async t=>{await ue.submitDefaultFundChoiceAsync({standardChoiceFormSignature:t})}})}},le=class{constructor(n){t(this,n),this.valueChanged=o(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results"):"in progress"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching..."):0===this.filteredOptions.length?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":!0,"bg-primary-base":this.isOptionSelected(t)},onClick:()=>{this.highlightedOptionIndex=n,this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,e;this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightItem("Next"),!0;case"ArrowUp":return this.highlightItem("Prev"),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightItem=t=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(Math.max(0,this.highlightedOptionIndex+("Next"===t?1:-1)),this.filteredOptions.length-1),void 0!==this.highlightedOptionIndex&&this.selectOption(this.filteredOptions[this.highlightedOptionIndex]))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=B(this.inputElement,"keyup").pipe(function(t,e=w){return n=>n.lift(new j(t,e))}(500),f((()=>this.inputElement.value)),x(),k(this.shouldExecuteSearch),R(this.onBeginSearch),M(this._searchFunction),R(this.onCompleteSearch)).subscribe()}disconnectedCallback(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return e(s,null,e("div",{class:"relative"},e("input",{type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":!0,hidden:!this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":!0,hidden:!this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults())))}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction");return this.searchFunction}};le.style="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";const de="https://www.australianethical.com.au/super/pds-forms/",fe=[{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"},{dtoPropName:"active",id:"active"},{dtoPropName:"australianEthical",id:"australian-ethical"},{dtoPropName:"virgin",id:"virgin"},{dtoPropName:"spirit",id:"spirit"},{dtoPropName:"firstSuper",id:"first-super"}],he=t=>{switch(t){case"slate":return"Slate Super";case"australian-retirement-trust":return"Australian Retirement Trust";case"aware":return"Aware Super";case"active":return"Active Super";case"australian-ethical":return"Australian Ethical";case"virgin":return"Virgin Money Super";case"spirit":return"Spirit Super";case"first-super":return"First Super";default:return}},pe=t=>{switch(t){case"slate":return"32367272075001";default:return}},me=t=>{let e="";switch(t){case"slate":e="logo-slate.png";break;case"australian-retirement-trust":e="logo-art.svg";break;case"aware":e="logo-aware.svg";break;case"active":e="logo-active.svg";break;case"australian-ethical":e="logo-aus-eth.svg";break;case"virgin":e="logo-virgin.svg";break;case"spirit":e="logo-spirit.svg";break;case"first-super":e="logo-first.svg";break;default:return}if(""!==e)return r("assets/"+e)};const ve=new class{async GetExistingFundAsync(){var t,e;const n=qt.superBuyer.superChoice,i=null===(t=qt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!n)return q;if(!i)return q;const r=null==n.dateSubmitted?q:V(new Date(n.dateSubmitted)),s="promoted"in(a=i)?function(t){return"slate"in t?q:"australianRetirementTrust"in t?V(t.australianRetirementTrust.usi):"aware"in t?V(t.aware.usi):"active"in t?V(t.active.usi):"australianEthical"in t?V(t.australianEthical.usi):"virgin"in t?V(t.virgin.usi):"spirit"in t?V(t.spirit.usi):"firstSuper"in t?V(t.firstSuper.usi):q}(a.promoted):"myOwnFund"in a?V(a.myOwnFund.usi):"smsf"in a?q:"default"in a?V(a.default.usi):q,o=function(t){return"promoted"in t?function(t){return"slate"in t?V(t.slate.memberNumber):"australianRetirementTrust"in t?V(t.australianRetirementTrust.memberNumber):"aware"in t?V(t.aware.memberNumber):"active"in t?V(t.active.memberNumber):"australianEthical"in t?V(t.australianEthical.memberNumber):"virgin"in t?V(t.virgin.memberNumber):"spirit"in t?V(t.spirit.memberNumber):"firstSuper"in t?V(t.firstSuper.memberNumber):q}(t.promoted):"myOwnFund"in t?V(t.myOwnFund.memberNumber):q}(i);var a;if("promoted"in i){const t=fe.find((t=>t.dtoPropName in i.promoted));return null==(null==t?void 0:t.id)?q:V({type:"Promoted Fund",id:t.id,name:null!==(e=he(t.id))&&void 0!==e?e:"",usi:s,valid:"Active",memberNumber:o,lastNominatedAt:r})}if("smsf"in i)return V({type:"Self Managed Fund",name:i.smsf.fundName,valid:"Unknown",lastNominatedAt:r});if("myOwnFund"in i){const t=i.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return V({type:"My Own Fund",name:L(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:o,lastNominatedAt:r})}if("default"in i){const t=i.default.usi,e=await this.getFundByUsiAsync(t);return V({type:"Default Fund",name:L(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:r})}return q}async submitRetainSuperFundAsync(t){return Vt().url("super-choice/retain-super-fund").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}getFundByUsiAsync(t){return ae.getFundByUsiAsync(t)}toFundValidState(t){return L(t)?t.value.isActive?"Active":"Inactive":"Unknown"}};class ge{static isNewComplianceEnabled(){return!0}}const ye=class{constructor(e){t(this,e),this.eventTrackingService=zt.Instance,this.createSuperFundNominationDetail=t=>{function e(t){return L(t)?t.value:void 0}return{fundType:t.type.toString(),fundName:t.name,fundUsi:function(t){return"usi"in t?e(t.usi):void 0}(t),memberNumber:function(t){return"memberNumber"in t?e(t.memberNumber):void 0}(t),fundStatus:t.valid.toString(),lastNominatedAt:L(t.lastNominatedAt)?t.lastNominatedAt.value.toISOString():""}}}componentDidLoad(){const t=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(t)}async componentWillLoad(){const t=await ve.GetExistingFundAsync();L(t)&&"Inactive"!==t.value.valid?this.existingFund=t.value:te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}render(){const t=t=>e("div",{class:"flex justify-center"},e("img",{class:"h-16 object-contain w-full max-w-140",alt:he(t.id),src:me(t.id)})),n=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"})))),i=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"})))),r=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},e("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"}))));return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super choice"),e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-400 w-full"},e("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},e("div",{class:"space-y-4"},(()=>{switch(this.existingFund.type){case"Promoted Fund":return e(t,{id:this.existingFund.id});case"Self Managed Fund":return e(i,null);case"My Own Fund":return e(n,null);case"Default Fund":return e(r,null)}})(),e("div",{class:"sm:text-lg font-bold leading-6"},(()=>{switch(this.existingFund.type){case"Default Fund":return"Employer's default fund";default:return this.existingFund.name}})())),e("div",{class:"mt-6"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleFundNominationAccepted()},"Continue with this fund"))),e("div",{class:"mt-4"},e("sss-button",{fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund")))))}async handleFundNominationAccepted(){const t=this.createSuperFundNominationDetail(this.existingFund);await ve.submitRetainSuperFundAsync(t),qt.markSuperSelectionAsSubmitted()}async handleFundNominationDeclined(){const t=this.createSuperFundNominationDetail(this.existingFund);await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(t),te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}},we=class{constructor(e){t(this,e)}render(){return e("div",{class:"text-center text-gray-500 text-xs mt-8 sm:mt-20 w-full max-w-960 mx-auto"},e("span",null,"Powered by Flare"),e("p",{class:"block text-transparent"},"v","4.9.20170"),!ge.isNewComplianceEnabled()&&e("p",{class:"mt-4"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare do not express any opinion or make any recommendation about any of the advertised funds."))}},be=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex justify-center"},e("div",{class:"text-center max-w-800"},e("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),ge.isNewComplianceEnabled()&&e(a,null,e("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},"You can choose any super fund, including your current fund/SMSF, your employer’s default fund, or alternatively, you can select from one of the featured funds."),e("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},e("stencil-route-link",{exact:!0,url:Qt.ChoicePage,anchorClass:"hover:bg-primary-hover block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus relative focus:z-10 border border-transparent text-gray-700 text-white rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full",activeClass:"hover:bg-white block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full bg-white border-gray-200 text-gray-900 shadow-sm text-primary-base"},"Featured super funds"),e("stencil-route-link",{exact:!0,url:Qt.MyOwnFund,anchorClass:"hover:bg-primary-hover block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 border border-transparent text-gray-700 text-white rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full",activeClass:"hover:bg-white block focus:outline-none focus:ring-2 ring-offset-1 focus:ring-primary-focus focus:z-10 rounded-md py-2 text-sm font-medium w-auto px-3 sm:px-8 h-full bg-white border-gray-200 text-gray-900 shadow-sm text-primary-base"},"Choose another fund")))))}},xe=class{constructor(e){t(this,e)}componentDidLoad(){this.build(this.iframeElement)}render(){return e("div",{class:"w-screen"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},ke=class{constructor(e){t(this,e),this.theme="primary",this.size=48}render(){return e("div",{class:"inline-block animate-spin"},e("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),e("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"primary"===this.theme?"fill-primary-base":"fill-white"})))}},Se=class{constructor(e){t(this,e)}render(){return e(s,{class:"flex flex-col justify-center items-center"},e("h5",{class:"text-lg"},"Loading your superannuation step"),e("sss-loading-indicator",null))}},Ce=class{constructor(e){t(this,e),this.isNotAllInformationProvidedMessageVisible=!1,this.isSubmitDisabled=!0,this.eventTrackingService=zt.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:H(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-2"},e("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},e("li",null,"Make sure you are a current member of the fund before completing this step."),e("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),e("sss-my-own-fund-inputs",{myOwnFundForm:re.myOwnFundForm,showValidationErrors:"validated"===this.formState,onFormChanged:t=>{re.myOwnFundForm=Object.assign(Object.assign({},re.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}}),this.isNotAllInformationProvidedMessageVisible&&e("div",{class:"mt-4 rounded-md bg-red-50 p-4 text-sm text-red-700"},"All fields are required to complete submission. Make sure you have selected a fund.")),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},e("div",{class:"mb-4"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back"))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(L(re.myOwnFundForm.fundUsi)&&L(re.myOwnFundForm.memberNumber)?te.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(re.myOwnFundForm.fundName),handleSubmitFn:async t=>{const e={fundUsi:this.getOrError(re.myOwnFundForm.fundUsi),memberNumber:this.getOrError(re.myOwnFundForm.memberNumber),standardChoiceFormSignature:t};await ue.submitCustomFundChoiceAsync(e)}}):this.isNotAllInformationProvidedMessageVisible=!0)}getOrError(t){return jt.pipe(t,(e=()=>{throw new Error("Option value is none.")},function(t){return U(t)?e():t.value}));var e}};W(Ce);const Ae=class{constructor(e){t(this,e),this.formChanged=o(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await ae.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,e)=>t.productName.localeCompare(e.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return e("div",null,e("div",null,e("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),e("div",{class:"mt-1"},e("sss-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:"Type to search by name or USI...",value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFund(t.detail)},showValidationErrors:this.showValidationErrors})),L(this.myOwnFundForm.fundUsi)&&e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.myOwnFundForm.fundUsi.value))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Member number"),e("div",{class:"mt-1"},e("input",{type:"text",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:H(re.myOwnFundForm.memberNumber),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))))}updateFund(t){this.formChanged.emit({fundUsi:V(t.value),fundName:V(t.label)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:V(t)})}},Fe=new class{async submitChoiceAsync(t){return Vt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},{state:_e}=Bt({fundId:""}),Me=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"===window.location.origin,this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:qt.partnerIdOrDefault,accountId:qt.accountIdOrDefault,fundId:_e.fundId,authToken:qt.jwt}),i=n=>{var r;const{data:s}=n;if(s)if("promoted-fund-redirect"!==s.sender){if("promoted-fund-join"===s.sender)switch(s.type){case"contentResized":t.height=s.height>0?s.height:t.height,t.width=s.width>0?s.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),Gt(window.location.href)}}else switch(window.removeEventListener("message",i),s.type){case"cancel":te.navigateInternally(e,Qt.ChoicePage);break;case"success":if(s.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:null!==(r=he(_e.fundId))&&void 0!==r?r:"",handleSubmitFn:t=>Fe.submitChoiceAsync(Object.assign(Object.assign({},_e),{memberNumber:s.memberNumber,usi:s.usi.replace(/ /g,""),standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})),promotedFundId:_e.fundId});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const s=r.createElement("form");let o;for(o in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),n){const t=n[o];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=o,e.value=t,s.append(e)}}r.appendChild(s),r.close(),s.submit()}getMemberData(){var t,e;const n=qt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},Ee=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Me.build(t,this.history)})}},Ie=new class{constructor(){this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}api.simplefinancialchoices.com/promoted-funds/embed`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:qt.partnerIdOrDefault,accountId:qt.accountIdOrDefault,fundId:_e.fundId,authToken:qt.jwt}),i=n=>{var r;const{data:s}=n;if(s)if("promoted-fund-redirect"!==s.sender){if("promoted-fund-join"===s.sender)switch(s.type){case"contentResized":t.height=s.height>0?s.height:t.height,t.width=s.width>0?s.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),Gt(window.location.href)}}else switch(window.removeEventListener("message",i),s.type){case"cancel":te.navigateInternally(e,Qt.ChoicePage);break;case"success":if(s.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:null!==(r=he(_e.fundId))&&void 0!==r?r:"",handleSubmitFn:t=>Fe.submitChoiceAsync(Object.assign(Object.assign({},_e),{memberNumber:s.memberNumber,usi:s.usi.replace(/ /g,""),standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})),promotedFundId:_e.fundId});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",i);const r=t.contentDocument;r.open();const s=r.createElement("form");let o;for(o in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),n){const t=n[o];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=o,e.value=t,s.append(e)}}r.appendChild(s),r.close(),s.submit()}getMemberData(){var t,e;const n=qt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},Be=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Ie.build(t,this.history)})}};function Te(t){const e=t.split("").map(Number),n=e.every((t=>!isNaN(t))),i=[10,1,3,5,7,9,11,13,15,17,19];return!(!n||e.length!==i.length)&&(e[0]--,e.reduce(((t,e,n)=>t+e*i[n]),0)%89==0)}const je=class{constructor(e){t(this,e),this.isSubmitDisabled=!0,this.isAbnValid=Te(re.selfManagedFundForm.fundAbn),this.eventTrackingService=zt.Instance,this.success=()=>{te.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",handleSubmitFn:async t=>{const e={smsfChoice:{abn:re.selfManagedFundForm.fundAbn,fundName:re.selfManagedFundForm.fundName,fundAddress:{addressLine1:re.selfManagedFundForm.addressLine1,addressLine2:re.selfManagedFundForm.addressLine2,city:re.selfManagedFundForm.city,state:re.selfManagedFundForm.state,postcode:re.selfManagedFundForm.postcode},bsb:re.selfManagedFundForm.bsb,bankAccountName:re.selfManagedFundForm.bankAccountName,bankAccountNumber:re.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:re.selfManagedFundForm.fundEsa},standardChoiceFormSignature:t};await ue.submitSelfManagedFundChoiceAsync(e)}})}}componentDidLoad(){return this.updateIsSubmitDisabled(),this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:qt.promotedFunds,defaultFundUsiSet:H(qt.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",{currentPage:"own-fund"}),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"},e("p",{class:"sm:text-lg font-bold"},"Fund details"),e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."))),e("sss-self-managed-fund-inputs",{fundForm:re.selfManagedFundForm,showValidationErrors:"validated"===this.formState,onFormChanged:t=>{re.selfManagedFundForm=Object.assign(Object.assign({},re.selfManagedFundForm),t.detail),void 0!==t.detail.isAbnValid&&(this.isAbnValid=t.detail.isAbnValid),this.updateIsSubmitDisabled()}})),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},e("div",{class:"mb-4",onClick:()=>this.formState="validated"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Continue")),e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{fillWidth:!0,variant:"secondary"},"Back"))))))))}updateIsSubmitDisabled(){this.isSubmitDisabled=!this.formElement.checkValidity()||!this.isAbnValid}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&this.success()}};W(je);const Pe={"01":"Australia and New Zealand Banking Group","03":"Westpac Banking Corporation",73:"Westpac Banking Corporation","06":"Commonwealth Bank of Australia",76:"Commonwealth Bank of Australia","08":"National Australia Bank",78:"National Australia Bank","09":"Reserve Bank of Australia",10:"BankSA (division of Westpac Bank)",11:"St George Bank (division of Westpac Bank)",33:"St George Bank (division of Westpac Bank)",12:"Bank of Queensland",14:"Rabobank",15:"Town & Country Bank",18:"Macquarie Bank",19:"Bank of Melbourne (division of Westpac Bank)",55:"Bank of Melbourne (division of Westpac Bank)",21:"JP Morgan Chase Bank",22:"BNP Paribas",23:"Bank of America",24:"Citibank & Citibank NA",510:"Citibank & Citibank NA",25:"BNP Paribas Securities",26:"Bankers Trust Australia (division of Westpac Bank)",29:"MUFG Bank",30:"Bankwest (division of Commonwealth Bank)",31:"Bank Australia",325:"Beyond Bank",34:"HSBC Bank Australia",985:"HSBC Bank Australia",35:"Bank of China",980:"Bank of China",40:"Commonwealth Bank of Australia",41:"Deutsche Bank",42:"Commonwealth Bank of Australia",52:"Commonwealth Bank of Australia",45:"OCBC Bank",46:"Advance Bank (division of Westpac Bank)",47:"Challenge Bank (division of Westpac Bank)",48:"Suncorp-Metway",664:"Suncorp-Metway",512:"Community First Credit Union",514:"RACQ Bank",517:"Volt Bank",533:"Bananacoast Community Credit Union",57:"Australian Settlements",61:"Adelaide Bank (division of Bendigo and Adelaide Bank)",611:"Endeavour Mutual Bank",823:"Endeavour Mutual Bank",630:"Greater Bank",637:"Greater Bank",632:"B&E",633:"Bendigo Bank",634:"Uniting Financial Services",638:"Heritage Bank",880:"Heritage Bank",639:"Home Building Society (division of Bank of Queensland)",640:"Hume Bank",641:"IMB",647:"IMB",642:"Australian Military Bank",645:"Auswide Bank",656:"Auswide Bank",646:"Maitland Mutual Building Society",650:"Newcastle Permanent Building Society",653:"Pioneer Permanent Building Society (division of Bank of Queensland)",654:"Queensland Country Credit Union",655:"The Rock",659:"G&C Mutual Bank",676:"Gateway Bank",70:"Indue",721:"Holiday Coast Credit Union",722:"Southern Cross Credit Union",723:"Bank of Heritage Isle",724:"MOVE",728:"Summerland Credit Union",777:"Police & Nurse",80:"Cuscal",670:"Cuscal",812:"Teachers Mutual Bank",813:"Capricornian",814:"Credit Union Australia",815:"Police Bank",817:"Warwick Credit Union",818:"Bank of Communications",819:"Industrial & Commercial Bank of China",824:"Sutherland Credit Union",825:"Big Sky Building Society",833:"Defence Bank",882:"Unity Bank",888:"China Construction Bank",90:"Australia Post",911:"Sumitomo Mitsui Banking Corporation",913:"State Street Bank & Trust Company",917:"Arab Bank Australia",918:"Mizuho Bank",922:"United Overseas Bank",923:"ING Bank",936:"ING Bank",931:"Mega International Commercial Bank",932:"Regional Australia Bank",939:"AMP Bank",941:"Delphi Bank (division of Bendigo and Adelaide Bank)",942:"Bank of Sydney",943:"Taiwan Business Bank",944:"Members Equity Bank",946:"UBS AG",951:"BOQ Specialist",969:"Tyro Payments"},Ne=class{constructor(e){t(this,e),this.formChanged=o(this,"formChanged",7),this.isAbnValid=!1,this.isAbnTouched=!1,this.isAbnUsedForRegulated=!1,this.currentBank=q,this.addressErrorMessage=q,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){const t={"relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors};return e("div",null,e("div",null,e("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundName",id:"fundName",value:re.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund name"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund ABN"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:re.selfManagedFundForm.fundAbn,inputmode:"numeric",pattern:"[0-9]*",onKeyUp:async t=>{const e=t.target.value;this.updateFormField("fundAbn",e.trim()),this.isAbnValid=Te(e),this.isAbnValid&&(this.isAbnUsedForRegulated=await this.isAbnUsedForRegulatedAsync(e)),this.updateFormField("isAbnValid",this.isAbnValid)},onBlur:()=>this.isAbnTouched=!0}),this.renderAbnValidationError())),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Electronic service address alias (ESA)"),e("div",{class:"mt-1"},e("input",{type:"text",class:t,required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:re.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund ESA"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),e("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},e("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none rounded-t-md shadow-none":!0}),required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:re.selfManagedFundForm.addressLine1,onChange:t=>{this.updateFormField("addressLine1",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.addressLine1Element=t}),e("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":!0}),name:"addressLine2",id:"addressLine2",value:re.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),e("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":!0}),name:"city",required:!0,id:"city",value:re.selfManagedFundForm.city,onChange:t=>{this.updateFormField("city",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.cityElement=t}),e("div",{class:"flex -space-x-px"},e("div",{class:"w-1/2 flex-1 min-w-0"},e("input",{placeholder:"Postcode",type:"text",required:!0,class:Object.assign(Object.assign({},t),{"rounded-none rounded-bl-md shadow-none":!0}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:re.selfManagedFundForm.postcode,inputmode:"numeric",onChange:t=>{this.updateFormField("postcode",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.postcodeElement=t})),e("div",{class:"flex-1 min-w-0"},e("select",{class:Object.assign(Object.assign({},t),{"rounded-none rounded-br-md shadow-none":!0,"text-gray-500":void 0!==this.fundForm.state}),name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim()),this.updateAddressErrorMessage()},ref:t=>this.stateElement=t},e("option",{disabled:!0,selected:void 0!==this.fundForm.state,value:""},"State"),this.stateOptions.map((t=>e("option",{value:t.value,selected:this.fundForm.state===t.value},t.label))))))),L(this.addressErrorMessage)&&this.showValidationErrors&&e("div",{class:"mt-2 text-sm text-red-600"},this.addressErrorMessage.value)),e("h3",{class:"text-lg font-bold mt-6"},"Fund bank details"),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Account name"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bankAccountName",minlength:"2",id:"bankAccountName",value:re.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account name"))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"BSB"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bsb",id:"bsb",minlength:"6",maxlength:"7",inputmode:"numeric",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:re.selfManagedFundForm.bsb}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid BSB"))),L(this.currentBank)&&e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Bank name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm"},this.currentBank.value)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Account number"),e("div",{class:"mt-1"},e("input",{type:"text",required:!0,class:t,name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,inputmode:"numeric",value:re.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account number"))))}updateFormField(t,e){this.formChanged.emit({[t]:e})}async isAbnUsedForRegulatedAsync(t){return!await ue.validateAbnForSMSF(t)}renderAbnValidationError(){if(this.isAbnTouched||this.showValidationErrors){if(!this.isAbnValid)return e("div",{class:"mt-2 text-sm text-red-600"},"Enter a valid fund ABN (digits only)");if(this.isAbnUsedForRegulated)return e("div",{class:"mt-2 text-sm text-red-600"},"The supplied ABN is for a regulated fund")}return[]}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const e=this.filterDigits(t.target.value),n=e.substring(0,2),i=e.substring(0,3),r=Pe[n],s=Pe[i];r&&(this.currentBank=V(r)),s&&(this.currentBank=V(s)),(""===e||e.length>6)&&(this.currentBank=q),this.updateFormField("bsb",e)}updateCurrentBankAccountNumber(t){const e=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",e)}updateAddressErrorMessage(){let t=q;U(t)&&!this.addressLine1Element.checkValidity()&&(t=V("Enter a valid address line 1")),U(t)&&!this.cityElement.checkValidity()&&(t=V("Enter a valid city/suburb")),U(t)&&!this.postcodeElement.checkValidity()&&(t=V("Enter a valid post code")),U(t)&&!this.stateElement.checkValidity()&&(t=V("Select a state")),this.addressErrorMessage=t}};var Re;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(Re||(Re={}));class De{}let Oe=class extends C{constructor(){super({authenticationState:Re.Unauthorized,jwt:q,reactNativeInterop:q,iframeInterop:q,appConfiguration:q,ignoreExistingSelection:!1})}};Oe=function(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}([S({name:"sss-session",resettable:!0})],Oe);const Le=new Oe,Ue=new class extends A{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return L(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return L(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(U(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(Le),qe=new class{async submitSlateChoiceAsync(t){return Vt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},Ve=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"===window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>Ue.isReactNativeInteropEnabled()?"true":"false",this.skipInsurance=()=>Ue.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:n,cancelRedirectUrl:n,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});this.includeJwt()&&(i.authToken=qt.jwt);const r=n=>{const{data:i,origin:s}=n;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&s.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){te.navigateInternallyToStandardChoice({history:e,fundName:"Slate Super",handleSubmitFn:t=>qe.submitSlateChoiceAsync({memberNumber:i.memberNumber,standardChoiceFormSignature:t,shownFunds:qt.promotedFunds,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)}),promotedFundId:"slate"});break}default:te.navigateInternally(e,Qt.ChoicePage)}};window.addEventListener("message",r);const s=t.contentDocument;s.open();const o=s.createElement("form");let a;for(a in o.method="POST",o.target="_self",o.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,o.append(e)}}s.appendChild(o),s.close(),o.submit()}getSlateJoinMemberData(){var t,e;const n=qt.superBuyer;return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},He=class{constructor(e){t(this,e)}render(){return e("sss-iframe-host",{build:t=>Ve.build(t,this.history)})}},ze=class{constructor(e){t(this,e),this.standardChoiceFormSignature="",this.isSubmitDisabled=!0}render(){return e(s,null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),e("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."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-560"},e("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},Yt.promotedFundId&&me(Yt.promotedFundId)&&e("div",{class:"pb-4 mb-4 border-b flex justify-center sm:pb-0 sm:mb-0 sm:border-b-0 sm:pr-8 sm:mr-8 sm:border-r sm:justify-start"},e("img",{class:"h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain",alt:Yt.fundName,src:me(Yt.promotedFundId)})),e("div",{class:"flex justify-between w-full"},e("div",null,e("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),e("div",{class:"text-sm mt-2"},Yt.fundName)),e("div",{class:"grid content-center ml-4"},e("stencil-route-link",{url:Qt.ChoicePage},e("sss-button",{size:"xs",variant:"secondary"},"Change"))))),e("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},e("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),e("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:r("assets/icon-information-circle.svg")})),e("div",{class:"ml-2"},e("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.")))),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"mt-3":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),e("input",{type:"text",autocomplete:"off",class:{"shadow-sm focus:ring-primary-focus focus:border-primary-focus w-full text-base sm:text-sm border-gray-300 rounded-md mt-1":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":"validated"===this.formState},required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:t=>this.standardChoiceFormSignature=t.target.value}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),e("div",{class:"mt-6"},e("sss-button",{fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Confirm and continue")))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await Yt.handleSubmitFn(this.standardChoiceFormSignature.trim()),qt.markSuperSelectionAsSubmitted())}},We=class{constructor(e){t(this,e)}render(){return e(s,{class:"text-center"},e("div",{class:"flex justify-center"},e("div",{class:"relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},e("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))),null)))),e("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),e("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),e("div",{class:"flex justify-center mt-8"},e("div",{class:"max-w-[200px] w-full"},e("sss-button",{size:"xl",fillWidth:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))}handleContinueButtonClick(t){qt.completeSuperSelectionFlow()}},$e=class{constructor(e){t(this,e),this.joinFundClicked=o(this,"joinFundClicked",7)}render(){return e(s,null,e("div",{class:"py-6 px-4 lg:px-6 flex flex-col justify-between h-full"},e("div",null,e("div",{class:"md:max-w-[240px] lg:max-w-full"},e("sss-button",{class:"uuid-button-continue",fillWidth:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),e("div",{class:"text-xs text-gray-500 mt-6 leading-4"},this.disclaimer)),this.abnInfo&&this.abn&&e("div",{class:"text-xs text-gray-500 mt-2"},e("p",null,`${ge.isNewComplianceEnabled()?"Issued by ":""}${this.abnInfo}.`),e("p",null,"ABN: ",this.abn))))}handleFundClick(){return this.joinFundClicked.emit()}},Xe=class{constructor(e){t(this,e)}render(){return e(s,null,e("div",{class:"px-4 lg:px-6 pt-6"},e("div",{class:"text-right w-100 -mt-5 -mr-3.5 lg:-mr-5"},e("span",{class:"text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5"},ge.isNewComplianceEnabled()?"Featured":"Advertised")),e("div",{class:"flex lg:block mt-2 md:mt-0 lg:mt-4"},e("img",{class:"h-12 md:h-14 lg:h-16 object-contain w-auto w-[80px] md:w-[96px] lg:w-[140px] md:hidden lg:block lg:object-left",alt:this.name,src:r("assets/"+this.logo)}),e("div",{class:"grid content-center"},e("p",{class:"text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0 lg:mt-4"},this.name))),e("div",{class:"mt-4 sm:mt-2 text-sm space-y-2"},this.features.map((t=>e("div",{class:"flex"},e("div",{class:"h-5 w-5 flex-none mr-1.5"},e("img",{alt:"checked",src:r("assets/icon-check.svg")})),e("div",{class:"leading-5"},t))))),this.featureSubText&&e("p",{class:"text-xs text-gray-500 italic mt-4 leading-4"},this.featureSubText)))}},Ge=class{constructor(e){t(this,e),this.promotedFunds=this.getPromotedFunds(),this.eventTrackingService=zt.Instance}componentDidLoad(){const t=this.promotedFunds.map((t=>t.fundId));return this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)})}render(){return e(s,null,e("div",null,e("sss-header-section",{currentPage:"choice"}),ge.isNewComplianceEnabled()&&e("div",{class:"mt-8 text-sm text-center leading-6"},e("p",{class:"leading-6"},"Not ready to join a new fund, or want to nominate another super fund?"),e("stencil-route-link",{url:Qt.MyOwnFund},e("span",{class:"inline-block text-primary-base font-medium mt-3"},"Skip Featured Funds ",e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"inline h-5 w-5 fill-primary-base group-hover:fill-white"},e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))))),!ge.isNewComplianceEnabled()&&e("div",{class:"flex justify-center pb-4"},e("div",{class:"text-center space-y-4 max-w-960 text-sm leading-6"},e("p",{class:"text-lg leading-8 text-gray-600"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund."),e("p",null,"Flare is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),e("p",null,"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare are making any recommendation or opinion."),e("p",null,"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."),e("p",null,"You should be aware that, if you do choose one of these advertised funds, Flare and its associated entities will normally receive a fee for you doing so."))),e("div",{class:"flex justify-center mt-8"},e("div",{class:{"lg:grid border-l border-t lg:border-b rounded-lg":!0,"lg:grid-cols-1 max-w-400":1===this.promotedFunds.length,"lg:grid-cols-2 max-w-720":2===this.promotedFunds.length,"lg:grid-cols-3 max-w-960":3===this.promotedFunds.length}},this.promotedFunds.map(((t,n)=>e("div",{class:{"border-r":!0,"rounded-tr-lg":0===n,"lg:rounded-tr-none":0===n&&n!==this.promotedFunds.length-1,"rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg":n===this.promotedFunds.length-1}},e("div",{class:{"flex border-b lg:border-b-0":!0,"rounded-b-lg":n===this.promotedFunds.length-1}},e("div",{class:"hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6"},e("img",{class:"h-16 object-contain w-full max-w-[96px]",alt:t.name,src:r("assets/"+t.logo)})),e("div",{class:"w-full"},e("sss-super-choice-item-top",{logo:t.logo,name:t.name,features:t.features,featureSubText:t.featureSubText}),e("div",{class:"lg:hidden"},e("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))))),this.promotedFunds.map(((t,n)=>e("div",{class:{"hidden lg:block border-r":!0,"rounded-br-lg":n===this.promotedFunds.length-1}},e("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)})))))),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"pb-8 sm:pb-12 max-w-720 border-b"},e("h5",{class:"font-bold sm:text-lg"},"Or, choose another super fund:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base"},e("li",null,"Select this option if you'd like to use your current account with another super fund, your self-managed super fund, or your employer's default fund."),e("li",null,"If you are unsure of your current super fund details, you can find out at"," ",e("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:te.toExternalUrl("https://my.gov.au")},"www.my.gov.au")),e("li",null,"A full list of super funds can be viewed at"," ",e("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:te.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au"))),e("stencil-route-link",{url:Qt.MyOwnFund},e("sss-button",{fillWidthOnMobile:!0},"Choose another super fund")))),ge.isNewComplianceEnabled()&&e("div",{class:"flex justify-center"},e("div",{class:"pt-8 sm:pt-12 max-w-720"},e("h5",{class:"font-semibold"},"IMPORTANT INFORMATION:"),e("ul",{class:"list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6"},e("li",null,"The superannuation funds featured above are for your information only. The order, position and placement of content should not be interpreted as an opinion or recommendation (actual or implied) by Flare as to the suitability or appropriateness of any superannuation fund for you. In featuring these superannuation funds, Flare has not taken into account your objectives, financial situation or needs."),e("li",null,"This is not a comparison service. This page contains factual information only and does not constitute either general or personal advice about any financial products. We do not take into account your objectives, financial situation or needs. If you have questions or need help making a decision about your superannuation fund, you should speak to a licensed financial product advice provider."),e("li",null,"Flare, the technology partner you are accessing Flare via and your employer do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the featured superannuation funds. Flare does not endorse or accept responsibility for any of the content shown about any of the featured superannuation funds."),e("li",null,"You should consider the relevant superannuation fund’s PDS and TMD (if applicable) in deciding whether to apply to join the superannuation fund. Each of the superannuation funds featured above include a link to their PDS and TMD (if applicable) for your convenience. If you are considering joining another superannuation fund, you can typically find the PDS and TMD (if applicable) on that fund’s website."),e("li",null,"You should be aware that, if you do choose one of the featured superannuation funds, Flare and it’s associates will normally receive a fee for you doing so (this includes Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, which is a sub-promoter of Slate Super)."))))))}allFunds(){const t=(t,n)=>e("a",{class:t.className||"font-medium underline hover:text-gray-600",target:"_blank",href:te.toExternalUrl(t.href),onClick:t.onClick},n);return[{fundId:"slate",name:"Slate Super",logo:"logo-slate.png",route:Qt.SlateJoin,features:[e("p",null,"A lifestage investment strategy that evolves with you"),e("p",null,"Advanced mobile app with retirement forecast and smart features"),e("p",null,"Member advocates at Slate to assist with your account")],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e(t,{href:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",e(t,{href:"https://slate.co/forms-and-documents/target-market-determination/"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited",abn:"49 006 421 638"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",logo:"logo-art.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"$200 billion in retirement savings"),e("p",null,"2+ million members"),e("p",null,"A focus on delivering strong, long‑term returns")],featureSubText:e("span",null,"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option."),disclaimer:e("p",null,"You should consider the"," ",e(t,{href:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","and"," ",e(t,{href:"https://www.australianretirementtrust.com.au/tmd"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust",abn:"60 905 115 063"},{fundId:"aware",name:"Aware Super",logo:"logo-aware.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"Acting on climate change"),e("p",null,"All profits go to members"),e("p",null,"One of Australia’s largest funds")],disclaimer:e("p",null,"You should consider the"," ",e(t,{href:"https://aware.com.au/member/forms-and-resources/pds/FSS",onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:"53 226 460 365"},{fundId:"active",name:"Active Super",logo:"logo-active.svg",route:Qt.PromotedFundJoinV1,features:[e("p",null,"Winner of Canstar's 2023 Outstanding Value – Superannuation Award considering investment performance, fees and product features*"),e("p",null,"Recognised as a leader in responsible investment"),e("p",null,"Calls answered in 20 seconds (average over 5 years)")],featureSubText:e("span",null,"*Based on a comparison of the Active Super Accumulation Scheme held by those aged 20-69 years and balances between $30,000 and $1.5 million."),disclaimer:e("p",null,"Issued by LGSS Pty Limited as trustee for Local Government Super (Active Super ABN:28 901 371 321). Consider the PDS and TMD at"," ",e(t,{onClick:()=>this.pdsViewedAsync("Active Super"),href:"https://www.activesuper.com.au/pds"},"activesuper.com.au")," ","before making a decision.")},{fundId:"australian-ethical",name:"Australian Ethical",logo:"logo-aus-eth.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Fastest growing super fund in Australia",e("sup",{class:"text-tiny"},"1")),e("p",null,"Nil investments in fossil fuel companies",e("sup",{class:"text-tiny"},"2")),e("p",null,"Competitive returns")],featureSubText:e("ol",{class:"list-decimal list-outside ml-3"},e("li",null,"Source: KPMG Super Insights Report 2022."),e("li",null,"All our options go through positive and negative ethical screening in accordance with the Australian Ethical Charter (in place since 1986).")),disclaimer:e("p",null,"Issued by Australian Ethical Superannuation Pty Ltd (ABN 43 079 259 733, RSE L0001441, AFSL 526055). Please consider the"," ",e(t,{href:"https://www.australianethical.com.au/globalassets/pdf-files/forms--pds/superpension/important-information/ae-financial-services-guide_sec.pdf"},"Financial Services Guide"),", the"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"Product Disclosure Statement")," ","and"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"Target Market Determination")," ","available on our"," ",e(t,{href:de,onClick:()=>this.pdsViewedAsync("Australian Ethical")},"website"),".")},{fundId:"virgin",name:"Virgin Money Super",logo:"logo-virgin.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Returns above industry and retail super fund medians over the past 5 years",e("sup",{class:"text-tiny"},"1")),e("p",null,"One of the lowest fees in the market"),e("p",null,"Virgin Money rewards you with Velocity Points on your contributions",e("sup",{class:"text-tiny"},"2"))],featureSubText:e("div",{class:"m-4 pt-2"},e("ol",{class:"list-decimal space-y-2"},e("li",null,e("span",null,"Past performance is not a reliable indicator of future performance. Source: SuperRatings Fund Crediting Rate Survey April 2022.")),e("li",null,e("span",null,e(t,{className:"underline hover:text-gray-600",href:"https://virginmoney.com.au/superannuation/forms-and-key-information/key-documents"},"Eligibility and T&Cs apply"))))),disclaimer:e("p",null,"Prepared by Virgin Money Financial Services Pty Ltd ABN 51 113 285 395 AFSL 286869 (‘Virgin Money’). Virgin Money Super is a plan in the Mercer Super Trust ABN 19 905 422 981. Virgin Money Super is issued by Mercer Superannuation (Australia) Limited (MSAL) ABN 79 004 717 533 AFSL 235906 as trustee of the Mercer Super Trust. Consider the PDS and TMD at"," ",e(t,{href:"https://virginmoney.com.au/superannuation/",onClick:()=>this.pdsViewedAsync("Virgin Money Super")},"www.virginmoney.com.au")," ","before making a decision")},{fundId:"spirit",name:"Spirit Super",logo:"logo-spirit.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Proud Industry SuperFund - all profits go back to members"),e("p",null,"Best customer experience in super",e("sup",{class:"text-tiny"},"1")," and best for value",e("sup",{class:"text-tiny"},"2")),e("p",null,"Low fees",e("sup",{class:"text-tiny"},"3")," with a focus on strong returns and investing with impact in communities",e("sup",{class:"text-tiny"},"4"))],featureSubText:e("div",{class:"m-4 pt-2"},e("ol",{class:"list-decimal space-y-2"},e("li",null,e("span",null,"CSBA SenseCX Benchmark 2021-22")),e("li",null,e("span",null,"Awarded Best for Value in the WeMoney Superannuation Awards 2022")),e("li",null,e("span",null,"Just $67.60 + 0.15% pa admin fees, capped at $517.60")),e("li",null,e("span",null,"Rainmaker ESG Leader Rating 2022")))),disclaimer:e("p",null,"Past performance isn’t a reliable indicator of future performance. Consider the PDS and TMD at"," ",e(t,{href:"https://www.spiritsuper.com.au/pds",onClick:()=>this.pdsViewedAsync("Spirit Super")},"www.spiritsuper.com.au/pds")," ","before making a decision. Issuer is Motor Trades Association of Australia Superannuation Fund Pty Ltd (AFSL 238 718, ABN 14 008 650 628), the trustee of Spirit Super (ABN 74 559 365 913). Advice is provided by Quadrant First Pty Ltd (ABN 78 102 167 877, AFSL 284443).")},{fundId:"first-super",name:"First Super",logo:"logo-first.svg",route:Qt.PromotedFundJoinV2,features:[e("p",null,"Industry SuperFund that offers five investment options and default insurance"),e("p",null,"Strong long-term investment returns and superior customer service - members first"),e("p",null,"Established super fund – anyone can join including KiwiSaver members")],disclaimer:e("div",null,e("p",null,"General advice only which has been prepared without taking into account your objectives, financial situation or needs. Consider whether the advice is appropriate for you and read the Product Disclosure Statement (PDS) before making any investment decisions. PDS and Target Market Determination are available at our"," ",e(t,{onClick:()=>this.pdsViewedAsync("First Super"),href:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/"},"website"),". Past performance is not a reliable indicator of future performance."),e("br",null),e("p",null,"Issued by First Super Pty Ltd ABN 42 053 498 472, AFSL 223988 (Trustee) as Trustee of First Super ABN 56 286 625 181."))}]}getPromotedFunds(){const t=[];return qt.promotedFunds.forEach((e=>{const n=this.allFunds().find((t=>e===t.fundId));void 0!==n&&t.push(n)})),t}async handleJoinSuperClickAsync(t){var e;const n=qt.promotedFunds;return await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:pe(t.fundId),fundName:null!==(e=he(t.fundId))&&void 0!==e?e:"",promotedFundId:t.fundId,promotedFundsShown:n,defaultFundUsiSet:Pt.toUndefined(qt.defaultFundUsi)}),_e.fundId=t.fundId,te.navigateInternally(this.history,t.route)}pdsViewedAsync(t,e){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:e,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}},Je=class{constructor(e){t(this,e),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const e=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!e)return this.previousMatch=this.match,this.match=dt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var e,n;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(n=this.previousMatch,null==(e=this.match)&&null==n||null!=n&&e&&n&&e.path===n.path&&e.url===n.url&&at(e.params,n.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?e(this.component,Object.assign({},t)):void 0}get el(){return u(this)}static get watchers(){return{location:["computeMatch"]}}};F.injectProps(Je,["location","history","historyType","routeViewsUpdated"]),Je.style="stencil-route.inactive{display:none}";const Ke=(t,e,n)=>n(t.confirm(e)),Ye=(t,e)=>{const n=t[e],i="__storage_test__";try{return n.setItem(i,i),n.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},Qe=class{constructor(e){t(this,e),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=dt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var e,n,i;if(!((e=t).metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(n=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+n:i+n))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),e(this.custom,Object.assign({},t),e("slot",null))}get el(){return u(this)}static get watchers(){return{location:["computeMatch"]}}};F.injectProps(Qe,["history","location","root"]);const Ze=t=>"STENCIL-ROUTE"===t.tagName,tn=class{constructor(e){t(this,e),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=c(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let e=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(Ze).map(((n,i)=>{const r=dt(t.pathname,{path:n.url,exact:n.exact,strict:!0});return r&&-1===e&&(e=i),{el:n,match:r}})),-1===e)return;if(this.activeIndex===e)return void(this.subscribers[e].el.match=this.subscribers[e].match);this.activeIndex=e;const n=this.subscribers[this.activeIndex];this.scrollTopOffset&&(n.el.scrollTopOffset=this.scrollTopOffset),n.el.group=this.group,n.el.match=n.match,n.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,e)=>{if(t.el.componentUpdated=void 0,e===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return e("slot",null)}get el(){return u(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};F.injectProps(tn,["location","routeViewsUpdated"]);const en=(t,...e)=>{t||console.warn(...e)},nn=()=>{let t,e=[];return{setPrompt:e=>(en(null==t,"A history supports only one prompt at a time"),t=e,()=>{t===e&&(t=null)}),confirmTransitionTo:(e,n,i,r)=>{if(null!=t){const s="function"==typeof t?t(e,n):t;"string"==typeof s?"function"==typeof i?i(s,r):(en(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==s)}else r(!0)},appendListener:t=>{let n=!0;const i=(...e)=>{n&&t(...e)};return e.push(i),()=>{n=!1,e=e.filter((t=>t!==i))}},notifyListeners:(...t)=>{e.forEach((e=>e(...t)))}}},rn=(t,e="scrollPositions")=>{let n=new Map;const i=(e,i)=>{if(n.set(e,i),Ye(t,"sessionStorage")){const e=[];n.forEach(((t,n)=>{e.push([n,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(e))}};if(Ye(t,"sessionStorage")){const i=t.sessionStorage.getItem(e);n=i?new Map(JSON.parse(i)):n}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>n.get(t),has:t=>n.has(t),capture:e=>{i(e,[t.scrollX,t.scrollY])}}},sn={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+nt(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:nt,decodePath:et},slash:{encodePath:et,decodePath:et}},on=(t,e)=>{const n=0==t.pathname.indexOf(e)?"/"+t.pathname.slice(e.length):t.pathname;return Object.assign({},t,{pathname:n})},an={browser:(t,e={})=>{let n=!1;const i=t.history,r=t.location,s=t.navigator,o=(t=>{const e=t.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===s.userAgent.indexOf("Trident")),u=rn(t),c=null!=e.forceRefresh&&e.forceRefresh,l=null!=e.getUserConfirmation?e.getUserConfirmation:Ke,d=null!=e.keyLength?e.keyLength:6,f=e.basename?tt(et(e.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:e,state:n}=t,{pathname:i,search:s,hash:o}=r;let a=i+s+o;return en(!f||Q(a,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+f+'".'),f&&(a=Z(a,f)),ut(a,n,e||st(d))},m=nn(),v=t=>{u.capture(M.location.key),Object.assign(M,t),M.location.scrollPosition=u.get(M.location.key),M.length=i.length,m.notifyListeners(M.location,M.action)},g=t=>{((t,e)=>void 0===e.state&&-1===t.userAgent.indexOf("CriOS"))(s,t)||w(p(t.state))},y=()=>{w(p(h()))},w=t=>{if(n)n=!1,v();else{const e="POP";m.confirmTransitionTo(t,e,l,(n=>{n?v({action:e,location:t}):b(t)}))}},b=t=>{let e=k.indexOf(M.location.key),i=k.indexOf(t.key);-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,F(r))},x=p(h());let k=[x.key],S=0,C=!1;const A=t=>f+it(t),F=t=>{i.go(t)},_=e=>{S+=e,1===S?(t.addEventListener("popstate",g),a&&t.addEventListener("hashchange",y)):0===S&&(t.removeEventListener("popstate",g),a&&t.removeEventListener("hashchange",y))},M={length:i.length,action:"POP",location:x,createHref:A,push:(t,e)=>{en(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const n="PUSH",s=ut(t,e,st(d),M.location);m.confirmTransitionTo(s,n,l,(t=>{if(!t)return;const e=A(s),{key:a,state:u}=s;if(o)if(i.pushState({key:a,state:u},"",e),c)r.href=e;else{const t=k.indexOf(M.location.key),e=k.slice(0,-1===t?0:t+1);e.push(s.key),k=e,v({action:n,location:s})}else en(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=e}))},replace:(t,e)=>{en(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const n="REPLACE",s=ut(t,e,st(d),M.location);m.confirmTransitionTo(s,n,l,(t=>{if(!t)return;const e=A(s),{key:a,state:u}=s;if(o)if(i.replaceState({key:a,state:u},"",e),c)r.replace(e);else{const t=k.indexOf(M.location.key);-1!==t&&(k[t]=s.key),v({action:n,location:s})}else en(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(e)}))},go:F,goBack:()=>F(-1),goForward:()=>F(1),block:(t="")=>{const e=m.setPrompt(t);return C||(_(1),C=!0),()=>(C&&(C=!1,_(-1)),e())},listen:t=>{const e=m.appendListener(t);return _(1),()=>{_(-1),e()}},win:t};return M},hash:(t,e={})=>{let n=!1,i=null,r=0,s=!1;const o=t.location,a=t.history,u=-1===t.navigator.userAgent.indexOf("Firefox"),c=null!=e.keyLength?e.keyLength:6,{getUserConfirmation:l=Ke,hashType:d="slash"}=e,f=e.basename?tt(et(e.basename)):"",{encodePath:h,decodePath:p}=sn[d],m=()=>{const t=o.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},v=t=>{const e=o.href.indexOf("#");o.replace(o.href.slice(0,e>=0?e:0)+"#"+t)},g=()=>{let t=p(m());return en(!f||Q(t,f),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+f+'".'),f&&(t=Z(t,f)),ut(t,void 0,st(c))},y=nn(),w=t=>{Object.assign(E,t),E.length=a.length,y.notifyListeners(E.location,E.action)},b=()=>{const t=m(),e=h(t);if(t!==e)v(e);else{const t=g(),e=E.location;if(!n&&(r=e).pathname===(s=t).pathname&&r.search===s.search&&r.hash===s.hash&&r.key===s.key&&at(r.state,s.state))return;if(i===it(t))return;i=null,x(t)}var r,s},x=t=>{if(n)n=!1,w();else{const e="POP";y.confirmTransitionTo(t,e,l,(n=>{n?w({action:e,location:t}):k(t)}))}},k=t=>{let e=F.lastIndexOf(it(E.location)),i=F.lastIndexOf(it(t));-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,_(r))},S=m(),C=h(S);S!==C&&v(C);const A=g();let F=[it(A)];const _=t=>{en(u,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},M=(t,e)=>{r+=e,1===r?t.addEventListener("hashchange",b):0===r&&t.removeEventListener("hashchange",b)},E={length:a.length,action:"POP",location:A,createHref:t=>"#"+h(f+it(t)),push:(t,e)=>{en(void 0===e,"Hash history cannot push state; it is ignored");const n="PUSH",r=ut(t,void 0,st(c),E.location);y.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=it(r),s=h(f+e);if(m()!==s){i=e,(t=>{o.hash=t})(s);const t=F.lastIndexOf(it(E.location)),a=F.slice(0,-1===t?0:t+1);a.push(e),F=a,w({action:n,location:r})}else en(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}))},replace:(t,e)=>{en(void 0===e,"Hash history cannot replace state; it is ignored");const n="REPLACE",r=ut(t,void 0,st(c),E.location);y.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=it(r),s=h(f+e);m()!==s&&(i=e,v(s));const o=F.indexOf(it(E.location));-1!==o&&(F[o]=e),w({action:n,location:r})}))},go:_,goBack:()=>_(-1),goForward:()=>_(1),block:(e="")=>{const n=y.setPrompt(e);return s||(M(t,1),s=!0),()=>(s&&(s=!1,M(t,-1)),n())},listen:e=>{const n=y.appendListener(e);return M(t,1),()=>{M(t,-1),n()}},win:t};return E}},un=class{constructor(e){t(this,e),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const e=this.history.win.document.getElementById(t.scrollToId);if(e)return e.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=c(this,"isServer"),this.queue=c(this,"queue")}componentWillLoad(){this.history=an[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=on(t,this.root),this.location=t})),this.location=on(this.history.location,this.root)}scrollTo(t){const e=this.history;if(null!=t&&!this.isServer&&e)return"POP"===e.action&&Array.isArray(e.location.scrollPosition)?this.queue.write((()=>{e&&e.location&&Array.isArray(e.location.scrollPosition)&&e.win.scrollTo(e.location.scrollPosition[0],e.location.scrollPosition[1])})):this.queue.write((()=>{e.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return e(F.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},e("slot",null))}get el(){return u(this)}},cn=class{constructor(e){t(this,e),this.stepSubmitSuccess=o(this,"step-completion",7),this.successPageAcknowledged=o(this,"successPageAcknowledged",5),this.initialised=o(this,"initialised",7),this.isSelfHosted=!1,this.isAppInitialised=!1}async componentWillLoad(){const t=Pt.fromNullable(this.accessToken);if(Pt.isNone(t))throw Error("jwt property is missing.");qt.state.jwt=t;const e=Pt.fromNullable(this.backendUrl);if(Pt.isNone(e))throw Error("apiBaseUrl property is missing.");qt.state.apiBaseUrl=Pt.some(e.value.replace(/\/$/,"")+"/");const n=Pt.fromNullable(this.appBaseUrl);if(Pt.isNone(n))throw Error("appBaseUrl property is missing.");qt.state.appBaseUrl=Pt.some(n.value.replace(/\/$/,"")),qt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),qt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),qt.state.hasSuperSelectionBeenSubmitted=!1,this.isSelfHosted&&te.navigateInternally(this.history,Qt.Success))}))}async componentDidLoad(){await qt.loadAppStateAsync();const t=await ve.GetExistingFundAsync();this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:qt.accountIdOrDefault,partnerIdOrDefault:qt.partnerIdOrDefault,profileId:qt.profileId}),$t();const e=Pt.fromNullable(this.ignoreExistingSelection),n=Pt.isSome(e)&&e.value;Pt.isSome(t)&&"Inactive"!==t.value.valid&&!n?te.navigateInternally(this.history,Qt.ExistingChoicePage):te.navigateInternally(this.history,ge.isNewComplianceEnabled()?Qt.ConsentPage:Qt.ChoicePage)}authTokenChanged(t){qt.state.jwt=Pt.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return e(s,null,e("link",{rel:"stylesheet",href:r("apollo-super-selection.css"),media:"all"}),this.renderAppContent())}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return e("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},e("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?e("div",{class:{"pt-28":!0,"-mt-12 pb-6":!this.isFundJoinPage(),"-mt-28":this.isFundJoinPage()}},Zt,e("sss-footer-section",null)):e("div",{class:"flex justify-center py-20"},e("sss-loading-indicator",null))))}isFundJoinPage(){return window.location.pathname.includes(Qt.SlateJoin)||window.location.pathname.includes(Qt.PromotedFundJoinV1)||window.location.pathname.includes(Qt.PromotedFundJoinV2)}static get assetsDirs(){return["assets"]}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};W(cn),cn.style="html{scroll-behavior:smooth}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-pack:center;justify-content:center}stencil-route:empty{display:none}input+.invalid-feedback{display:none}select+.invalid-feedback{display:none}.was-validated input:invalid+.invalid-feedback{display:block}.was-validated select:invalid+.invalid-feedback{display:block}";var ln,dn=[],fn="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(ln||(ln={}));var hn,pn=function(t){return Object.freeze(t)},mn=function(t,e){this.inlineSize=t,this.blockSize=e,pn(this)},vn=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,pn(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),gn=function(t){return t instanceof SVGElement&&"getBBox"in t},yn=function(t){if(gn(t)){var e=t.getBBox();return!e.width&&!e.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},wn=function(t){var e,n,i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},bn="undefined"!=typeof window?window:{},xn=new WeakMap,kn=/auto|scroll/,Sn=/^tb|vertical/,Cn=/msie|trident/i.test(bn.navigator&&bn.navigator.userAgent),An=function(t){return parseFloat(t||"0")},Fn=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new mn((n?e:t)||0,(n?t:e)||0)},_n=pn({devicePixelContentBoxSize:Fn(),borderBoxSize:Fn(),contentBoxSize:Fn(),contentRect:new vn(0,0,0,0)}),Mn=function(t,e){if(void 0===e&&(e=!1),xn.has(t)&&!e)return xn.get(t);if(yn(t))return xn.set(t,_n),_n;var n=getComputedStyle(t),i=gn(t)&&t.ownerSVGElement&&t.getBBox(),r=!Cn&&"border-box"===n.boxSizing,s=Sn.test(n.writingMode||""),o=!i&&kn.test(n.overflowY||""),a=!i&&kn.test(n.overflowX||""),u=i?0:An(n.paddingTop),c=i?0:An(n.paddingRight),l=i?0:An(n.paddingBottom),d=i?0:An(n.paddingLeft),f=i?0:An(n.borderTopWidth),h=i?0:An(n.borderRightWidth),p=i?0:An(n.borderBottomWidth),m=d+c,v=u+l,g=(i?0:An(n.borderLeftWidth))+h,y=f+p,w=a?t.offsetHeight-y-t.clientHeight:0,b=o?t.offsetWidth-g-t.clientWidth:0,x=r?m+g:0,k=r?v+y:0,S=i?i.width:An(n.width)-x-b,C=i?i.height:An(n.height)-k-w,A=S+m+b+g,F=C+v+w+y,_=pn({devicePixelContentBoxSize:Fn(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),s),borderBoxSize:Fn(A,F,s),contentBoxSize:Fn(S,C,s),contentRect:new vn(d,u,S,C)});return xn.set(t,_),_},En=function(t,e,n){var i=Mn(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case ln.DEVICE_PIXEL_CONTENT_BOX:return o;case ln.BORDER_BOX:return r;default:return s}},In=function(t){var e=Mn(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=pn([e.borderBoxSize]),this.contentBoxSize=pn([e.contentBoxSize]),this.devicePixelContentBoxSize=pn([e.devicePixelContentBoxSize])},Bn=function(t){if(yn(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Tn=function(){var t=1/0,e=[];dn.forEach((function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach((function(e){var n=new In(e.target),r=Bn(e.target);i.push(n),e.lastReportedSize=En(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},jn=function(t){dn.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(Bn(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},Pn=[],Nn=0,Rn={attributes:!0,characterData:!0,childList:!0,subtree:!0},Dn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],On=function(t){return void 0===t&&(t=0),Date.now()+t},Ln=!1,Un=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Ln){Ln=!0;var n,i=On(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(jn(e);dn.some((function(t){return t.activeTargets.length>0}));)e=Tn(),jn(e);return dn.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:fn}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=fn),window.dispatchEvent(t)),e>0}()}finally{if(Ln=!1,t=i-On(),!Nn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!hn){var e=0,n=document.createTextNode("");new MutationObserver((function(){return Pn.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),hn=function(){n.textContent=""+(e?e--:e++)}}Pn.push(t),hn()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Rn)};document.body?e():bn.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Dn.forEach((function(e){return bn.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Dn.forEach((function(e){return bn.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),qn=function(t){!Nn&&t>0&&Un.start(),!(Nn+=t)&&Un.stop()},Vn=function(){function t(t,e){this.target=t,this.observedBox=e||ln.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=En(this.target,this.observedBox,!0);return gn(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Hn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},zn=new WeakMap,Wn=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},$n=function(){function t(){}return t.connect=function(t,e){var n=new Hn(t,e);zn.set(t,n)},t.observe=function(t,e,n){var i=zn.get(t),r=0===i.observationTargets.length;Wn(i.observationTargets,e)<0&&(r&&dn.push(i),i.observationTargets.push(new Vn(e,n&&n.box)),qn(1),Un.schedule())},t.unobserve=function(t,e){var n=zn.get(t),i=Wn(n.observationTargets,e);i>=0&&(1===n.observationTargets.length&&dn.splice(dn.indexOf(n),1),n.observationTargets.splice(i,1),qn(-1))},t.disconnect=function(t){var e=this,n=zn.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),Xn=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$n.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wn(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$n.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wn(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$n.unobserve(this,t)},t.prototype.disconnect=function(){$n.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Gn=new class{constructor(){this._appRootUrl=new z((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Mt(this.getAppRootUrl()+"config.json").get().json();Le.update({appConfiguration:Pt.fromNullable(t)})}resolveRootUrl(){const t=Pt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(Pt.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}},Jn=new class{constructor(){this.ignoreExistingSelectionQueryParameter="ignoreExistingSelection"}init(t){const e=new URLSearchParams(t),n=Pt.fromNullable(e.get(this.ignoreExistingSelectionQueryParameter)),i=Pt.fold((()=>!1),(t=>"true"===t))(n);Le.update({ignoreExistingSelection:i})}};function Kn(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Yn(t){var e=Object.create;if(e)return e(t);if(null==t)return{};var n=typeof t;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var Qn,Zn,ti=function(t,e){return(ti=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},ei=Kn()||{};Zn=function(t,e){function n(){this.constructor=t}ti(t,e),t.prototype=null===e?Yn(e):(n.prototype=e.prototype,new n)},(Qn=ei).__assign||(Qn.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}),Qn.__extends||(Qn.__extends=Zn),__assign||(__assign=ei.__assign),__extends||(__extends=ei.__extends);var ni=Kn;function ii(t){var e=ni();return e&&e[t]?e[t]:"window"===t&&ri()?window:null}function ri(){return Boolean("object"==typeof window&&window)}function si(){return ri()?window:ii("window")}function oi(){return Boolean("object"==typeof document&&document)}function ai(){return oi()?document:ii("document")}function ui(){return Boolean("object"==typeof navigator&&navigator)?navigator:ii("navigator")}function ci(){return"object"==typeof location&&location?location:ii("location")}function li(){return ii("performance")}function di(){return Boolean("object"==typeof JSON&&JSON||null!==ii("JSON"))}function fi(){return di()?JSON||ii("JSON"):null}var hi=null,pi=!1,mi=123456789,vi=987654321;function gi(t){t<0&&(t>>>=0),mi=123456789+t&4294967295,vi=987654321-t&4294967295,pi=!0}function yi(){gi(4294967296*Math.random()^(new Date).getTime())}function wi(t,e){return typeof t===e}function bi(t){return wi(t,"undefined")||void 0===t}function xi(t){return bi(t)||null===t}function ki(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function Si(t){return wi(t,"object")}function Ci(t){return wi(t,"function")}function Ai(t,e,n,i){void 0===i&&(i=!1);var r=!1;if(!xi(t))try{xi(t.addEventListener)?xi(t.attachEvent)||(t.attachEvent("on"+e,n),r=!0):(t.addEventListener(e,n,i),r=!0)}catch(t){}return r}function Fi(t,e,n,i){if(void 0===i&&(i=!1),!xi(t))try{xi(t.removeEventListener)?xi(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function _i(t,e){if(t&&Si(t))for(var n in t)ki(t,n)&&e.call(t,n,t[n])}var Mi,Ei=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return wi(t,"string")},t.isNumber=function(t){return wi(t,"number")},t.isBoolean=function(t){return wi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Ii,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,r=0;r<i;r++)r in t&&e.call(n||t,t[r],r,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,r=n||0,s=Math.max(r>=0?r:i-Math.abs(r),0);s<i;s++)if(s in t&&t[s]===e)return s;return-1},t.arrMap=function(t,e,n){for(var i=t.length,r=n||t,s=new Array(i),o=0;o<i;o++)o in t&&(s[o]=e.call(r,t[o],t));return s},t.arrReduce=function(t,e,n){var i,r=t.length,s=0;if(arguments.length>=3)i=arguments[2];else{for(;s<r&&!(s in t);)s++;i=t[s++]}for(;s<r;)s in t&&(i=e(i,t[s],s,t)),s++;return i},t.strTrim=function(e){return t.isString(e)?e.replace(/^\s+|\s+$/g,""):e},t.objKeys=function(t){var e=!{toString:null}.propertyIsEnumerable("toString");if(!(Ci(t)||Si(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)ki(t,i)&&n.push(i);if(e)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=r.length,o=0;o<s;o++)ki(t,r[o])&&n.push(r[o]);return n},t.objDefineAccessors=function(t,e,n,i){var r=Object.defineProperty;if(r)try{var s={enumerable:!0,configurable:!0};return n&&(s.get=n),i&&(s.set=i),r(t,e,s),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=si();i&&(n=Ai(i,t,e),n=Ai(i.body,t,e)||n);var r=ai();return r&&(n=Bi.Attach(r,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=li();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,r="";r.length<e;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return r},t.isIE=function(){if(null===hi){var t=((ui()||{}).userAgent||"").toLowerCase();hi=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return hi},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=ii("crypto")||ii("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(pi||yi(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?gi(t):yi()},t.mwcRandom32=function(t){var e=((vi=36969*(65535&vi)+(vi>>16)&4294967295)<<16)+(65535&(mi=18e3*(65535&mi)+(mi>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var s=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+s+i.substr(16,3)+i.substr(19,12)},t.isTypeof=wi,t.isUndefined=bi,t.isNullOrUndefined=xi,t.hasOwnProperty=ki,t.isFunction=Ci,t.isObject=Si,t.objCreate=Yn,t}(),Ii=/[xy]/g,Bi=function(){function t(){}return t.Attach=Ai,t.AttachEvent=Ai,t.Detach=Fi,t.DetachEvent=Fi,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(Mi||(Mi={}));var Ti=Object.getPrototypeOf,ji=0;
|
|
2
2
|
/*!
|
|
3
3
|
* Microsoft Dynamic Proto Utility, 1.1.0
|
|
4
4
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|