@flarehr/apollo-super-selection 4.1.15857 → 4.2.15896
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.css +1 -1
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-06c2b2a6.system.entry.js → p-6859c6ab.system.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/{p-e9ee10ec.entry.js → p-b77942bb.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 +2 -2
- package/dist/lib/collection/apollo-super-selection.css +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/custom-fund/default-fund/default-fund.js +3 -3
- package/dist/lib/esm/sss-button_29.entry.js +2 -2
- package/dist/lib/esm-es5/sss-button_29.entry.js +1 -1
- package/package.json +1 -1
package/dist/lib/apollo-super-selection/{p-06c2b2a6.system.entry.js → p-6859c6ab.system.entry.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-80178f87.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,m,g,y,b,w,x,S,I,C,_,T,A;return{setters:[function(e){t=e.r;n=e.h;r=e.g;i=e.f;a=e.a;o=e.H;s=e.c;u=e.F;c=e.d;l=e.e;f=e.s},function(e){d=e.f;p=e.m;h=e.S;v=e.a;m=e.i;g=e.b;y=e.O;b=e.c;w=e.d;x=e.g;S=e.h;I=e.j;C=e.k;_=e.l;T=e.Q},function(e){A=e.A}],execute:function(){function E(){}function k(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(k((function(n,r){return d(e(n,r)).pipe(p((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new N(e,n))}}var N=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new F(e,this.project,this.concurrent))};return e}();var F=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new v(this);var n=this.destination;n.add(t);var r=m(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(h);function P(e,t,n,r){if(b(n)){r=n;n=undefined}if(r){return P(e,t,n).pipe(p((function(e){return g(e)?r.apply(void 0,e):r(e)})))}return new y((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}D(e,t,i,r,n)}))}function D(e,t,n,r,i){var a;if(O(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(M(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(R(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){D(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function R(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function M(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function O(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function L(e,t){if(t===void 0){t=w}return function(n){return n.lift(new U(e,t))}}var U=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new B(e,this.dueTime,this.scheduler))};return e}();var B=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(j,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(x);function j(e){e.debouncedNext()}function V(e,t,n){return function r(i){return i.lift(new q(e,t,n))}}var q=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new z(e,this.nextOrObserver,this.error,this.complete))};return e}();var z=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=E;a._tapError=E;a._tapComplete=E;a._tapError=r||E;a._tapComplete=i||E;if(b(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||E;a._tapError=n.error||E;a._tapComplete=n.complete||E}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(x);var H="4.1.15857";var W=function(e){return e._tag==="Some"};var G=function(e){return e._tag==="None"};var K={_tag:"None"};var X=function(e){return{_tag:"Some",value:e}};function J(e){return e==null?K:X(e)}function Y(e){return G(e)?undefined:e.value}var $=function(e){return function(t){return G(t)?e():t.value}};var Q=$;var Z=function(){function e(e){this.factory=e;this._value=K}Object.defineProperty(e.prototype,"value",{get:function(){if(W(this._value)){return this._value.value}var e=this.factory();this._value=X(e);return e},enumerable:false,configurable:true});return e}();function ee(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function te(e){A.injectProps(e,["history","location"])}var ne="/";var re="./";var ie=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ae=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||ne;var s=t&&t.delimiters||re;var u=false;var c;while((c=ie.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;a+=e.slice(i,d);i=d+l.length;if(f){a+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var m=c[3];var g=c[4];var y=c[5];if(!u&&a.length){var b=a.length-1;if(s.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var I=p||o;var C=m||g;n.push({name:v||r++,prefix:p,delimiter:I,optional:S,repeat:x,partial:w,pattern:C?se(C):"[^"+oe(I)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var oe=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var se=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var ue=function(e){return e&&e.sensitive?"":"i"};var ce=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var le=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(pe(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",ue(n))};var fe=function(e,t,n){return de(ae(e,n),t,n)};var de=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=oe(n.delimiter||ne);var o=n.delimiters||re;var s=[].concat(n.endsWith||[]).map(oe).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=oe(f);c=l===e.length-1&&o.indexOf(f[f.length-1])>-1}else{var d=oe(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!c)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,ue(n))};var pe=function(e,t,n){if(e instanceof RegExp){return ce(e,t)}if(Array.isArray(e)){return le(e,t,n)}return fe(e,t,n)};var he=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ve=function(e,t){return he(e,t)?e.substr(t.length):e};var me=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var ge=function(e){return e.charAt(0)==="/"?e:"/"+e};var ye=function(e){return e.charAt(0)==="/"?e.substr(1):e};var be=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var we=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var xe=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var Se=function(e){return e.charAt(0)==="/"};var Ie=function(e){return Math.random().toString(36).substr(2,e)};var Ce=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var _e=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var o=e&&Se(e);var s=t&&Se(t);var u=o||s;if(e&&Se(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){Ce(n,l)}else if(f===".."){Ce(n,l);i++}else if(i){Ce(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!Se(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Te=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Te(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return Te(i,a)}var o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length){return false}return o.every((function(n){return Te(e[n],t[n])}))}return false};var Ae=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Te(e.state,t.state)};var Ee=function(e,t,n,r){var i;if(typeof e==="string"){i=be(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=_e(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=xe(i.search||"");return i};var ke=0;var Ne={};var Fe=1e4;var Pe=function(e,t){var n=""+t.end+t.strict;var r=Ne[n]||(Ne[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=pe(e,a,t);var s={re:o,keys:a};if(ke<Fe){r[i]=s;ke+=1}return s};var De=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,o=t.strict,s=o===void 0?false:o;var u=Pe(r,{end:a,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(a&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Re=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Te(e.params,t.params)};var Me;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Me||(Me={}));var Oe=e("sss_button",function(){function e(e){t(this,e);this.fillWidth=false;this.fillWidthOnMobile=false;this.disabled=false;this.variant="primary";this.size="base";this.promiseFn=function(){return Promise.resolve()};this.state=Me.Available}e.prototype.render=function(){var e;var t=this;var r={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return n("button",{class:(e={},e[r[this.size]]=true,e["inline-flex items-center justify-center border font-medium"]=true,e["rounded-md shadow-sm focus:outline-none focus:ring-2"]=true,e["focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto"]=true,e["disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400"]=true,e["border-transparent text-white bg-primary-base hover:bg-primary-hover"]=this.variant==="primary",e["border-gray-300 text-gray-700 bg-white hover:bg-gray-50"]=this.variant==="secondary",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Me.Pending&&n("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),n("div",{class:{hidden:this.state===Me.Pending}},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.promiseFn||this.state===Me.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Me.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Me.Available;return[3,4];case 3:e=t.sent();this.state=Me.Error;throw e;case 4:return[2]}}))}))};return e}());var Le=undefined&&undefined.__assign||function(){Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Le.apply(this,arguments)};var Ue=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Be=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=Le({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?Ue(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=Be(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var je=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ve={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,a=n.instance,o=a===void 0?false:a;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return o&&c?new(c.bind.apply(c,je([void 0],s))):c}};var qe=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);He.callbacks.delete(t);if(He.callbacks.size<1){He.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var ze=function(e,t){if(!He.observer&&e&&t){He.observer=new t((function(t){He.callbacks.forEach((function(n,r){qe(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return He.observer};var He={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=Ve.polyfill("performance",{doThrow:false});var r=Ve.polyfill("PerformanceObserver",{doThrow:false});if(!ze(n,r))return;if(!qe(n,e,t,n)){if(He.callbacks.size<1)He.observer.observe({entryTypes:["resource","measure"]});He.callbacks.set(e,t)}}};var We=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var Ge=function(){function e(e){this.error=e}return e}();var Ke=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,a=e._options;var o=new Map(n);var s=Be(Ve.defaults,a);var u=Ve.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=We(i)(Ve.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new Ge(e)})).then((function(e){c.clear();if(!e.ok){return e[Ve.errorType||"text"]().then((function(t){var n=new Error(t);n[Ve.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof Ge?t.error:t;if(t instanceof Ge&&o.has("__fromFetch"))return o.get("__fromFetch")(n,e);else if(o.has(n.status))return o.get(n.status)(n,e);else if(o.has(n.name))return o.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return He.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){o.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Xe=undefined&&undefined.__assign||function(){Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Xe.apply(this,arguments)};var Je=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ye="application/json";var $e="Content-Type";var Qe=function(){function e(e,t,n,r,i,a){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(a===void 0){a=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=a}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,a=n.options,o=a===void 0?this._options:a,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Xe({},o),new Map(u),Je(l),Je(d),Je(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}Ve.defaults=t?Be(Ve.defaults,e):e;return this};e.prototype.errorType=function(e){Ve.errorType=e;return this};e.prototype.polyfills=function(e){Ve.polyfills=Xe(Xe({},Ve.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?Be(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:Ze(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:Be(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[$e]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Xe(Xe({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Je(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Je(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Je(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==$e.toLowerCase()||n.startsWith(Ye)})))?this.json(n):this.body(n);i=i.options(Xe(Xe({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Ke(a)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Xe(Xe({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===$e.toLowerCase()&&n.startsWith(Ye)})))===null||t===void 0?void 0:t[1];return this.content(n||Ye).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(et(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:nt(e)).content("application/x-www-form-urlencoded")};return e}();var Ze=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=Ve.polyfill("URLSearchParams",{instance:true});for(var a in t){if(t[a]instanceof Array){for(var o=0,s=t[a];o<s.length;o++){var u=s[o];i.append(a,u)}}else{i.append(a,t[a])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function et(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=Ve.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],a=e[1];var o=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);o=o?o+"["+i+"]":i;if(a instanceof Array){for(var s=0,u=a;s<u.length;s++){var c=u[s];n.append(o+"[]",c)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){et(a,t,n,Je(r,[i]))}}else{n.append(o,a)}}));return n}function tt(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function nt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return tt(t,e)})).join("&")}return tt(t,n)})).join("&")}var rt=Qe.factory;rt["default"]=Qe.factory;var it=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var at=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var ot=function(e){return!("isConnected"in e)||e.isConnected};var st=at((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(ot))}}),2e3);var ut=function(e){var t=e.on;var n=new Map;if(typeof r==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=r();if(t){it(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(i))}st(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(i)}));st(n)}))}};var ct=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var a=function(){r.dispose.forEach((function(e){return e()}));i()};var o=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var a=n.get(e);if(t(i,a,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,a)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){lt(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:o,set:s,on:c,onChange:l,use:f,dispose:a,reset:i}};var lt=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var ft=function(e,t){var n=ct(e,t);ut(n);return n};function dt(e,t,n){return n={path:t,exports:{},require:function(e,t){return pt()}},e(n,n.exports),n.exports}function pt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ht=dt((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function a(e){return function(t,n){return e(n,t)}}t.flip=a;function o(e,t,n,r,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=o;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return u(s(o(a(i(r(n(t(e))))))));case 10:return c(u(s(o(a(i(r(n(t(e)))))))));case 11:return l(c(u(s(o(a(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(o(a(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var vt=dt((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function a(e){return e==null?t.none:t.some(e)}t.fromNullable=a;function o(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=o;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return a(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return ht.pipe(e,t.map(n))};var g=function(e,n){return ht.pipe(e,t.ap(n))};var y=function(e,n){return ht.pipe(e,t.chain(n))};var b=function(e,n,r){return ht.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return ht.pipe(e,n(t))}};var x=function(e,n,r){return ht.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return ht.pipe(e,n(t))}};var I=function(e,n){return ht.pipe(e,t.alt(n))};var C=function(e,n){return ht.pipe(e,t.filter(n))};var _=function(e,n){return ht.pipe(e,t.filterMap(n))};var T=function(e,n){return ht.pipe(e,t.extend(n))};var A=function(e,n){return ht.pipe(e,t.partition(n))};var E=function(e,n){return ht.pipe(e,t.partitionMap(n))};var k=function(e){var n=t.wither(e);return function(e,t){return ht.pipe(e,n(t))}};var N=function(e){var n=t.wilt(e);return function(e,t){return ht.pipe(e,n(t))}};var F=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=F;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var D=function(e){return ht.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var R=function(e){return ht.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=R;t.of=t.some;var M=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=M;var O=function(e){return t.chain((function(n){return ht.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=O;t.flatten=t.chain(ht.identity);var L=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=L;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var j=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=j;t.duplicate=t.extend(ht.identity);var V=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=V;var q=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=q;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var H={left:t.none,right:t.none};var W=function(e){var n=ht.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?H:n.value};t.separate=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=G;var K=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=K;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var J=function(e){return ht.flow(t.map(e),t.separate)};t.partitionMap=J;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Q=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Q;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ae;function oe(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=oe;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:m,alt:I};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:I,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:T};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E,wither:k,wilt:N};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:I,extend:T,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E,wither:k,wilt:N,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(ht.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return ht.pipe(n(r),t.map((function(t){return ht.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return ht.flow(t.map((function(t){return function(n){return ht.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var a=e(i,n[i]);if(t.isNone(a)){return t.none}r.push(a.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(ht.identity)}));function mt(e){this.message=e}mt.prototype=new Error,mt.prototype.name="InvalidCharacterError";var gt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new mt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function yt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(gt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return gt(t)}}function bt(e){this.message=e}function wt(e,t){if("string"!=typeof e)throw new bt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(yt(e.split(".")[n]))}catch(e){throw new bt("Invalid token specified: "+e.message)}}bt.prototype=new Error,bt.prototype.name="InvalidTokenError";var xt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Tt().url("super-choice/australian-funds?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Tt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toSearchFilterQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var St=new xt;var It={apiBaseUrl:vt.none,appBaseUrl:vt.none,profileId:vt.none,jwt:vt.none,superBuyer:vt.none,promotedFunds:vt.none,accountConfiguration:vt.none,profileConfiguration:vt.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Ct=function(){function e(){var e=this;var t=ft(It),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=ht.pipe(t,vt.chain((function(e){return vt.fromNullable(wt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(vt.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(vt.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(vt.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(vt.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(vt.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=ht.pipe(this._state.profileConfiguration,vt.map((function(e){return vt.fromNullable(e.defaultFundUsi)})),vt.flatten);if(vt.isSome(e)){return e}return ht.pipe(this._state.accountConfiguration,vt.map((function(e){return vt.fromNullable(e.defaultFundUsi)})),vt.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return ht.pipe(this._state.accountConfiguration,vt.map((function(e){return e.accountId})),vt.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return ht.pipe(this._state.superBuyer,vt.map((function(e){return e.partnerId})),vt.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(vt.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,St.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=vt.fromNullable(e.accountConfiguration);this._state.profileConfiguration=vt.fromNullable(e.profileConfiguration);this._state.superBuyer=vt.fromNullable(e.superBuyer);this._state.promotedFunds=vt.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var _t=new Ct;function Tt(){var e=_t.jwt;var t=_t.profileId;var n=_t.accountIdOrDefault;var r=_t.partnerIdOrDefault;return rt(_t.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var At=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("analytics-events").post(e).res()]}))}))};return e}();var Et=function(){function e(){this.eventTrackingApi=At.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();function kt(){Nt({type:"appReady"})}function Nt(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function Ft(e,t){Nt({type:"contentResized",height:e,width:t})}function Pt(e){Nt({type:"pageNavigated",url:e})}function Dt(){Nt({type:"complete"})}function Rt(){Nt({type:"submitSuccess"})}var Mt={appReady:kt,resize:Ft,navigation:Pt,complete:Dt,submitSuccess:Rt};var Ot={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",promotedFundId:undefined};var Lt=ft(Ot).state;var Ut;(function(e){e["ConsentPage"]="/consent";e["ExistingChoicePage"]="/existing";e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["PromotedFundJoinV1"]="/promoted-fund/join/v1";e["PromotedFundJoinV2"]="/promoted-fund/join/v2";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(Ut||(Ut={}));var Bt=[n("stencil-route",{url:Ut.ConsentPage,component:"sss-consent-page"}),n("stencil-route",{url:Ut.ExistingChoicePage,component:"sss-existing-choice-page"}),n("stencil-route",{exact:true,url:Ut.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Ut.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Ut.PromotedFundJoinV1,component:"sss-promoted-fund-join-v1-page"}),n("stencil-route",{url:Ut.PromotedFundJoinV2,component:"sss-promoted-fund-join-v2-page"}),n("stencil-route",{url:Ut.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Ut.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Ut.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Ut.StandardChoice,component:"sss-standard-choice-form"}),n("stencil-route",{url:Ut.Success,component:"sss-success"})];var jt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);Mt.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){Lt.handleSubmitFn=e.handleSubmitFn;Lt.fundName=e.fundName;Lt.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,Ut.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=_t.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Vt=new jt;var qt=e("sss_consent_page",function(){function e(e){t(this,e);this.promotedFunds=_t.promotedFunds;this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){var e={promotedFundsShown:this.promotedFunds};return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync(e)};e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center leading-8"},"Important information about super"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg"},n("div",{class:"sm:text-lg font-bold leading-6"},"By clicking “Continue” you acknowledge that:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6"},n("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;"),n("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;"),n("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;"),n("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.")),n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSuperFundDisclaimerAccepted()}},"Continue"))))};e.prototype.handleSuperFundDisclaimerAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e={promotedFundsShown:this.promotedFunds};return[4,this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync(e)];case 1:t.sent();Vt.navigateInternally(this.history,Ut.ChoicePage);return[2]}}))}))};return e}());var zt;(function(e){e["MyOwnFund"]="Your current super fund";e["DefaultFund"]="Your employer's default fund";e["SelfManagedFund"]="Your self-managed super fund"})(zt||(zt={}));var Ht={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:K,fundName:K,memberNumber:K},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:""},currentCustomFundType:zt.MyOwnFund,customFunds:[{label:zt.MyOwnFund,value:Ut.MyOwnFund},{label:zt.SelfManagedFund,value:Ut.SelfManagedFund},{label:zt.DefaultFund,value:Ut.DefaultFund}]};var Wt=ft(Ht),Gt=Wt.state,Kt=Wt.reset;var Xt=Gt.customFunds;var Jt=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=Xt[0];this.fundOptionsList=Xt;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Ut.MyOwnFund))e=Ut.MyOwnFund;if(window.location.pathname.includes(Ut.DefaultFund))e=Ut.DefaultFund;if(window.location.pathname.includes(Ut.SelfManagedFund))e=Ut.SelfManagedFund;this.currentCustomFund=Xt.find((function(t){return t.value===e}))||Xt[0];Vt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},n("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"}))};var r=function(){return n("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"},n("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 n("div",{class:"max-w-560 relative"},n("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),n("div",{class:"mt-1 mb-4"},n("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:function(){return e.showFundOptionsSelection=!e.showFundOptionsSelection}},n("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),n("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},n(t,null))),this.showFundOptionsSelection&&n("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((function(t){return n("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;Vt.navigateInternally(e.history,t.value)}},n("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&n("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},n(r,null)))})))),n("div",{onClick:function(){return e.showFundOptionsSelection=false}},n("slot",null)))};return e}());te(Jt);var Yt=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return St.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getActiveFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,St.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,vt.some(t[0])]}return[2,vt.none]}}))}))};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,St.getAustralianFundsAsync({type:"usiMatch",usi:e},true)];case 1:t=n.sent();if(t.length===1){return[2,vt.some(t[0])]}return[2,vt.none]}}))}))};return e}();var $t=new Yt;var Qt=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var Zt=new Qt;var en=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=Et.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=_t.defaultFundUsi;if(vt.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,$t.getActiveFundByUsiAsync(e.value)];case 1:t=n.sent();if(vt.isNone(t)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){var e,t,n,r;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(t=(e=this.defaultFund)===null||e===void 0?void 0:e.usi)!==null&&t!==void 0?t:"",fundName:(r=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&r!==void 0?r:"",promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},n("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&&n("div",null,n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),n("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)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("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)),n("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),n("div",{class:"text-sm font-medium text-gray-700"},n("label",{class:"font-bold"},"By clicking “Continue”, you acknowledge that:"),n("ul",{class:"list-disc list-outside pl-8"},n("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),n("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),n("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",{class:"mb-4"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(this.isInvalidDefaultFund){return[2]}Vt.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Zt.submitDefaultFundChoiceAsync({standardChoiceFormSignature:t})];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var tn="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var nn=3;var rn=e("sss_dropdown_async",function(){function e(e){var r=this;t(this,e);this.valueChanged=s(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=nn;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return r.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=r.minSearchStringLength&&((t=r.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){r.inputValue=e;r.searchState="in progress"};this.onCompleteSearch=function(e){r.filteredOptions=e;r.highlightedOptionIndex=undefined;r.searchState="done"};this.renderFilteredResults=function(){if(r.searchState==="pristine"){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(r.searchState==="in progress"){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(r.filteredOptions.length===0){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return r.filteredOptions.map((function(e,t){return n("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":r.isOptionSelected(e)},onClick:function(n){r.highlightedOptionIndex=t;r.toggleDropdown(false);r.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;r.inputValue=(t=(e=r.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){r.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case n:r.toggleDropdown(true);r.highlightItem("Next");return true;case i:r.highlightItem("Prev");return true;case t:if(r.highlightedOptionIndex!==undefined){r.toggleDropdown(false);r.selectOption(r.filteredOptions[r.highlightedOptionIndex])}return true;case a:r.inputElement.blur();return true}return false};this.highlightItem=function(e){var t=e==="Next"?1:-1;if(r.filteredOptions.length===0){return}r.highlightedOptionIndex=r.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,r.highlightedOptionIndex+t),r.filteredOptions.length-1);if(r.highlightedOptionIndex!==undefined)r.selectOption(r.filteredOptions[r.highlightedOptionIndex])};this.selectOption=function(e){r.selectedOption=e;r.inputValue=e.label;r.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=r.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=P(this.inputElement,"keyup").pipe(L(500),p((function(t){return e.inputElement.value})),S(),I(this.shouldExecuteSearch),V(this.onBeginSearch),k(this._searchFunction),V(this.onCompleteSearch)).subscribe()};e.prototype.disconnectedCallback=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return n(o,null,n("div",{class:"relative"},n("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":true,"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:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("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":true,hidden:!this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults())))};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());rn.style=tn;var an={Id:"slate",Name:"Slate Super",Logo:"logo-slate.png",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var on={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",Logo:"logo-art.svg",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var sn={Id:"aware",Name:"Aware Super",Logo:"logo-aware.svg",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds/FSS",Abn:"53 226 460 365"};var un={Id:"active",Name:"Active Super",Logo:"logo-active.svg",PdsUrl:"https://www.activesuper.com.au/pds",Abn:"28 901 371 321"};var cn={Id:"australian-ethical",Name:"Australian Ethical",Logo:"logo-aus-eth.svg",PdsUrl:"https://www.australianethical.com.au/super/pds-forms/",Abn:"43 079 259 733"};var ln={Id:"virgin",Name:"Virgin Money Super",Logo:"logo-virgin.svg",PdsUrl:"https://virginmoney.com.au/superannuation/",Abn:"19 905 422 981"};var fn={Id:"spirit",Name:"Spirit Super",Logo:"logo-spirit.svg",PdsUrl:"https://www.spiritsuper.com.au/pds",Abn:"74 559 365 913"};var dn={Id:"first-super",Name:"First Super",Logo:"logo-first.svg",PdsUrl:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/",Abn:"56 286 625 181"};var pn=[{dtoPropName:"slate",id:an.Id},{dtoPropName:"australianRetirementTrust",id:on.Id},{dtoPropName:"aware",id:sn.Id},{dtoPropName:"active",id:un.Id},{dtoPropName:"australianEthical",id:cn.Id},{dtoPropName:"virgin",id:ln.Id},{dtoPropName:"spirit",id:fn.Id},{dtoPropName:"firstSuper",id:dn.Id}];var hn=function(e){switch(e){case an.Id:return an.Name;case on.Id:return on.Name;case sn.Id:return sn.Name;case un.Id:return un.Name;case cn.Id:return cn.Name;case ln.Id:return ln.Name;case fn.Id:return fn.Name;case dn.Id:return dn.Name;default:return}};var vn=function(e){switch(e){case an.Id:return an.Usi;default:return}};var mn=function(e){var t="";switch(e){case an.Id:t=an.Logo;break;case on.Id:t=on.Logo;break;case sn.Id:t=sn.Logo;break;case un.Id:t=un.Logo;break;case cn.Id:t=cn.Logo;break;case ln.Id:t=ln.Logo;break;case fn.Id:t=fn.Logo;break;case dn.Id:t=dn.Logo;break;default:return}if(t!=="")return a("assets/"+t)};function gn(e){if("slate"in e){return K}else if("australianRetirementTrust"in e){return X(e.australianRetirementTrust.usi)}else if("aware"in e){return X(e.aware.usi)}else if("active"in e){return X(e.active.usi)}else if("australianEthical"in e){return X(e.australianEthical.usi)}else if("virgin"in e){return X(e.virgin.usi)}else if("spirit"in e){return X(e.spirit.usi)}else if("firstSuper"in e){return X(e.firstSuper.usi)}else{return K}}function yn(e){if("promoted"in e){return gn(e.promoted)}else if("myOwnFund"in e){return X(e.myOwnFund.usi)}else if("smsf"in e){return K}else if("default"in e){return X(e.default.usi)}else{return K}}function bn(e){if("slate"in e){return X(e.slate.memberNumber)}else if("australianRetirementTrust"in e){return X(e.australianRetirementTrust.memberNumber)}else if("aware"in e){return X(e.aware.memberNumber)}else if("active"in e){return X(e.active.memberNumber)}else if("australianEthical"in e){return X(e.australianEthical.memberNumber)}else if("virgin"in e){return X(e.virgin.memberNumber)}else if("spirit"in e){return X(e.spirit.memberNumber)}else if("firstSuper"in e){return X(e.firstSuper.memberNumber)}else{return K}}function wn(e){if("promoted"in e){return bn(e.promoted)}else if("myOwnFund"in e){return X(e.myOwnFund.memberNumber)}else if("smsf"in e){return K}else if("default"in e){return K}else{return K}}var xn=function(){function e(){}e.prototype.GetExistingFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,u,s,c,l;return __generator(this,(function(f){switch(f.label){case 0:n=_t.superBuyer.superChoice;r=(e=_t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,K];if(!r)return[2,K];i=n.dateSubmitted==undefined?K:X(new Date(n.dateSubmitted));a=yn(r);o=wn(r);if(!("promoted"in r))return[3,1];s=pn.find((function(e){return e.dtoPropName in r.promoted}));if((s===null||s===void 0?void 0:s.id)==undefined)return[2,K];return[2,X({type:"Promoted Fund",id:s.id,name:(t=hn(s.id))!==null&&t!==void 0?t:"",usi:a,valid:"Active",memberNumber:o,lastNominatedAt:i})];case 1:if(!("smsf"in r))return[3,2];return[2,X({type:"Self Managed Fund",name:r.smsf.fundName,valid:"Unknown",lastNominatedAt:i})];case 2:if(!("myOwnFund"in r))return[3,4];u=r.myOwnFund.usi;return[4,this.getFundByUsiAsync(u)];case 3:s=f.sent();return[2,X({type:"My Own Fund",name:W(s)?s.value.productName:u,usi:a,valid:this.toFundValidState(s),memberNumber:o,lastNominatedAt:i})];case 4:if(!("default"in r))return[3,6];c=r.default.usi;return[4,this.getFundByUsiAsync(c)];case 5:l=f.sent();return[2,X({type:"Default Fund",name:W(l)?l.value.productName:c,usi:a,valid:this.toFundValidState(l),lastNominatedAt:i})];case 6:return[2,K]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/retain-super-fund").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.getFundByUsiAsync=function(e){return $t.getFundByUsiAsync(e)};e.prototype.toFundValidState=function(e){if(W(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var Sn=new xn;var In=function(){function e(){}e.isNewComplianceEnabled=function(){return true};return e}();var Cn=e("sss_existing_choice_page",function(){function e(e){t(this,e);this.eventTrackingService=Et.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return W(e)?e.value:undefined}function n(e){return"usi"in e?t(e.usi):undefined}function r(e){return"memberNumber"in e?t(e.memberNumber):undefined}return{fundType:e.type.toString(),fundName:e.name,fundUsi:n(e),memberNumber:r(e),fundStatus:e.valid.toString(),lastNominatedAt:W(e.lastNominatedAt)?e.lastNominatedAt.value.toISOString():""}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Sn.GetExistingFundAsync()];case 1:e=t.sent();if(W(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){return n("div",{class:"flex justify-center"},n("img",{class:"h-16 object-contain w-full max-w-140",alt:hn(e.id),src:mn(e.id)}))};var r=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},n("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"}))))};var i=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},n("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"}))))};var a=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},n("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 n("div",null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super choice"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"max-w-400 w-full"},n("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},n("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":return n(t,{id:e.existingFund.id});case"Self Managed Fund":return n(i,null);case"My Own Fund":return n(r,null);case"Default Fund":return n(a,null)}}(),n("div",{class:"sm:text-lg font-bold leading-6"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";default:return e.existingFund.name}}())),n("div",{class:"mt-6"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),n("div",{class:"mt-4"},n("sss-button",{fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund")))))};e.prototype.handleFundNominationAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,Sn.submitRetainSuperFundAsync(e)];case 1:t.sent();_t.markSuperSelectionAsSubmitted();return[2]}}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(e)];case 1:t.sent();Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage);return[2]}}))}))};return e}());var _n=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"text-center text-gray-500 text-xs mt-8 sm:mt-20 w-full max-w-960 mx-auto"},n("span",null,"Powered by Flare"),n("p",{class:"block text-transparent"},"v",H),!In.isNewComplianceEnabled()&&n("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."))};return e}());var Tn=e("sss_header_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"flex justify-center"},n("div",{class:"text-center max-w-800"},n("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),In.isNewComplianceEnabled()&&n(u,null,n("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."),n("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},n("stencil-route-link",{exact:true,url:Ut.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"),n("stencil-route-link",{exact:true,url:Ut.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")))))};return e}());var An=e("sss_iframe_host",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){this.build(this.iframeElement)};e.prototype.render=function(){var e=this;return n("div",{class:"w-screen"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var En=e("sss_loading_indicator",function(){function e(e){t(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return n("div",{class:"inline-block animate-spin"},n("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("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"}),n("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:this.theme==="primary"?"fill-primary-base":"fill-white"})))};return e}());var kn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"flex flex-col justify-center items-center"},n("h5",{class:"text-lg"},"Loading your superannuation step"),n("sss-loading-indicator",null))};return e}());var Nn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.isSubmitDisabled=true;this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:Y(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("div",{class:"ml-2"},n("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},n("li",null,"Make sure you are a current member of the fund before completing this step."),n("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),n("sss-my-own-fund-inputs",{myOwnFundForm:Gt.myOwnFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){Gt.myOwnFundForm=Object.assign(Object.assign({},Gt.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}}),this.isNotAllInformationProvidedMessageVisible&&n("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.")),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},n("div",{class:"mb-4"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(n){this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=W(Gt.myOwnFundForm.fundUsi)&&W(Gt.myOwnFundForm.memberNumber);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}Vt.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(Gt.myOwnFundForm.fundName),handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t={fundUsi:this.getOrError(Gt.myOwnFundForm.fundUsi),memberNumber:this.getOrError(Gt.myOwnFundForm.memberNumber),standardChoiceFormSignature:e};return[4,Zt.submitCustomFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.getOrError=function(e){return ht.pipe(e,Q((function(){throw new Error("Option value is none.")})))};return e}());te(Nn);var Fn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=s(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,$t.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",null,n("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),n("div",{class:"mt-1"},n("sss-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Type to search by name or USI...",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFund(t.detail)},showValidationErrors:this.showValidationErrors})),W(this.myOwnFundForm.fundUsi)&&n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("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))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Member number"),n("div",{class:"mt-1"},n("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":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:Y(Gt.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))))};e.prototype.updateFund=function(e){this.formChanged.emit({fundUsi:X(e.value),fundName:X(e.label)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:X(e)})};return e}());var Pn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Dn=new Pn;var Rn={fundId:""};var Mn=ft(Rn).state;var On=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:_t.partnerIdOrDefault,accountId:_t.accountIdOrDefault,fundId:Mn.fundId,authToken:_t.jwt});var r=function(n){var i;var a=n.data;if(!a){return}if(a.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(a.type){case"cancel":Vt.navigateInternally(t,Ut.ChoicePage);break;case"success":if(a.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:(i=hn(Mn.fundId))!==null&&i!==void 0?i:"",handleSubmitFn:function(e){return Dn.submitChoiceAsync(Object.assign(Object.assign({},Mn),{memberNumber:a.memberNumber,usi:a.usi.replace(/ /g,""),standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)}))},promotedFundId:Mn.fundId});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(a.sender==="promoted-fund-join"){switch(a.type){case"contentResized":e.height=a.height>0?a.height:e.height;e.width=a.width>0?a.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);Mt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=_t.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:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var Ln=new On;var Un=e("sss_promoted_fund_join_v1_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return Ln.build(t,e.history)}})};return e}());var Bn=function(){function e(){var e=this;this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"api.simplefinancialchoices.com/promoted-funds/embed"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:_t.partnerIdOrDefault,accountId:_t.accountIdOrDefault,fundId:Mn.fundId,authToken:_t.jwt});var r=function(n){var i;var a=n.data;if(!a){return}if(a.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(a.type){case"cancel":Vt.navigateInternally(t,Ut.ChoicePage);break;case"success":if(a.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:(i=hn(Mn.fundId))!==null&&i!==void 0?i:"",handleSubmitFn:function(e){return Dn.submitChoiceAsync(Object.assign(Object.assign({},Mn),{memberNumber:a.memberNumber,usi:a.usi.replace(/ /g,""),standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)}))},promotedFundId:Mn.fundId});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(a.sender==="promoted-fund-join"){switch(a.type){case"contentResized":e.height=a.height>0?a.height:e.height;e.width=a.width>0?a.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);Mt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=_t.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:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var jn=new Bn;var Vn=e("sss_promoted_fund_join_v2_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return jn.build(t,e.history)}})};return e}());function qn(e){var t=e.split("").map(Number);var n=t.every((function(e){return!isNaN(e)}));var r=[10,1,3,5,7,9,11,13,15,17,19];if(!n||t.length!==r.length){return false}t[0]--;var i=t.reduce((function(e,t,n){return e+t*r[n]}),0);return i%89===0}var zn=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.isSubmitDisabled=true;this.isAbnValid=qn(Gt.selfManagedFundForm.fundAbn);this.eventTrackingService=Et.Instance;this.success=function(){Vt.navigateInternallyToStandardChoice({history:n.history,fundName:"Self-managed super fund",handleSubmitFn:function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t={smsfChoice:{abn:Gt.selfManagedFundForm.fundAbn,fundName:Gt.selfManagedFundForm.fundName,fundAddress:{addressLine1:Gt.selfManagedFundForm.addressLine1,addressLine2:Gt.selfManagedFundForm.addressLine2,city:Gt.selfManagedFundForm.city,state:Gt.selfManagedFundForm.state,postcode:Gt.selfManagedFundForm.postcode},bsb:Gt.selfManagedFundForm.bsb,bankAccountName:Gt.selfManagedFundForm.bankAccountName,bankAccountNumber:Gt.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:Gt.selfManagedFundForm.fundEsa},standardChoiceFormSignature:e};return[4,Zt.submitSelfManagedFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}})}}e.prototype.componentDidLoad=function(){this.updateIsSubmitDisabled();return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:Y(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"},n("p",{class:"sm:text-lg font-bold"},"Fund details"),n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("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."))),n("sss-self-managed-fund-inputs",{fundForm:Gt.selfManagedFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){Gt.selfManagedFundForm=Object.assign(Object.assign({},Gt.selfManagedFundForm),t.detail);if(t.detail.isAbnValid!==undefined)e.isAbnValid=t.detail.isAbnValid;e.updateIsSubmitDisabled()}})),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},n("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.updateIsSubmitDisabled=function(){this.isSubmitDisabled=!this.formElement.checkValidity()||!this.isAbnValid};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.formState="validated";if(this.formElement.checkValidity())this.success();return[2]}))}))};return e}());te(zn);var Hn={"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"};var Wn=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=s(this,"formChanged",7);this.isAbnValid=false;this.isAbnTouched=false;this.currentBank=K;this.addressErrorMessage=K;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}$/)}e.prototype.render=function(){var e=this;var 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":true,"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 n("div",null,n("div",null,n("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundName",id:"fundName",value:Gt.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund name"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund ABN"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:Gt.selfManagedFundForm.fundAbn,inputmode:"numeric",pattern:"[0-9]*",onKeyUp:function(t){e.updateFormField("fundAbn",t.target.value.trim());e.isAbnValid=qn(t.target.value);e.updateFormField("isAbnValid",e.isAbnValid)},onBlur:function(){return e.isAbnTouched=true}}),(this.isAbnTouched||this.showValidationErrors)&&!this.isAbnValid&&n("div",{class:"mt-2 text-sm text-red-600"},"Enter a valid fund ABN (digits only)"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Electronic service address alias (ESA)"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:Gt.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund ESA"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),n("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},n("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none rounded-t-md shadow-none":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:Gt.selfManagedFundForm.addressLine1,onChange:function(t){e.updateFormField("addressLine1",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.addressLine1Element=t}}),n("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"addressLine2",id:"addressLine2",value:Gt.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"city",required:true,id:"city",value:Gt.selfManagedFundForm.city,onChange:function(t){e.updateFormField("city",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.cityElement=t}}),n("div",{class:"flex -space-x-px"},n("div",{class:"w-1/2 flex-1 min-w-0"},n("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},t),{"rounded-none rounded-bl-md shadow-none":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:Gt.selfManagedFundForm.postcode,inputmode:"numeric",onChange:function(t){e.updateFormField("postcode",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.postcodeElement=t}})),n("div",{class:"flex-1 min-w-0"},n("select",{class:Object.assign(Object.assign({},t),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.fundForm.state!==undefined}),name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.stateElement=t}},n("option",{disabled:true,selected:this.fundForm.state!==undefined,value:""},"State"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)})))))),W(this.addressErrorMessage)&&this.showValidationErrors&&n("div",{class:"mt-2 text-sm text-red-600"},this.addressErrorMessage.value)),n("h3",{class:"text-lg font-bold mt-6"},"Fund bank details"),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Account name"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bankAccountName",minlength:"2",id:"bankAccountName",value:Gt.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account name"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"BSB"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bsb",id:"bsb",minlength:"6",maxlength:"7",inputmode:"numeric",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:Gt.selfManagedFundForm.bsb}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid BSB"))),W(this.currentBank)&&n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Bank name"),n("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)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Account number"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,inputmode:"numeric",value:Gt.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account number"))))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=Hn[n];var a=Hn[r];if(i)this.currentBank=X(i);if(a)this.currentBank=X(a);if(t===""||t.length>6)this.currentBank=K;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};e.prototype.updateAddressErrorMessage=function(){var e=K;if(G(e)&&!this.addressLine1Element.checkValidity()){e=X("Enter a valid address line 1")}if(G(e)&&!this.cityElement.checkValidity()){e=X("Enter a valid city/suburb")}if(G(e)&&!this.postcodeElement.checkValidity()){e=X("Enter a valid post code")}if(G(e)&&!this.stateElement.checkValidity()){e=X("Select a state")}this.addressErrorMessage=e};return e}());var Gn=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(o=e[s])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Kn;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Kn||(Kn={}));var Xn=function(){function e(){}return e}();function Jn(){return{authenticationState:Kn.Unauthorized,jwt:K,reactNativeInterop:K,iframeInterop:K,appConfiguration:K}}var Yn=function(e){__extends(t,e);function t(){return e.call(this,Jn())||this}return t}(_);Yn=Gn([C({name:"sss-session",resettable:true})],Yn);var $n=new Yn;var Qn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return W(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return W(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(G(e)){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 e.value};return t}(T);var Zn=new Qn($n);var er=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var tr=new er;var nr=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Zn.isReactNativeInteropEnabled()?"true":"false"};this.skipInsurance=function(){return Zn.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var 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";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});if(this.includeJwt()){i.authToken=_t.jwt}var a=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",a);switch(r.type){case"success":if(r.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:an.Name,handleSubmitFn:function(e){return tr.submitSlateChoiceAsync({memberNumber:r.memberNumber,standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})},promotedFundId:an.Id});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",a);var o=e.contentDocument;o.open();var s=o.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}o.appendChild(s);o.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=_t.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var rr=new nr;var ir=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return rr.build(t,e.history)}})};return e}());var ar=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true}e.prototype.render=function(){var e=this;return n(o,null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"max-w-560"},n("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},Lt.promotedFundId&&mn(Lt.promotedFundId)&&n("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"},n("img",{class:"h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain",alt:Lt.fundName,src:mn(Lt.promotedFundId)})),n("div",{class:"flex justify-between w-full"},n("div",null,n("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),n("div",{class:"text-sm mt-2"},Lt.fundName)),n("div",{class:"grid content-center ml-4"},n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{size:"xs",variant:"secondary"},"Change"))))),n("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},n("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),n("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-information-circle.svg")})),n("div",{class:"ml-2"},n("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.")))),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"mt-3":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},n("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),n("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":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.formState==="validated"},required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:function(t){return e.standardChoiceFormSignature=t.target.value}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),n("div",{class:"mt-6"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Lt.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();_t.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var or=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=function(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},n("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"}))};return n(o,{class:"text-center"},n("div",{class:"flex justify-center"},n("div",{class:"relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},n(e,null)))),n("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),n("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."),n("div",{class:"flex justify-center mt-8"},n("div",{class:"max-w-[200px] w-full"},n("sss-button",{size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){_t.completeSuperSelectionFlow()};return e}());var sr=e("sss_super_choice_item_bottom",function(){function e(e){t(this,e);this.joinFundClicked=s(this,"joinFundClicked",7)}e.prototype.render=function(){var e=this;return n(o,null,n("div",{class:"py-6 px-4 lg:px-6 flex flex-col justify-between h-full"},n("div",null,n("div",{class:"md:max-w-[240px] lg:max-w-full"},n("sss-button",{class:"uuid-button-continue",fillWidth:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"text-xs text-gray-500 mt-6 leading-4"},this.disclaimer)),this.abnInfo&&this.abn&&n("div",{class:"text-xs text-gray-500 mt-2"},n("p",null,""+(In.isNewComplianceEnabled()?"Issued by ":"")+this.abnInfo+"."),n("p",null,"ABN: ",this.abn))))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};return e}());var ur=e("sss_super_choice_item_top",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,null,n("div",{class:"px-4 lg:px-6 pt-6"},n("div",{class:"text-right w-100 -mt-5 -mr-3.5 lg:-mr-5"},n("span",{class:"text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5"},In.isNewComplianceEnabled()?"Featured":"Advertised")),n("div",{class:"flex lg:block mt-2 md:mt-0 lg:mt-4"},n("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:a("assets/"+this.logo)}),n("div",{class:"grid content-center"},n("p",{class:"text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0 lg:mt-4"},this.name))),n("div",{class:"mt-4 sm:mt-2 text-sm space-y-2"},this.features.map((function(e){return n("div",{class:"flex"},n("div",{class:"h-5 w-5 flex-none mr-1.5"},n("img",{alt:"checked",src:a("assets/icon-check.svg")})),n("div",{class:"leading-5"},e))}))),this.featureSubText&&n("p",{class:"text-xs text-gray-500 italic mt-4 leading-4"},this.featureSubText)))};return e}());var cr=e("sss_super_choice_page",function(){function e(e){t(this,e);this.promotedFunds=this.getPromotedFunds();this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){var e=this.promotedFunds.map((function(e){return e.fundId}));return this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;var t="https://my.gov.au";var r="www.my.gov.au";var i="https://www.apra.gov.au/register-of-superannuation-institutions";var s="www.apra.gov.au";return n(o,null,n("div",null,n("sss-header-section",{currentPage:"choice"}),In.isNewComplianceEnabled()&&n("div",{class:"mt-8 text-sm text-center leading-6"},n("p",{class:"leading-6"},"Not ready to join a new fund, or want to nominate another super fund?"),n("stencil-route-link",{url:Ut.MyOwnFund},n("span",{class:"inline-block text-primary-base font-medium mt-3"},"Skip Featured Funds ",n("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"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))))),!In.isNewComplianceEnabled()&&n("div",{class:"flex justify-center pb-4"},n("div",{class:"text-center space-y-4 max-w-960 text-sm leading-6"},n("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."),n("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."),n("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."),n("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."),n("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."))),n("div",{class:"flex justify-center mt-8"},n("div",{class:{"lg:grid border-l border-t lg:border-b rounded-lg":true,"lg:grid-cols-1 max-w-400":this.promotedFunds.length===1,"lg:grid-cols-2 max-w-720":this.promotedFunds.length===2,"lg:grid-cols-3 max-w-960":this.promotedFunds.length===3}},this.promotedFunds.map((function(t,r){return n("div",{class:{"border-r":true,"rounded-tr-lg":r===0,"lg:rounded-tr-none":r===0&&r!==e.promotedFunds.length-1,"rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg":r===e.promotedFunds.length-1}},n("div",{class:{"flex border-b lg:border-b-0":true,"rounded-b-lg":r===e.promotedFunds.length-1}},n("div",{class:"hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6"},n("img",{class:"h-16 object-contain w-full max-w-[96px]",alt:t.name,src:a("assets/"+t.logo)})),n("div",{class:"w-full"},n("sss-super-choice-item-top",{logo:t.logo,name:t.name,features:t.features,featureSubText:t.featureSubText}),n("div",{class:"lg:hidden"},n("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}})))))})),this.promotedFunds.map((function(t,r){return n("div",{class:{"hidden lg:block border-r":true,"rounded-br-lg":r===e.promotedFunds.length-1}},n("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))})))),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"pb-8 sm:pb-12 max-w-720 border-b"},n("h5",{class:"font-bold sm:text-lg"},"Or, choose another super fund:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base"},n("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."),n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:Vt.toExternalUrl(t)},r)),n("li",null,"A full list of super funds can be viewed at"," ",n("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:Vt.toExternalUrl(i)},s))),n("stencil-route-link",{url:Ut.MyOwnFund},n("sss-button",{fillWidthOnMobile:true},"Choose another super fund")))),In.isNewComplianceEnabled()&&n("div",{class:"flex justify-center"},n("div",{class:"pt-8 sm:pt-12 max-w-720"},n("h5",{class:"font-semibold"},"IMPORTANT INFORMATION:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6"},n("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."),n("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."),n("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."),n("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."),n("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)."))))))};e.prototype.allFunds=function(){var e=this;var t=function(e,t){return n("a",{class:e.className||"font-medium underline hover:text-gray-600",target:"_blank",href:Vt.toExternalUrl(e.href),onClick:e.onClick},t)};return[{fundId:an.Id,name:an.Name,logo:an.Logo,route:Ut.SlateJoin,features:[n("p",null,"A lifestage investment strategy that evolves with you"),n("p",null,"Advanced mobile app with retirement forecast and smart features"),n("p",null,"Member advocates at Slate to assist with your account")],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n(t,{href:an.PdsUrl,onClick:function(){return e.pdsViewedAsync(an.Name,an.Usi)}},"Product Disclosure Statement")," ","and"," ",n(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:an.DiversaAbn},{fundId:on.Id,name:on.Name,logo:on.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"$200 billion in retirement savings"),n("p",null,"2+ million members"),n("p",null,"A focus on delivering strong, long‑term returns")],featureSubText:n("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:n("p",null,"You should consider the"," ",n(t,{href:on.PdsUrl,onClick:function(){return e.pdsViewedAsync(on.Name)}},"Product Disclosure Statement")," ","and"," ",n(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:on.Abn},{fundId:sn.Id,name:sn.Name,logo:sn.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"Acting on climate change"),n("p",null,"All profits go to members"),n("p",null,"One of Australia’s largest funds")],disclaimer:n("p",null,"You should consider the"," ",n(t,{href:sn.PdsUrl,onClick:function(){return e.pdsViewedAsync(sn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:sn.Abn},{fundId:un.Id,name:un.Name,logo:un.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"Winner of Canstar's 2023 Outstanding Value – Superannuation Award considering investment performance, fees and product features*"),n("p",null,"Recognised as a leader in responsible investment"),n("p",null,"Calls answered in 20 seconds (average over 5 years)")],featureSubText:n("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:n("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"," ",n(t,{onClick:function(){return e.pdsViewedAsync(un.Name)},href:un.PdsUrl},"activesuper.com.au")," ","before making a decision.")},{fundId:cn.Id,name:cn.Name,logo:cn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Fastest growing super fund in Australia",n("sup",{class:"text-tiny"},"1")),n("p",null,"Nil investments in fossil fuel companies",n("sup",{class:"text-tiny"},"2")),n("p",null,"Competitive returns")],featureSubText:n("ol",{class:"list-decimal list-outside ml-3"},n("li",null,"Source: KPMG Super Insights Report 2022."),n("li",null,"All our options go through positive and negative ethical screening in accordance with the Australian Ethical Charter (in place since 1986).")),disclaimer:n("p",null,"Issued by Australian Ethical Superannuation Pty Ltd (ABN 43 079 259 733, RSE L0001441, AFSL 526055). Please consider the"," ",n(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"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"Product Disclosure Statement")," ","and"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"Target Market Determination")," ","available on our"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"website"),".")},{fundId:ln.Id,name:ln.Name,logo:ln.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Returns above industry and retail super fund medians over the past 5 years",n("sup",{class:"text-tiny"},"1")),n("p",null,"One of the lowest fees in the market"),n("p",null,"Virgin Money rewards you with Velocity Points on your contributions",n("sup",{class:"text-tiny"},"2"))],featureSubText:n("div",{class:"m-4 pt-2"},n("ol",{class:"list-decimal space-y-2"},n("li",null,n("span",null,"Past performance is not a reliable indicator of future performance. Source: SuperRatings Fund Crediting Rate Survey April 2022.")),n("li",null,n("span",null,n(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:n("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"," ",n(t,{href:ln.PdsUrl,onClick:function(){return e.pdsViewedAsync(ln.Name)}},"www.virginmoney.com.au")," ","before making a decision")},{fundId:fn.Id,name:fn.Name,logo:fn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Proud Industry SuperFund - all profits go back to members"),n("p",null,"Best customer experience in super",n("sup",{class:"text-tiny"},"1")," and best for value",n("sup",{class:"text-tiny"},"2")),n("p",null,"Low fees",n("sup",{class:"text-tiny"},"3")," with a focus on strong returns and investing with impact in communities",n("sup",{class:"text-tiny"},"4"))],featureSubText:n("div",{class:"m-4 pt-2"},n("ol",{class:"list-decimal space-y-2"},n("li",null,n("span",null,"CSBA SenseCX Benchmark 2021-22")),n("li",null,n("span",null,"Awarded Best for Value in the WeMoney Superannuation Awards 2022")),n("li",null,n("span",null,"Just $67.60 + 0.15% pa admin fees, capped at $517.60")),n("li",null,n("span",null,"Rainmaker ESG Leader Rating 2022")))),disclaimer:n("p",null,"Past performance isn’t a reliable indicator of future performance. Consider the PDS and TMD at"," ",n(t,{href:fn.PdsUrl,onClick:function(){return e.pdsViewedAsync(fn.Name)}},"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:dn.Id,name:dn.Name,logo:dn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Industry SuperFund that puts members FIRST"),n("p",null,"Strong long-term investment returns and superior customer service"),n("p",null,"Established super fund – anyone can join including KiwiSaver members")],disclaimer:n("div",null,n("p",null,"You should consider the"," ",n(t,{onClick:function(){return e.pdsViewedAsync(dn.Name)},href:dn.PdsUrl},"Product Disclosure Statement")," ","and"," ",n(t,{href:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),n("br",null),n("p",null,"Issued by First Super Pty Limited (ABN 42 053 498 472, AFSL 223988) as trustee of First Super (ABN 56 286 625 181)."))}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];_t.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n===e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:n=_t.promotedFunds;return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:vn(e.fundId),fundName:(t=hn(e.fundId))!==null&&t!==void 0?t:"",promotedFundId:e.fundId,promotedFundsShown:n,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})];case 1:r.sent();Mn.fundId=e.fundId;return[2,Vt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());var lr="stencil-route.inactive{display:none}";var fr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=De(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Re(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(fr,["location","history","historyType","routeViewsUpdated"]);fr.style=lr;var dr=function(e,t,n){return n(e.confirm(t))};var pr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var hr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var vr=function(e){return e.userAgent.indexOf("Trident")===-1};var mr=function(e){return e.userAgent.indexOf("Firefox")===-1};var gr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var yr=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var br=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var wr=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=De(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(pr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(br(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){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})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(wr,["history","location","root"]);var xr=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var Sr=function(e,t,n){return De(e,{path:t,exact:n,strict:true})};var Ir=function(e){return e.tagName==="STENCIL-ROUTE"};var Cr=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=xr();this.subscribers=[];this.queue=l(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(Ir).map((function(n,r){var i=Sr(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());A.injectProps(Cr,["location","routeViewsUpdated"]);var _r=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var Tr=function(){var e;var t=[];var n=function(t){_r(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{_r(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var Ar=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(yr(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var o=function(t){r(t,[e.scrollX,e.scrollY])};if(yr(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:o}};var Er="popstate";var kr="hashchange";var Nr=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var o=hr(e);var s=!vr(a);var u=Ar(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:dr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?me(ge(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,o=i.hash;var s=r+a+o;_r(!d||he(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=ve(s,d)}return Ee(s,n,t||Ie(f))};var v=Tr();var m=function(e){u.capture(R.location.key);Object.assign(R,e);R.location.scrollPosition=u.get(R.location.key);R.length=r.length;v.notifyListeners(R.location,R.action)};var g=function(e){if(!gr(a,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;m()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){m({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=R.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;E(a)}};var x=h(p());var S=[x.key];var I=0;var C=false;var _=function(e){return d+we(e)};var T=function(e,t){_r(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"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");var n="PUSH";var a=Ee(e,t,Ie(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=_(a);var s=a.key,u=a.state;if(o){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(R.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(a.key);S=f;m({action:n,location:a})}}else{_r(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var A=function(e,t){_r(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"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");var n="REPLACE";var a=Ee(e,t,Ie(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=_(a);var s=a.key,u=a.state;if(o){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(R.location.key);if(l!==-1){S[l]=a.key}m({action:n,location:a})}}else{_r(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var k=function(){return E(-1)};var N=function(){return E(1)};var F=function(t){I+=t;if(I===1){e.addEventListener(Er,g);if(s){e.addEventListener(kr,y)}}else if(I===0){e.removeEventListener(Er,g);if(s){e.removeEventListener(kr,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!C){F(1);C=true}return function(){if(C){C=false;F(-1)}return t()}};var D=function(e){var t=v.appendListener(e);F(1);return function(){F(-1);t()}};var R={length:r.length,action:"POP",location:x,createHref:_,push:T,replace:A,go:E,goBack:k,goForward:N,block:P,listen:D,win:e};return R};var Fr="hashchange";var Pr={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+ye(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:ye,decodePath:ge},slash:{encodePath:ge,decodePath:ge}};var Dr=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var o=e.location;var s=e.history;var u=mr(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?dr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?me(ge(t.basename)):"";var v=Pr[p],m=v.encodePath,g=v.decodePath;var y=function(){var e=o.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return o.hash=e};var w=function(e){var t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());_r(!h||he(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=ve(e,h)}return Ee(e,undefined,Ie(c))};var S=Tr();var I=function(e){Object.assign(j,e);j.length=s.length;S.notifyListeners(j.location,j.action)};var C=function(){var e=y();var t=m(e);if(e!==t){w(t)}else{var i=x();var a=j.location;if(!n&&Ae(a,i)){return}if(r===we(i)){return}r=null;_(i)}};var _=function(e){if(n){n=false;I()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){I({action:t,location:e})}else{T(e)}}))}};var T=function(e){var t=j.location;var r=N.lastIndexOf(we(t));var i=N.lastIndexOf(we(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;R(a)}};var A=y();var E=m(A);if(A!==E){w(E)}var k=x();var N=[we(k)];var F=function(e){return"#"+m(h+we(e))};var P=function(e,t){_r(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Ee(e,undefined,Ie(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=we(i);var a=m(h+t);var o=y()!==a;if(o){r=t;b(a);var s=N.lastIndexOf(we(j.location));var u=N.slice(0,s===-1?0:s+1);u.push(t);N=u;I({action:n,location:i})}else{_r(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");I()}}))};var D=function(e,t){_r(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Ee(e,undefined,Ie(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=we(i);var a=m(h+t);var o=y()!==a;if(o){r=t;w(a)}var s=N.indexOf(we(j.location));if(s!==-1){N[s]=t}I({action:n,location:i})}))};var R=function(e){_r(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var M=function(){return R(-1)};var O=function(){return R(1)};var L=function(e,t){i+=t;if(i===1){e.addEventListener(Fr,C)}else if(i===0){e.removeEventListener(Fr,C)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){L(e,1);a=true}return function(){if(a){a=false;L(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);L(e,1);return function(){L(e,-1);n()}};var j={length:s.length,action:"POP",location:k,createHref:F,push:P,replace:D,go:R,goBack:M,goForward:O,block:U,listen:B,win:e};return j};var Rr=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Mr={browser:Nr,hash:Dr};var Or=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=l(this,"isServer");this.queue=l(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Mr[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Rr(t,e.root);e.location=t}));this.location=Rr(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(A.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());var Lr="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 Ur=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=s(this,"step-completion",7);this.successPageAcknowledged=s(this,"successPageAcknowledged",5);this.initialised=s(this,"initialised",7);this.isSelfHosted=false;this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=vt.fromNullable(this.accessToken);if(vt.isNone(e)){throw Error("jwt property is missing.")}_t.state.jwt=e;t=vt.fromNullable(this.backendUrl);if(vt.isNone(t)){throw Error("apiBaseUrl property is missing.")}_t.state.apiBaseUrl=vt.some(t.value.replace(/\/$/,"")+"/");n=vt.fromNullable(this.appBaseUrl);if(vt.isNone(n)){throw Error("appBaseUrl property is missing.")}_t.state.appBaseUrl=vt.some(n.value.replace(/\/$/,""));_t.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));_t.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();_t.state.hasSuperSelectionBeenSubmitted=false;if(r.isSelfHosted){Vt.navigateInternally(r.history,Ut.Success)}}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,_t.loadAppStateAsync()];case 1:t.sent();return[4,Sn.GetExistingFundAsync()];case 2:e=t.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:_t.accountIdOrDefault,partnerIdOrDefault:_t.partnerIdOrDefault,profileId:_t.profileId});Mt.appReady();if(vt.isSome(e)&&e.value.valid!=="Inactive"){Vt.navigateInternally(this.history,Ut.ExistingChoicePage)}else{Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage)}return[2]}}))}))};e.prototype.authTokenChanged=function(e){_t.state.jwt=vt.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(o,null,n("link",{rel:"stylesheet",href:a("apollo-super-selection.css"),media:"all"}),this.renderAppContent())};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},n("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?n("div",{class:{"pt-28":true,"-mt-12 pb-6":!this.isFundJoinPage(),"-mt-28":this.isFundJoinPage()}},Bt,n("sss-footer-section",null)):n("div",{class:"flex justify-center py-20"},n("sss-loading-indicator",null))))};e.prototype.isFundJoinPage=function(){return window.location.pathname.includes(Ut.SlateJoin)||window.location.pathname.includes(Ut.PromotedFundJoinV1)||window.location.pathname.includes(Ut.PromotedFundJoinV2)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());te(Ur);Ur.style=Lr;var Br=[];var jr=function(){return Br.some((function(e){return e.activeTargets.length>0}))};var Vr=function(){return Br.some((function(e){return e.skippedTargets.length>0}))};var qr="ResizeObserver loop completed with undelivered notifications.";var zr=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:qr})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=qr}window.dispatchEvent(e)};var Hr;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Hr||(Hr={}));var Wr=function(e){return Object.freeze(e)};var Gr=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Wr(this)}return e}();var Kr=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Wr(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Xr=function(e){return e instanceof SVGElement&&"getBBox"in e};var Jr=function(e){if(Xr(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)};var Yr=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var $r=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var Qr=typeof window!=="undefined"?window:{};var Zr=new WeakMap;var ei=/auto|scroll/;var ti=/^tb|vertical/;var ni=/msie|trident/i.test(Qr.navigator&&Qr.navigator.userAgent);var ri=function(e){return parseFloat(e||"0")};var ii=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Gr((n?t:e)||0,(n?e:t)||0)};var ai=Wr({devicePixelContentBoxSize:ii(),borderBoxSize:ii(),contentBoxSize:ii(),contentRect:new Kr(0,0,0,0)});var oi=function(e,t){if(t===void 0){t=false}if(Zr.has(e)&&!t){return Zr.get(e)}if(Jr(e)){Zr.set(e,ai);return ai}var n=getComputedStyle(e);var r=Xr(e)&&e.ownerSVGElement&&e.getBBox();var i=!ni&&n.boxSizing==="border-box";var a=ti.test(n.writingMode||"");var o=!r&&ei.test(n.overflowY||"");var s=!r&&ei.test(n.overflowX||"");var u=r?0:ri(n.paddingTop);var c=r?0:ri(n.paddingRight);var l=r?0:ri(n.paddingBottom);var f=r?0:ri(n.paddingLeft);var d=r?0:ri(n.borderTopWidth);var p=r?0:ri(n.borderRightWidth);var h=r?0:ri(n.borderBottomWidth);var v=r?0:ri(n.borderLeftWidth);var m=f+c;var g=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!o?0:e.offsetWidth-y-e.clientWidth;var S=i?m+y:0;var I=i?g+b:0;var C=r?r.width:ri(n.width)-S-x;var _=r?r.height:ri(n.height)-I-w;var T=C+m+x+y;var A=_+g+w+b;var E=Wr({devicePixelContentBoxSize:ii(Math.round(C*devicePixelRatio),Math.round(_*devicePixelRatio),a),borderBoxSize:ii(T,A,a),contentBoxSize:ii(C,_,a),contentRect:new Kr(f,u,C,_)});Zr.set(e,E);return E};var si=function(e,t,n){var r=oi(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Hr.DEVICE_PIXEL_CONTENT_BOX:return o;case Hr.BORDER_BOX:return i;default:return a}};var ui=function(){function e(e){var t=oi(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Wr([t.borderBoxSize]);this.contentBoxSize=Wr([t.contentBoxSize]);this.devicePixelContentBoxSize=Wr([t.devicePixelContentBoxSize])}return e}();var ci=function(e){if(Jr(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var li=function(){var e=Infinity;var t=[];Br.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new ui(n.target);var a=ci(n.target);i.push(r);n.lastReportedSize=si(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var fi=function(e){Br.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(ci(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var di=function(){var e=0;fi(e);while(jr()){e=li();fi(e)}if(Vr()){zr()}return e>0};var pi;var hi=[];var vi=function(){return hi.splice(0).forEach((function(e){return e()}))};var mi=function(e){if(!pi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return vi()})).observe(n,r);pi=function(){n.textContent=""+(t?t--:t++)}}hi.push(e);pi()};var gi=function(e){mi((function t(){requestAnimationFrame(e)}))};var yi=0;var bi=function(){return!!yi};var wi=250;var xi={attributes:true,characterData:true,childList:true,subtree:true};var Si=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var Ii=function(e){if(e===void 0){e=0}return Date.now()+e};var Ci=false;var _i=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=wi}if(Ci){return}Ci=true;var n=Ii(e);gi((function(){var r=false;try{r=di()}finally{Ci=false;e=n-Ii();if(!bi()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,xi)};document.body?t():Qr.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();Si.forEach((function(t){return Qr.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();Si.forEach((function(t){return Qr.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var Ti=new _i;var Ai=function(e){!yi&&e>0&&Ti.start();yi+=e;!yi&&Ti.stop()};var Ei=function(e){return!Xr(e)&&!$r(e)&&getComputedStyle(e).display==="inline"};var ki=function(){function e(e,t){this.target=e;this.observedBox=t||Hr.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=si(this.target,this.observedBox,true);if(Ei(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Ni=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Fi=new WeakMap;var Pi=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Di=function(){function e(){}e.connect=function(e,t){var n=new Ni(e,t);Fi.set(e,n)};e.observe=function(e,t,n){var r=Fi.get(e);var i=r.observationTargets.length===0;if(Pi(r.observationTargets,t)<0){i&&Br.push(r);r.observationTargets.push(new ki(t,n&&n.box));Ai(1);Ti.schedule()}};e.unobserve=function(e,t){var n=Fi.get(e);var r=Pi(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&Br.splice(Br.indexOf(n),1);n.observationTargets.splice(r,1);Ai(-1)}};e.disconnect=function(e){var t=this;var n=Fi.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Ri=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Di.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Yr(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Di.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Yr(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Di.unobserve(this,e)};e.prototype.disconnect=function(){Di.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Mi=function(){function e(){var e=this;this._appRootUrl=new Z((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,rt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();$n.update({appConfiguration:vt.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=vt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(vt.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Oi=new Mi;var Li="function";var Ui="object";var Bi="undefined";var ji="prototype";var Vi="hasOwnProperty";function qi(){if(typeof globalThis!==Bi&&globalThis){return globalThis}if(typeof self!==Bi&&self){return self}if(typeof window!==Bi&&window){return window}if(typeof global!==Bi&&global){return global}return null}function zi(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==Ui&&n!==Li){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[ji]=e;return new r}function Hi(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[ji][Vi].call(t,i)){e[i]=t[i]}}}return e}var Wi=function(e,t){Wi=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Vi](n)){e[n]=t[n]}}};return Wi(e,t)};function Gi(e,t){Wi(e,t);function n(){this.constructor=e}e[ji]=t===null?zi(t):(n[ji]=t[ji],new n)}var Ki=qi()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Ki,Hi,Gi);if(!__assign){__assign=Ki.__assign}if(!__extends){__extends=Ki.__extends}var Xi={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Ji=Bi;var Yi=Ui;var $i=ji;var Qi=Li;var Zi="window";var ea="document";var ta="navigator";var na="history";var ra="location";var ia="console";var aa="performance";var oa="JSON";var sa="crypto";var ua="msCrypto";var ca="ReactNative";var la=qi;function fa(e){var t=la();if(t&&t[e]){return t[e]}if(e===Zi&&da()){return window}return null}function da(){return Boolean(typeof window===Yi&&window)}function pa(){if(da()){return window}return fa(Zi)}function ha(){return Boolean(typeof document===Yi&&document)}function va(){if(ha()){return document}return fa(ea)}function ma(){return Boolean(typeof navigator===Yi&&navigator)}function ga(){if(ma()){return navigator}return fa(ta)}function ya(){return Boolean(typeof history===Yi&&history)}function ba(){if(ya()){return history}return fa(na)}function wa(){if(typeof location===Yi&&location){return location}return fa(ra)}function xa(){if(typeof console!==Ji){return console}return fa(ia)}function Sa(){return fa(aa)}function Ia(){return Boolean(typeof JSON===Yi&&JSON||fa(oa)!==null)}function Ca(){if(Ia()){return JSON||fa(oa)}return null}function _a(){return fa(sa)}function Ta(){return fa(ua)}function Aa(){var e=ga();if(e&&e.product){return e.product===ca}return false}var Ea="on";var ka="attachEvent";var Na="addEventListener";var Fa="detachEvent";var Pa="removeEventListener";var Da=4294967296;var Ra=4294967295;var Ma=null;var Oa=false;var La=123456789;var Ua=987654321;function Ba(e){if(e<0){e>>>=0}La=123456789+e&Ra;Ua=987654321-e&Ra;Oa=true}function ja(){Ba(Math.random()*Da^(new Date).getTime())}function Va(e,t){return typeof e===t}function qa(e){return Va(e,Bi)||e===undefined}function za(e){return qa(e)||e===null}function Ha(e,t){return e&&Object[ji].hasOwnProperty.call(e,t)}function Wa(e){return Va(e,Ui)}function Ga(e){return Va(e,Li)}function Ka(e,t,n,r){if(r===void 0){r=false}var i=false;if(!za(e)){try{if(!za(e[Na])){e[Na](t,n,r);i=true}else if(!za(e[ka])){e[ka](Ea+t,n);i=true}}catch(e){}}return i}function Xa(e,t,n,r){if(r===void 0){r=false}if(!za(e)){try{if(!za(e[Pa])){e[Pa](t,n,r)}else if(!za(e[Fa])){e[Fa](Ea+t,n)}}catch(e){}}}function Ja(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Ya(e,t){if(e&&Wa(e)){for(var n in e){if(Ha(e,n)){t.call(e,n,e[n])}}}}var $a=function(){function e(){}e.isDate=function(e){return Object[ji].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[ji].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[ji].toString.call(e)==="[object Error]"};e.isString=function(e){return Va(e,"string")};e.isNumber=function(e){return Va(e,"number")};e.isBoolean=function(e){return Va(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Qa,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var o=0;o<r;o++){if(o in e){a[o]=t.call(i,e[o],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Ga(e)&&(!Wa(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ha(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var o=0;o<a;o++){if(Ha(e,i[o])){n.push(i[o])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=pa();if(r){n=Ka(r,e,t);n=Ka(r["body"],e,t)||n}var i=va();if(i){n=Za.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=Sa();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(Ma===null){var e=ga()||{};var t=(e.userAgent||"").toLowerCase();Ma=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return Ma};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/Ra*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=_a()||Ta();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&Ra}else if(e.isIE()){if(!Oa){ja()}n=e.mwcRandom32()&Ra}else{n=Math.floor(Da*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){ja()}else{Ba(e)}};e.mwcRandom32=function(e){Ua=36969*(Ua&65535)+(Ua>>16)&Ra;La=18e3*(La&65535)+(La>>16)&Ra;var t=(Ua<<16)+(La&65535)>>>0&Ra|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=Va;e.isUndefined=qa;e.isNullOrUndefined=za;e.hasOwnProperty=Ha;e.isFunction=Ga;e.isObject=Wa;e.objCreate=zi;return e}();var Qa=/[xy]/g;var Za=function(){function e(){}e.Attach=Ka;e.AttachEvent=Ka;e.Detach=Xa;e.DetachEvent=Xa;return e}();var eo;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(eo||(eo={}));var to={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-44bec843.system.js","./p-14885f78.system.js","./p-80178f87.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,m,g,y,b,w,x,S,I,C,_,T,A;return{setters:[function(e){t=e.r;n=e.h;r=e.g;i=e.f;a=e.a;o=e.H;s=e.c;u=e.F;c=e.d;l=e.e;f=e.s},function(e){d=e.f;p=e.m;h=e.S;v=e.a;m=e.i;g=e.b;y=e.O;b=e.c;w=e.d;x=e.g;S=e.h;I=e.j;C=e.k;_=e.l;T=e.Q},function(e){A=e.A}],execute:function(){function E(){}function k(e,t,n){if(n===void 0){n=Number.POSITIVE_INFINITY}if(typeof t==="function"){return function(r){return r.pipe(k((function(n,r){return d(e(n,r)).pipe(p((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new N(e,n))}}var N=function(){function e(e,t){if(t===void 0){t=Number.POSITIVE_INFINITY}this.project=e;this.concurrent=t}e.prototype.call=function(e,t){return t.subscribe(new F(e,this.project,this.concurrent))};return e}();var F=function(e){__extends(t,e);function t(t,n,r){if(r===void 0){r=Number.POSITIVE_INFINITY}var i=e.call(this,t)||this;i.project=n;i.concurrent=r;i.hasCompleted=false;i.buffer=[];i.active=0;i.index=0;return i}t.prototype._next=function(e){if(this.active<this.concurrent){this._tryNext(e)}else{this.buffer.push(e)}};t.prototype._tryNext=function(e){var t;var n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++;this._innerSub(t)};t.prototype._innerSub=function(e){var t=new v(this);var n=this.destination;n.add(t);var r=m(e,t);if(r!==t){n.add(r)}};t.prototype._complete=function(){this.hasCompleted=true;if(this.active===0&&this.buffer.length===0){this.destination.complete()}this.unsubscribe()};t.prototype.notifyNext=function(e){this.destination.next(e)};t.prototype.notifyComplete=function(){var e=this.buffer;this.active--;if(e.length>0){this._next(e.shift())}else if(this.active===0&&this.hasCompleted){this.destination.complete()}};return t}(h);function P(e,t,n,r){if(b(n)){r=n;n=undefined}if(r){return P(e,t,n).pipe(p((function(e){return g(e)?r.apply(void 0,e):r(e)})))}return new y((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}D(e,t,i,r,n)}))}function D(e,t,n,r,i){var a;if(O(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(M(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(R(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var c=0,l=e.length;c<l;c++){D(e[c],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function R(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function M(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function O(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function L(e,t){if(t===void 0){t=w}return function(n){return n.lift(new U(e,t))}}var U=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new B(e,this.dueTime,this.scheduler))};return e}();var B=function(e){__extends(t,e);function t(t,n,r){var i=e.call(this,t)||this;i.dueTime=n;i.scheduler=r;i.debouncedSubscription=null;i.lastValue=null;i.hasValue=false;return i}t.prototype._next=function(e){this.clearDebounce();this.lastValue=e;this.hasValue=true;this.add(this.debouncedSubscription=this.scheduler.schedule(j,this.dueTime,this))};t.prototype._complete=function(){this.debouncedNext();this.destination.complete()};t.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var e=this.lastValue;this.lastValue=null;this.hasValue=false;this.destination.next(e)}};t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;if(e!==null){this.remove(e);e.unsubscribe();this.debouncedSubscription=null}};return t}(x);function j(e){e.debouncedNext()}function V(e,t,n){return function r(i){return i.lift(new q(e,t,n))}}var q=function(){function e(e,t,n){this.nextOrObserver=e;this.error=t;this.complete=n}e.prototype.call=function(e,t){return t.subscribe(new z(e,this.nextOrObserver,this.error,this.complete))};return e}();var z=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=E;a._tapError=E;a._tapComplete=E;a._tapError=r||E;a._tapComplete=i||E;if(b(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||E;a._tapError=n.error||E;a._tapComplete=n.complete||E}return a}t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)};t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)};t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()};return t}(x);var H="4.2.15896";var W=function(e){return e._tag==="Some"};var G=function(e){return e._tag==="None"};var K={_tag:"None"};var X=function(e){return{_tag:"Some",value:e}};function J(e){return e==null?K:X(e)}function Y(e){return G(e)?undefined:e.value}var $=function(e){return function(t){return G(t)?e():t.value}};var Q=$;var Z=function(){function e(e){this.factory=e;this._value=K}Object.defineProperty(e.prototype,"value",{get:function(){if(W(this._value)){return this._value.value}var e=this.factory();this._value=X(e);return e},enumerable:false,configurable:true});return e}();function ee(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function te(e){A.injectProps(e,["history","location"])}var ne="/";var re="./";var ie=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var ae=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||ne;var s=t&&t.delimiters||re;var u=false;var c;while((c=ie.exec(e))!==null){var l=c[0];var f=c[1];var d=c.index;a+=e.slice(i,d);i=d+l.length;if(f){a+=f[1];u=true;continue}var p="";var h=e[i];var v=c[2];var m=c[3];var g=c[4];var y=c[5];if(!u&&a.length){var b=a.length-1;if(s.indexOf(a[b])>-1){p=a[b];a=a.slice(0,b)}}if(a){n.push(a);a="";u=false}var w=p!==""&&h!==undefined&&h!==p;var x=y==="+"||y==="*";var S=y==="?"||y==="*";var I=p||o;var C=m||g;n.push({name:v||r++,prefix:p,delimiter:I,optional:S,repeat:x,partial:w,pattern:C?se(C):"[^"+oe(I)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var oe=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var se=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var ue=function(e){return e&&e.sensitive?"":"i"};var ce=function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n){for(var r=0;r<n.length;r++){t.push({name:r,prefix:null,delimiter:null,optional:false,repeat:false,partial:false,pattern:null})}}return e};var le=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(pe(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",ue(n))};var fe=function(e,t,n){return de(ae(e,n),t,n)};var de=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=oe(n.delimiter||ne);var o=n.delimiters||re;var s=[].concat(n.endsWith||[]).map(oe).concat("$").join("|");var u="";var c=false;for(var l=0;l<e.length;l++){var f=e[l];if(typeof f==="string"){u+=oe(f);c=l===e.length-1&&o.indexOf(f[f.length-1])>-1}else{var d=oe(f.prefix||"");var p=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;if(t)t.push(f);if(f.optional){if(f.partial){u+=d+"("+p+")?"}else{u+="(?:"+d+"("+p+"))?"}}else{u+=d+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!c)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,ue(n))};var pe=function(e,t,n){if(e instanceof RegExp){return ce(e,t)}if(Array.isArray(e)){return le(e,t,n)}return fe(e,t,n)};var he=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ve=function(e,t){return he(e,t)?e.substr(t.length):e};var me=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var ge=function(e){return e.charAt(0)==="/"?e:"/"+e};var ye=function(e){return e.charAt(0)==="/"?e.substr(1):e};var be=function(e){var t=e||"/";var n="";var r="";var i=t.indexOf("#");if(i!==-1){r=t.substr(i);t=t.substr(0,i)}var a=t.indexOf("?");if(a!==-1){n=t.substr(a);t=t.substr(0,a)}return{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r,query:{},key:""}};var we=function(e){var t=e.pathname,n=e.search,r=e.hash;var i=t||"/";if(n&&n!=="?"){i+=n.charAt(0)==="?"?n:"?"+n}if(r&&r!=="#"){i+=r.charAt(0)==="#"?r:"#"+r}return i};var xe=function(e){if(!e){return{}}return(/^[?#]/.test(e)?e.slice(1):e).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];e[r]=i?decodeURIComponent(i.replace(/\+/g," ")):"";return e}),{})};var Se=function(e){return e.charAt(0)==="/"};var Ie=function(e){return Math.random().toString(36).substr(2,e)};var Ce=function(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1){e[n]=e[r]}e.pop()};var _e=function(e,t){if(t===void 0){t=""}var n=t&&t.split("/")||[];var r;var i=0;var a=e&&e.split("/")||[];var o=e&&Se(e);var s=t&&Se(t);var u=o||s;if(e&&Se(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var c=n[n.length-1];r=c==="."||c===".."||c===""}else{r=false}for(var l=n.length;l>=0;l--){var f=n[l];if(f==="."){Ce(n,l)}else if(f===".."){Ce(n,l);i++}else if(i){Ce(n,l);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!Se(n[0]))){n.unshift("")}var d=n.join("/");if(r&&d.substr(-1)!=="/"){d+="/"}return d};var Te=function(e,t){if(e===t){return true}if(e==null||t==null){return false}if(Array.isArray(e)){return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Te(e,t[n])}))}var n=typeof e;var r=typeof t;if(n!==r){return false}if(n==="object"){var i=e.valueOf();var a=t.valueOf();if(i!==e||a!==t){return Te(i,a)}var o=Object.keys(e);var s=Object.keys(t);if(o.length!==s.length){return false}return o.every((function(n){return Te(e[n],t[n])}))}return false};var Ae=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Te(e.state,t.state)};var Ee=function(e,t,n,r){var i;if(typeof e==="string"){i=be(e);if(t!==undefined){i.state=t}}else{i=Object.assign({pathname:""},e);if(i.search&&i.search.charAt(0)!=="?"){i.search="?"+i.search}if(i.hash&&i.hash.charAt(0)!=="#"){i.hash="#"+i.hash}if(t!==undefined&&i.state===undefined){i.state=t}}try{i.pathname=decodeURI(i.pathname)}catch(e){if(e instanceof URIError){throw new URIError('Pathname "'+i.pathname+'" could not be decoded. '+"This is likely caused by an invalid percent-encoding.")}else{throw e}}i.key=n;if(r){if(!i.pathname){i.pathname=r.pathname}else if(i.pathname.charAt(0)!=="/"){i.pathname=_e(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=xe(i.search||"");return i};var ke=0;var Ne={};var Fe=1e4;var Pe=function(e,t){var n=""+t.end+t.strict;var r=Ne[n]||(Ne[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=pe(e,a,t);var s={re:o,keys:a};if(ke<Fe){r[i]=s;ke+=1}return s};var De=function(e,t){if(t===void 0){t={}}if(typeof t==="string"){t={path:t}}var n=t.path,r=n===void 0?"/":n,i=t.exact,a=i===void 0?false:i,o=t.strict,s=o===void 0?false:o;var u=Pe(r,{end:a,strict:s}),c=u.re,l=u.keys;var f=c.exec(e);if(!f){return null}var d=f[0],p=f.slice(1);var h=e===d;if(a&&!h){return null}return{path:r,url:r==="/"&&d===""?"/":d,isExact:h,params:l.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Re=function(e,t){if(e==null&&t==null){return true}if(t==null){return false}return e&&t&&e.path===t.path&&e.url===t.url&&Te(e.params,t.params)};var Me;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Me||(Me={}));var Oe=e("sss_button",function(){function e(e){t(this,e);this.fillWidth=false;this.fillWidthOnMobile=false;this.disabled=false;this.variant="primary";this.size="base";this.promiseFn=function(){return Promise.resolve()};this.state=Me.Available}e.prototype.render=function(){var e;var t=this;var r={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return n("button",{class:(e={},e[r[this.size]]=true,e["inline-flex items-center justify-center border font-medium"]=true,e["rounded-md shadow-sm focus:outline-none focus:ring-2"]=true,e["focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto"]=true,e["disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400"]=true,e["border-transparent text-white bg-primary-base hover:bg-primary-hover"]=this.variant==="primary",e["border-gray-300 text-gray-700 bg-white hover:bg-gray-50"]=this.variant==="secondary",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Me.Pending&&n("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),n("div",{class:{hidden:this.state===Me.Pending}},n("slot",null)))};e.prototype.clicked=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.promiseFn||this.state===Me.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Me.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Me.Available;return[3,4];case 3:e=t.sent();this.state=Me.Error;throw e;case 4:return[2]}}))}))};return e}());var Le=undefined&&undefined.__assign||function(){Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Le.apply(this,arguments)};var Ue=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Be=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=Le({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?Ue(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=Be(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var je=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ve={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(e,t){var n=t===void 0?{}:t,r=n.doThrow,i=r===void 0?true:r,a=n.instance,o=a===void 0?false:a;var s=[];for(var u=2;u<arguments.length;u++){s[u-2]=arguments[u]}var c=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!c)throw new Error(e+" is not defined");return o&&c?new(c.bind.apply(c,je([void 0],s))):c}};var qe=function(e,t,n,r){if(!e.getEntriesByName)return false;var i=e.getEntriesByName(t);if(i&&i.length>0){n(i.reverse()[0]);if(r.clearMeasures)r.clearMeasures(t);He.callbacks.delete(t);if(He.callbacks.size<1){He.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var ze=function(e,t){if(!He.observer&&e&&t){He.observer=new t((function(t){He.callbacks.forEach((function(n,r){qe(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return He.observer};var He={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=Ve.polyfill("performance",{doThrow:false});var r=Ve.polyfill("PerformanceObserver",{doThrow:false});if(!ze(n,r))return;if(!qe(n,e,t,n)){if(He.callbacks.size<1)He.observer.observe({entryTypes:["resource","measure"]});He.callbacks.set(e,t)}}};var We=function(e){return function(t){return e.length===0?t:e.length===1?e[0](t):e.reduceRight((function(n,r,i){return i===e.length-2?r(n(t)):r(n)}))}};var Ge=function(){function e(e){this.error=e}return e}();var Ke=function(e){var t=e._url,n=e._catchers,r=e._resolvers,i=e._middlewares,a=e._options;var o=new Map(n);var s=Be(Ve.defaults,a);var u=Ve.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var c={ref:null,clear:function(){if(c.ref){clearTimeout(c.ref);c.ref=null}}};var l=We(i)(Ve.polyfill("fetch"))(t,s);var f=l.catch((function(e){throw new Ge(e)})).then((function(e){c.clear();if(!e.ok){return e[Ve.errorType||"text"]().then((function(t){var n=new Error(t);n[Ve.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var d=function(t){return t.catch((function(t){c.clear();var n=t instanceof Ge?t.error:t;if(t instanceof Ge&&o.has("__fromFetch"))return o.get("__fromFetch")(n,e);else if(o.has(n.status))return o.get(n.status)(n,e);else if(o.has(n.name))return o.get(n.name)(n,e);else throw n}))};var p=function(e){return function(t){return e?d(f.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):d(f.then((function(e){return t?t(e):e})))}};var h={res:p(null),json:p("json"),blob:p("blob"),formData:p("formData"),arrayBuffer:p("arrayBuffer"),text:p("text"),perfs:function(e){l.then((function(t){return He.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}c.clear();c.ref=setTimeout((function(){return t.abort()}),e);return h},controller:function(){return[u,h]},error:function(e,t){o.set(e,t);return h},badRequest:function(e){return h.error(400,e)},unauthorized:function(e){return h.error(401,e)},forbidden:function(e){return h.error(403,e)},notFound:function(e){return h.error(404,e)},timeout:function(e){return h.error(408,e)},internalError:function(e){return h.error(500,e)},fetchError:function(e){return h.error("__fromFetch",e)},onAbort:function(e){return h.error("AbortError",e)}};return r.reduce((function(t,n){return n(t,e)}),h)};var Xe=undefined&&undefined.__assign||function(){Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return Xe.apply(this,arguments)};var Je=undefined&&undefined.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};var Ye="application/json";var $e="Content-Type";var Qe=function(){function e(e,t,n,r,i,a){if(n===void 0){n=new Map}if(r===void 0){r=[]}if(i===void 0){i=[]}if(a===void 0){a=[]}this._url=e;this._options=t;this._catchers=n;this._resolvers=r;this._middlewares=i;this._deferredChain=a}e.factory=function(t,n){if(t===void 0){t=""}if(n===void 0){n={}}return new e(t,n)};e.prototype.selfFactory=function(t){var n=t===void 0?{}:t,r=n.url,i=r===void 0?this._url:r,a=n.options,o=a===void 0?this._options:a,s=n.catchers,u=s===void 0?this._catchers:s,c=n.resolvers,l=c===void 0?this._resolvers:c,f=n.middlewares,d=f===void 0?this._middlewares:f,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Xe({},o),new Map(u),Je(l),Je(d),Je(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}Ve.defaults=t?Be(Ve.defaults,e):e;return this};e.prototype.errorType=function(e){Ve.errorType=e;return this};e.prototype.polyfills=function(e){Ve.polyfills=Xe(Xe({},Ve.polyfills),e);return this};e.prototype.url=function(e,t){if(t===void 0){t=false}if(t)return this.selfFactory({url:e});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+e+"?"+n[1]:this._url+e})};e.prototype.options=function(e,t){if(t===void 0){t=true}return this.selfFactory({options:t?Be(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:Ze(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:Be(this._options,{headers:e||{}})})};e.prototype.accept=function(e){return this.headers({Accept:e})};e.prototype.content=function(e){var t;return this.headers((t={},t[$e]=e,t))};e.prototype.auth=function(e){return this.headers({Authorization:e})};e.prototype.catcher=function(e,t){var n=new Map(this._catchers);n.set(e,t);return this.selfFactory({catchers:n})};e.prototype.signal=function(e){return this.selfFactory({options:Xe(Xe({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:Je(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:Je(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:Je(this._middlewares,e)})};e.prototype.method=function(e,t,n){if(t===void 0){t={}}if(n===void 0){n=null}var r=this._options.headers;var i=!n?this:typeof n==="object"&&(!r||Object.entries(r).every((function(e){var t=e[0],n=e[1];return t.toLowerCase()!==$e.toLowerCase()||n.startsWith(Ye)})))?this.json(n):this.body(n);i=i.options(Xe(Xe({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return Ke(a)};e.prototype.get=function(e){return this.method("GET",e)};e.prototype.delete=function(e){return this.method("DELETE",e)};e.prototype.put=function(e,t){return this.method("PUT",t,e)};e.prototype.post=function(e,t){return this.method("POST",t,e)};e.prototype.patch=function(e,t){return this.method("PATCH",t,e)};e.prototype.head=function(e){return this.method("HEAD",e)};e.prototype.opts=function(e){return this.method("OPTIONS",e)};e.prototype.replay=function(e){return this.method(this._options.method,e)};e.prototype.body=function(e){return this.selfFactory({options:Xe(Xe({},this._options),{body:e})})};e.prototype.json=function(e){var t;var n=(t=Object.entries(this._options.headers||{}).find((function(e){var t=e[0],n=e[1];return t.toLowerCase()===$e.toLowerCase()&&n.startsWith(Ye)})))===null||t===void 0?void 0:t[1];return this.content(n||Ye).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(et(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:nt(e)).content("application/x-www-form-urlencoded")};return e}();var Ze=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=Ve.polyfill("URLSearchParams",{instance:true});for(var a in t){if(t[a]instanceof Array){for(var o=0,s=t[a];o<s.length;o++){var u=s[o];i.append(a,u)}}else{i.append(a,t[a])}}r=i.toString()}var c=e.split("?");if(n||c.length<2)return c[0]+"?"+r;return e+"&"+r};function et(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=Ve.polyfill("FormData",{instance:true})}if(r===void 0){r=[]}Object.entries(e).forEach((function(e){var i=e[0],a=e[1];var o=r.reduce((function(e,t){return e?e+"["+t+"]":t}),null);o=o?o+"["+i+"]":i;if(a instanceof Array){for(var s=0,u=a;s<u.length;s++){var c=u[s];n.append(o+"[]",c)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){et(a,t,n,Je(r,[i]))}}else{n.append(o,a)}}));return n}function tt(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function nt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return tt(t,e)})).join("&")}return tt(t,n)})).join("&")}var rt=Qe.factory;rt["default"]=Qe.factory;var it=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var at=function(e,t){var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}if(n){clearTimeout(n)}n=setTimeout((function(){n=0;e.apply(void 0,r)}),t)}};var ot=function(e){return!("isConnected"in e)||e.isConnected};var st=at((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(ot))}}),2e3);var ut=function(e){var t=e.on;var n=new Map;if(typeof r==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=r();if(t){it(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(i))}st(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(i)}));st(n)}))}};var ct=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var r={dispose:[],get:[],set:[],reset:[]};var i=function(){n=new Map(Object.entries(e!==null&&e!==void 0?e:{}));r.reset.forEach((function(e){return e()}))};var a=function(){r.dispose.forEach((function(e){return e()}));i()};var o=function(e){r.get.forEach((function(t){return t(e)}));return n.get(e)};var s=function(e,i){var a=n.get(e);if(t(i,a,e)){n.set(e,i);r.set.forEach((function(t){return t(e,i,a)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return o(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return n.has(t)},set:function(e,t,n){s(t,n);return true}});var c=function(e,t){r[e].push(t);return function(){lt(r[e],t)}};var l=function(t,n){var r=c("set",(function(e,r){if(e===t){n(r)}}));var i=c("reset",(function(){return n(e[t])}));return function(){r();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){c("set",e.set)}if(e.get){c("get",e.get)}if(e.reset){c("reset",e.reset)}}))};return{state:u,get:o,set:s,on:c,onChange:l,use:f,dispose:a,reset:i}};var lt=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var ft=function(e,t){var n=ct(e,t);ut(n);return n};function dt(e,t,n){return n={path:t,exports:{},require:function(e,t){return pt()}},e(n,n.exports),n.exports}function pt(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ht=dt((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.bindTo_=t.bind_=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.not=t.unsafeCoerce=t.identity=void 0;function n(e){return e}t.identity=n;t.unsafeCoerce=n;function r(e){return function(t){return!e(t)}}t.not=r;function i(e){return function(){return e}}t.constant=i;t.constTrue=i(true);t.constFalse=i(false);t.constNull=i(null);t.constUndefined=i(undefined);t.constVoid=t.constUndefined;function a(e){return function(t,n){return e(n,t)}}t.flip=a;function o(e,t,n,r,i,a,o,s,u){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return u(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}return}t.flow=o;function s(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e}t.tuple=s;function u(e){return e+1}t.increment=u;function c(e){return e-1}t.decrement=c;function l(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=l;function f(e){return function(t){return e.apply(void 0,t)}}t.tupled=f;function d(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=d;function p(e,t,n,r,i,a,o,s,u,c,l,f,d,p,h,v,m,g,y,b){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return a(i(r(n(t(e)))));case 7:return o(a(i(r(n(t(e))))));case 8:return s(o(a(i(r(n(t(e)))))));case 9:return u(s(o(a(i(r(n(t(e))))))));case 10:return c(u(s(o(a(i(r(n(t(e)))))))));case 11:return l(c(u(s(o(a(i(r(n(t(e))))))))));case 12:return f(l(c(u(s(o(a(i(r(n(t(e)))))))))));case 13:return d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(m(v(h(p(d(f(l(c(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=l;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var v=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=v}));var vt=dt((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getApplySemigroup=t.getOrd=t.getEq=t.getShow=t.URI=t.wilt=t.wither=t.sequence=t.traverse=t.partitionMap=t.partition=t.filterMap=t.filter=t.separate=t.compact=t.reduceRight=t.foldMap=t.reduce=t.duplicate=t.extend=t.throwError=t.zero=t.alt=t.altW=t.flatten=t.chainFirst=t.chain=t.of=t.apSecond=t.apFirst=t.ap=t.map=t.chainNullableK=t.mapNullable=t.fromNullableK=t.getOrElse=t.getOrElseW=t.toUndefined=t.toNullable=t.fold=t.fromEither=t.getRight=t.getLeft=t.tryCatch=t.fromPredicate=t.fromNullable=t.some=t.none=t.isNone=t.isSome=void 0;t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.apS=t.bind=t.bindTo=t.Do=t.getRefinement=t.exists=t.elem=t.option=t.MonadThrow=t.Witherable=t.Traversable=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.Alt=t.Foldable=t.Monad=t.Applicative=t.Functor=t.getMonoid=t.getLastMonoid=t.getFirstMonoid=t.getApplyMonoid=void 0;var n=function(e){return e._tag==="Some"};t.isSome=n;var r=function(e){return e._tag==="None"};t.isNone=r;t.none={_tag:"None"};var i=function(e){return{_tag:"Some",value:e}};t.some=i;function a(e){return e==null?t.none:t.some(e)}t.fromNullable=a;function o(e){return function(n){return e(n)?t.some(n):t.none}}t.fromPredicate=o;function s(e){try{return t.some(e())}catch(e){return t.none}}t.tryCatch=s;function u(e){return e._tag==="Right"?t.none:t.some(e.left)}t.getLeft=u;function c(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=c;t.fromEither=c;function l(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=l;function f(e){return t.isNone(e)?null:e.value}t.toNullable=f;function d(e){return t.isNone(e)?undefined:e.value}t.toUndefined=d;var p=function(e){return function(n){return t.isNone(n)?e():n.value}};t.getOrElseW=p;t.getOrElse=t.getOrElseW;function h(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return a(e.apply(void 0,t))}}t.fromNullableK=h;t.mapNullable=v;function v(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=v;var m=function(e,n){return ht.pipe(e,t.map(n))};var g=function(e,n){return ht.pipe(e,t.ap(n))};var y=function(e,n){return ht.pipe(e,t.chain(n))};var b=function(e,n,r){return ht.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return ht.pipe(e,n(t))}};var x=function(e,n,r){return ht.pipe(e,t.reduceRight(n,r))};var S=function(e){var n=t.traverse(e);return function(e,t){return ht.pipe(e,n(t))}};var I=function(e,n){return ht.pipe(e,t.alt(n))};var C=function(e,n){return ht.pipe(e,t.filter(n))};var _=function(e,n){return ht.pipe(e,t.filterMap(n))};var T=function(e,n){return ht.pipe(e,t.extend(n))};var A=function(e,n){return ht.pipe(e,t.partition(n))};var E=function(e,n){return ht.pipe(e,t.partitionMap(n))};var k=function(e){var n=t.wither(e);return function(e,t){return ht.pipe(e,n(t))}};var N=function(e){var n=t.wilt(e);return function(e,t){return ht.pipe(e,n(t))}};var F=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=F;var P=function(e){return function(n){return t.isNone(n)?t.none:t.isNone(e)?t.none:t.some(n.value(e.value))}};t.ap=P;var D=function(e){return ht.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var R=function(e){return ht.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=R;t.of=t.some;var M=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=M;var O=function(e){return t.chain((function(n){return ht.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=O;t.flatten=t.chain(ht.identity);var L=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=L;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var j=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=j;t.duplicate=t.extend(ht.identity);var V=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=V;var q=function(e){return function(n){return function(r){return t.isNone(r)?e.empty:n(r.value)}}};t.foldMap=q;var z=function(e,n){return function(r){return t.isNone(r)?e:n(r.value,e)}};t.reduceRight=z;t.compact=t.flatten;var H={left:t.none,right:t.none};var W=function(e){var n=ht.pipe(e,t.map((function(e){return{left:u(e),right:c(e)}})));return t.isNone(n)?H:n.value};t.separate=W;var G=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)?n:t.none}};t.filter=G;var K=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.filterMap=K;var X=function(e){return function(t){return{left:C(t,(function(t){return!e(t)})),right:C(t,e)}}};t.partition=X;var J=function(e){return ht.flow(t.map(e),t.separate)};t.partitionMap=J;var Y=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=Y;var $=function(e){return function(n){return t.isNone(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=$;var Q=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Q;var Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of({left:t.none,right:t.none}):e.map(n(r.value),(function(e){return{left:u(e),right:c(e)}}))}}};t.wilt=Z;t.URI="Option";function ee(e){return{show:function(n){return t.isNone(n)?"none":"some("+e.show(n.value)+")"}}}t.getShow=ee;function te(e){return{equals:function(n,r){return n===r||(t.isNone(n)?t.isNone(r):t.isNone(r)?false:e.equals(n.value,r.value))}}}t.getEq=te;function ne(e){return{equals:te(e).equals,compare:function(n,r){return n===r?0:t.isSome(n)?t.isSome(r)?e.compare(n.value,r.value):1:-1}}}t.getOrd=ne;function re(e){return{concat:function(n,r){return t.isSome(n)&&t.isSome(r)?t.some(e.concat(n.value,r.value)):t.none}}}t.getApplySemigroup=re;function ie(e){return{concat:re(e).concat,empty:t.some(e.empty)}}t.getApplyMonoid=ie;function ae(){return{concat:function(e,n){return t.isNone(e)?n:e},empty:t.none}}t.getFirstMonoid=ae;function oe(){return{concat:function(e,n){return t.isNone(n)?e:n},empty:t.none}}t.getLastMonoid=oe;function se(e){return{concat:function(n,r){return t.isNone(n)?r:t.isNone(r)?n:t.some(e.concat(n.value,r.value))},empty:t.none}}t.getMonoid=se;t.Functor={URI:t.URI,map:m};t.Applicative={URI:t.URI,map:m,ap:g,of:t.of};t.Monad={URI:t.URI,map:m,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:x};t.Alt={URI:t.URI,map:m,alt:I};t.Alternative={URI:t.URI,map:m,ap:g,of:t.of,alt:I,zero:t.zero};t.Extend={URI:t.URI,map:m,extend:T};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:m,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E};t.Traversable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence};t.Witherable={URI:t.URI,map:m,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E,wither:k,wilt:N};t.MonadThrow={URI:t.URI,map:m,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:m,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:x,traverse:S,sequence:t.sequence,zero:t.zero,alt:I,extend:T,compact:t.compact,separate:t.separate,filter:C,filterMap:_,partition:A,partitionMap:E,wither:k,wilt:N,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function ce(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=ce;function le(e){return function(n){return t.isSome(e(n))}}t.getRefinement=le;t.Do=t.of({});var fe=function(e){return t.map(ht.bindTo_(e))};t.bindTo=fe;var de=function(e,n){return t.chain((function(r){return ht.pipe(n(r),t.map((function(t){return ht.bind_(r,e,t)})))}))};t.bind=de;var pe=function(e,n){return ht.flow(t.map((function(t){return function(n){return ht.bind_(t,e,n)}})),t.ap(n))};t.apS=pe;var he=function(e){return function(n){var r=[];for(var i=0;i<n.length;i++){var a=e(i,n[i]);if(t.isNone(a)){return t.none}r.push(a.value)}return t.some(r)}};t.traverseArrayWithIndex=he;var ve=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=ve;t.sequenceArray=t.traverseArray(ht.identity)}));function mt(e){this.message=e}mt.prototype=new Error,mt.prototype.name="InvalidCharacterError";var gt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new mt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function yt(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(gt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return gt(t)}}function bt(e){this.message=e}function wt(e,t){if("string"!=typeof e)throw new bt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(yt(e.split(".")[n]))}catch(e){throw new bt("Invalid token specified: "+e.message)}}bt.prototype=new Error,bt.prototype.name="InvalidTokenError";var xt=function(){function e(){}e.prototype.getAustralianFundsAsync=function(e,t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Tt().url("super-choice/australian-funds?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Tt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()]}))}))};e.prototype.toSearchFilterQueryString=function(e){switch(e.type){case"partialMatch":return"search="+e.searchString+"&maxRecordCount="+e.maxRecordCount;case"usiMatch":return"usi="+e.usi}};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var St=new xt;var It={apiBaseUrl:vt.none,appBaseUrl:vt.none,profileId:vt.none,jwt:vt.none,superBuyer:vt.none,promotedFunds:vt.none,accountConfiguration:vt.none,profileConfiguration:vt.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false};var Ct=function(){function e(){var e=this;var t=ft(It),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=ht.pipe(t,vt.chain((function(e){return vt.fromNullable(wt(e).sub)})))}))}Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superBuyer",{get:function(){if(vt.isNone(this._state.superBuyer)){throw Error("User information is not set")}return this._state.superBuyer.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"apiBaseUrl",{get:function(){if(vt.isNone(this._state.apiBaseUrl)){throw Error("API base URL is not set")}return this._state.apiBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){if(vt.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(vt.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(vt.isNone(this._state.profileId)){throw Error("Failed to get Profile ID from JWT")}return this._state.profileId.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"defaultFundUsi",{get:function(){var e=ht.pipe(this._state.profileConfiguration,vt.map((function(e){return vt.fromNullable(e.defaultFundUsi)})),vt.flatten);if(vt.isSome(e)){return e}return ht.pipe(this._state.accountConfiguration,vt.map((function(e){return vt.fromNullable(e.defaultFundUsi)})),vt.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return ht.pipe(this._state.accountConfiguration,vt.map((function(e){return e.accountId})),vt.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return ht.pipe(this._state.superBuyer,vt.map((function(e){return e.partnerId})),vt.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(vt.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,St.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=vt.fromNullable(e.accountConfiguration);this._state.profileConfiguration=vt.fromNullable(e.profileConfiguration);this._state.superBuyer=vt.fromNullable(e.superBuyer);this._state.promotedFunds=vt.fromNullable(e.promotedFunds);return[2]}}))}))};return e}();var _t=new Ct;function Tt(){var e=_t.jwt;var t=_t.profileId;var n=_t.accountIdOrDefault;var r=_t.partnerIdOrDefault;return rt(_t.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var At=function(){function e(){}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.PostAnalyticsEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("analytics-events").post(e).res()]}))}))};return e}();var Et=function(){function e(){this.eventTrackingApi=At.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackFinancialProductViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductViewed:e})]}))}))};e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackFinancialProductAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductAccepted:e})]}))}))};e.prototype.TrackFinancialProductRejectedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({FinancialProductRejected:e})]}))}))};e.prototype.TrackSuperFundPrivacyConfirmationAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundPanelViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPanelViewed:e})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();function kt(){Nt({type:"appReady"})}function Nt(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function Ft(e,t){Nt({type:"contentResized",height:e,width:t})}function Pt(e){Nt({type:"pageNavigated",url:e})}function Dt(){Nt({type:"complete"})}function Rt(){Nt({type:"submitSuccess"})}var Mt={appReady:kt,resize:Ft,navigation:Pt,complete:Dt,submitSuccess:Rt};var Ot={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",promotedFundId:undefined};var Lt=ft(Ot).state;var Ut;(function(e){e["ConsentPage"]="/consent";e["ExistingChoicePage"]="/existing";e["ChoicePage"]="/";e["SlateJoin"]="/slate/join/";e["PromotedFundJoinV1"]="/promoted-fund/join/v1";e["PromotedFundJoinV2"]="/promoted-fund/join/v2";e["MyOwnFund"]="/super-choice/my-own-fund/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(Ut||(Ut={}));var Bt=[n("stencil-route",{url:Ut.ConsentPage,component:"sss-consent-page"}),n("stencil-route",{url:Ut.ExistingChoicePage,component:"sss-existing-choice-page"}),n("stencil-route",{exact:true,url:Ut.ChoicePage,component:"sss-super-choice-page"}),n("stencil-route",{url:Ut.SlateJoin,component:"sss-slate-join-page"}),n("stencil-route",{url:Ut.PromotedFundJoinV1,component:"sss-promoted-fund-join-v1-page"}),n("stencil-route",{url:Ut.PromotedFundJoinV2,component:"sss-promoted-fund-join-v2-page"}),n("stencil-route",{url:Ut.MyOwnFund,component:"sss-my-own-fund"}),n("stencil-route",{url:Ut.SelfManagedFund,component:"sss-self-managed-fund"}),n("stencil-route",{url:Ut.DefaultFund,component:"sss-default-fund"}),n("stencil-route",{url:Ut.StandardChoice,component:"sss-standard-choice-form"}),n("stencil-route",{url:Ut.Success,component:"sss-success"})];var jt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);Mt.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){Lt.handleSubmitFn=e.handleSubmitFn;Lt.fundName=e.fundName;Lt.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,Ut.StandardChoice)};e.prototype.toExternalUrl=function(e){var t=new URL(e);t.searchParams.append("_extnav","true");return t.href};Object.defineProperty(e.prototype,"appBaseUrl",{get:function(){var e=_t.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var Vt=new jt;var qt=e("sss_consent_page",function(){function e(e){t(this,e);this.promotedFunds=_t.promotedFunds;this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){var e={promotedFundsShown:this.promotedFunds};return this.eventTrackingService.TrackSuperFundDisclaimerViewedAsync(e)};e.prototype.render=function(){var e=this;return n("div",null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center leading-8"},"Important information about super"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"border shadow-sm p-4 pb-6 sm:p-6 sm:pb-8 max-w-560 rounded-lg"},n("div",{class:"sm:text-lg font-bold leading-6"},"By clicking “Continue” you acknowledge that:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 text-sm leading-6"},n("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;"),n("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;"),n("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;"),n("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.")),n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSuperFundDisclaimerAccepted()}},"Continue"))))};e.prototype.handleSuperFundDisclaimerAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e={promotedFundsShown:this.promotedFunds};return[4,this.eventTrackingService.TrackSuperFundDisclaimerAcceptedAsync(e)];case 1:t.sent();Vt.navigateInternally(this.history,Ut.ChoicePage);return[2]}}))}))};return e}());var zt;(function(e){e["MyOwnFund"]="Your current super fund";e["DefaultFund"]="Your employer's default fund";e["SelfManagedFund"]="Your self-managed super fund"})(zt||(zt={}));var Ht={continueAllowed:false,nextRoute:"/",myOwnFundForm:{fundUsi:K,fundName:K,memberNumber:K},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:""},currentCustomFundType:zt.MyOwnFund,customFunds:[{label:zt.MyOwnFund,value:Ut.MyOwnFund},{label:zt.SelfManagedFund,value:Ut.SelfManagedFund},{label:zt.DefaultFund,value:Ut.DefaultFund}]};var Wt=ft(Ht),Gt=Wt.state,Kt=Wt.reset;var Xt=Gt.customFunds;var Jt=e("sss_custom_fund",function(){function e(e){t(this,e);this.currentCustomFund=Xt[0];this.fundOptionsList=Xt;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e="";if(window.location.pathname.includes(Ut.MyOwnFund))e=Ut.MyOwnFund;if(window.location.pathname.includes(Ut.DefaultFund))e=Ut.DefaultFund;if(window.location.pathname.includes(Ut.SelfManagedFund))e=Ut.SelfManagedFund;this.currentCustomFund=Xt.find((function(t){return t.value===e}))||Xt[0];Vt.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},n("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"}))};var r=function(){return n("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"},n("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 n("div",{class:"max-w-560 relative"},n("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),n("div",{class:"mt-1 mb-4"},n("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:function(){return e.showFundOptionsSelection=!e.showFundOptionsSelection}},n("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),n("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},n(t,null))),this.showFundOptionsSelection&&n("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((function(t){return n("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;Vt.navigateInternally(e.history,t.value)}},n("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&n("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},n(r,null)))})))),n("div",{onClick:function(){return e.showFundOptionsSelection=false}},n("slot",null)))};return e}());te(Jt);var Yt=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return St.getAustralianFundsAsync({type:"partialMatch",searchString:e,maxRecordCount:t})};e.prototype.getActiveFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,St.getAustralianFundsAsync({type:"usiMatch",usi:e})];case 1:t=n.sent();if(t.length===1){return[2,vt.some(t[0])]}return[2,vt.none]}}))}))};e.prototype.getFundByUsiAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,St.getAustralianFundsAsync({type:"usiMatch",usi:e},true)];case 1:t=n.sent();if(t.length===1){return[2,vt.some(t[0])]}return[2,vt.none]}}))}))};return e}();var $t=new Yt;var Qt=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/default").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.submitCustomFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/custom-fund").post(e).badRequest((function(){throw new Error("Failed to process custom fund join request")})).text()]}))}))};e.prototype.submitSelfManagedFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};return e}();var Zt=new Qt;var en=e("sss_default_fund",function(){function e(e){t(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=Et.Instance}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=_t.defaultFundUsi;if(vt.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,$t.getActiveFundByUsiAsync(e.value)];case 1:t=n.sent();if(vt.isNone(t)){this.isInvalidDefaultFund=true;return[2]}this.defaultFund=t.value;this.defaultFundProductName=t.value.productName;return[2]}}))}))};e.prototype.componentDidLoad=function(){var e,t,n,r;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:(t=(e=this.defaultFund)===null||e===void 0?void 0:e.usi)!==null&&t!==void 0?t:"",fundName:(r=(n=this.defaultFund)===null||n===void 0?void 0:n.productName)!==null&&r!==void 0?r:"",promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},n("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&&n("div",null,n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),n("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)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("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)),n("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),n("div",{class:"text-sm text-gray-700"},n("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),n("ul",{class:"list-disc list-outside pl-5"},n("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),n("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),n("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&n("div",{class:"mb-4"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(this.isInvalidDefaultFund){return[2]}Vt.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Zt.submitDefaultFundChoiceAsync({standardChoiceFormSignature:t})];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var tn="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var nn=3;var rn=e("sss_dropdown_async",function(){function e(e){var r=this;t(this,e);this.valueChanged=s(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=nn;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var t;return r.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=r.minSearchStringLength&&((t=r.selectedOption)===null||t===void 0?void 0:t.label)!==e};this.onBeginSearch=function(e){r.inputValue=e;r.searchState="in progress"};this.onCompleteSearch=function(e){r.filteredOptions=e;r.highlightedOptionIndex=undefined;r.searchState="done"};this.renderFilteredResults=function(){if(r.searchState==="pristine"){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(r.searchState==="in progress"){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(r.filteredOptions.length===0){return n("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return r.filteredOptions.map((function(e,t){return n("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":r.isOptionSelected(e)},onClick:function(n){r.highlightedOptionIndex=t;r.toggleDropdown(false);r.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,t;r.inputValue=(t=(e=r.selectedOption)===null||e===void 0?void 0:e.label)!==null&&t!==void 0?t:""};this.toggleDropdown=function(e){r.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var t="Enter";var n="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case n:r.toggleDropdown(true);r.highlightItem("Next");return true;case i:r.highlightItem("Prev");return true;case t:if(r.highlightedOptionIndex!==undefined){r.toggleDropdown(false);r.selectOption(r.filteredOptions[r.highlightedOptionIndex])}return true;case a:r.inputElement.blur();return true}return false};this.highlightItem=function(e){var t=e==="Next"?1:-1;if(r.filteredOptions.length===0){return}r.highlightedOptionIndex=r.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,r.highlightedOptionIndex+t),r.filteredOptions.length-1);if(r.highlightedOptionIndex!==undefined)r.selectOption(r.filteredOptions[r.highlightedOptionIndex])};this.selectOption=function(e){r.selectedOption=e;r.inputValue=e.label;r.valueChanged.emit(e)};this.isOptionSelected=function(e){var t;return((t=r.selectedOption)===null||t===void 0?void 0:t.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=P(this.inputElement,"keyup").pipe(L(500),p((function(t){return e.inputElement.value})),S(),I(this.shouldExecuteSearch),V(this.onBeginSearch),k(this._searchFunction),V(this.onCompleteSearch)).subscribe()};e.prototype.disconnectedCallback=function(){this.searchResultsSubscription.unsubscribe()};e.prototype.handleFocus=function(){this.toggleDropdown(true)};e.prototype.handleBlur=function(){if(this.isMouseOver){return}this.toggleDropdown(false);this.resetInput()};e.prototype.handleKeyDown=function(e){if(this.processKeyboardNavigation(e)){e.preventDefault()}};e.prototype.render=function(){var e=this;var t;return n(o,null,n("div",{class:"relative"},n("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":true,"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:function(t){return e.inputElement=t}}),n("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),n("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":true,hidden:!this.isDropdownVisible},onMouseEnter:function(t){return e.isMouseOver=true},onMouseLeave:function(t){return e.isMouseOver=false}},this.renderFilteredResults())))};Object.defineProperty(e.prototype,"_searchFunction",{get:function(){if(this.searchFunction===undefined){throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction")}return this.searchFunction},enumerable:false,configurable:true});return e}());rn.style=tn;var an={Id:"slate",Name:"Slate Super",Logo:"logo-slate.png",PdsUrl:"https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Usi:"32367272075001",DiversaAbn:"49 006 421 638"};var on={Id:"australian-retirement-trust",Name:"Australian Retirement Trust",Logo:"logo-art.svg",PdsUrl:"https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",Abn:"60 905 115 063"};var sn={Id:"aware",Name:"Aware Super",Logo:"logo-aware.svg",PdsUrl:"https://aware.com.au/member/forms-and-resources/pds/FSS",Abn:"53 226 460 365"};var un={Id:"active",Name:"Active Super",Logo:"logo-active.svg",PdsUrl:"https://www.activesuper.com.au/pds",Abn:"28 901 371 321"};var cn={Id:"australian-ethical",Name:"Australian Ethical",Logo:"logo-aus-eth.svg",PdsUrl:"https://www.australianethical.com.au/super/pds-forms/",Abn:"43 079 259 733"};var ln={Id:"virgin",Name:"Virgin Money Super",Logo:"logo-virgin.svg",PdsUrl:"https://virginmoney.com.au/superannuation/",Abn:"19 905 422 981"};var fn={Id:"spirit",Name:"Spirit Super",Logo:"logo-spirit.svg",PdsUrl:"https://www.spiritsuper.com.au/pds",Abn:"74 559 365 913"};var dn={Id:"first-super",Name:"First Super",Logo:"logo-first.svg",PdsUrl:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/",Abn:"56 286 625 181"};var pn=[{dtoPropName:"slate",id:an.Id},{dtoPropName:"australianRetirementTrust",id:on.Id},{dtoPropName:"aware",id:sn.Id},{dtoPropName:"active",id:un.Id},{dtoPropName:"australianEthical",id:cn.Id},{dtoPropName:"virgin",id:ln.Id},{dtoPropName:"spirit",id:fn.Id},{dtoPropName:"firstSuper",id:dn.Id}];var hn=function(e){switch(e){case an.Id:return an.Name;case on.Id:return on.Name;case sn.Id:return sn.Name;case un.Id:return un.Name;case cn.Id:return cn.Name;case ln.Id:return ln.Name;case fn.Id:return fn.Name;case dn.Id:return dn.Name;default:return}};var vn=function(e){switch(e){case an.Id:return an.Usi;default:return}};var mn=function(e){var t="";switch(e){case an.Id:t=an.Logo;break;case on.Id:t=on.Logo;break;case sn.Id:t=sn.Logo;break;case un.Id:t=un.Logo;break;case cn.Id:t=cn.Logo;break;case ln.Id:t=ln.Logo;break;case fn.Id:t=fn.Logo;break;case dn.Id:t=dn.Logo;break;default:return}if(t!=="")return a("assets/"+t)};function gn(e){if("slate"in e){return K}else if("australianRetirementTrust"in e){return X(e.australianRetirementTrust.usi)}else if("aware"in e){return X(e.aware.usi)}else if("active"in e){return X(e.active.usi)}else if("australianEthical"in e){return X(e.australianEthical.usi)}else if("virgin"in e){return X(e.virgin.usi)}else if("spirit"in e){return X(e.spirit.usi)}else if("firstSuper"in e){return X(e.firstSuper.usi)}else{return K}}function yn(e){if("promoted"in e){return gn(e.promoted)}else if("myOwnFund"in e){return X(e.myOwnFund.usi)}else if("smsf"in e){return K}else if("default"in e){return X(e.default.usi)}else{return K}}function bn(e){if("slate"in e){return X(e.slate.memberNumber)}else if("australianRetirementTrust"in e){return X(e.australianRetirementTrust.memberNumber)}else if("aware"in e){return X(e.aware.memberNumber)}else if("active"in e){return X(e.active.memberNumber)}else if("australianEthical"in e){return X(e.australianEthical.memberNumber)}else if("virgin"in e){return X(e.virgin.memberNumber)}else if("spirit"in e){return X(e.spirit.memberNumber)}else if("firstSuper"in e){return X(e.firstSuper.memberNumber)}else{return K}}function wn(e){if("promoted"in e){return bn(e.promoted)}else if("myOwnFund"in e){return X(e.myOwnFund.memberNumber)}else if("smsf"in e){return K}else if("default"in e){return K}else{return K}}var xn=function(){function e(){}e.prototype.GetExistingFundAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,o,s,u,s,c,l;return __generator(this,(function(f){switch(f.label){case 0:n=_t.superBuyer.superChoice;r=(e=_t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!n)return[2,K];if(!r)return[2,K];i=n.dateSubmitted==undefined?K:X(new Date(n.dateSubmitted));a=yn(r);o=wn(r);if(!("promoted"in r))return[3,1];s=pn.find((function(e){return e.dtoPropName in r.promoted}));if((s===null||s===void 0?void 0:s.id)==undefined)return[2,K];return[2,X({type:"Promoted Fund",id:s.id,name:(t=hn(s.id))!==null&&t!==void 0?t:"",usi:a,valid:"Active",memberNumber:o,lastNominatedAt:i})];case 1:if(!("smsf"in r))return[3,2];return[2,X({type:"Self Managed Fund",name:r.smsf.fundName,valid:"Unknown",lastNominatedAt:i})];case 2:if(!("myOwnFund"in r))return[3,4];u=r.myOwnFund.usi;return[4,this.getFundByUsiAsync(u)];case 3:s=f.sent();return[2,X({type:"My Own Fund",name:W(s)?s.value.productName:u,usi:a,valid:this.toFundValidState(s),memberNumber:o,lastNominatedAt:i})];case 4:if(!("default"in r))return[3,6];c=r.default.usi;return[4,this.getFundByUsiAsync(c)];case 5:l=f.sent();return[2,X({type:"Default Fund",name:W(l)?l.value.productName:c,usi:a,valid:this.toFundValidState(l),lastNominatedAt:i})];case 6:return[2,K]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/retain-super-fund").post(e).badRequest((function(){throw new Error("Failed to process default fund join request")})).text()]}))}))};e.prototype.getFundByUsiAsync=function(e){return $t.getFundByUsiAsync(e)};e.prototype.toFundValidState=function(e){if(W(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var Sn=new xn;var In=function(){function e(){}e.isNewComplianceEnabled=function(){return true};return e}();var Cn=e("sss_existing_choice_page",function(){function e(e){t(this,e);this.eventTrackingService=Et.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return W(e)?e.value:undefined}function n(e){return"usi"in e?t(e.usi):undefined}function r(e){return"memberNumber"in e?t(e.memberNumber):undefined}return{fundType:e.type.toString(),fundName:e.name,fundUsi:n(e),memberNumber:r(e),fundStatus:e.valid.toString(),lastNominatedAt:W(e.lastNominatedAt)?e.lastNominatedAt.value.toISOString():""}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Sn.GetExistingFundAsync()];case 1:e=t.sent();if(W(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){return n("div",{class:"flex justify-center"},n("img",{class:"h-16 object-contain w-full max-w-140",alt:hn(e.id),src:mn(e.id)}))};var r=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},n("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"}))))};var i=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},n("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"}))))};var a=function(){return n("div",{class:"flex h-20 justify-center items-center relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-10 w-10 absolute"},n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},n("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 n("div",null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super choice"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"max-w-400 w-full"},n("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},n("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":return n(t,{id:e.existingFund.id});case"Self Managed Fund":return n(i,null);case"My Own Fund":return n(r,null);case"Default Fund":return n(a,null)}}(),n("div",{class:"sm:text-lg font-bold leading-6"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";default:return e.existingFund.name}}())),n("div",{class:"mt-6"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),n("div",{class:"mt-4"},n("sss-button",{fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund")))))};e.prototype.handleFundNominationAccepted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,Sn.submitRetainSuperFundAsync(e)];case 1:t.sent();_t.markSuperSelectionAsSubmitted();return[2]}}))}))};e.prototype.handleFundNominationDeclined=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundNominationDetail(this.existingFund);return[4,this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(e)];case 1:t.sent();Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage);return[2]}}))}))};return e}());var _n=e("sss_footer_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"text-center text-gray-500 text-xs mt-8 sm:mt-20 w-full max-w-960 mx-auto"},n("span",null,"Powered by Flare"),n("p",{class:"block text-transparent"},"v",H),!In.isNewComplianceEnabled()&&n("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."))};return e}());var Tn=e("sss_header_section",function(){function e(e){t(this,e)}e.prototype.render=function(){return n("div",{class:"flex justify-center"},n("div",{class:"text-center max-w-800"},n("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),In.isNewComplianceEnabled()&&n(u,null,n("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."),n("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},n("stencil-route-link",{exact:true,url:Ut.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"),n("stencil-route-link",{exact:true,url:Ut.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")))))};return e}());var An=e("sss_iframe_host",function(){function e(e){t(this,e)}e.prototype.componentDidLoad=function(){this.build(this.iframeElement)};e.prototype.render=function(){var e=this;return n("div",{class:"w-screen"},n("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:function(t){return e.iframeElement=t}}))};return e}());var En=e("sss_loading_indicator",function(){function e(e){t(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return n("div",{class:"inline-block animate-spin"},n("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("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"}),n("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:this.theme==="primary"?"fill-primary-base":"fill-white"})))};return e}());var kn=e("sss_loading_page",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,{class:"flex flex-col justify-center items-center"},n("h5",{class:"text-lg"},"Loading your superannuation step"),n("sss-loading-indicator",null))};return e}());var Nn=e("sss_my_own_fund",function(){function e(e){t(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.isSubmitDisabled=true;this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:Y(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},n("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("div",{class:"ml-2"},n("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},n("li",null,"Make sure you are a current member of the fund before completing this step."),n("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),n("sss-my-own-fund-inputs",{myOwnFundForm:Gt.myOwnFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){Gt.myOwnFundForm=Object.assign(Object.assign({},Gt.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}}),this.isNotAllInformationProvidedMessageVisible&&n("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.")),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},n("div",{class:"mb-4"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(n){this.formState="validated";if(!this.formElement.checkValidity()){return[2]}e=W(Gt.myOwnFundForm.fundUsi)&&W(Gt.myOwnFundForm.memberNumber);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}Vt.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(Gt.myOwnFundForm.fundName),handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t={fundUsi:this.getOrError(Gt.myOwnFundForm.fundUsi),memberNumber:this.getOrError(Gt.myOwnFundForm.memberNumber),standardChoiceFormSignature:e};return[4,Zt.submitCustomFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.getOrError=function(e){return ht.pipe(e,Q((function(){throw new Error("Option value is none.")})))};return e}());te(Nn);var Fn=e("sss_my_own_fund_inputs",function(){function e(e){var n=this;t(this,e);this.formChanged=s(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=10;this.searchFundsAsync=function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,$t.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=n.sent();return[2,t.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}))]}}))}))}}e.prototype.render=function(){var e=this;return n("div",null,n("div",null,n("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),n("div",{class:"mt-1"},n("sss-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:true,requiredValidationMessage:"Select a fund",placeholder:"Type to search by name or USI...",value:this.selectedOption,onValueChanged:function(t){e.selectedOption=t.detail;e.updateFund(t.detail)},showValidationErrors:this.showValidationErrors})),W(this.myOwnFundForm.fundUsi)&&n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),n("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))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Member number"),n("div",{class:"mt-1"},n("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":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:true,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:Y(Gt.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))))};e.prototype.updateFund=function(e){this.formChanged.emit({fundUsi:X(e.value),fundName:X(e.label)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:X(e)})};return e}());var Pn=function(){function e(){}e.prototype.submitChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/promoted-fund").post(e).badRequest((function(){throw new Error("Failed to process Promoted Fund choice request")})).text()]}))}))};return e}();var Dn=new Pn;var Rn={fundId:""};var Mn=ft(Rn).state;var On=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.environmentDiscriminator=function(){return e.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0]};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+".flarehr.com/promoted-fund-join/embed/v1.0/web"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:_t.partnerIdOrDefault,accountId:_t.accountIdOrDefault,fundId:Mn.fundId,authToken:_t.jwt});var r=function(n){var i;var a=n.data;if(!a){return}if(a.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(a.type){case"cancel":Vt.navigateInternally(t,Ut.ChoicePage);break;case"success":if(a.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:(i=hn(Mn.fundId))!==null&&i!==void 0?i:"",handleSubmitFn:function(e){return Dn.submitChoiceAsync(Object.assign(Object.assign({},Mn),{memberNumber:a.memberNumber,usi:a.usi.replace(/ /g,""),standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)}))},promotedFundId:Mn.fundId});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(a.sender==="promoted-fund-join"){switch(a.type){case"contentResized":e.height=a.height>0?a.height:e.height;e.width=a.width>0?a.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);Mt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=_t.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:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var Ln=new On;var Un=e("sss_promoted_fund_join_v1_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return Ln.build(t,e.history)}})};return e}());var Bn=function(){function e(){var e=this;this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.promotedFundJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"api.simplefinancialchoices.com/promoted-funds/embed"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var n=Object.assign(Object.assign({},this.getMemberData()),{partnerId:_t.partnerIdOrDefault,accountId:_t.accountIdOrDefault,fundId:Mn.fundId,authToken:_t.jwt});var r=function(n){var i;var a=n.data;if(!a){return}if(a.sender==="promoted-fund-redirect"){window.removeEventListener("message",r);switch(a.type){case"cancel":Vt.navigateInternally(t,Ut.ChoicePage);break;case"success":if(a.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:(i=hn(Mn.fundId))!==null&&i!==void 0?i:"",handleSubmitFn:function(e){return Dn.submitChoiceAsync(Object.assign(Object.assign({},Mn),{memberNumber:a.memberNumber,usi:a.usi.replace(/ /g,""),standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)}))},promotedFundId:Mn.fundId});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(a.sender==="promoted-fund-join"){switch(a.type){case"contentResized":e.height=a.height>0?a.height:e.height;e.width=a.width>0?a.width:e.width;break;case"pageNavigated":window.scroll(e.offsetLeft,e.offsetTop);Mt.navigation(window.location.href);break}}};window.addEventListener("message",r);var i=e.contentDocument;i.open();var a=i.createElement("form");a.method="POST";a.target="_self";a.action=this.promotedFundJoinAppUrl();var o;for(o in n){var s=n[o];if(s!==undefined){var u=document.createElement("input");u.type="hidden";u.name=o;u.value=s;a.append(u)}}i.appendChild(a);i.close();a.submit()};e.prototype.getMemberData=function(){var e,t;var n=_t.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:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};return e}();var jn=new Bn;var Vn=e("sss_promoted_fund_join_v2_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return jn.build(t,e.history)}})};return e}());function qn(e){var t=e.split("").map(Number);var n=t.every((function(e){return!isNaN(e)}));var r=[10,1,3,5,7,9,11,13,15,17,19];if(!n||t.length!==r.length){return false}t[0]--;var i=t.reduce((function(e,t,n){return e+t*r[n]}),0);return i%89===0}var zn=e("sss_self_managed_fund",function(){function e(e){var n=this;t(this,e);this.isSubmitDisabled=true;this.isAbnValid=qn(Gt.selfManagedFundForm.fundAbn);this.eventTrackingService=Et.Instance;this.success=function(){Vt.navigateInternallyToStandardChoice({history:n.history,fundName:"Self-managed super fund",handleSubmitFn:function(e){return __awaiter(n,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t={smsfChoice:{abn:Gt.selfManagedFundForm.fundAbn,fundName:Gt.selfManagedFundForm.fundName,fundAddress:{addressLine1:Gt.selfManagedFundForm.addressLine1,addressLine2:Gt.selfManagedFundForm.addressLine2,city:Gt.selfManagedFundForm.city,state:Gt.selfManagedFundForm.state,postcode:Gt.selfManagedFundForm.postcode},bsb:Gt.selfManagedFundForm.bsb,bankAccountName:Gt.selfManagedFundForm.bankAccountName,bankAccountNumber:Gt.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:Gt.selfManagedFundForm.fundEsa},standardChoiceFormSignature:e};return[4,Zt.submitSelfManagedFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}})}}e.prototype.componentDidLoad=function(){this.updateIsSubmitDisabled();return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:_t.promotedFunds,defaultFundUsiSet:Y(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;return n(o,null,n("sss-header-section",{currentPage:"own-fund"}),n("div",{class:"flex justify-center mt-11"},n("sss-custom-fund",null,n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t}},n("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"},n("p",{class:"sm:text-lg font-bold"},"Fund details"),n("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-exclamation.svg")})),n("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."))),n("sss-self-managed-fund-inputs",{fundForm:Gt.selfManagedFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){Gt.selfManagedFundForm=Object.assign(Object.assign({},Gt.selfManagedFundForm),t.detail);if(t.detail.isAbnValid!==undefined)e.isAbnValid=t.detail.isAbnValid;e.updateIsSubmitDisabled()}})),n("div",{class:"flex justify-center mt-8"},n("div",{class:"sm:max-w-320 w-full"},n("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{fillWidth:true,variant:"secondary"},"Back"))))))))};e.prototype.updateIsSubmitDisabled=function(){this.isSubmitDisabled=!this.formElement.checkValidity()||!this.isAbnValid};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.formState="validated";if(this.formElement.checkValidity())this.success();return[2]}))}))};return e}());te(zn);var Hn={"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"};var Wn=e("sss_self_managed_fund_inputs",function(){function e(e){t(this,e);this.formChanged=s(this,"formChanged",7);this.isAbnValid=false;this.isAbnTouched=false;this.currentBank=K;this.addressErrorMessage=K;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}$/)}e.prototype.render=function(){var e=this;var 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":true,"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 n("div",null,n("div",null,n("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundName",id:"fundName",value:Gt.selfManagedFundForm.fundName,onChange:function(t){return e.updateFormField("fundName",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund name"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund ABN"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundAbn",id:"fundAbn",value:Gt.selfManagedFundForm.fundAbn,inputmode:"numeric",pattern:"[0-9]*",onKeyUp:function(t){e.updateFormField("fundAbn",t.target.value.trim());e.isAbnValid=qn(t.target.value);e.updateFormField("isAbnValid",e.isAbnValid)},onBlur:function(){return e.isAbnTouched=true}}),(this.isAbnTouched||this.showValidationErrors)&&!this.isAbnValid&&n("div",{class:"mt-2 text-sm text-red-600"},"Enter a valid fund ABN (digits only)"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Electronic service address alias (ESA)"),n("div",{class:"mt-1"},n("input",{type:"text",class:t,required:true,minlength:"2",name:"fundEsa",id:"fundEsa",value:Gt.selfManagedFundForm.fundEsa,onChange:function(t){return e.updateFormField("fundEsa",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid fund ESA"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),n("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},n("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none rounded-t-md shadow-none":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1",value:Gt.selfManagedFundForm.addressLine1,onChange:function(t){e.updateFormField("addressLine1",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.addressLine1Element=t}}),n("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"addressLine2",id:"addressLine2",value:Gt.selfManagedFundForm.addressLine2,onChange:function(t){return e.updateFormField("addressLine2",t.target.value.trim())}}),n("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},t),{"rounded-none shadow-none":true}),name:"city",required:true,id:"city",value:Gt.selfManagedFundForm.city,onChange:function(t){e.updateFormField("city",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.cityElement=t}}),n("div",{class:"flex -space-x-px"},n("div",{class:"w-1/2 flex-1 min-w-0"},n("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},t),{"rounded-none rounded-bl-md shadow-none":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:Gt.selfManagedFundForm.postcode,inputmode:"numeric",onChange:function(t){e.updateFormField("postcode",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.postcodeElement=t}})),n("div",{class:"flex-1 min-w-0"},n("select",{class:Object.assign(Object.assign({},t),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.fundForm.state!==undefined}),name:"state",required:true,id:"state",onChange:function(t){e.updateFormField("state",t.target.value.trim());e.updateAddressErrorMessage()},ref:function(t){return e.stateElement=t}},n("option",{disabled:true,selected:this.fundForm.state!==undefined,value:""},"State"),this.stateOptions.map((function(t){return n("option",{value:t.value,selected:e.fundForm.state===t.value},t.label)})))))),W(this.addressErrorMessage)&&this.showValidationErrors&&n("div",{class:"mt-2 text-sm text-red-600"},this.addressErrorMessage.value)),n("h3",{class:"text-lg font-bold mt-6"},"Fund bank details"),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Account name"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bankAccountName",minlength:"2",id:"bankAccountName",value:Gt.selfManagedFundForm.bankAccountName,onChange:function(t){return e.updateFormField("bankAccountName",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account name"))),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"BSB"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bsb",id:"bsb",minlength:"6",maxlength:"7",inputmode:"numeric",onKeyUp:function(t){return e.updateCurrentBank(t)},pattern:this.bsbRegex.source,value:Gt.selfManagedFundForm.bsb}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid BSB"))),W(this.currentBank)&&n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Bank name"),n("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)),n("div",{class:"mt-3"},n("label",{class:"text-sm font-medium text-gray-700"},"Account number"),n("div",{class:"mt-1"},n("input",{type:"text",required:true,class:t,name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,inputmode:"numeric",value:Gt.selfManagedFundForm.bankAccountNumber,onKeyUp:function(t){return e.updateCurrentBankAccountNumber(t)},onChange:function(t){return e.updateFormField("bankAccountNumber",t.target.value.trim())}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid bank account number"))))};e.prototype.updateFormField=function(e,t){var n;this.formChanged.emit((n={},n[e]=t,n))};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.updateCurrentBank=function(e){var t=this.filterDigits(e.target.value);var n=t.substring(0,2);var r=t.substring(0,3);var i=Hn[n];var a=Hn[r];if(i)this.currentBank=X(i);if(a)this.currentBank=X(a);if(t===""||t.length>6)this.currentBank=K;this.updateFormField("bsb",t)};e.prototype.updateCurrentBankAccountNumber=function(e){var t=this.filterDigits(e.target.value);this.updateFormField("bankAccountNumber",t)};e.prototype.updateAddressErrorMessage=function(){var e=K;if(G(e)&&!this.addressLine1Element.checkValidity()){e=X("Enter a valid address line 1")}if(G(e)&&!this.cityElement.checkValidity()){e=X("Enter a valid city/suburb")}if(G(e)&&!this.postcodeElement.checkValidity()){e=X("Enter a valid post code")}if(G(e)&&!this.stateElement.checkValidity()){e=X("Select a state")}this.addressErrorMessage=e};return e}());var Gn=undefined&&undefined.__decorate||function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(o=e[s])a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};var Kn;(function(e){e[e["Unauthorized"]=0]="Unauthorized";e[e["Authenticated"]=1]="Authenticated";e[e["Error"]=2]="Error"})(Kn||(Kn={}));var Xn=function(){function e(){}return e}();function Jn(){return{authenticationState:Kn.Unauthorized,jwt:K,reactNativeInterop:K,iframeInterop:K,appConfiguration:K}}var Yn=function(e){__extends(t,e);function t(){return e.call(this,Jn())||this}return t}(_);Yn=Gn([C({name:"sss-session",resettable:true})],Yn);var $n=new Yn;var Qn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.store=t;return n}t.prototype.isReactNativeInteropEnabled=function(){return W(this.getValue().reactNativeInterop)};t.prototype.isIframeInteropEnabled=function(){return W(this.getValue().iframeInterop)};t.prototype.getIframeInteropMode=function(){var e=this.getValue().iframeInterop;if(G(e)){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 e.value};return t}(T);var Zn=new Qn($n);var er=function(){function e(){}e.prototype.submitSlateChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Tt().url("super-choice/slate").post(e).badRequest((function(){throw new Error("Failed to process Slate join request")})).text()]}))}))};return e}();var tr=new er;var nr=function(){function e(){var e=this;this.hostIsLocalSuperSelection=function(){return window.location.origin==="http://localhost:7100"};this.hostIsDeployed=function(){return window.location.origin.endsWith("partner.flarehr.com")};this.skipConsolidation=function(){return Zn.isReactNativeInteropEnabled()?"true":"false"};this.skipInsurance=function(){return Zn.isReactNativeInteropEnabled()?"true":"false"};this.environmentDiscriminator=function(){var e=window.location.hostname.toLowerCase().split(".")[0];switch(e){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return e.replace("partner","");default:return"autodev-"}};this.slateJoinAppUrl=function(){return"https://"+e.environmentDiscriminator()+"join.slatesuper.com.au/confirm"}}e.prototype.build=function(e,t){if(!(e===null||e===void 0?void 0:e.contentDocument))return;var 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";var r=n+"/slate-redirect.html";var i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:r,cancelRedirectUrl:r,skipConsolidation:this.skipConsolidation(),skipInsurance:this.skipInsurance()});if(this.includeJwt()){i.authToken=_t.jwt}var a=function(n){var r=n.data,i=n.origin;if(!r){return}if(r.sender==="slate-redirect"){window.removeEventListener("message",a);switch(r.type){case"success":if(r.memberNumber){Vt.navigateInternallyToStandardChoice({history:t,fundName:an.Name,handleSubmitFn:function(e){return tr.submitSlateChoiceAsync({memberNumber:r.memberNumber,standardChoiceFormSignature:e,shownFunds:_t.promotedFunds,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})},promotedFundId:an.Id});break}default:Vt.navigateInternally(t,Ut.ChoicePage);break}return}if(r.sender==="flare"&&i.endsWith("join.slatesuper.com.au")){switch(r.type){case"contentResized":e.height=r.height>0?r.height:e.height;e.width=r.width>0?r.width:e.width;break}}};window.addEventListener("message",a);var o=e.contentDocument;o.open();var s=o.createElement("form");s.method="POST";s.target="_self";s.action=this.slateJoinAppUrl();var u;for(u in i){var c=i[u];if(c!==undefined){var l=document.createElement("input");l.type="hidden";l.name=u;l.value=c;s.append(l)}}o.appendChild(s);o.close();s.submit()};e.prototype.getSlateJoinMemberData=function(){var e,t;var n=_t.superBuyer;var r=function(e){switch(e){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}};return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:r(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:(e=n.tfn)!==null&&e!==void 0?e:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:(t=n.userProfile.address.addressLine2)!==null&&t!==void 0?t:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}};e.prototype.includeJwt=function(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)};return e}();var rr=new nr;var ir=e("sss_slate_join_page",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=this;return n("sss-iframe-host",{build:function(t){return rr.build(t,e.history)}})};return e}());var ar=e("sss_standard_choice_form",function(){function e(e){t(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true}e.prototype.render=function(){var e=this;return n(o,null,n("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),n("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."),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"max-w-560"},n("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},Lt.promotedFundId&&mn(Lt.promotedFundId)&&n("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"},n("img",{class:"h-16 max-w-140 sm:h-12 sm:max-w-[100px] object-contain",alt:Lt.fundName,src:mn(Lt.promotedFundId)})),n("div",{class:"flex justify-between w-full"},n("div",null,n("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),n("div",{class:"text-sm mt-2"},Lt.fundName)),n("div",{class:"grid content-center ml-4"},n("stencil-route-link",{url:Ut.ChoicePage},n("sss-button",{size:"xs",variant:"secondary"},"Change"))))),n("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},n("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),n("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},n("div",{class:"flex"},n("div",{class:"flex-shrink-0"},n("img",{class:"h-5 w-5",src:a("assets/icon-information-circle.svg")})),n("div",{class:"ml-2"},n("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.")))),n("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"mt-3":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=!e.formElement.checkValidity()}},n("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),n("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":true,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.formState==="validated"},required:true,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:function(t){return e.standardChoiceFormSignature=t.target.value}}),n("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),n("div",{class:"mt-6"},n("sss-button",{fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.formState="validated";if(!this.formElement.checkValidity())return[3,2];return[4,Lt.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();_t.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var or=e("sss_success",function(){function e(e){t(this,e)}e.prototype.render=function(){var e=function(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},n("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"}))};return n(o,{class:"text-center"},n("div",{class:"flex justify-center"},n("div",{class:"relative"},n("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),n("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},n(e,null)))),n("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),n("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."),n("div",{class:"flex justify-center mt-8"},n("div",{class:"max-w-[200px] w-full"},n("sss-button",{size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},n("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){_t.completeSuperSelectionFlow()};return e}());var sr=e("sss_super_choice_item_bottom",function(){function e(e){t(this,e);this.joinFundClicked=s(this,"joinFundClicked",7)}e.prototype.render=function(){var e=this;return n(o,null,n("div",{class:"py-6 px-4 lg:px-6 flex flex-col justify-between h-full"},n("div",null,n("div",{class:"md:max-w-[240px] lg:max-w-full"},n("sss-button",{class:"uuid-button-continue",fillWidth:true,onClick:function(){return e.handleFundClick()}},"Choose this fund")),n("div",{class:"text-xs text-gray-500 mt-6 leading-4"},this.disclaimer)),this.abnInfo&&this.abn&&n("div",{class:"text-xs text-gray-500 mt-2"},n("p",null,""+(In.isNewComplianceEnabled()?"Issued by ":"")+this.abnInfo+"."),n("p",null,"ABN: ",this.abn))))};e.prototype.handleFundClick=function(){return this.joinFundClicked.emit()};return e}());var ur=e("sss_super_choice_item_top",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(o,null,n("div",{class:"px-4 lg:px-6 pt-6"},n("div",{class:"text-right w-100 -mt-5 -mr-3.5 lg:-mr-5"},n("span",{class:"text-xs bg-gray-100 text-gray-800 font-medium rounded-xl py-0.5 px-2.5 mr-0.5"},In.isNewComplianceEnabled()?"Featured":"Advertised")),n("div",{class:"flex lg:block mt-2 md:mt-0 lg:mt-4"},n("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:a("assets/"+this.logo)}),n("div",{class:"grid content-center"},n("p",{class:"text-base md:text-lg font-bold ml-4 md:ml-0 md:mb-0 lg:mt-4"},this.name))),n("div",{class:"mt-4 sm:mt-2 text-sm space-y-2"},this.features.map((function(e){return n("div",{class:"flex"},n("div",{class:"h-5 w-5 flex-none mr-1.5"},n("img",{alt:"checked",src:a("assets/icon-check.svg")})),n("div",{class:"leading-5"},e))}))),this.featureSubText&&n("p",{class:"text-xs text-gray-500 italic mt-4 leading-4"},this.featureSubText)))};return e}());var cr=e("sss_super_choice_page",function(){function e(e){t(this,e);this.promotedFunds=this.getPromotedFunds();this.eventTrackingService=Et.Instance}e.prototype.componentDidLoad=function(){var e=this.promotedFunds.map((function(e){return e.fundId}));return this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:e,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})};e.prototype.render=function(){var e=this;var t="https://my.gov.au";var r="www.my.gov.au";var i="https://www.apra.gov.au/register-of-superannuation-institutions";var s="www.apra.gov.au";return n(o,null,n("div",null,n("sss-header-section",{currentPage:"choice"}),In.isNewComplianceEnabled()&&n("div",{class:"mt-8 text-sm text-center leading-6"},n("p",{class:"leading-6"},"Not ready to join a new fund, or want to nominate another super fund?"),n("stencil-route-link",{url:Ut.MyOwnFund},n("span",{class:"inline-block text-primary-base font-medium mt-3"},"Skip Featured Funds ",n("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"},n("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"}))))),!In.isNewComplianceEnabled()&&n("div",{class:"flex justify-center pb-4"},n("div",{class:"text-center space-y-4 max-w-960 text-sm leading-6"},n("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."),n("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."),n("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."),n("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."),n("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."))),n("div",{class:"flex justify-center mt-8"},n("div",{class:{"lg:grid border-l border-t lg:border-b rounded-lg":true,"lg:grid-cols-1 max-w-400":this.promotedFunds.length===1,"lg:grid-cols-2 max-w-720":this.promotedFunds.length===2,"lg:grid-cols-3 max-w-960":this.promotedFunds.length===3}},this.promotedFunds.map((function(t,r){return n("div",{class:{"border-r":true,"rounded-tr-lg":r===0,"lg:rounded-tr-none":r===0&&r!==e.promotedFunds.length-1,"rounded-br-lg lg:rounded-br-none lg:rounded-tr-lg":r===e.promotedFunds.length-1}},n("div",{class:{"flex border-b lg:border-b-0":true,"rounded-b-lg":r===e.promotedFunds.length-1}},n("div",{class:"hidden md:flex lg:hidden w-36 justify-center pt-6 pl-6"},n("img",{class:"h-16 object-contain w-full max-w-[96px]",alt:t.name,src:a("assets/"+t.logo)})),n("div",{class:"w-full"},n("sss-super-choice-item-top",{logo:t.logo,name:t.name,features:t.features,featureSubText:t.featureSubText}),n("div",{class:"lg:hidden"},n("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}})))))})),this.promotedFunds.map((function(t,r){return n("div",{class:{"hidden lg:block border-r":true,"rounded-br-lg":r===e.promotedFunds.length-1}},n("sss-super-choice-item-bottom",{disclaimer:t.disclaimer,abnInfo:t.abnInfo,abn:t.abn,onJoinFundClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.handleJoinSuperClickAsync(t)]}))}))}}))})))),n("div",{class:"flex justify-center mt-8 sm:mt-12"},n("div",{class:"pb-8 sm:pb-12 max-w-720 border-b"},n("h5",{class:"font-bold sm:text-lg"},"Or, choose another super fund:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 mb-6 space-y-2 leading-6 text-sm sm:text-base"},n("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."),n("li",null,"If you are unsure of your current super fund details, you can find out at"," ",n("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:Vt.toExternalUrl(t)},r)),n("li",null,"A full list of super funds can be viewed at"," ",n("a",{class:"text-primary-base font-medium hover:text-primary-hover",target:"_blank",href:Vt.toExternalUrl(i)},s))),n("stencil-route-link",{url:Ut.MyOwnFund},n("sss-button",{fillWidthOnMobile:true},"Choose another super fund")))),In.isNewComplianceEnabled()&&n("div",{class:"flex justify-center"},n("div",{class:"pt-8 sm:pt-12 max-w-720"},n("h5",{class:"font-semibold"},"IMPORTANT INFORMATION:"),n("ul",{class:"list-disc list-outside ml-6 mt-3 space-y-2 text-sm leading-6"},n("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."),n("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."),n("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."),n("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."),n("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)."))))))};e.prototype.allFunds=function(){var e=this;var t=function(e,t){return n("a",{class:e.className||"font-medium underline hover:text-gray-600",target:"_blank",href:Vt.toExternalUrl(e.href),onClick:e.onClick},t)};return[{fundId:an.Id,name:an.Name,logo:an.Logo,route:Ut.SlateJoin,features:[n("p",null,"A lifestage investment strategy that evolves with you"),n("p",null,"Advanced mobile app with retirement forecast and smart features"),n("p",null,"Member advocates at Slate to assist with your account")],disclaimer:n("p",{class:"small text-muted"},"You should consider the"," ",n(t,{href:an.PdsUrl,onClick:function(){return e.pdsViewedAsync(an.Name,an.Usi)}},"Product Disclosure Statement")," ","and"," ",n(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:an.DiversaAbn},{fundId:on.Id,name:on.Name,logo:on.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"$200 billion in retirement savings"),n("p",null,"2+ million members"),n("p",null,"A focus on delivering strong, long‑term returns")],featureSubText:n("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:n("p",null,"You should consider the"," ",n(t,{href:on.PdsUrl,onClick:function(){return e.pdsViewedAsync(on.Name)}},"Product Disclosure Statement")," ","and"," ",n(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:on.Abn},{fundId:sn.Id,name:sn.Name,logo:sn.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"Acting on climate change"),n("p",null,"All profits go to members"),n("p",null,"One of Australia’s largest funds")],disclaimer:n("p",null,"You should consider the"," ",n(t,{href:sn.PdsUrl,onClick:function(){return e.pdsViewedAsync(sn.Name)}},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd",abn:sn.Abn},{fundId:un.Id,name:un.Name,logo:un.Logo,route:Ut.PromotedFundJoinV1,features:[n("p",null,"Winner of Canstar's 2023 Outstanding Value – Superannuation Award considering investment performance, fees and product features*"),n("p",null,"Recognised as a leader in responsible investment"),n("p",null,"Calls answered in 20 seconds (average over 5 years)")],featureSubText:n("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:n("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"," ",n(t,{onClick:function(){return e.pdsViewedAsync(un.Name)},href:un.PdsUrl},"activesuper.com.au")," ","before making a decision.")},{fundId:cn.Id,name:cn.Name,logo:cn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Fastest growing super fund in Australia",n("sup",{class:"text-tiny"},"1")),n("p",null,"Nil investments in fossil fuel companies",n("sup",{class:"text-tiny"},"2")),n("p",null,"Competitive returns")],featureSubText:n("ol",{class:"list-decimal list-outside ml-3"},n("li",null,"Source: KPMG Super Insights Report 2022."),n("li",null,"All our options go through positive and negative ethical screening in accordance with the Australian Ethical Charter (in place since 1986).")),disclaimer:n("p",null,"Issued by Australian Ethical Superannuation Pty Ltd (ABN 43 079 259 733, RSE L0001441, AFSL 526055). Please consider the"," ",n(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"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"Product Disclosure Statement")," ","and"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"Target Market Determination")," ","available on our"," ",n(t,{href:cn.PdsUrl,onClick:function(){return e.pdsViewedAsync(cn.Name)}},"website"),".")},{fundId:ln.Id,name:ln.Name,logo:ln.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Returns above industry and retail super fund medians over the past 5 years",n("sup",{class:"text-tiny"},"1")),n("p",null,"One of the lowest fees in the market"),n("p",null,"Virgin Money rewards you with Velocity Points on your contributions",n("sup",{class:"text-tiny"},"2"))],featureSubText:n("div",{class:"m-4 pt-2"},n("ol",{class:"list-decimal space-y-2"},n("li",null,n("span",null,"Past performance is not a reliable indicator of future performance. Source: SuperRatings Fund Crediting Rate Survey April 2022.")),n("li",null,n("span",null,n(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:n("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"," ",n(t,{href:ln.PdsUrl,onClick:function(){return e.pdsViewedAsync(ln.Name)}},"www.virginmoney.com.au")," ","before making a decision")},{fundId:fn.Id,name:fn.Name,logo:fn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Proud Industry SuperFund - all profits go back to members"),n("p",null,"Best customer experience in super",n("sup",{class:"text-tiny"},"1")," and best for value",n("sup",{class:"text-tiny"},"2")),n("p",null,"Low fees",n("sup",{class:"text-tiny"},"3")," with a focus on strong returns and investing with impact in communities",n("sup",{class:"text-tiny"},"4"))],featureSubText:n("div",{class:"m-4 pt-2"},n("ol",{class:"list-decimal space-y-2"},n("li",null,n("span",null,"CSBA SenseCX Benchmark 2021-22")),n("li",null,n("span",null,"Awarded Best for Value in the WeMoney Superannuation Awards 2022")),n("li",null,n("span",null,"Just $67.60 + 0.15% pa admin fees, capped at $517.60")),n("li",null,n("span",null,"Rainmaker ESG Leader Rating 2022")))),disclaimer:n("p",null,"Past performance isn’t a reliable indicator of future performance. Consider the PDS and TMD at"," ",n(t,{href:fn.PdsUrl,onClick:function(){return e.pdsViewedAsync(fn.Name)}},"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:dn.Id,name:dn.Name,logo:dn.Logo,route:Ut.PromotedFundJoinV2,features:[n("p",null,"Industry SuperFund that puts members FIRST"),n("p",null,"Strong long-term investment returns and superior customer service"),n("p",null,"Established super fund – anyone can join including KiwiSaver members")],disclaimer:n("div",null,n("p",null,"You should consider the"," ",n(t,{onClick:function(){return e.pdsViewedAsync(dn.Name)},href:dn.PdsUrl},"Product Disclosure Statement")," ","and"," ",n(t,{href:"https://www.firstsuper.com.au/forms-tools/product-disclosure-statements/"},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),n("br",null),n("p",null,"Issued by First Super Pty Limited (ABN 42 053 498 472, AFSL 223988) as trustee of First Super (ABN 56 286 625 181)."))}]};e.prototype.getPromotedFunds=function(){var e=this;var t=[];_t.promotedFunds.forEach((function(n){var r=e.allFunds().find((function(e){return n===e.fundId}));if(r!==undefined){t.push(r)}}));return t};e.prototype.handleJoinSuperClickAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:n=_t.promotedFunds;return[4,this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:vn(e.fundId),fundName:(t=hn(e.fundId))!==null&&t!==void 0?t:"",promotedFundId:e.fundId,promotedFundsShown:n,defaultFundUsiSet:vt.toUndefined(_t.defaultFundUsi)})];case 1:r.sent();Mn.fundId=e.fundId;return[2,Vt.navigateInternally(this.history,e.route)]}}))}))};e.prototype.pdsViewedAsync=function(e,t){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:t,fundName:e,pageName:"Panel Fund Page"})};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return e}());var lr="stencil-route.inactive{display:none}";var fr=e("stencil_route",function(){function e(e){t(this,e);this.group=null;this.match=null;this.componentProps={};this.exact=false;this.scrollOnNextRender=false;this.previousMatch=null}e.prototype.computeMatch=function(e){var t=this.group!=null||this.el.parentElement!=null&&this.el.parentElement.tagName.toLowerCase()==="stencil-route-switch";if(!e||t){return}this.previousMatch=this.match;return this.match=De(e.pathname,{path:this.url,exact:this.exact,strict:true})};e.prototype.loadCompleted=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e={};if(this.history&&this.history.location.hash){e={scrollToId:this.history.location.hash.substr(1)}}else if(this.scrollTopOffset){e={scrollTopOffset:this.scrollTopOffset}}if(typeof this.componentUpdated==="function"){this.componentUpdated(e)}else if(this.match&&!Re(this.match,this.previousMatch)&&this.routeViewsUpdated){this.routeViewsUpdated(e)}return[2]}))}))};e.prototype.componentDidUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.loadCompleted()];case 1:e.sent();return[2]}}))}))};e.prototype.render=function(){if(!this.match||!this.history){return null}var e=Object.assign({},this.componentProps,{history:this.history,match:this.match});if(this.routeRender){return this.routeRender(Object.assign({},e,{component:this.component}))}if(this.component){var t=this.component;return n(t,Object.assign({},e))}};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(fr,["location","history","historyType","routeViewsUpdated"]);fr.style=lr;var dr=function(e,t,n){return n(e.confirm(t))};var pr=function(e){return e.metaKey||e.altKey||e.ctrlKey||e.shiftKey};var hr=function(e){var t=e.navigator.userAgent;if((t.indexOf("Android 2.")!==-1||t.indexOf("Android 4.0")!==-1)&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1&&t.indexOf("Windows Phone")===-1){return false}return e.history&&"pushState"in e.history};var vr=function(e){return e.userAgent.indexOf("Trident")===-1};var mr=function(e){return e.userAgent.indexOf("Firefox")===-1};var gr=function(e,t){return t.state===undefined&&e.userAgent.indexOf("CriOS")===-1};var yr=function(e,t){var n=e[t];var r="__storage_test__";try{n.setItem(r,r);n.removeItem(r);return true}catch(e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&n.length!==0}};var br=function(e,t){if(e.charAt(0)=="/"&&t.charAt(t.length-1)=="/"){return t.slice(0,t.length-1)+e}return t+e};var wr=e("stencil_route_link",function(){function e(e){t(this,e);this.unsubscribe=function(){return};this.activeClass="link-active";this.exact=false;this.strict=true;this.custom="a";this.match=null}e.prototype.componentWillLoad=function(){this.computeMatch()};e.prototype.computeMatch=function(){if(this.location){this.match=De(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict})}};e.prototype.handleClick=function(e){if(pr(e)||!this.history||!this.url||!this.root){return}e.preventDefault();return this.history.push(br(this.url,this.root))};e.prototype.render=function(){var e;var t={class:(e={},e[this.activeClass]=this.match!==null,e),onClick:this.handleClick.bind(this)};if(this.anchorClass){t.class[this.anchorClass]=true}if(this.custom==="a"){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})}return n(this.custom,Object.assign({},t),n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["computeMatch"]}},enumerable:false,configurable:true});return e}());A.injectProps(wr,["history","location","root"]);var xr=function(){return((Math.random()*1e17).toString().match(/.{4}/g)||[]).join("-")};var Sr=function(e,t,n){return De(e,{path:t,exact:n,strict:true})};var Ir=function(e){return e.tagName==="STENCIL-ROUTE"};var Cr=e("stencil_route_switch",function(){function e(e){t(this,e);this.group=xr();this.subscribers=[];this.queue=l(this,"queue")}e.prototype.componentWillLoad=function(){if(this.location!=null){this.regenerateSubscribers(this.location)}};e.prototype.regenerateSubscribers=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;var r=this;return __generator(this,(function(i){if(e==null){return[2]}t=-1;this.subscribers=Array.prototype.slice.call(this.el.children).filter(Ir).map((function(n,r){var i=Sr(e.pathname,n.url,n.exact);if(i&&t===-1){t=r}return{el:n,match:i}}));if(t===-1){return[2]}if(this.activeIndex===t){this.subscribers[t].el.match=this.subscribers[t].match;return[2]}this.activeIndex=t;n=this.subscribers[this.activeIndex];if(this.scrollTopOffset){n.el.scrollTopOffset=this.scrollTopOffset}n.el.group=this.group;n.el.match=n.match;n.el.componentUpdated=function(e){r.queue.write((function(){r.subscribers.forEach((function(e,t){e.el.componentUpdated=undefined;if(t===r.activeIndex){return e.el.style.display=""}if(r.scrollTopOffset){e.el.scrollTopOffset=r.scrollTopOffset}e.el.group=r.group;e.el.match=null;e.el.style.display="none"}))}));if(r.routeViewsUpdated){r.routeViewsUpdated(Object.assign({scrollTopOffset:r.scrollTopOffset},e))}};return[2]}))}))};e.prototype.render=function(){return n("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{location:["regenerateSubscribers"]}},enumerable:false,configurable:true});return e}());A.injectProps(Cr,["location","routeViewsUpdated"]);var _r=function(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(!e){console.warn.apply(console,t)}};var Tr=function(){var e;var t=[];var n=function(t){_r(e==null,"A history supports only one prompt at a time");e=t;return function(){if(e===t){e=null}}};var r=function(t,n,r,i){if(e!=null){var a=typeof e==="function"?e(t,n):e;if(typeof a==="string"){if(typeof r==="function"){r(a,i)}else{_r(false,"A history needs a getUserConfirmation function in order to use a prompt message");i(true)}}else{i(a!==false)}}else{i(true)}};var i=function(e){var n=true;var r=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(n){e.apply(void 0,t)}};t.push(r);return function(){n=false;t=t.filter((function(e){return e!==r}))}};var a=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}t.forEach((function(t){return t.apply(void 0,e)}))};return{setPrompt:n,confirmTransitionTo:r,appendListener:i,notifyListeners:a}};var Ar=function(e,t){if(t===void 0){t="scrollPositions"}var n=new Map;var r=function(t,r){n.set(t,r);if(yr(e,"sessionStorage")){var i=[];n.forEach((function(e,t){i.push([t,e])}));e.sessionStorage.setItem("scrollPositions",JSON.stringify(i))}};var i=function(e){return n.get(e)};var a=function(e){return n.has(e)};var o=function(t){r(t,[e.scrollX,e.scrollY])};if(yr(e,"sessionStorage")){var s=e.sessionStorage.getItem(t);n=s?new Map(JSON.parse(s)):n}if("scrollRestoration"in e.history){history.scrollRestoration="manual"}return{set:r,get:i,has:a,capture:o}};var Er="popstate";var kr="hashchange";var Nr=function(e,t){if(t===void 0){t={}}var n=false;var r=e.history;var i=e.location;var a=e.navigator;var o=hr(e);var s=!vr(a);var u=Ar(e);var c=t.forceRefresh!=null?t.forceRefresh:false;var l=t.getUserConfirmation!=null?t.getUserConfirmation:dr;var f=t.keyLength!=null?t.keyLength:6;var d=t.basename?me(ge(t.basename)):"";var p=function(){try{return e.history.state||{}}catch(e){return{}}};var h=function(e){e=e||{};var t=e.key,n=e.state;var r=i.pathname,a=i.search,o=i.hash;var s=r+a+o;_r(!d||he(s,d),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+s+'" to begin with "'+d+'".');if(d){s=ve(s,d)}return Ee(s,n,t||Ie(f))};var v=Tr();var m=function(e){u.capture(R.location.key);Object.assign(R,e);R.location.scrollPosition=u.get(R.location.key);R.length=r.length;v.notifyListeners(R.location,R.action)};var g=function(e){if(!gr(a,e)){b(h(e.state))}};var y=function(){b(h(p()))};var b=function(e){if(n){n=false;m()}else{var t="POP";v.confirmTransitionTo(e,t,l,(function(n){if(n){m({action:t,location:e})}else{w(e)}}))}};var w=function(e){var t=R.location;var r=S.indexOf(t.key);var i=S.indexOf(e.key);if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;E(a)}};var x=h(p());var S=[x.key];var I=0;var C=false;var _=function(e){return d+we(e)};var T=function(e,t){_r(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"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");var n="PUSH";var a=Ee(e,t,Ie(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=_(a);var s=a.key,u=a.state;if(o){r.pushState({key:s,state:u},"",t);if(c){i.href=t}else{var l=S.indexOf(R.location.key);var f=S.slice(0,l===-1?0:l+1);f.push(a.key);S=f;m({action:n,location:a})}}else{_r(u===undefined,"Browser history cannot push state in browsers that do not support HTML5 history");i.href=t}}))};var A=function(e,t){_r(!(typeof e==="object"&&e.state!==undefined&&t!==undefined),"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");var n="REPLACE";var a=Ee(e,t,Ie(f),R.location);v.confirmTransitionTo(a,n,l,(function(e){if(!e){return}var t=_(a);var s=a.key,u=a.state;if(o){r.replaceState({key:s,state:u},"",t);if(c){i.replace(t)}else{var l=S.indexOf(R.location.key);if(l!==-1){S[l]=a.key}m({action:n,location:a})}}else{_r(u===undefined,"Browser history cannot replace state in browsers that do not support HTML5 history");i.replace(t)}}))};var E=function(e){r.go(e)};var k=function(){return E(-1)};var N=function(){return E(1)};var F=function(t){I+=t;if(I===1){e.addEventListener(Er,g);if(s){e.addEventListener(kr,y)}}else if(I===0){e.removeEventListener(Er,g);if(s){e.removeEventListener(kr,y)}}};var P=function(e){if(e===void 0){e=""}var t=v.setPrompt(e);if(!C){F(1);C=true}return function(){if(C){C=false;F(-1)}return t()}};var D=function(e){var t=v.appendListener(e);F(1);return function(){F(-1);t()}};var R={length:r.length,action:"POP",location:x,createHref:_,push:T,replace:A,go:E,goBack:k,goForward:N,block:P,listen:D,win:e};return R};var Fr="hashchange";var Pr={hashbang:{encodePath:function(e){return e.charAt(0)==="!"?e:"!/"+ye(e)},decodePath:function(e){return e.charAt(0)==="!"?e.substr(1):e}},noslash:{encodePath:ye,decodePath:ge},slash:{encodePath:ge,decodePath:ge}};var Dr=function(e,t){if(t===void 0){t={}}var n=false;var r=null;var i=0;var a=false;var o=e.location;var s=e.history;var u=mr(e.navigator);var c=t.keyLength!=null?t.keyLength:6;var l=t.getUserConfirmation,f=l===void 0?dr:l,d=t.hashType,p=d===void 0?"slash":d;var h=t.basename?me(ge(t.basename)):"";var v=Pr[p],m=v.encodePath,g=v.decodePath;var y=function(){var e=o.href;var t=e.indexOf("#");return t===-1?"":e.substring(t+1)};var b=function(e){return o.hash=e};var w=function(e){var t=o.href.indexOf("#");o.replace(o.href.slice(0,t>=0?t:0)+"#"+e)};var x=function(){var e=g(y());_r(!h||he(e,h),"You are attempting to use a basename on a page whose URL path does not begin "+'with the basename. Expected path "'+e+'" to begin with "'+h+'".');if(h){e=ve(e,h)}return Ee(e,undefined,Ie(c))};var S=Tr();var I=function(e){Object.assign(j,e);j.length=s.length;S.notifyListeners(j.location,j.action)};var C=function(){var e=y();var t=m(e);if(e!==t){w(t)}else{var i=x();var a=j.location;if(!n&&Ae(a,i)){return}if(r===we(i)){return}r=null;_(i)}};var _=function(e){if(n){n=false;I()}else{var t="POP";S.confirmTransitionTo(e,t,f,(function(n){if(n){I({action:t,location:e})}else{T(e)}}))}};var T=function(e){var t=j.location;var r=N.lastIndexOf(we(t));var i=N.lastIndexOf(we(e));if(r===-1){r=0}if(i===-1){i=0}var a=r-i;if(a){n=true;R(a)}};var A=y();var E=m(A);if(A!==E){w(E)}var k=x();var N=[we(k)];var F=function(e){return"#"+m(h+we(e))};var P=function(e,t){_r(t===undefined,"Hash history cannot push state; it is ignored");var n="PUSH";var i=Ee(e,undefined,Ie(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=we(i);var a=m(h+t);var o=y()!==a;if(o){r=t;b(a);var s=N.lastIndexOf(we(j.location));var u=N.slice(0,s===-1?0:s+1);u.push(t);N=u;I({action:n,location:i})}else{_r(false,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack");I()}}))};var D=function(e,t){_r(t===undefined,"Hash history cannot replace state; it is ignored");var n="REPLACE";var i=Ee(e,undefined,Ie(c),j.location);S.confirmTransitionTo(i,n,f,(function(e){if(!e){return}var t=we(i);var a=m(h+t);var o=y()!==a;if(o){r=t;w(a)}var s=N.indexOf(we(j.location));if(s!==-1){N[s]=t}I({action:n,location:i})}))};var R=function(e){_r(u,"Hash history go(n) causes a full page reload in this browser");s.go(e)};var M=function(){return R(-1)};var O=function(){return R(1)};var L=function(e,t){i+=t;if(i===1){e.addEventListener(Fr,C)}else if(i===0){e.removeEventListener(Fr,C)}};var U=function(t){if(t===void 0){t=""}var n=S.setPrompt(t);if(!a){L(e,1);a=true}return function(){if(a){a=false;L(e,-1)}return n()}};var B=function(t){var n=S.appendListener(t);L(e,1);return function(){L(e,-1);n()}};var j={length:s.length,action:"POP",location:k,createHref:F,push:P,replace:D,go:R,goBack:M,goForward:O,block:U,listen:B,win:e};return j};var Rr=function(e,t){var n=e.pathname.indexOf(t)==0?"/"+e.pathname.slice(t.length):e.pathname;return Object.assign({},e,{pathname:n})};var Mr={browser:Nr,hash:Dr};var Or=e("stencil_router",function(){function e(e){var n=this;t(this,e);this.root="/";this.historyType="browser";this.titleSuffix="";this.routeViewsUpdated=function(e){if(e===void 0){e={}}if(n.history&&e.scrollToId&&n.historyType==="browser"){var t=n.history.win.document.getElementById(e.scrollToId);if(t){return t.scrollIntoView()}}n.scrollTo(e.scrollTopOffset||n.scrollTopOffset)};this.isServer=l(this,"isServer");this.queue=l(this,"queue")}e.prototype.componentWillLoad=function(){var e=this;this.history=Mr[this.historyType](this.el.ownerDocument.defaultView);this.history.listen((function(t){t=Rr(t,e.root);e.location=t}));this.location=Rr(this.history.location,this.root)};e.prototype.scrollTo=function(e){var t=this.history;if(e==null||this.isServer||!t){return}if(t.action==="POP"&&Array.isArray(t.location.scrollPosition)){return this.queue.write((function(){if(t&&t.location&&Array.isArray(t.location.scrollPosition)){t.win.scrollTo(t.location.scrollPosition[0],t.location.scrollPosition[1])}}))}return this.queue.write((function(){t.win.scrollTo(0,e)}))};e.prototype.render=function(){if(!this.location||!this.history){return}var e={historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated};return n(A.Provider,{state:e},n("slot",null))};Object.defineProperty(e.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());var Lr="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 Ur=e("super_selection_app",function(){function e(e){t(this,e);this.stepSubmitSuccess=s(this,"step-completion",7);this.successPageAcknowledged=s(this,"successPageAcknowledged",5);this.initialised=s(this,"initialised",7);this.isSelfHosted=false;this.isAppInitialised=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;var r=this;return __generator(this,(function(i){e=vt.fromNullable(this.accessToken);if(vt.isNone(e)){throw Error("jwt property is missing.")}_t.state.jwt=e;t=vt.fromNullable(this.backendUrl);if(vt.isNone(t)){throw Error("apiBaseUrl property is missing.")}_t.state.apiBaseUrl=vt.some(t.value.replace(/\/$/,"")+"/");n=vt.fromNullable(this.appBaseUrl);if(vt.isNone(n)){throw Error("appBaseUrl property is missing.")}_t.state.appBaseUrl=vt.some(n.value.replace(/\/$/,""));_t.onChange("hasSuccessPageBeenAcknowledged",(function(e){return r.successPageAcknowledged.emit()}));_t.onChange("hasSuperSelectionBeenSubmitted",(function(e){if(!e)return;r.stepSubmitSuccess.emit();_t.state.hasSuperSelectionBeenSubmitted=false;if(r.isSelfHosted){Vt.navigateInternally(r.history,Ut.Success)}}));return[2]}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,_t.loadAppStateAsync()];case 1:t.sent();return[4,Sn.GetExistingFundAsync()];case 2:e=t.sent();this.isAppInitialised=true;this.initialised.emit({accountIdOrDefault:_t.accountIdOrDefault,partnerIdOrDefault:_t.partnerIdOrDefault,profileId:_t.profileId});Mt.appReady();if(vt.isSome(e)&&e.value.valid!=="Inactive"){Vt.navigateInternally(this.history,Ut.ExistingChoicePage)}else{Vt.navigateInternally(this.history,In.isNewComplianceEnabled()?Ut.ConsentPage:Ut.ChoicePage)}return[2]}}))}))};e.prototype.authTokenChanged=function(e){_t.state.jwt=vt.fromNullable(e)};e.prototype.onRouteChange=function(){window===null||window===void 0?void 0:window.scroll(0,0)};e.prototype.render=function(){return n(o,null,n("link",{rel:"stylesheet",href:a("apollo-super-selection.css"),media:"all"}),this.renderAppContent())};e.prototype.routerBaseUrl=function(){var e;return((e=this.appBaseUrl)===null||e===void 0?void 0:e.replace(/\/$/,""))+"/"};e.prototype.renderAppContent=function(){return n("stencil-router",{root:this.routerBaseUrl(),class:"font-inter"},n("stencil-route-switch",{scrollTopOffset:0},this.isAppInitialised?n("div",{class:{"pt-28":true,"-mt-12 pb-6":!this.isFundJoinPage(),"-mt-28":this.isFundJoinPage()}},Bt,n("sss-footer-section",null)):n("div",{class:"flex justify-center py-20"},n("sss-loading-indicator",null))))};e.prototype.isFundJoinPage=function(){return window.location.pathname.includes(Ut.SlateJoin)||window.location.pathname.includes(Ut.PromotedFundJoinV1)||window.location.pathname.includes(Ut.PromotedFundJoinV2)};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}},enumerable:false,configurable:true});return e}());te(Ur);Ur.style=Lr;var Br=[];var jr=function(){return Br.some((function(e){return e.activeTargets.length>0}))};var Vr=function(){return Br.some((function(e){return e.skippedTargets.length>0}))};var qr="ResizeObserver loop completed with undelivered notifications.";var zr=function(){var e;if(typeof ErrorEvent==="function"){e=new ErrorEvent("error",{message:qr})}else{e=document.createEvent("Event");e.initEvent("error",false,false);e.message=qr}window.dispatchEvent(e)};var Hr;(function(e){e["BORDER_BOX"]="border-box";e["CONTENT_BOX"]="content-box";e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(Hr||(Hr={}));var Wr=function(e){return Object.freeze(e)};var Gr=function(){function e(e,t){this.inlineSize=e;this.blockSize=t;Wr(this)}return e}();var Kr=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return Wr(this)}e.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,r=e.top,i=e.right,a=e.bottom,o=e.left,s=e.width,u=e.height;return{x:t,y:n,top:r,right:i,bottom:a,left:o,width:s,height:u}};e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)};return e}();var Xr=function(e){return e instanceof SVGElement&&"getBBox"in e};var Jr=function(e){if(Xr(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)};var Yr=function(e){var t,n;var r=(n=(t=e)===null||t===void 0?void 0:t.ownerDocument)===null||n===void 0?void 0:n.defaultView;return!!(r&&e instanceof r.Element)};var $r=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image"){break}case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return true}return false};var Qr=typeof window!=="undefined"?window:{};var Zr=new WeakMap;var ei=/auto|scroll/;var ti=/^tb|vertical/;var ni=/msie|trident/i.test(Qr.navigator&&Qr.navigator.userAgent);var ri=function(e){return parseFloat(e||"0")};var ii=function(e,t,n){if(e===void 0){e=0}if(t===void 0){t=0}if(n===void 0){n=false}return new Gr((n?t:e)||0,(n?e:t)||0)};var ai=Wr({devicePixelContentBoxSize:ii(),borderBoxSize:ii(),contentBoxSize:ii(),contentRect:new Kr(0,0,0,0)});var oi=function(e,t){if(t===void 0){t=false}if(Zr.has(e)&&!t){return Zr.get(e)}if(Jr(e)){Zr.set(e,ai);return ai}var n=getComputedStyle(e);var r=Xr(e)&&e.ownerSVGElement&&e.getBBox();var i=!ni&&n.boxSizing==="border-box";var a=ti.test(n.writingMode||"");var o=!r&&ei.test(n.overflowY||"");var s=!r&&ei.test(n.overflowX||"");var u=r?0:ri(n.paddingTop);var c=r?0:ri(n.paddingRight);var l=r?0:ri(n.paddingBottom);var f=r?0:ri(n.paddingLeft);var d=r?0:ri(n.borderTopWidth);var p=r?0:ri(n.borderRightWidth);var h=r?0:ri(n.borderBottomWidth);var v=r?0:ri(n.borderLeftWidth);var m=f+c;var g=u+l;var y=v+p;var b=d+h;var w=!s?0:e.offsetHeight-b-e.clientHeight;var x=!o?0:e.offsetWidth-y-e.clientWidth;var S=i?m+y:0;var I=i?g+b:0;var C=r?r.width:ri(n.width)-S-x;var _=r?r.height:ri(n.height)-I-w;var T=C+m+x+y;var A=_+g+w+b;var E=Wr({devicePixelContentBoxSize:ii(Math.round(C*devicePixelRatio),Math.round(_*devicePixelRatio),a),borderBoxSize:ii(T,A,a),contentBoxSize:ii(C,_,a),contentRect:new Kr(f,u,C,_)});Zr.set(e,E);return E};var si=function(e,t,n){var r=oi(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Hr.DEVICE_PIXEL_CONTENT_BOX:return o;case Hr.BORDER_BOX:return i;default:return a}};var ui=function(){function e(e){var t=oi(e);this.target=e;this.contentRect=t.contentRect;this.borderBoxSize=Wr([t.borderBoxSize]);this.contentBoxSize=Wr([t.contentBoxSize]);this.devicePixelContentBoxSize=Wr([t.devicePixelContentBoxSize])}return e}();var ci=function(e){if(Jr(e)){return Infinity}var t=0;var n=e.parentNode;while(n){t+=1;n=n.parentNode}return t};var li=function(){var e=Infinity;var t=[];Br.forEach((function n(r){if(r.activeTargets.length===0){return}var i=[];r.activeTargets.forEach((function t(n){var r=new ui(n.target);var a=ci(n.target);i.push(r);n.lastReportedSize=si(n.target,n.observedBox);if(a<e){e=a}}));t.push((function e(){r.callback.call(r.observer,i,r.observer)}));r.activeTargets.splice(0,r.activeTargets.length)}));for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e};var fi=function(e){Br.forEach((function t(n){n.activeTargets.splice(0,n.activeTargets.length);n.skippedTargets.splice(0,n.skippedTargets.length);n.observationTargets.forEach((function t(r){if(r.isActive()){if(ci(r.target)>e){n.activeTargets.push(r)}else{n.skippedTargets.push(r)}}}))}))};var di=function(){var e=0;fi(e);while(jr()){e=li();fi(e)}if(Vr()){zr()}return e>0};var pi;var hi=[];var vi=function(){return hi.splice(0).forEach((function(e){return e()}))};var mi=function(e){if(!pi){var t=0;var n=document.createTextNode("");var r={characterData:true};new MutationObserver((function(){return vi()})).observe(n,r);pi=function(){n.textContent=""+(t?t--:t++)}}hi.push(e);pi()};var gi=function(e){mi((function t(){requestAnimationFrame(e)}))};var yi=0;var bi=function(){return!!yi};var wi=250;var xi={attributes:true,characterData:true,childList:true,subtree:true};var Si=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"];var Ii=function(e){if(e===void 0){e=0}return Date.now()+e};var Ci=false;var _i=function(){function e(){var e=this;this.stopped=true;this.listener=function(){return e.schedule()}}e.prototype.run=function(e){var t=this;if(e===void 0){e=wi}if(Ci){return}Ci=true;var n=Ii(e);gi((function(){var r=false;try{r=di()}finally{Ci=false;e=n-Ii();if(!bi()){return}if(r){t.run(1e3)}else if(e>0){t.run(e)}else{t.start()}}}))};e.prototype.schedule=function(){this.stop();this.run()};e.prototype.observe=function(){var e=this;var t=function(){return e.observer&&e.observer.observe(document.body,xi)};document.body?t():Qr.addEventListener("DOMContentLoaded",t)};e.prototype.start=function(){var e=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();Si.forEach((function(t){return Qr.addEventListener(t,e.listener,true)}))}};e.prototype.stop=function(){var e=this;if(!this.stopped){this.observer&&this.observer.disconnect();Si.forEach((function(t){return Qr.removeEventListener(t,e.listener,true)}));this.stopped=true}};return e}();var Ti=new _i;var Ai=function(e){!yi&&e>0&&Ti.start();yi+=e;!yi&&Ti.stop()};var Ei=function(e){return!Xr(e)&&!$r(e)&&getComputedStyle(e).display==="inline"};var ki=function(){function e(e,t){this.target=e;this.observedBox=t||Hr.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0}}e.prototype.isActive=function(){var e=si(this.target,this.observedBox,true);if(Ei(this.target)){this.lastReportedSize=e}if(this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize){return true}return false};return e}();var Ni=function(){function e(e,t){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=e;this.callback=t}return e}();var Fi=new WeakMap;var Pi=function(e,t){for(var n=0;n<e.length;n+=1){if(e[n].target===t){return n}}return-1};var Di=function(){function e(){}e.connect=function(e,t){var n=new Ni(e,t);Fi.set(e,n)};e.observe=function(e,t,n){var r=Fi.get(e);var i=r.observationTargets.length===0;if(Pi(r.observationTargets,t)<0){i&&Br.push(r);r.observationTargets.push(new ki(t,n&&n.box));Ai(1);Ti.schedule()}};e.unobserve=function(e,t){var n=Fi.get(e);var r=Pi(n.observationTargets,t);var i=n.observationTargets.length===1;if(r>=0){i&&Br.splice(Br.indexOf(n),1);n.observationTargets.splice(r,1);Ai(-1)}};e.disconnect=function(e){var t=this;var n=Fi.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)}));n.activeTargets.splice(0,n.activeTargets.length)};return e}();var Ri=function(){function e(e){if(arguments.length===0){throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.")}if(typeof e!=="function"){throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.")}Di.connect(this,e)}e.prototype.observe=function(e,t){if(arguments.length===0){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Yr(e)){throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element")}Di.observe(this,e,t)};e.prototype.unobserve=function(e){if(arguments.length===0){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.")}if(!Yr(e)){throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element")}Di.unobserve(this,e)};e.prototype.disconnect=function(){Di.disconnect(this)};e.toString=function(){return"function ResizeObserver () { [polyfill code] }"};return e}();var Mi=function(){function e(){var e=this;this._appRootUrl=new Z((function(){return e.resolveRootUrl()}));this.getAppRootUrl=function(){return e._appRootUrl.value};this.getAppHostUrl=function(){return(""+window.location.origin+e.getAppRootUrl()).replace(/\/$/,"")}}e.prototype.loadConfigurationAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,rt(this.getAppRootUrl()+"config.json").get().json()];case 1:e=t.sent();$n.update({appConfiguration:vt.fromNullable(e)});return[2]}}))}))};e.prototype.resolveRootUrl=function(){var e=vt.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(vt.isNone(e)){throw Error("Unsupported host URL")}return e.value[0]+"/"};return e}();var Oi=new Mi;var Li="function";var Ui="object";var Bi="undefined";var ji="prototype";var Vi="hasOwnProperty";function qi(){if(typeof globalThis!==Bi&&globalThis){return globalThis}if(typeof self!==Bi&&self){return self}if(typeof window!==Bi&&window){return window}if(typeof global!==Bi&&global){return global}return null}function zi(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==Ui&&n!==Li){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[ji]=e;return new r}function Hi(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[ji][Vi].call(t,i)){e[i]=t[i]}}}return e}var Wi=function(e,t){Wi=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Vi](n)){e[n]=t[n]}}};return Wi(e,t)};function Gi(e,t){Wi(e,t);function n(){this.constructor=e}e[ji]=t===null?zi(t):(n[ji]=t[ji],new n)}var Ki=qi()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Ki,Hi,Gi);if(!__assign){__assign=Ki.__assign}if(!__extends){__extends=Ki.__extends}var Xi={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Ji=Bi;var Yi=Ui;var $i=ji;var Qi=Li;var Zi="window";var ea="document";var ta="navigator";var na="history";var ra="location";var ia="console";var aa="performance";var oa="JSON";var sa="crypto";var ua="msCrypto";var ca="ReactNative";var la=qi;function fa(e){var t=la();if(t&&t[e]){return t[e]}if(e===Zi&&da()){return window}return null}function da(){return Boolean(typeof window===Yi&&window)}function pa(){if(da()){return window}return fa(Zi)}function ha(){return Boolean(typeof document===Yi&&document)}function va(){if(ha()){return document}return fa(ea)}function ma(){return Boolean(typeof navigator===Yi&&navigator)}function ga(){if(ma()){return navigator}return fa(ta)}function ya(){return Boolean(typeof history===Yi&&history)}function ba(){if(ya()){return history}return fa(na)}function wa(){if(typeof location===Yi&&location){return location}return fa(ra)}function xa(){if(typeof console!==Ji){return console}return fa(ia)}function Sa(){return fa(aa)}function Ia(){return Boolean(typeof JSON===Yi&&JSON||fa(oa)!==null)}function Ca(){if(Ia()){return JSON||fa(oa)}return null}function _a(){return fa(sa)}function Ta(){return fa(ua)}function Aa(){var e=ga();if(e&&e.product){return e.product===ca}return false}var Ea="on";var ka="attachEvent";var Na="addEventListener";var Fa="detachEvent";var Pa="removeEventListener";var Da=4294967296;var Ra=4294967295;var Ma=null;var Oa=false;var La=123456789;var Ua=987654321;function Ba(e){if(e<0){e>>>=0}La=123456789+e&Ra;Ua=987654321-e&Ra;Oa=true}function ja(){Ba(Math.random()*Da^(new Date).getTime())}function Va(e,t){return typeof e===t}function qa(e){return Va(e,Bi)||e===undefined}function za(e){return qa(e)||e===null}function Ha(e,t){return e&&Object[ji].hasOwnProperty.call(e,t)}function Wa(e){return Va(e,Ui)}function Ga(e){return Va(e,Li)}function Ka(e,t,n,r){if(r===void 0){r=false}var i=false;if(!za(e)){try{if(!za(e[Na])){e[Na](t,n,r);i=true}else if(!za(e[ka])){e[ka](Ea+t,n);i=true}}catch(e){}}return i}function Xa(e,t,n,r){if(r===void 0){r=false}if(!za(e)){try{if(!za(e[Pa])){e[Pa](t,n,r)}else if(!za(e[Fa])){e[Fa](Ea+t,n)}}catch(e){}}}function Ja(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Ya(e,t){if(e&&Wa(e)){for(var n in e){if(Ha(e,n)){t.call(e,n,e[n])}}}}var $a=function(){function e(){}e.isDate=function(e){return Object[ji].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[ji].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[ji].toString.call(e)==="[object Error]"};e.isString=function(e){return Va(e,"string")};e.isNumber=function(e){return Va(e,"number")};e.isBoolean=function(e){return Va(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Qa,(function(e){var n=t()|0,r=e==="x"?n:n&3|8;return r.toString(16)}))};e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);if(t.length===1){t="0"+t}return t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}};e.arrForEach=function(e,t,n){var r=e.length;for(var i=0;i<r;i++){if(i in e){t.call(n||e,e[i],i,e)}}};e.arrIndexOf=function(e,t,n){var r=e.length;var i=n||0;for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++){if(a in e&&e[a]===t){return a}}return-1};e.arrMap=function(e,t,n){var r=e.length;var i=n||e;var a=new Array(r);for(var o=0;o<r;o++){if(o in e){a[o]=t.call(i,e[o],e)}}return a};e.arrReduce=function(e,t,n){var r=e.length;var i=0;var a;if(arguments.length>=3){a=arguments[2]}else{while(i<r&&!(i in e)){i++}a=e[i++]}while(i<r){if(i in e){a=t(a,e[i],i,e)}i++}return a};e.strTrim=function(t){if(!e.isString(t)){return t}return t.replace(/^\s+|\s+$/g,"")};e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Ga(e)&&(!Wa(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ha(e,r)){n.push(r)}}if(t){var i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var a=i.length;for(var o=0;o<a;o++){if(Ha(e,i[o])){n.push(i[o])}}}return n};e.objDefineAccessors=function(e,t,n,r){var i=Object["defineProperty"];if(i){try{var a={enumerable:true,configurable:true};if(n){a.get=n}if(r){a.set=r}i(e,t,a);return true}catch(e){}}return false};e.addEventHandler=function(e,t){var n=false;var r=pa();if(r){n=Ka(r,e,t);n=Ka(r["body"],e,t)||n}var i=va();if(i){n=Za.Attach(i,e,t)||n}return n};e.dateNow=function(){var e=Date;if(e.now){return e.now()}return(new e).getTime()};e.perfNow=function(){var t=Sa();if(t&&t.now){return t.now()}return e.dateNow()};e.newId=function(t){if(t===void 0){t=22}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var r=e.random32()>>>0;var i=0;var a="";while(a.length<t){i++;a+=n.charAt(r&63);r>>>=6;if(i===5){r=(e.random32()<<2&4294967295|r&3)>>>0;i=0}}return a};e.isIE=function(){if(Ma===null){var e=ga()||{};var t=(e.userAgent||"").toLowerCase();Ma=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return Ma};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/Ra*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=_a()||Ta();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&Ra}else if(e.isIE()){if(!Oa){ja()}n=e.mwcRandom32()&Ra}else{n=Math.floor(Da*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){ja()}else{Ba(e)}};e.mwcRandom32=function(e){Ua=36969*(Ua&65535)+(Ua>>16)&Ra;La=18e3*(La&65535)+(La>>16)&Ra;var t=(Ua<<16)+(La&65535)>>>0&Ra|0;if(!e){t>>>=0}return t};e.generateW3CId=function(){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];var n="",r;for(var i=0;i<4;i++){r=e.random32();n+=t[r&15]+t[r>>4&15]+t[r>>8&15]+t[r>>12&15]+t[r>>16&15]+t[r>>20&15]+t[r>>24&15]+t[r>>28&15]}var a=t[8+(e.random32()&3)|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+a+n.substr(16,3)+n.substr(19,12)};e.isTypeof=Va;e.isUndefined=qa;e.isNullOrUndefined=za;e.hasOwnProperty=Ha;e.isFunction=Ga;e.isObject=Wa;e.objCreate=zi;return e}();var Qa=/[xy]/g;var Za=function(){function e(){}e.Attach=Ka;e.AttachEvent=Ka;e.Detach=Xa;e.DetachEvent=Xa;return e}();var eo;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(eo||(eo={}));var to={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103};
|
|
2
2
|
/*!
|
|
3
3
|
* Microsoft Dynamic Proto Utility, 1.1.0
|
|
4
4
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|