@flarehr/apollo-super-selection 5.51.9257 → 5.53.14680

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.
@@ -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,t){"use strict";var n,r,i,a,o,s,u,l,c,d,f,p,h,m,v,g,y,b,w,S,x,_,C,I,N,F,E;return{setters:[function(e){n=e.r;r=e.h;i=e.g;a=e.f;o=e.F;s=e.a;u=e.H;l=e.c;c=e.s;d=e.d;f=e.e},function(e){p=e.f;h=e.m;m=e.S;v=e.a;g=e.i;y=e.b;b=e.O;w=e.c;S=e.d;x=e.g;_=e.h;C=e.j;I=e.k;N=e.l;F=e.Q},function(e){E=e.A}],execute:function(){var A=this;function T(){}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 p(e(n,r)).pipe(h((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new P(e,n))}}var P=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 D(e,this.project,this.concurrent))};return e}();var D=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=g(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}(m);function M(e,t,n,r){if(w(n)){r=n;n=undefined}if(r){return M(e,t,n).pipe(h((function(e){return y(e)?r.apply(void 0,e):r(e)})))}return new b((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}O(e,t,i,r,n)}))}function O(e,t,n,r,i){var a;if(U(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(R(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(L(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var l=0,c=e.length;l<c;l++){O(e[l],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function L(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function R(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function U(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function B(e,t){if(t===void 0){t=S}return function(n){return n.lift(new V(e,t))}}var V=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new j(e,this.dueTime,this.scheduler))};return e}();var j=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(q,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 q(e){e.debouncedNext()}function z(e,t,n){return function r(i){return i.lift(new H(e,t,n))}}var H=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 W(e,this.nextOrObserver,this.error,this.complete))};return e}();var W=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=T;a._tapError=T;a._tapComplete=T;a._tapError=r||T;a._tapComplete=i||T;if(w(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||T;a._tapError=n.error||T;a._tapComplete=n.complete||T}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 G="5.51.9257";var K=function(e){return e._tag==="Some"};var X=function(e){return e._tag==="None"};var J={_tag:"None"};var Y=function(e){return{_tag:"Some",value:e}};function $(e){return e==null?J:Y(e)}function Z(e){return X(e)?undefined:e.value}var Q=function(e){return function(t){return X(t)?e():t.value}};var ee=Q;var te=function(){function e(e){this.factory=e;this._value=J}Object.defineProperty(e.prototype,"value",{get:function(){if(K(this._value)){return this._value.value}var e=this.factory();this._value=Y(e);return e},enumerable:false,configurable:true});return e}();function ne(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function re(e){E.injectProps(e,["history","location"])}var ie="/";var ae="./";var oe=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var se=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||ie;var s=t&&t.delimiters||ae;var u=false;var l;while((l=oe.exec(e))!==null){var c=l[0];var d=l[1];var f=l.index;a+=e.slice(i,f);i=f+c.length;if(d){a+=d[1];u=true;continue}var p="";var h=e[i];var m=l[2];var v=l[3];var g=l[4];var y=l[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 S=y==="+"||y==="*";var x=y==="?"||y==="*";var _=p||o;var C=v||g;n.push({name:m||r++,prefix:p,delimiter:_,optional:x,repeat:S,partial:w,pattern:C?le(C):"[^"+ue(_)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var ue=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var le=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var ce=function(e){return e&&e.sensitive?"":"i"};var de=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 fe=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(me(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",ce(n))};var pe=function(e,t,n){return he(se(e,n),t,n)};var he=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=ue(n.delimiter||ie);var o=n.delimiters||ae;var s=[].concat(n.endsWith||[]).map(ue).concat("$").join("|");var u="";var l=false;for(var c=0;c<e.length;c++){var d=e[c];if(typeof d==="string"){u+=ue(d);l=c===e.length-1&&o.indexOf(d[d.length-1])>-1}else{var f=ue(d.prefix||"");var p=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;if(t)t.push(d);if(d.optional){if(d.partial){u+=f+"("+p+")?"}else{u+="(?:"+f+"("+p+"))?"}}else{u+=f+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!l)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,ce(n))};var me=function(e,t,n){if(e instanceof RegExp){return de(e,t)}if(Array.isArray(e)){return fe(e,t,n)}return pe(e,t,n)};var ve=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ge=function(e,t){return ve(e,t)?e.substr(t.length):e};var ye=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var be=function(e){return e.charAt(0)==="/"?e:"/"+e};var we=function(e){return e.charAt(0)==="/"?e.substr(1):e};var Se=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 xe=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 _e=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 Ce=function(e){return e.charAt(0)==="/"};var Ie=function(e){return Math.random().toString(36).substr(2,e)};var Ne=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 Fe=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&&Ce(e);var s=t&&Ce(t);var u=o||s;if(e&&Ce(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var l=n[n.length-1];r=l==="."||l===".."||l===""}else{r=false}for(var c=n.length;c>=0;c--){var d=n[c];if(d==="."){Ne(n,c)}else if(d===".."){Ne(n,c);i++}else if(i){Ne(n,c);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!Ce(n[0]))){n.unshift("")}var f=n.join("/");if(r&&f.substr(-1)!=="/"){f+="/"}return f};var Ee=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 Ee(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 Ee(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 Ee(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&&Ee(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=Se(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=Fe(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=_e(i.search||"");return i};var ke=0;var Pe={};var De=1e4;var Me=function(e,t){var n=""+t.end+t.strict;var r=Pe[n]||(Pe[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=me(e,a,t);var s={re:o,keys:a};if(ke<De){r[i]=s;ke+=1}return s};var Oe=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=Me(r,{end:a,strict:s}),l=u.re,c=u.keys;var d=l.exec(e);if(!d){return null}var f=d[0],p=d.slice(1);var h=e===f;if(a&&!h){return null}return{path:r,url:r==="/"&&f===""?"/":f,isExact:h,params:c.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Le=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&&Ee(e.params,t.params)};var Re;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Re||(Re={}));var Ue=e("sss_button",function(){function e(e){n(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=Re.Available}e.prototype.render=function(){var e;var t=this;var n={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return r("button",{"data-testid":this.testid,class:(e={},e[n[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["border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white"]=this.variant==="light",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Re.Pending&&r("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),r("div",{class:{hidden:this.state===Re.Pending}},r("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===Re.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Re.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Re.Available;return[3,4];case 3:e=t.sent();this.state=Re.Error;throw e;case 4:return[2]}}))}))};return e}());function Be(){Ve({type:"appReady"})}function Ve(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function je(e,t){Ve({type:"contentResized",height:e,width:t})}function qe(e){Ve({type:"pageNavigated",url:e})}function ze(){Ve({type:"complete"})}function He(){Ve({type:"submitSuccess"})}var We={appReady:Be,resize:je,navigation:qe,complete:ze,submitSuccess:He};var Ge=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var Ke=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 Xe=function(e){return!("isConnected"in e)||e.isConnected};var Je=Ke((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(Xe))}}),2e3);var Ye=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){Ge(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(a))}Je(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(a)}));Je(n)}))}};var $e=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 l=function(e,t){r[e].push(t);return function(){Ze(r[e],t)}};var c=function(t,n){var r=l("set",(function(e,r){if(e===t){n(r)}}));var i=l("reset",(function(){return n(e[t])}));return function(){r();i()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:o,set:s,on:l,onChange:c,use:d,dispose:a,reset:i}};var Ze=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var Qe=function(e,t){var n=$e(e,t);Ye(n);return n};var et={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var tt=Qe(et).state;var nt;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(nt||(nt={}));var rt=[r("stencil-route",{url:nt.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:nt.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:nt.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:nt.MyOwnFund,component:"sss-my-own-fund"}),r("stencil-route",{url:nt.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:nt.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:nt.Prefill,component:"sss-prefill"}),r("stencil-route",{url:nt.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:nt.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:nt.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:nt.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:nt.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:nt.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:nt.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:nt.Success,component:"sss-success"})];function it(e,t,n){return n={path:t,exports:{},require:function(e,t){return at()}},e(n,n.exports),n.exports}function at(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ot=it((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 l(e){return e-1}t.decrement=l;function c(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=c;function d(e){return function(t){return e.apply(void 0,t)}}t.tupled=d;function f(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=f;function p(e,t,n,r,i,a,o,s,u,l,c,d,f,p,h,m,v,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 l(u(s(o(a(i(r(n(t(e)))))))));case 11:return c(l(u(s(o(a(i(r(n(t(e))))))))));case 12:return d(c(l(u(s(o(a(i(r(n(t(e)))))))))));case 13:return f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=c;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var m=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=m}));var st=it((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 l(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=l;t.fromEither=l;function c(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=c;function d(e){return t.isNone(e)?null:e.value}t.toNullable=d;function f(e){return t.isNone(e)?undefined:e.value}t.toUndefined=f;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=m;function m(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=m;var v=function(e,n){return ot.pipe(e,t.map(n))};var g=function(e,n){return ot.pipe(e,t.ap(n))};var y=function(e,n){return ot.pipe(e,t.chain(n))};var b=function(e,n,r){return ot.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return ot.pipe(e,n(t))}};var S=function(e,n,r){return ot.pipe(e,t.reduceRight(n,r))};var x=function(e){var n=t.traverse(e);return function(e,t){return ot.pipe(e,n(t))}};var _=function(e,n){return ot.pipe(e,t.alt(n))};var C=function(e,n){return ot.pipe(e,t.filter(n))};var I=function(e,n){return ot.pipe(e,t.filterMap(n))};var N=function(e,n){return ot.pipe(e,t.extend(n))};var F=function(e,n){return ot.pipe(e,t.partition(n))};var E=function(e,n){return ot.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return ot.pipe(e,n(t))}};var T=function(e){var n=t.wilt(e);return function(e,t){return ot.pipe(e,n(t))}};var k=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=k;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 ot.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var M=function(e){return ot.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=M;t.of=t.some;var O=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=O;var L=function(e){return t.chain((function(n){return ot.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=L;t.flatten=t.chain(ot.identity);var R=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=R;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var V=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=V;t.duplicate=t.extend(ot.identity);var j=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=j;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=ot.pipe(e,t.map((function(e){return{left:u(e),right:l(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 ot.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 Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var Q=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:l(e)}}))}}};t.wilt=Q;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:v};t.Applicative={URI:t.URI,map:v,ap:g,of:t.of};t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:S};t.Alt={URI:t.URI,map:v,alt:_};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:_,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:N};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E};t.Traversable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E,wither:A,wilt:T};t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:v,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence,zero:t.zero,alt:_,extend:N,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E,wither:A,wilt:T,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function le(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=le;function ce(e){return function(n){return t.isSome(e(n))}}t.getRefinement=ce;t.Do=t.of({});var de=function(e){return t.map(ot.bindTo_(e))};t.bindTo=de;var fe=function(e,n){return t.chain((function(r){return ot.pipe(n(r),t.map((function(t){return ot.bind_(r,e,t)})))}))};t.bind=fe;var pe=function(e,n){return ot.flow(t.map((function(t){return function(n){return ot.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 me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(ot.identity)}));function ut(e){this.message=e}ut.prototype=new Error,ut.prototype.name="InvalidCharacterError";var lt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ut("'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 ct(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(lt(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 lt(t)}}function dt(e){this.message=e}function ft(e,t){if("string"!=typeof e)throw new dt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(ct(e.split(".")[n]))}catch(e){throw new dt("Invalid token specified: "+e.message)}}dt.prototype=new Error,dt.prototype.name="InvalidTokenError";var pt=undefined&&undefined.__assign||function(){pt=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 pt.apply(this,arguments)};var ht=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 mt=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=pt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?ht(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=mt(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var vt=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 gt={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 l=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!l)throw new Error(e+" is not defined");return o&&l?new(l.bind.apply(l,vt([void 0],s))):l}};var yt=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);wt.callbacks.delete(t);if(wt.callbacks.size<1){wt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var bt=function(e,t){if(!wt.observer&&e&&t){wt.observer=new t((function(t){wt.callbacks.forEach((function(n,r){yt(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return wt.observer};var wt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=gt.polyfill("performance",{doThrow:false});var r=gt.polyfill("PerformanceObserver",{doThrow:false});if(!bt(n,r))return;if(!yt(n,e,t,n)){if(wt.callbacks.size<1)wt.observer.observe({entryTypes:["resource","measure"]});wt.callbacks.set(e,t)}}};var St=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 xt=function(){function e(e){this.error=e}return e}();var _t=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=mt(gt.defaults,a);var u=gt.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var l={ref:null,clear:function(){if(l.ref){clearTimeout(l.ref);l.ref=null}}};var c=St(i)(gt.polyfill("fetch"))(t,s);var d=c.catch((function(e){throw new xt(e)})).then((function(e){l.clear();if(!e.ok){return e[gt.errorType||"text"]().then((function(t){var n=new Error(t);n[gt.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var f=function(t){return t.catch((function(t){l.clear();var n=t instanceof xt?t.error:t;if(t instanceof xt&&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?f(d.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):f(d.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){c.then((function(t){return wt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}l.clear();l.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 Ct=undefined&&undefined.__assign||function(){Ct=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 Ct.apply(this,arguments)};var It=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 Nt="application/json";var Ft="Content-Type";var Et=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,l=n.resolvers,c=l===void 0?this._resolvers:l,d=n.middlewares,f=d===void 0?this._middlewares:d,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Ct({},o),new Map(u),It(c),It(f),It(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}gt.defaults=t?mt(gt.defaults,e):e;return this};e.prototype.errorType=function(e){gt.errorType=e;return this};e.prototype.polyfills=function(e){gt.polyfills=Ct(Ct({},gt.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?mt(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:At(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:mt(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[Ft]=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:Ct(Ct({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:It(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:It(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:It(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()!==Ft.toLowerCase()||n.startsWith(Nt)})))?this.json(n):this.body(n);i=i.options(Ct(Ct({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return _t(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:Ct(Ct({},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()===Ft.toLowerCase()&&n.startsWith(Nt)})))===null||t===void 0?void 0:t[1];return this.content(n||Nt).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Tt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Pt(e)).content("application/x-www-form-urlencoded")};return e}();var At=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=gt.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 l=e.split("?");if(n||l.length<2)return l[0]+"?"+r;return e+"&"+r};function Tt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=gt.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 l=u[s];n.append(o+"[]",l)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){Tt(a,t,n,It(r,[i]))}}else{n.append(o,a)}}));return n}function kt(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Pt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return kt(t,e)})).join("&")}return kt(t,n)})).join("&")}var Dt=Et.factory;Dt["default"]=Et.factory;function Mt(){var e=Jt.jwt;var t=Jt.profileId;var n=Jt.accountIdOrDefault;var r=Jt.partnerIdOrDefault;return Dt(Jt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var Ot={fundId:"slate",usi:"32367272075001"};function Lt(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function Rt(e){switch(e.kind){case"slate":return Ot.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function Ut(e){switch(e.kind){case"slate":return Ot.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function Bt(e){switch(e.kind){case"Promoted":return Y(Rt(e.promoted));case"MyOwnFund":return Y(e.myOwnFund.usi);case"SMSF":return J;case"Default":return Y(e.default.usi);case"PromotedDefault":return Y(e.promotedDefault.usi);case"DefinedBenefits":return Y(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.usi);default:return J}}function Vt(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function jt(e){switch(e.kind){case"Promoted":return Y(Vt(e.promoted));case"MyOwnFund":return Y(e.myOwnFund.memberNumber);case"DefinedBenefits":return Y(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return J;default:return J}}function qt(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var zt=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,Mt().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,Mt().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Mt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){qt(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":Lt(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var Ht=new zt;var Wt;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(Wt||(Wt={}));var Gt=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var Kt={apiBaseUrl:st.none,appBaseUrl:st.none,profileId:st.none,jwt:st.none,superBuyer:st.none,superChoicePrefill:st.none,promotedFunds:st.none,accountConfiguration:st.none,profileConfiguration:st.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:st.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:Wt.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var Xt=function(){function e(){var e=this;var t=Qe(Kt),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=ot.pipe(t,st.chain((function(e){return st.fromNullable(ft(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(st.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(st.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(st.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(st.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return st.fromNullable(this.superCampaignState.DefaultFundPosition)}return st.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:st.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(st.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=ot.pipe(this._state.profileConfiguration,st.map((function(e){return st.fromNullable(e.defaultFundUsi)})),st.flatten);if(st.isSome(e)){return e}return ot.pipe(this._state.accountConfiguration,st.map((function(e){return st.fromNullable(e.defaultFundUsi)})),st.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return ot.pipe(this._state.accountConfiguration,st.map((function(e){return e.accountId})),st.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return ot.pipe(this._state.superBuyer,st.map((function(e){return e.partnerId})),st.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(st.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Ht.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=st.fromNullable(e.accountConfiguration);this._state.profileConfiguration=st.fromNullable(e.profileConfiguration);this._state.superBuyer=st.fromNullable(e.superBuyer);this._state.promotedFunds=st.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=st.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=st.fromNullable(e.isDefinedBenefitsEligible);if(st.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return Ht.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===Wt.Loaded){this._state.superCampaignComponentStatus=Wt.Loaded;this._state.superCampaignState=new Gt}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===Wt.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return st.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var Jt=new Xt;var Yt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);We.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){tt.handleSubmitFn=e.handleSubmitFn;tt.fundName=e.fundName;tt.fundDetails=e.fundDetails;tt.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,nt.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=Jt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var $t=new Yt;var Zt=e("sss_choice_router",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(Jt.superCampaignCanNotBeActivated){$t.navigateInternally(this.history,nt.MyOwnFund)}else{$t.navigateInternally(this.history,nt.SuperCampaign)}return[2]}))}))};e.prototype.render=function(){return r(o,null)};return e}());re(Zt);var Qt;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(Qt||(Qt={}));var en={myOwnFundForm:{fundUsi:J,fundName:J,memberNumber:J,memberFirstName:J,memberFamilyName:J},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var tn=Qe(en),nn=tn.state,rn=tn.reset;var an={label:Qt.MyOwnFund,value:nt.MyOwnFund};var on=e("sss_custom_fund",function(){function e(e){n(this,e);this.currentCustomFund=an;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e=nt.MyOwnFund;if(window.location.pathname.includes(nt.MyOwnFund))e=nt.MyOwnFund;if(window.location.pathname.includes(nt.DefaultFund))e=nt.DefaultFund;if(window.location.pathname.includes(nt.SelfManagedFund))e=nt.SelfManagedFund;if(window.location.pathname.includes(nt.FeaturedFunds))e=nt.FeaturedFunds;this.fundOptionsList=[an,{label:Qt.SelfManagedFund,value:nt.SelfManagedFund}];if(Jt.isFeaturedFundsEnabled&&Jt.isUsingSuperCampaign){this.fundOptionsList.push({label:Qt.FeaturedFunds,value:nt.FeaturedFunds})}this.fundOptionsList.push({label:Qt.DefaultFund,value:nt.DefaultFund});this.currentCustomFund=this.fundOptionsList.find((function(t){return t.value===e}))||this.currentCustomFund;$t.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},r("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 n=function(){return r("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"},r("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 r("div",{class:"max-w-560 sm:w-560 relative"},r("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),r("div",{class:"mt-1 mb-4"},r("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}},r("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},r(t,null))),this.showFundOptionsSelection&&r("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 r("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base hover:text-white",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;$t.navigateInternally(e.history,t.value)}},r("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},r(n,null)))})))),r("div",{onClick:function(){return e.showFundOptionsSelection=false}},r("slot",null)))};return e}());re(on);var sn=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Ht.getAustralianFundsAsync({searchString:e,maxRecordCount:t})]}))}))};e.prototype.getFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,Ht.getAustralianFundAsync(e,t)];case 1:n=r.sent();return[2,st.some(n)]}}))}))};return e}();var un=new sn;var ln=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,Mt().url("analytics-events").post(e).res()]}))}))};return e}();var cn=function(){function e(){this.eventTrackingApi=ln.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().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,Mt().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,Mt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Mt().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var fn=new dn;var pn=e("sss_default_fund",function(){function e(e){n(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=cn.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=Jt.defaultFundUsi;if(st.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,un.getFundAsync(e.value,true)];case 1:t=n.sent();if(st.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:Jt.promotedFunds,defaultFundUsiSet:st.toUndefined(Jt.defaultFundUsi)})};e.prototype.render=function(){var e=this;return r(u,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),r("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},r("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&&r("div",null,r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),r("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)),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("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)),r("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),r("div",{class:"text-sm text-gray-700"},r("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),r("ul",{class:"list-disc list-outside pl-5"},r("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),r("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),r("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",{class:"mb-4"},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),r("stencil-route-link",{url:nt.ChoicePage},r("sss-button",{testid:"back-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]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,fn.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},Jt.promotedFundsConfig))];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var hn="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var mn=3;var vn=e("sss_dropdown_async",function(){function e(e){var t=this;n(this,e);this.valueChanged=l(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=mn;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var n;return t.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=t.minSearchStringLength&&((n=t.selectedOption)===null||n===void 0?void 0:n.label)!==e};this.onBeginSearch=function(e){t.inputValue=e;t.searchState="in progress"};this.onCompleteSearch=function(e){t.highlightedOptionIndex=undefined;switch(e.kind){case"too-many-results":t.searchState="too many results";t.filteredOptions=[];break;case"success":t.searchState="done";t.filteredOptions=e.value;break;default:t.searchState="done";t.filteredOptions=[];break}};this.renderFilteredResults=function(){if(t.searchState==="pristine"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(t.searchState==="in progress"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(t.searchState==="too many results"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search.")}if(t.filteredOptions.length===0){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return t.filteredOptions.map((function(e,n){return r("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":t.isOptionSelected(e)},onClick:function(r){t.highlightedOptionIndex=n;t.toggleDropdown(false);t.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,n;t.inputValue=(n=(e=t.selectedOption)===null||e===void 0?void 0:e.label)!==null&&n!==void 0?n:""};this.toggleDropdown=function(e){t.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var n="Enter";var r="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case r:t.toggleDropdown(true);t.highlightItem("Next");return true;case i:t.highlightItem("Prev");return true;case n:if(t.highlightedOptionIndex!==undefined){t.toggleDropdown(false);t.selectOption(t.filteredOptions[t.highlightedOptionIndex])}return true;case a:t.inputElement.blur();return true}return false};this.highlightItem=function(e){var n=e==="Next"?1:-1;if(t.filteredOptions.length===0){return}t.highlightedOptionIndex=t.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,t.highlightedOptionIndex+n),t.filteredOptions.length-1);if(t.highlightedOptionIndex!==undefined)t.selectOption(t.filteredOptions[t.highlightedOptionIndex])};this.selectOption=function(e){t.selectedOption=e;t.inputValue=e.label;t.valueChanged.emit(e)};this.isOptionSelected=function(e){var n;return((n=t.selectedOption)===null||n===void 0?void 0:n.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=M(this.inputElement,"keyup").pipe(B(500),h((function(t){return e.inputElement.value})),_(),C(this.shouldExecuteSearch),z(this.onBeginSearch),k(this._searchFunction),z(this.onCompleteSearch)).subscribe();this.resetInput()};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 r(u,null,r("div",{class:"relative"},r("input",{"data-testid":this.testId,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}}),r("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),r("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}());vn.style=hn;var gn=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,l,c,l,c,l,s,l,c;return __generator(this,(function(d){switch(d.label){case 0:t=Jt.superBuyer.superChoice;n=(e=Jt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!t)return[2,J];if(!n)return[2,J];r=t.dateSubmitted==undefined?J:Y(new Date(t.dateSubmitted));i=Bt(n);a=jt(n);o=n.kind;switch(o){case"Promoted":return[3,1];case"MyOwnFund":return[3,3];case"SMSF":return[3,5];case"Default":return[3,6];case"PromotedDefault":return[3,8];case"DefinedBenefits":return[3,10];case"PromotedDefaultWithJoin":return[3,12]}return[3,14];case 1:if(X(i))return[2,J];return[4,this.getFundByUsiAsync(i.value)];case 2:s=d.sent();return[2,Y({type:"Promoted Fund",id:Ut(n.promoted),name:K(s)?s.value.productName:i.value,usi:i,valid:"Active",memberNumber:a,lastNominatedAt:r})];case 3:u=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(u)];case 4:s=d.sent();return[2,Y({type:"My Own Fund",name:K(s)?s.value.productName:u,usi:i,valid:this.toFundValidState(s),memberNumber:a,lastNominatedAt:r})];case 5:return[2,Y({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:r})];case 6:l=n.default.usi;return[4,this.getFundByUsiAsync(l)];case 7:c=d.sent();return[2,Y({type:"Default Fund",name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 8:l=n.promotedDefault.usi;return[4,this.getFundByUsiAsync(l)];case 9:c=d.sent();return[2,Y({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 10:l=n.definedBenefits.usi;return[4,this.getFundByUsiAsync(l)];case 11:s=d.sent();return[2,Y({type:"Defined Benefits Fund",name:K(s)?s.value.productName:l,usi:i,valid:this.toFundValidState(s),lastNominatedAt:r})];case 12:l=n.promotedDefaultWithJoin.usi;return[4,this.getFundByUsiAsync(l)];case 13:c=d.sent();return[2,Y({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),memberNumber:a,lastNominatedAt:r})];case 14:return[2,J]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().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 un.getFundAsync(e,true)};e.prototype.toFundValidState=function(e){if(K(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var yn=new gn;var bn=e("sss_existing_choice_page",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return K(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:K(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,yn.GetExistingFundAsync()];case 1:e=t.sent();if(K(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){return r("div",{class:"flex justify-center"})};var n=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},r("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"}))))};var o=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 s=function(){return e.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"mt-4"},r("sss-button",{testid:"choose-another-fund-button",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))};return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),this.existingFund.type=="Defined Benefits Fund"?null:r("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."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-400 w-full"},r("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},r("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return r(t,{name:e.existingFund.name});case"Self Managed Fund":return r(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return r(n,null);case"Default Fund":return r(a,null);case"Defined Benefits Fund":return r(o,null);default:return r("div",null)}}(),r("div",{class:"sm:text-lg font-bold leading-6 break-words"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";case"My Own Fund":case"Promoted Fund":case"Self Managed Fund":case"Promoted Default Fund":case"Defined Benefits Fund":case"Promoted Default Fund With Join":return e.existingFund.name;default:return""}}())),r("div",{class:"mt-6"},r("sss-button",{testid:"continue-with-this-fund-button",fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),r(s,null))))};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,yn.submitRetainSuperFundAsync(e)];case 1:t.sent();Jt.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();$t.navigateInternally(this.history,nt.ChoicePage);return[2]}}))}))};return e}());var wn="Powered by Flare";var Sn=e("sss_footer_section",function(){function e(e){var t=this;n(this,e);this.footerText=function(){return t.textOverride!==undefined?t.textOverride:wn}}e.prototype.render=function(){return r("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":true,"mt-8 sm:mt-20":!Jt.hideFooterSection}},!Jt.hideFooterSection&&r("span",null,this.footerText()),r("p",{class:"block text-transparent"},"v",G))};return e}());var xn=function(e,t){return r("stencil-route-link",{exact:true,url:e.route},r("div",{class:{"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":true,"bg-white shadow-sm text-primary-base":e.isActive,"hover:bg-primary-hover text-white":!e.isActive}},t))};var _n=function(e){var t=nt.MyOwnFund;if(window.location.href.includes(nt.SelfManagedFund)){t=nt.SelfManagedFund}else if(window.location.href.includes(nt.DefaultFund)){t=nt.DefaultFund}else if(window.location.href.includes(nt.FeaturedFunds)){t=nt.FeaturedFunds}return r(xn,{route:t,isActive:e.isActive},"Choose another fund")};var Cn=e("sss_header_section",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex justify-center"},r("div",{class:"text-center max-w-800"},r("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),r(o,null,r("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},Jt.superCampaignCanNotBeActivated?r(o,null,"You can choose any super fund, including your current fund/SMSF or your employer’s default fund."):r(o,null,"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.")),!Jt.superCampaignCanNotBeActivated&&r("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},r(xn,{route:nt.ChoicePage,isActive:false},"Featured super funds"),r(_n,{isActive:true})))))};return e}());var In=e("sss_loading_indicator",function(){function e(e){n(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return r("div",{class:"inline-block animate-spin"},r("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("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"}),r("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 Nn=e("sss_loading_page",function(){function e(e){n(this,e)}e.prototype.render=function(){return r(u,{class:"flex flex-col justify-center items-center"},r("h5",{class:"text-lg"},"Loading your superannuation step"),r("sss-loading-indicator",null))};return e}());var Fn=e("sss_my_own_fund",function(){function e(e){n(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Jt.promotedFunds,defaultFundUsiSet:Z(Jt.defaultFundUsi)})};e.prototype.render=function(){var e=this;var t=Jt.superCampaignCanNotBeActivated;return r(u,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("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()}},r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),r("div",{class:"ml-2"},r("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},r("li",null,"Make sure you are a current member of the fund before completing this step."),r("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),r("sss-my-own-fund-inputs",{myOwnFundForm:nn.myOwnFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){nn.myOwnFundForm=Object.assign(Object.assign({},nn.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}}),this.isNotAllInformationProvidedMessageVisible&&r("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.")),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},r("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),!t&&r("stencil-route-link",{url:nt.ChoicePage},r("sss-button",{testid:"back-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=K(nn.myOwnFundForm.fundUsi)&&K(nn.myOwnFundForm.memberNumber)&&K(nn.myOwnFundForm.memberFirstName)&&K(nn.myOwnFundForm.memberFamilyName);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}if(Jt.isBringYourOwnFundCustomStepEnabled&&Jt.isUsingSuperCampaign){$t.navigateInternally(this.history,nt.MyOwnFundEngagementStep);return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(nn.myOwnFundForm.fundName),fundDetails:{type:"myOwnFund",fundName:this.getOrError(nn.myOwnFundForm.fundName),fundUsi:this.getOrError(nn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(nn.myOwnFundForm.memberNumber)},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Object.assign({fundUsi:this.getOrError(nn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(nn.myOwnFundForm.memberNumber),memberFirstName:this.getOrError(nn.myOwnFundForm.memberFirstName),memberFamilyName:this.getOrError(nn.myOwnFundForm.memberFamilyName),standardChoiceFormSignature:e},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.getOrError=function(e){return ot.pipe(e,ee((function(){throw new Error("Option value is none.")})))};return e}());re(Fn);var En=e("sss_my_own_fund_engagement_step_host",function(){function e(e){var t=this;n(this,e);this.stepContinued=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="byof-engagement"))return[3,2];return[4,cn.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi,e.detail.reason)];case 1:t.sent();this.navigateToStandardChoice();t.label=2;case 2:return[2]}}))}))};this.subscribeToStepEvents=function(){for(var e in t.stepEventHandlers){document.addEventListener(e,t.stepEventHandlers[e])}};this.unSubscribeFromStepEvents=function(){for(var e in t.stepEventHandlers){document.removeEventListener(e,t.stepEventHandlers[e])}};this.stepEventHandlers={continue:this.stepContinued.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(Jt.isBringYourOwnFundCustomStepEnabled&&Jt.isUsingSuperCampaign&&st.isSome(nn.myOwnFundForm.fundUsi)&&st.isSome(nn.myOwnFundForm.fundName)&&st.isSome(nn.myOwnFundForm.memberNumber)&&st.isSome(nn.myOwnFundForm.memberFirstName)&&st.isSome(nn.myOwnFundForm.memberFamilyName)&&st.isSome(Jt.backendUrl)&&st.isSome(Jt.state.jwt)))return[3,2];this.backendUrl=Jt.backendUrl.value;this.accessToken=Jt.state.jwt.value;this.fundUsi=nn.myOwnFundForm.fundUsi.value;this.fundName=nn.myOwnFundForm.fundName.value;this.memberNumber=nn.myOwnFundForm.memberNumber.value;this.memberFirstName=nn.myOwnFundForm.memberFirstName.value;this.memberFamilyName=nn.myOwnFundForm.memberFamilyName.value;this.unSubscribeFromStepEvents();this.subscribeToStepEvents();Jt.hideFooterSection=true;return[4,cn.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi)];case 1:e.sent();return[3,3];case 2:$t.navigateInternally(this.history,nt.MyOwnFund);e.label=3;case 3:return[2]}}))}))};e.prototype.disconnectedCallback=function(){this.unSubscribeFromStepEvents();Jt.hideFooterSection=false};e.prototype.render=function(){return r(u,null,r("apollo-super-byof-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"fund-usi":this.fundUsi}))};e.prototype.navigateToStandardChoice=function(){var e=this;$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName,fundDetails:{type:"myOwnFund",fundName:this.fundName,fundUsi:this.fundUsi,memberNumber:this.memberNumber},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi,memberNumber:this.memberNumber,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName,standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}})};return e}());re(En);var An=e("sss_my_own_fund_inputs",function(){function e(e){var t=this;n(this,e);this.formChanged=l(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=25;this.searchFundsAsync=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:return[4,un.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=r.sent();switch(t.result){case"TooManyResults":{return[2,{kind:"too-many-results"}]}default:{n=t.data.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}));return[2,{kind:"success",value:n}]}}return[2]}}))}))};if(K(this.myOwnFundForm.fundUsi)&&K(this.myOwnFundForm.fundName)){this.selectedOption={label:this.myOwnFundForm.fundName.value,value:this.myOwnFundForm.fundUsi.value}}}e.prototype.render=function(){var e=this;return r("div",null,r("div",null,r("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),r("div",{class:"mt-1"},r("sss-dropdown-async",{testId:"fund-search-input",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})),K(this.myOwnFundForm.fundUsi)&&r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("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))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Member number"),r("div",{class:"mt-1"},r("input",{"data-testid":"member-number-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:Z(nn.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))),r("div",{class:"flex space-x-4"},r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Given name(s)"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-given-names-input",name:"memberFirstName",readableName:"Member given name(s)",showValidationErrors:this.showValidationErrors,value:Z(nn.myOwnFundForm.memberFirstName),onChange:function(t){return e.updateMemberFirstName(t.target.value.trim())}}))),r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Last name"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-last-name-input",name:"memberFamilyName",readableName:"Member last name",showValidationErrors:this.showValidationErrors,value:Z(nn.myOwnFundForm.memberFamilyName),onChange:function(t){return e.updateMemberFamilyName(t.target.value.trim())}})))))};e.prototype.updateFund=function(e){this.formChanged.emit({fundUsi:Y(e.value),fundName:Y(e.label)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:Y(e)})};e.prototype.updateMemberFirstName=function(e){this.formChanged.emit({memberFirstName:Y(e)})};e.prototype.updateMemberFamilyName=function(e){this.formChanged.emit({memberFamilyName:Y(e)})};return e}());var Tn=e("sss_name_input",function(){function e(e){n(this,e);this.myInputChange=l(this,"myInputChange",7);this.value="";this.name="";this.readableName="";this.showValidationErrors=false;this.errorMessage="";this.NAME_PATTERN="^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$"}e.prototype.render=function(){var e=this;return r(u,null,r("input",{"data-testid":this.testId,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:this.NAME_PATTERN,name:this.name,value:this.value,onInput:function(t){return e.handleInput(t)}}),this.errorMessage&&r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))};e.prototype.handleInput=function(e){var t=e.target;t.value=t.value.replace(/\s+/g," ");this.validateInput(t);this.myInputChange.emit(t.value.trim())};e.prototype.validateInput=function(e){if(!e.checkValidity()){if(e.validity.valueMissing){this.errorMessage=this.readableName+" is required."}else if(e.validity.patternMismatch){if(e.value.startsWith("-")||e.value.startsWith("'")){this.errorMessage=this.readableName+" must start with a letter."}else if(e.value.includes("--")){this.errorMessage=this.readableName+" must not have a double hypen."}else{this.errorMessage=this.readableName+" contains unsupported characters."}}else{this.errorMessage="Invalid input."}}else{this.errorMessage=""}};return e}());var kn=e("sss_prefill",function(){function e(e){n(this,e);this.prefill=undefined;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prefill=K(Jt.state.superChoicePrefill)?Jt.state.superChoicePrefill.value:undefined;return[2]}))}))};e.prototype.render=function(){if(this.prefill&&this.prefill.type==="myOwnFund"){if(this.prefill.data.fundDetail.type==="Valid"){return this.renderMyOwnFund(this.prefill.data)}else{return this.renderInvalidMyOwnFund(this.prefill.data)}}if(this.prefill&&this.prefill.type==="smsf"){if(this.prefill.data.fundAbn.valid){return this.renderSMSF(this.prefill.data)}else{return this.renderInvalidSMSF(this.prefill.data)}}$t.navigateInternally(this.history,nt.ChoicePage);return null};e.prototype.renderMyOwnFund=function(e){return r("sss-prefill-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderInvalidMyOwnFund=function(e){return r("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderSMSF=function(e){return r("sss-prefill-smsf",{history:this.history,prefill:e})};e.prototype.renderInvalidSMSF=function(e){return r("sss-prefill-invalid-smsf",{history:this.history,prefill:e})};return e}());var Pn=e("sss_prefill_display_field",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex w-full flex-col sm:flex-row sm:min-h-5 justify-center items-start gap-0.5 sm:gap-4 self-stretch"},r("div",{class:{"sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5":true,"text-red-600":!this.field.isValid}},this.field.name),r("div",{"data-testid":this.field.testId,class:{"sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words":true,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))};return e}());var Dn=e("sss_prefill_error_box",function(){function e(e){n(this,e);this.withHeader=false}e.prototype.render=function(){var e=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L8.58579 10L7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071C7.68342 13.0976 8.31658 13.0976 8.70711 12.7071L10 11.4142L11.2929 12.7071C11.6834 13.0976 12.3166 13.0976 12.7071 12.7071C13.0976 12.3166 13.0976 11.6834 12.7071 11.2929L11.4142 10L12.7071 8.70711C13.0976 8.31658 13.0976 7.68342 12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L10 8.58579L8.70711 7.29289Z",fill:"#F87171"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},r("div",{class:"w-1 self-stretch bg-red-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(e,null),r("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&r("div",{class:"self-stretch text-red-800 text-sm font-medium leading-tight"},"Please correct ",this.notificationList.length," issues with your fund details"),this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},r("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),r("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},e)))})),!this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"text-sm font-medium leading-tight text-red-800"},e)})))))};return e}());function Mn(e){return e==null||e.trim()===""}var On=function(e,t,n){return r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},e),r("div",{"data-testid":t,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"},n))};var Ln=function(){return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Review or update the below super fund nomination details provided by your employer."))};var Rn=function(){function e(){}e.Input=function(e){return{"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":e}};return e}();var Un="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";var Bn=function(){function e(e,t,n){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._errorMessage=this.validateAndReturnErrorMessage(this._value)}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._errorMessage=this.validateAndReturnErrorMessage(e);this._value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._errorMessage===null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Mn(this._value)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:false,configurable:true});return e}();var Vn=function(){function e(e,t,n,r){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._isValid=r}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Mn(this._value)},enumerable:false,configurable:true});return e}();var jn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund USI","fund-usi",t,n)||this}return t}(Vn);var qn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund name","fund-name",t,n)||this}return t}(Vn);var zn=function(e){__extends(t,e);function t(t){return e.call(this,"Fund name","smsf-fund-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Fund name is required."}else if(e.length<2){return"Enter a valid Fund name."}else{return null}};return t}(Bn);var Hn=function(e){__extends(t,e);function t(t){return e.call(this,"Member number","member-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[A-Za-z0-9]{4,16}$/;if(Mn(e)){return"Member number is required."}else if(!t.test(e)){return"Enter a valid member number (only numbers and / or letters)"}else{return null}};return t}(Bn);var Wn=function(e){__extends(t,e);function t(t){return e.call(this,"Member last name","member-last-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Un);if(Mn(e)){return"Member last name is required."}else if(!t.test(e)){return"Member last name contains unsupported characters."}else{return null}};return t}(Bn);var Gn=function(e){__extends(t,e);function t(t){return e.call(this,"Member given name(s)","member-given-names",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Un);if(Mn(e)){return"Member given name(s) is required."}else if(!t.test(e)){return"Member given name(s) contains unsupported characters."}else{return null}};return t}(Bn);var Kn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund ABN","fund-abn",t,n)||this}return t}(Vn);var Xn=function(e){__extends(t,e);function t(t){return e.call(this,"Fund ESA","fund-esa",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Fund ESA is required."}else if(e.length<2){return"Enter a valid Fund ESA."}else{return null}};return t}(Bn);var Jn=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 1","address-line-one",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Address line 1 is required."}else if(e.length<2){return"Enter a valid Address line 1."}else{return null}};return t}(Bn);var Yn=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 2","address-line-two",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){return null};return t}(Bn);var $n=function(e){__extends(t,e);function t(t){return e.call(this,"City/suburb","city-suburb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"City/suburb is required."}else{return null}};return t}(Bn);var Zn=function(e){__extends(t,e);function t(t){return e.call(this,"Postcode","postcode",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{4}$/;if(Mn(e)){return"Postcode is required."}else if(!t.test(e)){return"Enter a valid postcode."}else{return null}};return t}(Bn);var Qn=function(e){__extends(t,e);function t(t){return e.call(this,"State","state",t)||this}Object.defineProperty(t.prototype,"options",{get:function(){return[{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"}]},enumerable:false,configurable:true});t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"State is required."}else if(this.options.find((function(t){return t.value=e}))===undefined){return"Enter a valid state."}else{return null}};return t}(Bn);var er=function(e){__extends(t,e);function t(t,n,r,i,a){var o=this;var s=[t,n,r,i,a].map((function(e){return e.value})).filter((function(e){return e})).join(", ");var u=t.isValid&&n.isValid&&r.isValid&&i.isValid&&a.isValid;o=e.call(this,"Fund address","fund-address",s,u)||this;return o}return t}(Vn);var tr=function(e){__extends(t,e);function t(t){return e.call(this,"Account name","account-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Account name is required."}else if(e.length<2){return"Enter a valid Account name."}else{return null}};return t}(Bn);var nr=function(e){__extends(t,e);function t(t,n){return e.call(this,"Bank name","bank-name",t,n)||this}return t}(Vn);var rr=function(e){__extends(t,e);function t(t){return e.call(this,"BSB","bsb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{6,7}$/;if(Mn(e)){return"BSB is required."}else if(!t.test(e)){return"Enter a valid BSB."}else{return null}};return t}(Bn);var ir=function(e){__extends(t,e);function t(t){return e.call(this,"Account number","account-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{2,11}$/;if(Mn(e)){return"Account number is required."}else if(!t.test(e)){return"Enter a valid Account number."}else{return null}};return t}(Bn);var ar=e("sss_prefill_invalid_my_own_fund",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Invalid"){this.fundUsi=new jn(this.prefill.fundDetail.fundUsi,false);this.fundName=new qn("",false);this.memberNumber=new Hn(this.prefill.memberNumber);this.memberGivenNames=new Gn(this.prefill.memberFirstName);this.memberLastName=new Wn(this.prefill.memberFamilyName)}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund USI is invalid, or no longer in use. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleChooseAnotherFund()}},"Choose another fund"))))};e.prototype.handleChooseAnotherFund=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var or=e("sss_prefill_invalid_smsf",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&!this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{$t.navigateInternally(this.history,nt.PrefillInvalidMyOwnFundPage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund ABN is invalid. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),r("sss-prefill-display-field",{field:this.bankAccountNumber})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.initialiseComponent=function(e){this.fundName=new zn(e.fundName);this.fundAbn=new Kn(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Xn(e.electronicServiceAddress);this.fundAddressLine1=new Jn(e.addressLine1);this.fundAddressLine2=new Yn(e.addressLine2);this.fundAddressCity=new $n(e.addressCity);this.fundAddressPostcode=new Zn(e.addressPostcode);this.fundAddressState=new Qn(e.addressState);this.fundAddress=new er(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new Gn(e.memberFirstName);this.memberLastName=new Wn(e.memberFamilyName);this.bankAccountName=new tr(e.bankAccountName);this.bankAccountBsb=new rr(e.bankAccountBsb);this.bankAccountNumber=new ir(e.bankAccountNumber)};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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var sr=e("sss_prefill_my_own_fund",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Valid"){this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill)}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure you are a current member of the fund before completing this step.","Please check that the fund USI is correct as some funds have similar names."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("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.formHasMissingData()}},On(this.fundName.name,this.fundName.testId,this.fundName.value),On(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:function(t){e.updateMemberNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberNumber.errorMessage))),r("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:Un,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:Un,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage))))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))))};e.prototype.initialiseComponent=function(e,t){this.fundUsi=new jn(t.fundDetail.fundUsi,true);this.fundName=new qn(e,true);this.memberNumber=new Hn(t.memberNumber);this.memberGivenNames=new Gn(t.memberFirstName);this.memberLastName=new Wn(t.memberFamilyName);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.isFormValid=function(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid};e.prototype.formHasMissingData=function(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateMemberNumber=function(e){this.memberNumber=new Hn(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new Gn(e.trimStart())};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Wn(e.trim())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var ur={"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 lr=e("sss_prefill_smsf",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{$t.navigateInternally(this.history,nt.PrefillInvalidSMSFPage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.fundName.errorMessage,this.fundEsa.errorMessage,this.fundAddressLine1.errorMessage,this.fundAddressLine2.errorMessage,this.fundAddressCity.errorMessage,this.fundAddressPostcode.errorMessage,this.fundAddressState.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage,this.bankAccountName.errorMessage,this.bankAccountBsb.errorMessage,this.bankAccountNumber.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&r("sss-prefill-display-field",{field:this.bankName}),r("sss-prefill-display-field",{field:this.bankAccountNumber})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"w-full":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:function(t){e.updateFundName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundName.errorMessage))),On(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:function(t){e.updateFundEsa(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundEsa.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),r("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},r("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-t-md shadow-none border-b-0":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:function(t){e.updateAddressLine1(t.target.value)}}),r("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:function(t){return e.updateAddressLine2(t.target.value)}}),r("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),required:true,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:function(t){e.updateAddressCity(t.target.value)}}),r("div",{class:"flex -space-x-px"},r("div",{class:"w-1/2 flex-1 min-w-0"},r("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-bl-md shadow-none border-r-0":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:function(t){e.updateAddressPostcode(t.target.value)}})),r("div",{class:"flex-1 min-w-0"},r("select",{class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.formState!=="validated"}),name:"state",required:true,"data-testid":this.fundAddressState.testId,id:"state",onInput:function(t){e.updateAddressState(t.target.value)}},r("option",{disabled:true,selected:this.fundAddressState.value!==undefined,value:""},"State"),this.fundAddressState.options.map((function(t){return r("option",{value:t.value,selected:e.fundAddressState.value===t.value},t.label)})))))),this.formState==="validated"&&r("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),r("div",{class:"flex gap-x-4 flex-col sm:flex-row"},r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage)))),r("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:function(t){e.updateBankAccountName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountName.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:function(t){var n=t.target.value;e.updateBankName(n);e.updateBankAccountBsb(n)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&On(this.bankName.name,this.bankName.testId,this.bankName.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:function(t){e.updateBankAccountNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountNumber.errorMessage)))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.isFormValid=function(){return this.fundName.isValid&&this.fundAbn.isValid&&this.fundEsa.isValid&&this.fundAddressLine1.isValid&&this.fundAddressLine2.isValid&&this.fundAddressCity.isValid&&this.fundAddressPostcode.isValid&&this.fundAddressState.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid&&this.bankAccountName.isValid&&this.bankAccountBsb.isValid&&this.bankAccountNumber.isValid};e.prototype.formHasMissingData=function(){return this.fundName.isEmpty||this.fundAbn.isEmpty||this.fundEsa.isEmpty||this.fundAddressLine1.isEmpty||this.fundAddressCity.isEmpty||this.fundAddressPostcode.isEmpty||this.fundAddressState.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty||this.bankAccountName.isEmpty||this.bankAccountBsb.isEmpty||this.bankAccountNumber.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateFundName=function(e){this.fundName=new zn(e.trim())};e.prototype.updateFundEsa=function(e){this.fundEsa=new Xn(e.trim())};e.prototype.updateAddressLine1=function(e){this.fundAddressLine1=new Jn(e.trim())};e.prototype.updateAddressLine2=function(e){this.fundAddressLine2=new Yn(e.trim())};e.prototype.updateAddressCity=function(e){this.fundAddressCity=new $n(e.trim())};e.prototype.updateAddressPostcode=function(e){this.fundAddressPostcode=new Zn(e.trim())};e.prototype.updateAddressState=function(e){this.fundAddressState=new Qn(e.trim())};e.prototype.updateBankAccountName=function(e){this.bankAccountName=new tr(e.trim())};e.prototype.updateBankAccountBsb=function(e){this.bankAccountBsb=new rr(e.trim())};e.prototype.updateBankAccountNumber=function(e){this.bankAccountNumber=new ir(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new Gn(e)};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Wn(e.trim())};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.tryGetBankName=function(e){if(e==null)return null;var t=this.filterDigits(e);var n=t.substring(0,2);var r=t.substring(0,3);var i=ur[n];var a=ur[r];if(i)return i;if(a)return a;return null};e.prototype.updateBankName=function(e){var t=this.tryGetBankName(e);this.bankName=new nr(t,t!=null)};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({smsfChoice:{abn:this.fundAbn.value,fundName:this.fundName.value,fundAddress:{addressLine1:this.fundAddressLine1.value,addressLine2:this.fundAddressLine2.value.trim()===""?null:this.fundAddressLine2.value.trim(),city:this.fundAddressCity.value,state:this.fundAddressState.value,postcode:this.fundAddressPostcode.value},bsb:this.bankAccountBsb.value,bankAccountName:this.bankAccountName.value,bankAccountNumber:this.bankAccountNumber.value,electronicServiceAddress:this.fundEsa.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value},standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitSelfManagedFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.initialiseComponent=function(e){this.fundName=new zn(e.fundName);this.fundAbn=new Kn(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Xn(e.electronicServiceAddress);this.fundAddressLine1=new Jn(e.addressLine1);this.fundAddressLine2=new Yn(e.addressLine2);this.fundAddressCity=new $n(e.addressCity);this.fundAddressPostcode=new Zn(e.addressPostcode);this.fundAddressState=new Qn(e.addressState);this.fundAddress=new er(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new Gn(e.memberFirstName);this.memberLastName=new Wn(e.memberFamilyName);this.bankAccountName=new tr(e.bankAccountName);var t=this.tryGetBankName(e.bankAccountBsb);this.bankName=new nr(t,t!=null);this.bankAccountBsb=new rr(e.bankAccountBsb);this.bankAccountNumber=new ir(e.bankAccountNumber);this.isSubmitDisabled=this.formHasMissingData()};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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var cr=e("sss_prefill_warning_box",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;var t=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},r("div",{class:"w-1 self-stretch bg-yellow-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(t,null),r("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},r("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((function(t){return r("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},e.notificationList.length>1&&r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),r("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))}))))))};return e}());var dr=e("sss_standard_choice_form",function(){function e(e){n(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=this;return r(u,null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),r("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."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-560"},r("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),r("div",{class:"flex justify-between w-full"},r("div",null,r("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),r("div",{class:"text-sm mt-2"},tt.fundName)),r("div",{class:"grid content-center ml-4"},r("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.trackChangeRequestedAsync()];case 1:e.sent();$t.navigateInternally(this.history,nt.ChoicePage);return[2]}}))}))}},"Change")))),r("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},r("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),r("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-information-circle.svg")})),r("div",{class:"ml-2"},r("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.")))),r("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()}},r("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),r("input",{"data-testid":"standard-choice-form-signature-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}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),r("div",{class:"mt-6"},r("sss-button",{testid:"confirm-and-continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.renderLogo=function(){return};e.prototype.trackChangeRequestedAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e={promotedFundsShown:Jt.promotedFunds,defaultFundUsiSet:Z(Jt.defaultFundUsi)};t=tt.fundDetails.type;switch(t){case"default":return[3,1];case"myOwnFund":return[3,3];case"smsf":return[3,5];case"promoted":return[3,7];case"promotedDefault":return[3,9];case"promotedDefaultWithJoin":return[3,11];case"null":return[3,13]}return[3,14];case 1:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 2:n.sent();return[3,14];case 3:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 4:n.sent();return[3,14];case 5:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},tt.fundDetails),e)})];case 6:n.sent();return[3,14];case 7:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 8:n.sent();return[3,14];case 9:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 10:n.sent();return[3,14];case 11:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},tt.fundDetails),e)})];case 12:n.sent();return[3,14];case 13:throw"standardChoiceFormState.fundDetails was not set";case 14:return[2]}}))}))};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,tt.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();Jt.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var fr=e("sss_success",function(){function e(e){n(this,e);this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},r("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 r(u,{class:"text-center"},r("div",{class:"flex justify-center"},r("div",{class:"relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},r(e,null)))),r("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),r("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."),r("div",{class:"flex justify-center mt-8"},r("div",{class:"max-w-[200px] w-full"},r("sss-button",{testid:"continue-button",size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},r("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){Jt.completeSuperSelectionFlow()};return e}());var pr=function(){function e(){}e.prototype.trackClickPromotedTileAsync=function(e){return Ht.clickPromotedTileAsync(e)};return e}();var hr=new pr;var mr=function(){if(Jt.superCampaignState!=undefined)return Jt.superCampaignState;throw new Error("Super campaign state has not been initialized")};var vr=function(e){var t=e.sender,n=e.placementId,r=e.fundId,i=e.fundUsi,a=e.fundName,o=e.fundType;return __awaiter(A,void 0,void 0,(function(){var e,s,u,l,c;return __generator(this,(function(d){switch(d.label){case 0:if(!(t==="super-campaign"||t==="featured-funds"))return[3,6];e=mr().PromotedFundIds;s=st.toUndefined(Jt.defaultFundUsi);l=(u=Promise).all;if(!(o==="promoted-default"))return[3,2];return[4,cn.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:"",fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:s,superCampaignEnabled:true,placementId:n})];case 1:c=d.sent();return[3,4];case 2:return[4,cn.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:undefined,fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:s,superCampaignEnabled:true,placementId:n})];case 3:c=d.sent();d.label=4;case 4:return[4,l.apply(u,[[c,hr.trackClickPromotedTileAsync(o==="promoted-default"?{promotedDefault:{fundId:r,placementId:n}}:{promoted:{fundId:r,placementId:n}})]])];case 5:d.sent();d.label=6;case 6:return[2]}}))}))};var gr="function";var yr="object";var br="undefined";var wr="prototype";var Sr="hasOwnProperty";function xr(){if(typeof globalThis!==br&&globalThis){return globalThis}if(typeof self!==br&&self){return self}if(typeof window!==br&&window){return window}if(typeof global!==br&&global){return global}return null}function _r(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==yr&&n!==gr){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[wr]=e;return new r}function Cr(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[wr][Sr].call(t,i)){e[i]=t[i]}}}return e}var Ir=function(e,t){Ir=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Sr](n)){e[n]=t[n]}}};return Ir(e,t)};function Nr(e,t){Ir(e,t);function n(){this.constructor=e}e[wr]=t===null?_r(t):(n[wr]=t[wr],new n)}var Fr=xr()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Fr,Cr,Nr);if(!__assign){__assign=Fr.__assign}if(!__extends){__extends=Fr.__extends}var Er={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Ar=br;var Tr=yr;var kr=wr;var Pr=gr;var Dr="window";var Mr="document";var Or="navigator";var Lr="history";var Rr="location";var Ur="console";var Br="performance";var Vr="JSON";var jr="crypto";var qr="msCrypto";var zr="ReactNative";var Hr=xr;function Wr(e){var t=Hr();if(t&&t[e]){return t[e]}if(e===Dr&&Gr()){return window}return null}function Gr(){return Boolean(typeof window===Tr&&window)}function Kr(){if(Gr()){return window}return Wr(Dr)}function Xr(){return Boolean(typeof document===Tr&&document)}function Jr(){if(Xr()){return document}return Wr(Mr)}function Yr(){return Boolean(typeof navigator===Tr&&navigator)}function $r(){if(Yr()){return navigator}return Wr(Or)}function Zr(){return Boolean(typeof history===Tr&&history)}function Qr(){if(Zr()){return history}return Wr(Lr)}function ei(){if(typeof location===Tr&&location){return location}return Wr(Rr)}function ti(){if(typeof console!==Ar){return console}return Wr(Ur)}function ni(){return Wr(Br)}function ri(){return Boolean(typeof JSON===Tr&&JSON||Wr(Vr)!==null)}function ii(){if(ri()){return JSON||Wr(Vr)}return null}function ai(){return Wr(jr)}function oi(){return Wr(qr)}function si(){var e=$r();if(e&&e.product){return e.product===zr}return false}var ui="on";var li="attachEvent";var ci="addEventListener";var di="detachEvent";var fi="removeEventListener";var pi=4294967296;var hi=4294967295;var mi=null;var vi=false;var gi=123456789;var yi=987654321;function bi(e){if(e<0){e>>>=0}gi=123456789+e&hi;yi=987654321-e&hi;vi=true}function wi(){bi(Math.random()*pi^(new Date).getTime())}function Si(e,t){return typeof e===t}function xi(e){return Si(e,br)||e===undefined}function _i(e){return xi(e)||e===null}function Ci(e,t){return e&&Object[wr].hasOwnProperty.call(e,t)}function Ii(e){return Si(e,yr)}function Ni(e){return Si(e,gr)}function Fi(e,t,n,r){if(r===void 0){r=false}var i=false;if(!_i(e)){try{if(!_i(e[ci])){e[ci](t,n,r);i=true}else if(!_i(e[li])){e[li](ui+t,n);i=true}}catch(e){}}return i}function Ei(e,t,n,r){if(r===void 0){r=false}if(!_i(e)){try{if(!_i(e[fi])){e[fi](t,n,r)}else if(!_i(e[di])){e[di](ui+t,n)}}catch(e){}}}function Ai(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Ti(e,t){if(e&&Ii(e)){for(var n in e){if(Ci(e,n)){t.call(e,n,e[n])}}}}var ki=function(){function e(){}e.isDate=function(e){return Object[wr].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[wr].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[wr].toString.call(e)==="[object Error]"};e.isString=function(e){return Si(e,"string")};e.isNumber=function(e){return Si(e,"number")};e.isBoolean=function(e){return Si(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Pi,(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(!Ni(e)&&(!Ii(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ci(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(Ci(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=Kr();if(r){n=Fi(r,e,t);n=Fi(r["body"],e,t)||n}var i=Jr();if(i){n=Di.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=ni();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(mi===null){var e=$r()||{};var t=(e.userAgent||"").toLowerCase();mi=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return mi};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/hi*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=ai()||oi();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&hi}else if(e.isIE()){if(!vi){wi()}n=e.mwcRandom32()&hi}else{n=Math.floor(pi*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){wi()}else{bi(e)}};e.mwcRandom32=function(e){yi=36969*(yi&65535)+(yi>>16)&hi;gi=18e3*(gi&65535)+(gi>>16)&hi;var t=(yi<<16)+(gi&65535)>>>0&hi|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=Si;e.isUndefined=xi;e.isNullOrUndefined=_i;e.hasOwnProperty=Ci;e.isFunction=Ni;e.isObject=Ii;e.objCreate=_r;return e}();var Pi=/[xy]/g;var Di=function(){function e(){}e.Attach=Fi;e.AttachEvent=Fi;e.Detach=Ei;e.DetachEvent=Ei;return e}();var Mi;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(Mi||(Mi={}));var Oi={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,t){"use strict";var n,r,i,a,o,s,u,l,c,d,f,p,h,m,v,g,y,b,w,S,x,_,C,I,N,F,E;return{setters:[function(e){n=e.r;r=e.h;i=e.g;a=e.f;o=e.F;s=e.a;u=e.H;l=e.c;c=e.s;d=e.d;f=e.e},function(e){p=e.f;h=e.m;m=e.S;v=e.a;g=e.i;y=e.b;b=e.O;w=e.c;S=e.d;x=e.g;_=e.h;C=e.j;I=e.k;N=e.l;F=e.Q},function(e){E=e.A}],execute:function(){var A=this;function T(){}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 p(e(n,r)).pipe(h((function(e,i){return t(n,e,r,i)})))}),n))}}else if(typeof t==="number"){n=t}return function(t){return t.lift(new P(e,n))}}var P=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 D(e,this.project,this.concurrent))};return e}();var D=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=g(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}(m);function M(e,t,n,r){if(w(n)){r=n;n=undefined}if(r){return M(e,t,n).pipe(h((function(e){return y(e)?r.apply(void 0,e):r(e)})))}return new b((function(r){function i(e){if(arguments.length>1){r.next(Array.prototype.slice.call(arguments))}else{r.next(e)}}O(e,t,i,r,n)}))}function O(e,t,n,r,i){var a;if(U(e)){var o=e;e.addEventListener(t,n,i);a=function(){return o.removeEventListener(t,n,i)}}else if(R(e)){var s=e;e.on(t,n);a=function(){return s.off(t,n)}}else if(L(e)){var u=e;e.addListener(t,n);a=function(){return u.removeListener(t,n)}}else if(e&&e.length){for(var l=0,c=e.length;l<c;l++){O(e[l],t,n,r,i)}}else{throw new TypeError("Invalid event target")}r.add(a)}function L(e){return e&&typeof e.addListener==="function"&&typeof e.removeListener==="function"}function R(e){return e&&typeof e.on==="function"&&typeof e.off==="function"}function U(e){return e&&typeof e.addEventListener==="function"&&typeof e.removeEventListener==="function"}function B(e,t){if(t===void 0){t=S}return function(n){return n.lift(new V(e,t))}}var V=function(){function e(e,t){this.dueTime=e;this.scheduler=t}e.prototype.call=function(e,t){return t.subscribe(new j(e,this.dueTime,this.scheduler))};return e}();var j=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(q,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 q(e){e.debouncedNext()}function z(e,t,n){return function r(i){return i.lift(new H(e,t,n))}}var H=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 W(e,this.nextOrObserver,this.error,this.complete))};return e}();var W=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this,t)||this;a._tapNext=T;a._tapError=T;a._tapComplete=T;a._tapError=r||T;a._tapComplete=i||T;if(w(n)){a._context=a;a._tapNext=n}else if(n){a._context=n;a._tapNext=n.next||T;a._tapError=n.error||T;a._tapComplete=n.complete||T}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 G="5.53.14680";var K=function(e){return e._tag==="Some"};var X=function(e){return e._tag==="None"};var J={_tag:"None"};var Y=function(e){return{_tag:"Some",value:e}};function $(e){return e==null?J:Y(e)}function Z(e){return X(e)?undefined:e.value}var Q=function(e){return function(t){return X(t)?e():t.value}};var ee=Q;var te=function(){function e(e){this.factory=e;this._value=J}Object.defineProperty(e.prototype,"value",{get:function(){if(K(this._value)){return this._value.value}var e=this.factory();this._value=Y(e);return e},enumerable:false,configurable:true});return e}();function ne(){if(!window.location.pathname.endsWith("/")){var e=window.location.pathname+"/"+window.location.search+window.location.hash;history.pushState(history.state,"",e)}}function re(e){E.injectProps(e,["history","location"])}var ie="/";var ae="./";var oe=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");var se=function(e,t){var n=[];var r=0;var i=0;var a="";var o=t&&t.delimiter||ie;var s=t&&t.delimiters||ae;var u=false;var l;while((l=oe.exec(e))!==null){var c=l[0];var d=l[1];var f=l.index;a+=e.slice(i,f);i=f+c.length;if(d){a+=d[1];u=true;continue}var p="";var h=e[i];var m=l[2];var v=l[3];var g=l[4];var y=l[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 S=y==="+"||y==="*";var x=y==="?"||y==="*";var _=p||o;var C=v||g;n.push({name:m||r++,prefix:p,delimiter:_,optional:x,repeat:S,partial:w,pattern:C?le(C):"[^"+ue(_)+"]+?"})}if(a||i<e.length){n.push(a+e.substr(i))}return n};var ue=function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")};var le=function(e){return e.replace(/([=!:$/()])/g,"\\$1")};var ce=function(e){return e&&e.sensitive?"":"i"};var de=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 fe=function(e,t,n){var r=[];for(var i=0;i<e.length;i++){r.push(me(e[i],t,n).source)}return new RegExp("(?:"+r.join("|")+")",ce(n))};var pe=function(e,t,n){return he(se(e,n),t,n)};var he=function(e,t,n){n=n||{};var r=n.strict;var i=n.end!==false;var a=ue(n.delimiter||ie);var o=n.delimiters||ae;var s=[].concat(n.endsWith||[]).map(ue).concat("$").join("|");var u="";var l=false;for(var c=0;c<e.length;c++){var d=e[c];if(typeof d==="string"){u+=ue(d);l=c===e.length-1&&o.indexOf(d[d.length-1])>-1}else{var f=ue(d.prefix||"");var p=d.repeat?"(?:"+d.pattern+")(?:"+f+"(?:"+d.pattern+"))*":d.pattern;if(t)t.push(d);if(d.optional){if(d.partial){u+=f+"("+p+")?"}else{u+="(?:"+f+"("+p+"))?"}}else{u+=f+"("+p+")"}}}if(i){if(!r)u+="(?:"+a+")?";u+=s==="$"?"$":"(?="+s+")"}else{if(!r)u+="(?:"+a+"(?="+s+"))?";if(!l)u+="(?="+a+"|"+s+")"}return new RegExp("^"+u,ce(n))};var me=function(e,t,n){if(e instanceof RegExp){return de(e,t)}if(Array.isArray(e)){return fe(e,t,n)}return pe(e,t,n)};var ve=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};var ge=function(e,t){return ve(e,t)?e.substr(t.length):e};var ye=function(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e};var be=function(e){return e.charAt(0)==="/"?e:"/"+e};var we=function(e){return e.charAt(0)==="/"?e.substr(1):e};var Se=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 xe=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 _e=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 Ce=function(e){return e.charAt(0)==="/"};var Ie=function(e){return Math.random().toString(36).substr(2,e)};var Ne=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 Fe=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&&Ce(e);var s=t&&Ce(t);var u=o||s;if(e&&Ce(e)){n=a}else if(a.length){n.pop();n=n.concat(a)}if(!n.length){return"/"}if(n.length){var l=n[n.length-1];r=l==="."||l===".."||l===""}else{r=false}for(var c=n.length;c>=0;c--){var d=n[c];if(d==="."){Ne(n,c)}else if(d===".."){Ne(n,c);i++}else if(i){Ne(n,c);i--}}if(!u){for(;i--;i){n.unshift("..")}}if(u&&n[0]!==""&&(!n[0]||!Ce(n[0]))){n.unshift("")}var f=n.join("/");if(r&&f.substr(-1)!=="/"){f+="/"}return f};var Ee=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 Ee(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 Ee(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 Ee(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&&Ee(e.state,t.state)};var Te=function(e,t,n,r){var i;if(typeof e==="string"){i=Se(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=Fe(i.pathname,r.pathname)}}else{if(!i.pathname){i.pathname="/"}}i.query=_e(i.search||"");return i};var ke=0;var Pe={};var De=1e4;var Me=function(e,t){var n=""+t.end+t.strict;var r=Pe[n]||(Pe[n]={});var i=JSON.stringify(e);if(r[i]){return r[i]}var a=[];var o=me(e,a,t);var s={re:o,keys:a};if(ke<De){r[i]=s;ke+=1}return s};var Oe=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=Me(r,{end:a,strict:s}),l=u.re,c=u.keys;var d=l.exec(e);if(!d){return null}var f=d[0],p=d.slice(1);var h=e===f;if(a&&!h){return null}return{path:r,url:r==="/"&&f===""?"/":f,isExact:h,params:c.reduce((function(e,t,n){e[t.name]=p[n];return e}),{})}};var Le=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&&Ee(e.params,t.params)};var Re;(function(e){e[e["Available"]=0]="Available";e[e["Pending"]=1]="Pending";e[e["Error"]=2]="Error"})(Re||(Re={}));var Ue=e("sss_button",function(){function e(e){n(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=Re.Available}e.prototype.render=function(){var e;var t=this;var n={xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"};return r("button",{"data-testid":this.testid,class:(e={},e[n[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["border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white"]=this.variant==="light",e["w-full"]=this.fillWidth||this.fillWidthOnMobile,e["sm:w-auto"]=this.fillWidthOnMobile,e),disabled:this.disabled,onClick:function(){return t.clicked()}},this.state===Re.Pending&&r("sss-loading-indicator",{theme:this.variant==="primary"?"light":"primary",size:16}),r("div",{class:{hidden:this.state===Re.Pending}},r("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===Re.Pending)return[2];t.label=1;case 1:t.trys.push([1,3,,4]);this.state=Re.Pending;return[4,this.promiseFn()];case 2:t.sent();this.state=Re.Available;return[3,4];case 3:e=t.sent();this.state=Re.Error;throw e;case 4:return[2]}}))}))};return e}());function Be(){Ve({type:"appReady"})}function Ve(e,t){if(t===undefined)t="*";e.sender="flare";window.parent.postMessage(e,t)}function je(e,t){Ve({type:"contentResized",height:e,width:t})}function qe(e){Ve({type:"pageNavigated",url:e})}function ze(){Ve({type:"complete"})}function He(){Ve({type:"submitSuccess"})}var We={appReady:Be,resize:je,navigation:qe,complete:ze,submitSuccess:He};var Ge=function(e,t,n){var r=e.get(t);if(!r){e.set(t,[n])}else if(!r.includes(n)){r.push(n)}};var Ke=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 Xe=function(e){return!("isConnected"in e)||e.isConnected};var Je=Ke((function(e){for(var t=0,n=e.keys();t<n.length;t++){var r=n[t];e.set(r,e.get(r).filter(Xe))}}),2e3);var Ye=function(e){var t=e.on;var n=new Map;if(typeof i==="function"){t("dispose",(function(){n.clear()}));t("get",(function(e){var t=i();if(t){Ge(n,e,t)}}));t("set",(function(e){var t=n.get(e);if(t){n.set(e,t.filter(a))}Je(n)}));t("reset",(function(){n.forEach((function(e){return e.forEach(a)}));Je(n)}))}};var $e=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 l=function(e,t){r[e].push(t);return function(){Ze(r[e],t)}};var c=function(t,n){var r=l("set",(function(e,r){if(e===t){n(r)}}));var i=l("reset",(function(){return n(e[t])}));return function(){r();i()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:o,set:s,on:l,onChange:c,use:d,dispose:a,reset:i}};var Ze=function(e,t){var n=e.indexOf(t);if(n>=0){e[n]=e[e.length-1];e.length--}};var Qe=function(e,t){var n=$e(e,t);Ye(n);return n};var et={handleSubmitFn:function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))},fundName:"",fundDetails:{type:"null"},promotedFundId:undefined};var tt=Qe(et).state;var nt;(function(e){e["ExistingChoicePage"]="/existing";e["SuperCampaign"]="/super-campaign";e["ChoicePage"]="/";e["MyOwnFund"]="/super-choice/my-own-fund/";e["MyOwnFundEngagementStep"]="/super-choice/my-own-fund-engagement/";e["Prefill"]="/super-choice/prefill/";e["PrefillInvalidMyOwnFundPage"]="/super-choice/sss-prefill-invalid-my-own-fund/";e["PrefillMyOwnFundPage"]="/super-choice/prefill-my-own-fund/";e["PrefillSMSFPage"]="/super-choice/prefill-smsf/";e["PrefillInvalidSMSFPage"]="/super-choice/prefill-invalid-smsf/";e["SelfManagedFund"]="/super-choice/smsf/";e["DefaultFund"]="/super-choice/default/";e["FeaturedFunds"]="/super-choice/featured-funds/";e["StandardChoice"]="/standard-choice/";e["Success"]="/success/"})(nt||(nt={}));var rt=[r("stencil-route",{url:nt.ExistingChoicePage,component:"sss-existing-choice-page"}),r("stencil-route",{url:nt.SuperCampaign,component:"sss-super-campaign-host"}),r("stencil-route",{exact:true,url:nt.ChoicePage,component:"sss-choice-router"}),r("stencil-route",{url:nt.MyOwnFund,component:"sss-my-own-fund"}),r("stencil-route",{url:nt.MyOwnFundEngagementStep,component:"sss-my-own-fund-engagement-step-host"}),r("stencil-route",{url:nt.PrefillInvalidMyOwnFundPage,component:"sss-prefill-invalid-my-own-fund"}),r("stencil-route",{url:nt.Prefill,component:"sss-prefill"}),r("stencil-route",{url:nt.PrefillMyOwnFundPage,component:"sss-prefill-my-own-fund"}),r("stencil-route",{url:nt.PrefillSMSFPage,component:"sss-prefill-smsf"}),r("stencil-route",{url:nt.PrefillInvalidSMSFPage,component:"sss-prefill-invalid-smsf"}),r("stencil-route",{url:nt.SelfManagedFund,component:"sss-super-smsf-host"}),r("stencil-route",{url:nt.DefaultFund,component:"sss-default-fund"}),r("stencil-route",{url:nt.FeaturedFunds,component:"sss-super-campaign-featured-funds"}),r("stencil-route",{url:nt.StandardChoice,component:"sss-standard-choice-form"}),r("stencil-route",{url:nt.Success,component:"sss-success"})];function it(e,t,n){return n={path:t,exports:{},require:function(e,t){return at()}},e(n,n.exports),n.exports}function at(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ot=it((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 l(e){return e-1}t.decrement=l;function c(e){throw new Error("Called `absurd` function which should be uncallable")}t.absurd=c;function d(e){return function(t){return e.apply(void 0,t)}}t.tupled=d;function f(e){return function(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e(t)}}t.untupled=f;function p(e,t,n,r,i,a,o,s,u,l,c,d,f,p,h,m,v,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 l(u(s(o(a(i(r(n(t(e)))))))));case 11:return c(l(u(s(o(a(i(r(n(t(e))))))))));case 12:return d(c(l(u(s(o(a(i(r(n(t(e)))))))))));case 13:return f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))));case 14:return p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))));case 15:return h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))));case 16:return m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))));case 17:return v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))));case 18:return g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))));case 19:return y(g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e))))))))))))))))));case 20:return b(y(g(v(m(h(p(f(d(c(l(u(s(o(a(i(r(n(t(e)))))))))))))))))))}return}t.pipe=p;t.hole=c;var h=function(e,t,n){var r;return Object.assign({},e,(r={},r[t]=n,r))};t.bind_=h;var m=function(e){return function(t){var n;return n={},n[e]=t,n}};t.bindTo_=m}));var st=it((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 l(e){return e._tag==="Left"?t.none:t.some(e.right)}t.getRight=l;t.fromEither=l;function c(e,n){return function(r){return t.isNone(r)?e():n(r.value)}}t.fold=c;function d(e){return t.isNone(e)?null:e.value}t.toNullable=d;function f(e){return t.isNone(e)?undefined:e.value}t.toUndefined=f;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=m;function m(e){return function(n){return t.isNone(n)?t.none:a(e(n.value))}}t.chainNullableK=m;var v=function(e,n){return ot.pipe(e,t.map(n))};var g=function(e,n){return ot.pipe(e,t.ap(n))};var y=function(e,n){return ot.pipe(e,t.chain(n))};var b=function(e,n,r){return ot.pipe(e,t.reduce(n,r))};var w=function(e){var n=t.foldMap(e);return function(e,t){return ot.pipe(e,n(t))}};var S=function(e,n,r){return ot.pipe(e,t.reduceRight(n,r))};var x=function(e){var n=t.traverse(e);return function(e,t){return ot.pipe(e,n(t))}};var _=function(e,n){return ot.pipe(e,t.alt(n))};var C=function(e,n){return ot.pipe(e,t.filter(n))};var I=function(e,n){return ot.pipe(e,t.filterMap(n))};var N=function(e,n){return ot.pipe(e,t.extend(n))};var F=function(e,n){return ot.pipe(e,t.partition(n))};var E=function(e,n){return ot.pipe(e,t.partitionMap(n))};var A=function(e){var n=t.wither(e);return function(e,t){return ot.pipe(e,n(t))}};var T=function(e){var n=t.wilt(e);return function(e,t){return ot.pipe(e,n(t))}};var k=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n.value))}};t.map=k;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 ot.flow(t.map((function(e){return function(){return e}})),t.ap(e))};t.apFirst=D;var M=function(e){return ot.flow(t.map((function(){return function(e){return e}})),t.ap(e))};t.apSecond=M;t.of=t.some;var O=function(e){return function(n){return t.isNone(n)?t.none:e(n.value)}};t.chain=O;var L=function(e){return t.chain((function(n){return ot.pipe(e(n),t.map((function(){return n})))}))};t.chainFirst=L;t.flatten=t.chain(ot.identity);var R=function(e){return function(n){return t.isNone(n)?e():n}};t.altW=R;t.alt=t.altW;var U=function(){return t.none};t.zero=U;var B=function(){return t.none};t.throwError=B;var V=function(e){return function(n){return t.isNone(n)?t.none:t.some(e(n))}};t.extend=V;t.duplicate=t.extend(ot.identity);var j=function(e,n){return function(r){return t.isNone(r)?e:n(e,r.value)}};t.reduce=j;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=ot.pipe(e,t.map((function(e){return{left:u(e),right:l(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 ot.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 Z=function(e){return function(n){return function(r){return t.isNone(r)?e.of(t.none):n(r.value)}}};t.wither=Z;var Q=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:l(e)}}))}}};t.wilt=Q;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:v};t.Applicative={URI:t.URI,map:v,ap:g,of:t.of};t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:y};t.Foldable={URI:t.URI,reduce:b,foldMap:w,reduceRight:S};t.Alt={URI:t.URI,map:v,alt:_};t.Alternative={URI:t.URI,map:v,ap:g,of:t.of,alt:_,zero:t.zero};t.Extend={URI:t.URI,map:v,extend:N};t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};t.Filterable={URI:t.URI,map:v,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E};t.Traversable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence};t.Witherable={URI:t.URI,map:v,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E,wither:A,wilt:T};t.MonadThrow={URI:t.URI,map:v,ap:g,of:t.of,chain:y,throwError:t.throwError};t.option={URI:t.URI,map:v,of:t.of,ap:g,chain:y,reduce:b,foldMap:w,reduceRight:S,traverse:x,sequence:t.sequence,zero:t.zero,alt:_,extend:N,compact:t.compact,separate:t.separate,filter:C,filterMap:I,partition:F,partitionMap:E,wither:A,wilt:T,throwError:t.throwError};function ue(e){return function(n,r){return t.isNone(r)?false:e.equals(n,r.value)}}t.elem=ue;function le(e){return function(n){return t.isNone(n)?false:e(n.value)}}t.exists=le;function ce(e){return function(n){return t.isSome(e(n))}}t.getRefinement=ce;t.Do=t.of({});var de=function(e){return t.map(ot.bindTo_(e))};t.bindTo=de;var fe=function(e,n){return t.chain((function(r){return ot.pipe(n(r),t.map((function(t){return ot.bind_(r,e,t)})))}))};t.bind=fe;var pe=function(e,n){return ot.flow(t.map((function(t){return function(n){return ot.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 me=function(e){return t.traverseArrayWithIndex((function(t,n){return e(n)}))};t.traverseArray=me;t.sequenceArray=t.traverseArray(ot.identity)}));function ut(e){this.message=e}ut.prototype=new Error,ut.prototype.name="InvalidCharacterError";var lt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ut("'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 ct(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(lt(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 lt(t)}}function dt(e){this.message=e}function ft(e,t){if("string"!=typeof e)throw new dt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(ct(e.split(".")[n]))}catch(e){throw new dt("Invalid token specified: "+e.message)}}dt.prototype=new Error,dt.prototype.name="InvalidTokenError";var pt=undefined&&undefined.__assign||function(){pt=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 pt.apply(this,arguments)};var ht=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 mt=function(e,t,n){if(n===void 0){n=false}if(!e||!t||typeof e!=="object"||typeof t!=="object")return e;var r=pt({},e);for(var i in t){if(t.hasOwnProperty(i)){if(t[i]instanceof Array&&e[i]instanceof Array){r[i]=n?ht(e[i],t[i]):t[i]}else if(typeof t[i]==="object"&&typeof e[i]==="object"){r[i]=mt(e[i],t[i],n)}else{r[i]=t[i]}}}return r};var vt=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 gt={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 l=this.polyfills[e]||(typeof self!=="undefined"?self[e]:null)||(typeof global!=="undefined"?global[e]:null);if(i&&!l)throw new Error(e+" is not defined");return o&&l?new(l.bind.apply(l,vt([void 0],s))):l}};var yt=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);wt.callbacks.delete(t);if(wt.callbacks.size<1){wt.observer.disconnect();if(r.clearResourceTimings){r.clearResourceTimings()}}return true}return false};var bt=function(e,t){if(!wt.observer&&e&&t){wt.observer=new t((function(t){wt.callbacks.forEach((function(n,r){yt(t,r,n,e)}))}));if(e.clearResourceTimings)e.clearResourceTimings()}return wt.observer};var wt={callbacks:new Map,observer:null,observe:function(e,t){if(!e||!t)return;var n=gt.polyfill("performance",{doThrow:false});var r=gt.polyfill("PerformanceObserver",{doThrow:false});if(!bt(n,r))return;if(!yt(n,e,t,n)){if(wt.callbacks.size<1)wt.observer.observe({entryTypes:["resource","measure"]});wt.callbacks.set(e,t)}}};var St=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 xt=function(){function e(e){this.error=e}return e}();var _t=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=mt(gt.defaults,a);var u=gt.polyfill("AbortController",{doThrow:false,instance:true});if(!s["signal"]&&u){s["signal"]=u.signal}var l={ref:null,clear:function(){if(l.ref){clearTimeout(l.ref);l.ref=null}}};var c=St(i)(gt.polyfill("fetch"))(t,s);var d=c.catch((function(e){throw new xt(e)})).then((function(e){l.clear();if(!e.ok){return e[gt.errorType||"text"]().then((function(t){var n=new Error(t);n[gt.errorType||"text"]=t;n["status"]=e.status;n["response"]=e;throw n}))}return e}));var f=function(t){return t.catch((function(t){l.clear();var n=t instanceof xt?t.error:t;if(t instanceof xt&&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?f(d.then((function(t){return t&&t[e]()})).then((function(e){return t?t(e):e}))):f(d.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){c.then((function(t){return wt.observe(t.url,e)}));return h},setTimeout:function(e,t){if(t===void 0){t=u}l.clear();l.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 Ct=undefined&&undefined.__assign||function(){Ct=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 Ct.apply(this,arguments)};var It=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 Nt="application/json";var Ft="Content-Type";var Et=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,l=n.resolvers,c=l===void 0?this._resolvers:l,d=n.middlewares,f=d===void 0?this._middlewares:d,p=n.deferredChain,h=p===void 0?this._deferredChain:p;return new e(i,Ct({},o),new Map(u),It(c),It(f),It(h))};e.prototype.defaults=function(e,t){if(t===void 0){t=false}gt.defaults=t?mt(gt.defaults,e):e;return this};e.prototype.errorType=function(e){gt.errorType=e;return this};e.prototype.polyfills=function(e){gt.polyfills=Ct(Ct({},gt.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?mt(this._options,e):e})};e.prototype.query=function(e,t){if(t===void 0){t=false}return this.selfFactory({url:At(this._url,e,t)})};e.prototype.headers=function(e){return this.selfFactory({options:mt(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[Ft]=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:Ct(Ct({},this._options),{signal:e.signal})})};e.prototype.resolve=function(e,t){if(t===void 0){t=false}return this.selfFactory({resolvers:t?[e]:It(this._resolvers,[e])})};e.prototype.defer=function(e,t){if(t===void 0){t=false}return this.selfFactory({deferredChain:t?[e]:It(this._deferredChain,[e])})};e.prototype.middlewares=function(e,t){if(t===void 0){t=false}return this.selfFactory({middlewares:t?e:It(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()!==Ft.toLowerCase()||n.startsWith(Nt)})))?this.json(n):this.body(n);i=i.options(Ct(Ct({},t),{method:e}));var a=i._deferredChain.reduce((function(e,t){return t(e,e._url,e._options)}),i);return _t(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:Ct(Ct({},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()===Ft.toLowerCase()&&n.startsWith(Nt)})))===null||t===void 0?void 0:t[1];return this.content(n||Nt).body(JSON.stringify(e))};e.prototype.formData=function(e,t){if(t===void 0){t=false}return this.body(Tt(e,t))};e.prototype.formUrl=function(e){return this.body(typeof e==="string"?e:Pt(e)).content("application/x-www-form-urlencoded")};return e}();var At=function(e,t,n){var r;if(typeof t==="string"){r=t}else{var i=gt.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 l=e.split("?");if(n||l.length<2)return l[0]+"?"+r;return e+"&"+r};function Tt(e,t,n,r){if(t===void 0){t=false}if(n===void 0){n=gt.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 l=u[s];n.append(o+"[]",l)}}else if(t&&typeof a==="object"&&(!(t instanceof Array)||!t.includes(i))){if(a!==null){Tt(a,t,n,It(r,[i]))}}else{n.append(o,a)}}));return n}function kt(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(typeof t==="object"?JSON.stringify(t):""+t)}function Pt(e){return Object.keys(e).map((function(t){var n=e[t];if(n instanceof Array){return n.map((function(e){return kt(t,e)})).join("&")}return kt(t,n)})).join("&")}var Dt=Et.factory;Dt["default"]=Et.factory;function Mt(){var e=Jt.jwt;var t=Jt.profileId;var n=Jt.accountIdOrDefault;var r=Jt.partnerIdOrDefault;return Dt(Jt.apiBaseUrl).headers({Authorization:"Bearer "+e,"X-PROFILE-ID":t,"X-PARTNER-ID":r,"X-ACCOUNT-ID":n})}var Ot={fundId:"slate",usi:"32367272075001"};function Lt(e){if("slate"in e){e.kind="slate"}else if("australianRetirementTrust"in e){e.kind="australianRetirementTrust"}else if("aware"in e){e.kind="aware"}else if("active"in e){e.kind="active"}else if("australianEthical"in e){e.kind="australianEthical"}else if("virgin"in e){e.kind="virgin"}else if("spirit"in e){e.kind="spirit"}else if("firstSuper"in e){e.kind="firstSuper"}else if("mercerMyChoice"in e){e.kind="mercerMyChoice"}else if("generic"in e){e.kind="generic"}}function Rt(e){switch(e.kind){case"slate":return Ot.usi;case"australianRetirementTrust":return e.australianRetirementTrust.usi;case"aware":return e.aware.usi;case"active":return e.active.usi;case"australianEthical":return e.australianEthical.usi;case"virgin":return e.virgin.usi;case"spirit":return e.spirit.usi;case"firstSuper":return e.firstSuper.usi;case"mercerMyChoice":return e.mercerMyChoice.usi;case"generic":return e.generic.usi;default:return""}}function Ut(e){switch(e.kind){case"slate":return Ot.fundId;case"australianRetirementTrust":return"australian-retirement-trust";case"aware":return"aware";case"active":return"active";case"australianEthical":return"australian-ethical";case"virgin":return"virgin";case"spirit":return"spirit";case"firstSuper":return"first-super";case"mercerMyChoice":return"mercermychoice";case"generic":return e.generic.fundId;default:return""}}function Bt(e){switch(e.kind){case"Promoted":return Y(Rt(e.promoted));case"MyOwnFund":return Y(e.myOwnFund.usi);case"SMSF":return J;case"Default":return Y(e.default.usi);case"PromotedDefault":return Y(e.promotedDefault.usi);case"DefinedBenefits":return Y(e.definedBenefits.usi);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.usi);default:return J}}function Vt(e){switch(e.kind){case"slate":return e.slate.memberNumber;case"australianRetirementTrust":return e.australianRetirementTrust.memberNumber;case"aware":return e.aware.memberNumber;case"active":return e.active.memberNumber;case"australianEthical":return e.australianEthical.memberNumber;case"virgin":return e.virgin.memberNumber;case"spirit":return e.spirit.memberNumber;case"firstSuper":return e.firstSuper.memberNumber;case"mercerMyChoice":return e.mercerMyChoice.memberNumber;case"generic":return e.generic.memberNumber;default:return""}}function jt(e){switch(e.kind){case"Promoted":return Y(Vt(e.promoted));case"MyOwnFund":return Y(e.myOwnFund.memberNumber);case"DefinedBenefits":return Y(e.definedBenefits.memberNumber);case"PromotedDefaultWithJoin":return Y(e.promotedDefaultWithJoin.memberNumber);case"SMSF":case"Default":case"PromotedDefault":return J;default:return J}}function qt(e){if("promoted"in e){e.kind="Promoted"}else if("myOwnFund"in e){e.kind="MyOwnFund"}else if("smsf"in e){e.kind="SMSF"}else if("default"in e){e.kind="Default"}else if("promotedDefault"in e){e.kind="PromotedDefault"}else if("definedBenefits"in e){e.kind="DefinedBenefits"}else if("promotedDefaultWithJoin"in e){e.kind="PromotedDefaultWithJoin"}}var zt=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,Mt().url("super-choice/australian-funds-v2?"+this.toQueryString(t,e)).get().notFound((function(){throw new Error("Failed to fetch the list of australian super funds.")})).json()]}))}))};e.prototype.getAustralianFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){n=t?"?includeInactive=true":"";return[2,Mt().url("super-choice/australian-funds/"+e+n).get().notFound((function(){throw new Error("Failed to fetch australian super fund.")})).json()]}))}))};e.prototype.getAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Mt().url("client-app-state").get().notFound((function(){throw new Error("Failed to fetch application configuration.")})).json()];case 1:t=n.sent();if((e=t.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails){qt(t.superBuyer.superChoice.choiceDetails);switch(t.superBuyer.superChoice.choiceDetails.kind){case"Promoted":Lt(t.superBuyer.superChoice.choiceDetails.promoted);break}}return[2,t]}}))}))};e.prototype.clickPromotedTileAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("click-promoted-tile").post(e).res()]}))}))};e.prototype.viewSuperFundPanelAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("view-super-fund-panel").post(e).res()]}))}))};e.prototype.toSearchFilterQueryString=function(e){return"search="+e.searchString+(e.maxRecordCount>0?"&maxRecordCount="+e.maxRecordCount:"")};e.prototype.toQueryString=function(e,t){var n=this.toSearchFilterQueryString(t);var r=e?"includeInactive=true":"";var i=function(e){return e&&e.length};return[n,r].filter(i).join("&")};return e}();var Ht=new zt;var Wt;(function(e){e[e["NotLoaded"]=1]="NotLoaded";e[e["Loaded"]=2]="Loaded";e[e["NotWorking"]=3]="NotWorking"})(Wt||(Wt={}));var Gt=function(){function e(){this._promotedFundsShown=[]}Object.defineProperty(e.prototype,"PromotedFundIds",{get:function(){return this._promotedFundsShown.map((function(e){return e.fundId}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsShown",{set:function(e){this._promotedFundsShown=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"DefaultFundPosition",{get:function(){var e=this._promotedFundsShown.findIndex((function(e){return e.fundType==="promoted-default"}));if(e===-1)return undefined;return e+1},enumerable:false,configurable:true});return e}();var Kt={apiBaseUrl:st.none,appBaseUrl:st.none,profileId:st.none,jwt:st.none,superBuyer:st.none,superChoicePrefill:st.none,promotedFunds:st.none,accountConfiguration:st.none,profileConfiguration:st.none,hasSuccessPageBeenAcknowledged:false,hasSuperSelectionBeenSubmitted:false,isDefinedBenefitsEligible:st.none,superCampaignEnabled:true,superCampaignState:undefined,superCampaignComponentStatus:Wt.NotLoaded,hideFooterSection:false,bringYourOwnFundCustomStepEnabled:false,featuredFundsEnabled:false};var Xt=function(){function e(){var e=this;var t=Qe(Kt),n=t.state,r=t.onChange;this._state=n;this._onChange=r;r("jwt",(function(t){e._state.profileId=ot.pipe(t,st.chain((function(e){return st.fromNullable(ft(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(st.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(st.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(st.isNone(this._state.appBaseUrl)){throw Error("App base URL is not set")}return this._state.appBaseUrl.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFunds",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return this.superCampaignState.PromotedFundIds}if(st.isNone(this._state.promotedFunds)){throw Error("Promoted Funds is not set")}return this._state.promotedFunds.value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedDefaultFundPosition",{get:function(){if(this.state.superCampaignEnabled&&this.superCampaignState!==undefined){return st.fromNullable(this.superCampaignState.DefaultFundPosition)}return st.none},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"promotedFundsConfig",{get:function(){return{shownFunds:this.promotedFunds,promotedDefaultFundPosition:st.toUndefined(this.promotedDefaultFundPosition),promotedFundsConfigSource:this.isUsingSuperCampaign?"superCampaign":"superSelection"}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"profileId",{get:function(){if(st.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=ot.pipe(this._state.profileConfiguration,st.map((function(e){return st.fromNullable(e.defaultFundUsi)})),st.flatten);if(st.isSome(e)){return e}return ot.pipe(this._state.accountConfiguration,st.map((function(e){return st.fromNullable(e.defaultFundUsi)})),st.flatten)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"accountIdOrDefault",{get:function(){return ot.pipe(this._state.accountConfiguration,st.map((function(e){return e.accountId})),st.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"partnerIdOrDefault",{get:function(){return ot.pipe(this._state.superBuyer,st.map((function(e){return e.partnerId})),st.getOrElse((function(){return""})))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"jwt",{get:function(){if(st.isNone(this._state.jwt)){throw Error("No authentication information was found")}return this._state.jwt.value},enumerable:false,configurable:true});e.prototype.completeSuperSelectionFlow=function(){this._state.hasSuccessPageBeenAcknowledged=true};e.prototype.markSuperSelectionAsSubmitted=function(){this._state.hasSuperSelectionBeenSubmitted=true};Object.defineProperty(e.prototype,"isDefinedBenefitsEligible",{get:function(){return this._state.isDefinedBenefitsEligible},enumerable:false,configurable:true});e.prototype.loadAppStateAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,Ht.getAppStateAsync()];case 1:e=t.sent();this._state.accountConfiguration=st.fromNullable(e.accountConfiguration);this._state.profileConfiguration=st.fromNullable(e.profileConfiguration);this._state.superBuyer=st.fromNullable(e.superBuyer);this._state.promotedFunds=st.fromNullable(e.promotedFunds);this._state.bringYourOwnFundCustomStepEnabled=e.bringYourOwnFundCustomStepEnabled;this._state.featuredFundsEnabled=e.featuredFundsEnabled;this._state.superChoicePrefill=st.fromNullable(e.prefill);this._state.isDefinedBenefitsEligible=st.fromNullable(e.isDefinedBenefitsEligible);if(st.isSome(this._state.accountConfiguration)){if(this._state.accountConfiguration.value.featureSet.type==="basic"){this._state.superCampaignEnabled=false}}return[2]}}))}))};e.prototype.setSuperCampaignPromotedFundsShown=function(e){if(this._state.superCampaignState!==undefined)this._state.superCampaignState.promotedFundsShown=e;else throw new Error("Cannot set shown funds for SuperCampaing state because it is undefined")};e.prototype.viewSuperFundPanelAsync=function(e,t){return Ht.viewSuperFundPanelAsync(Object.assign(Object.assign({},this.promotedFundsConfig),{shownFunds:t?t:this.promotedFundsConfig.shownFunds,placementId:e}))};Object.defineProperty(e.prototype,"superCampaignState",{get:function(){return this._state.superCampaignState},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignComponentStatus",{get:function(){return this._state.superCampaignComponentStatus},set:function(e){if(e===Wt.Loaded){this._state.superCampaignComponentStatus=Wt.Loaded;this._state.superCampaignState=new Gt}else{this._state.superCampaignComponentStatus=e;this._state.superCampaignState=undefined}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isUsingSuperCampaign",{get:function(){return this.state.superCampaignEnabled&&this.superCampaignState!==undefined},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBringYourOwnFundCustomStepEnabled",{get:function(){return this.state.bringYourOwnFundCustomStepEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFeaturedFundsEnabled",{get:function(){return this.state.featuredFundsEnabled},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"superCampaignCanNotBeActivated",{get:function(){return!this.state.superCampaignEnabled||this.superCampaignComponentStatus===Wt.NotWorking},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hideFooterSection",{get:function(){return this._state.hideFooterSection},set:function(e){this._state.hideFooterSection=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"backendUrl",{get:function(){return st.map(this.getBaseUrl)(this.state.apiBaseUrl)},enumerable:false,configurable:true});e.prototype.getBaseUrl=function(e){var t=new URL(e);return t.protocol+"//"+t.hostname+(t.port.length>0?":"+t.port:"")};return e}();var Jt=new Xt;var Yt=function(){function e(){}e.prototype.navigateInternally=function(e,t){var n=""+this.appBaseUrl+this.toRouteWithLeadingSlash(t);We.navigation(n);e.push(n)};e.prototype.navigateInternallyToStandardChoice=function(e){tt.handleSubmitFn=e.handleSubmitFn;tt.fundName=e.fundName;tt.fundDetails=e.fundDetails;tt.promotedFundId=e.promotedFundId;this.navigateInternally(e.history,nt.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=Jt.appBaseUrl;return e.replace(/\/$/,"")},enumerable:false,configurable:true});e.prototype.toRouteWithLeadingSlash=function(e){return e.length>0&&e[0]==="/"?e:"/"+e};return e}();var $t=new Yt;var Zt=e("sss_choice_router",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(Jt.superCampaignCanNotBeActivated){$t.navigateInternally(this.history,nt.MyOwnFund)}else{$t.navigateInternally(this.history,nt.SuperCampaign)}return[2]}))}))};e.prototype.render=function(){return r(o,null)};return e}());re(Zt);var Qt;(function(e){e["MyOwnFund"]="Existing super fund";e["DefaultFund"]="Default super fund";e["SelfManagedFund"]="Self-managed super fund";e["FeaturedFunds"]="Featured super funds"})(Qt||(Qt={}));var en={myOwnFundForm:{fundUsi:J,fundName:J,memberNumber:J,memberFirstName:J,memberFamilyName:J},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",memberFirstName:"",memberFamilyName:""}};var tn=Qe(en),nn=tn.state,rn=tn.reset;var an={label:Qt.MyOwnFund,value:nt.MyOwnFund};var on=e("sss_custom_fund",function(){function e(e){n(this,e);this.currentCustomFund=an;this.showFundOptionsSelection=false}e.prototype.componentWillLoad=function(){var e=nt.MyOwnFund;if(window.location.pathname.includes(nt.MyOwnFund))e=nt.MyOwnFund;if(window.location.pathname.includes(nt.DefaultFund))e=nt.DefaultFund;if(window.location.pathname.includes(nt.SelfManagedFund))e=nt.SelfManagedFund;if(window.location.pathname.includes(nt.FeaturedFunds))e=nt.FeaturedFunds;this.fundOptionsList=[an,{label:Qt.SelfManagedFund,value:nt.SelfManagedFund}];if(Jt.isFeaturedFundsEnabled&&Jt.isUsingSuperCampaign){this.fundOptionsList.push({label:Qt.FeaturedFunds,value:nt.FeaturedFunds})}this.fundOptionsList.push({label:Qt.DefaultFund,value:nt.DefaultFund});this.currentCustomFund=this.fundOptionsList.find((function(t){return t.value===e}))||this.currentCustomFund;$t.navigateInternally(this.history,e)};e.prototype.render=function(){var e=this;var t=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},r("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 n=function(){return r("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"},r("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 r("div",{class:"max-w-560 sm:w-560 relative"},r("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),r("div",{class:"mt-1 mb-4"},r("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}},r("span",{class:{"block truncate":true,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},r(t,null))),this.showFundOptionsSelection&&r("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 r("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base hover:text-white",onClick:function(){e.showFundOptionsSelection=!e.showFundOptionsSelection;$t.navigateInternally(e.history,t.value)}},r("span",{class:{"block truncate":true,"font-semibold":e.currentCustomFund===t}},t.label),e.currentCustomFund===t&&r("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},r(n,null)))})))),r("div",{onClick:function(){return e.showFundOptionsSelection=false}},r("slot",null)))};return e}());re(on);var sn=function(){function e(){}e.prototype.searchFundsAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,Ht.getAustralianFundsAsync({searchString:e,maxRecordCount:t})]}))}))};e.prototype.getFundAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,Ht.getAustralianFundAsync(e,t)];case 1:n=r.sent();return[2,st.some(n)]}}))}))};return e}();var un=new sn;var ln=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,Mt().url("analytics-events").post(e).res()]}))}))};return e}();var cn=function(){function e(){this.eventTrackingApi=ln.Instance}Object.defineProperty(e,"Instance",{get:function(){return this.instance||(this.instance=new this)},enumerable:false,configurable:true});e.prototype.TrackSuperFundPdsViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPdsViewed:e})]}))}))};e.prototype.TrackPromotedSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:e}})]}))}))};e.prototype.TrackPromotedDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{PromotedDefaultFund:e}})]}))}))};e.prototype.TrackMyOwnSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:e}})]}))}))};e.prototype.TrackSmsfSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{Smsf:e}})]}))}))};e.prototype.TrackDefaultSuperFundDetailViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:e}})]}))}))};e.prototype.TrackSuperFundNominationViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationViewed:e})]}))}))};e.prototype.TrackSuperFundNominationDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundNominationDeclined:e})]}))}))};e.prototype.TrackSuperFundDisclaimerViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerViewed:e})]}))}))};e.prototype.TrackSuperFundDisclaimerAcceptedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDisclaimerAccepted:e})]}))}))};e.prototype.TrackSuperFundPrefillViewedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillViewed:e})]}))}))};e.prototype.TrackSuperFundPrefillDeclinedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundPrefillDeclined:e})]}))}))};e.prototype.TrackSuperFundDetailChangeRequestedAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperFundDetailChangeRequested:e})]}))}))};e.prototype.TrackSuperCampaignActivationSucceededAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperCampaignActivationSucceeded:e})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepActivationSucceeded=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepActivationSucceeded:{fundUsi:e}})]}))}))};e.prototype.TrackSuperMyOwnFundEngagementStepContinued=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.trackEventAsync({SuperMyOwnFundEngagementStepContinued:{fundUsi:e,reason:t}})]}))}))};e.prototype.trackEventAsync=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,this.eventTrackingApi.PostAnalyticsEventAsync({event:e})];case 1:n.sent();return[3,3];case 2:t=n.sent();return[2];case 3:return[2]}}))}))};return e}();var dn=function(){function e(){}e.prototype.submitDefaultFundChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().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,Mt().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,Mt().url("super-choice/smsf").post(e).badRequest((function(){throw new Error("Failed to process SMSF choice request")})).text()]}))}))};e.prototype.submitDefinedBenefitsChoiceAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().url("super-choice/defined-benefits").post(e).badRequest((function(){throw new Error("Failed to process Defined Benefits choice request")})).text()]}))}))};e.prototype.validateAbnForSMSF=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,Mt().url("super-choice/smsf/"+e+"/validate").get().badRequest((function(){throw new Error("Failed to verify that if the provided abn is used for regulated fund")})).json()];case 1:t=n.sent();return[2,t.result]}}))}))};return e}();var fn=new dn;var pn=e("sss_default_fund",function(){function e(e){n(this,e);this.defaultFundProductName="Loading fund...";this.eventTrackingService=cn.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=Jt.defaultFundUsi;if(st.isNone(e)){return[2]}this.isDefaultFundExists=true;return[4,un.getFundAsync(e.value,true)];case 1:t=n.sent();if(st.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:Jt.promotedFunds,defaultFundUsiSet:st.toUndefined(Jt.defaultFundUsi)})};e.prototype.render=function(){var e=this;return r(u,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),r("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},r("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&&r("div",null,r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),r("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)),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("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)),r("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),r("div",{class:"text-sm text-gray-700"},r("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),r("ul",{class:"list-disc list-outside pl-5"},r("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),r("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),r("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&r("div",{class:"mb-4"},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()}},"Continue")),r("stencil-route-link",{url:nt.ChoicePage},r("sss-button",{testid:"back-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]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,fn.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},Jt.promotedFundsConfig))];case 1:e.sent();return[2]}}))}))}});return[2]}))}))};return e}());var hn="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";var mn=3;var vn=e("sss_dropdown_async",function(){function e(e){var t=this;n(this,e);this.valueChanged=l(this,"valueChanged",7);this.required=false;this.disabled=false;this.minSearchStringLength=mn;this.isMouseOver=false;this.searchState="pristine";this.inputValue="";this.isDropdownVisible=false;this.filteredOptions=[];this.shouldExecuteSearch=function(e){var n;return t.isDropdownVisible&&(e===null||e===void 0?void 0:e.length)>=t.minSearchStringLength&&((n=t.selectedOption)===null||n===void 0?void 0:n.label)!==e};this.onBeginSearch=function(e){t.inputValue=e;t.searchState="in progress"};this.onCompleteSearch=function(e){t.highlightedOptionIndex=undefined;switch(e.kind){case"too-many-results":t.searchState="too many results";t.filteredOptions=[];break;case"success":t.searchState="done";t.filteredOptions=e.value;break;default:t.searchState="done";t.filteredOptions=[];break}};this.renderFilteredResults=function(){if(t.searchState==="pristine"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results")}if(t.searchState==="in progress"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching...")}if(t.searchState==="too many results"){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search.")}if(t.filteredOptions.length===0){return r("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search")}return t.filteredOptions.map((function(e,n){return r("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":true,"bg-primary-base":t.isOptionSelected(e)},onClick:function(r){t.highlightedOptionIndex=n;t.toggleDropdown(false);t.selectOption(e)}},e.label)}))};this.resetInput=function(){var e,n;t.inputValue=(n=(e=t.selectedOption)===null||e===void 0?void 0:e.label)!==null&&n!==void 0?n:""};this.toggleDropdown=function(e){t.isDropdownVisible=e};this.processKeyboardNavigation=function(e){var n="Enter";var r="ArrowDown";var i="ArrowUp";var a="Escape";switch(e.key){case r:t.toggleDropdown(true);t.highlightItem("Next");return true;case i:t.highlightItem("Prev");return true;case n:if(t.highlightedOptionIndex!==undefined){t.toggleDropdown(false);t.selectOption(t.filteredOptions[t.highlightedOptionIndex])}return true;case a:t.inputElement.blur();return true}return false};this.highlightItem=function(e){var n=e==="Next"?1:-1;if(t.filteredOptions.length===0){return}t.highlightedOptionIndex=t.highlightedOptionIndex===undefined?0:Math.min(Math.max(0,t.highlightedOptionIndex+n),t.filteredOptions.length-1);if(t.highlightedOptionIndex!==undefined)t.selectOption(t.filteredOptions[t.highlightedOptionIndex])};this.selectOption=function(e){t.selectedOption=e;t.inputValue=e.label;t.valueChanged.emit(e)};this.isOptionSelected=function(e){var n;return((n=t.selectedOption)===null||n===void 0?void 0:n.label)===e.label}}e.prototype.componentWillLoad=function(){this.selectedOption=this.value};e.prototype.componentDidLoad=function(){var e=this;this.searchResultsSubscription=M(this.inputElement,"keyup").pipe(B(500),h((function(t){return e.inputElement.value})),_(),C(this.shouldExecuteSearch),z(this.onBeginSearch),k(this._searchFunction),z(this.onCompleteSearch)).subscribe();this.resetInput()};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 r(u,null,r("div",{class:"relative"},r("input",{"data-testid":this.testId,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}}),r("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":true,hidden:!this.isDropdownVisible}},(t=this.requiredValidationMessage)!==null&&t!==void 0?t:"Required."),r("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}());vn.style=hn;var gn=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,l,c,l,c,l,s,l,c;return __generator(this,(function(d){switch(d.label){case 0:t=Jt.superBuyer.superChoice;n=(e=Jt.superBuyer.superChoice)===null||e===void 0?void 0:e.choiceDetails;if(!t)return[2,J];if(!n)return[2,J];r=t.dateSubmitted==undefined?J:Y(new Date(t.dateSubmitted));i=Bt(n);a=jt(n);o=n.kind;switch(o){case"Promoted":return[3,1];case"MyOwnFund":return[3,3];case"SMSF":return[3,5];case"Default":return[3,6];case"PromotedDefault":return[3,8];case"DefinedBenefits":return[3,10];case"PromotedDefaultWithJoin":return[3,12]}return[3,14];case 1:if(X(i))return[2,J];return[4,this.getFundByUsiAsync(i.value)];case 2:s=d.sent();return[2,Y({type:"Promoted Fund",id:Ut(n.promoted),name:K(s)?s.value.productName:i.value,usi:i,valid:"Active",memberNumber:a,lastNominatedAt:r})];case 3:u=n.myOwnFund.usi;return[4,this.getFundByUsiAsync(u)];case 4:s=d.sent();return[2,Y({type:"My Own Fund",name:K(s)?s.value.productName:u,usi:i,valid:this.toFundValidState(s),memberNumber:a,lastNominatedAt:r})];case 5:return[2,Y({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:r})];case 6:l=n.default.usi;return[4,this.getFundByUsiAsync(l)];case 7:c=d.sent();return[2,Y({type:"Default Fund",name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 8:l=n.promotedDefault.usi;return[4,this.getFundByUsiAsync(l)];case 9:c=d.sent();return[2,Y({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),lastNominatedAt:r})];case 10:l=n.definedBenefits.usi;return[4,this.getFundByUsiAsync(l)];case 11:s=d.sent();return[2,Y({type:"Defined Benefits Fund",name:K(s)?s.value.productName:l,usi:i,valid:this.toFundValidState(s),lastNominatedAt:r})];case 12:l=n.promotedDefaultWithJoin.usi;return[4,this.getFundByUsiAsync(l)];case 13:c=d.sent();return[2,Y({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:K(c)?c.value.productName:l,usi:i,valid:this.toFundValidState(c),memberNumber:a,lastNominatedAt:r})];case 14:return[2,J]}}))}))};e.prototype.submitRetainSuperFundAsync=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Mt().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 un.getFundAsync(e,true)};e.prototype.toFundValidState=function(e){if(K(e)){return e.value.isActive?"Active":"Inactive"}else{return"Unknown"}};return e}();var yn=new gn;var bn=e("sss_existing_choice_page",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundNominationDetail=function(e){function t(e){return K(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:K(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,yn.GetExistingFundAsync()];case 1:e=t.sent();if(K(e)&&e.value.valid!=="Inactive"){this.existingFund=e.value}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}}))}))};e.prototype.render=function(){var e=this;var t=function(e){return r("div",{class:"flex justify-center"})};var n=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},r("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"}))))};var o=function(){return r("div",{class:"flex h-20 justify-center items-center relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-10 w-10 absolute"},r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},r("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 s=function(){return e.existingFund.type=="Defined Benefits Fund"?null:r("div",{class:"mt-4"},r("sss-button",{testid:"choose-another-fund-button",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))};return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),this.existingFund.type=="Defined Benefits Fund"?null:r("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."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-400 w-full"},r("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},r("div",{class:"space-y-4"},function(){switch(e.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return r(t,{name:e.existingFund.name});case"Self Managed Fund":return r(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return r(n,null);case"Default Fund":return r(a,null);case"Defined Benefits Fund":return r(o,null);default:return r("div",null)}}(),r("div",{class:"sm:text-lg font-bold leading-6 break-words"},function(){switch(e.existingFund.type){case"Default Fund":return"Employer's default fund";case"My Own Fund":case"Promoted Fund":case"Self Managed Fund":case"Promoted Default Fund":case"Defined Benefits Fund":case"Promoted Default Fund With Join":return e.existingFund.name;default:return""}}())),r("div",{class:"mt-6"},r("sss-button",{testid:"continue-with-this-fund-button",fillWidth:true,promiseFn:function(){return e.handleFundNominationAccepted()}},"Continue with this fund"))),r(s,null))))};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,yn.submitRetainSuperFundAsync(e)];case 1:t.sent();Jt.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();$t.navigateInternally(this.history,nt.ChoicePage);return[2]}}))}))};return e}());var wn="Powered by Flare";var Sn=e("sss_footer_section",function(){function e(e){var t=this;n(this,e);this.footerText=function(){return t.textOverride!==undefined?t.textOverride:wn}}e.prototype.render=function(){return r("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":true,"mt-8 sm:mt-20":!Jt.hideFooterSection}},!Jt.hideFooterSection&&r("span",null,this.footerText()),r("p",{class:"block text-transparent"},"v",G))};return e}());var xn=function(e,t){return r("stencil-route-link",{exact:true,url:e.route},r("div",{class:{"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":true,"bg-white shadow-sm text-primary-base":e.isActive,"hover:bg-primary-hover text-white":!e.isActive}},t))};var _n=function(e){var t=nt.MyOwnFund;if(window.location.href.includes(nt.SelfManagedFund)){t=nt.SelfManagedFund}else if(window.location.href.includes(nt.DefaultFund)){t=nt.DefaultFund}else if(window.location.href.includes(nt.FeaturedFunds)){t=nt.FeaturedFunds}return r(xn,{route:t,isActive:e.isActive},"Choose another fund")};var Cn=e("sss_header_section",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex justify-center"},r("div",{class:"text-center max-w-800"},r("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),r(o,null,r("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},Jt.superCampaignCanNotBeActivated?r(o,null,"You can choose any super fund, including your current fund/SMSF or your employer’s default fund."):r(o,null,"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.")),!Jt.superCampaignCanNotBeActivated&&r("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},r(xn,{route:nt.ChoicePage,isActive:false},"Featured super funds"),r(_n,{isActive:true})))))};return e}());var In=e("sss_loading_indicator",function(){function e(e){n(this,e);this.theme="primary";this.size=48}e.prototype.render=function(){return r("div",{class:"inline-block animate-spin"},r("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r("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"}),r("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 Nn=e("sss_loading_page",function(){function e(e){n(this,e)}e.prototype.render=function(){return r(u,{class:"flex flex-col justify-center items-center"},r("h5",{class:"text-lg"},"Loading your superannuation step"),r("sss-loading-indicator",null))};return e}());var Fn=e("sss_my_own_fund",function(){function e(e){n(this,e);this.isNotAllInformationProvidedMessageVisible=false;this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance}e.prototype.componentDidLoad=function(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Jt.promotedFunds,defaultFundUsiSet:Z(Jt.defaultFundUsi)})};e.prototype.render=function(){var e=this;var t=Jt.superCampaignCanNotBeActivated;return r(u,null,r("sss-header-section",null),r("div",{class:"flex justify-center mt-11"},r("sss-custom-fund",null,r("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()}},r("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},r("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),r("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-3 sm:mb-4"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-exclamation.svg")})),r("div",{class:"ml-2"},r("ul",{class:"list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"},r("li",null,"Make sure you are a current member of the fund before completing this step."),r("li",null,"Please check that the fund USI is correct as some funds have similar names."))))),r("sss-my-own-fund-inputs",{myOwnFundForm:nn.myOwnFundForm,showValidationErrors:this.formState==="validated",onFormChanged:function(t){nn.myOwnFundForm=Object.assign(Object.assign({},nn.myOwnFundForm),t.detail);e.isNotAllInformationProvidedMessageVisible=false}}),this.isNotAllInformationProvidedMessageVisible&&r("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.")),r("div",{class:"flex justify-center mt-8"},r("div",{class:"sm:max-w-320 w-full"},r("div",{class:"mb-4",onClick:function(){return e.formState="validated"}},r("sss-button",{testid:"continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Continue")),!t&&r("stencil-route-link",{url:nt.ChoicePage},r("sss-button",{testid:"back-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=K(nn.myOwnFundForm.fundUsi)&&K(nn.myOwnFundForm.memberNumber)&&K(nn.myOwnFundForm.memberFirstName)&&K(nn.myOwnFundForm.memberFamilyName);if(!e){this.isNotAllInformationProvidedMessageVisible=true;return[2]}if(Jt.isBringYourOwnFundCustomStepEnabled&&Jt.isUsingSuperCampaign){$t.navigateInternally(this.history,nt.MyOwnFundEngagementStep);return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.getOrError(nn.myOwnFundForm.fundName),fundDetails:{type:"myOwnFund",fundName:this.getOrError(nn.myOwnFundForm.fundName),fundUsi:this.getOrError(nn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(nn.myOwnFundForm.memberNumber)},handleSubmitFn:function(e){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:t=Object.assign({fundUsi:this.getOrError(nn.myOwnFundForm.fundUsi),memberNumber:this.getOrError(nn.myOwnFundForm.memberNumber),memberFirstName:this.getOrError(nn.myOwnFundForm.memberFirstName),memberFamilyName:this.getOrError(nn.myOwnFundForm.memberFamilyName),standardChoiceFormSignature:e},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(t)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.getOrError=function(e){return ot.pipe(e,ee((function(){throw new Error("Option value is none.")})))};return e}());re(Fn);var En=e("sss_my_own_fund_engagement_step_host",function(){function e(e){var t=this;n(this,e);this.stepContinued=function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(e.detail.sender=="byof-engagement"))return[3,2];return[4,cn.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi,e.detail.reason)];case 1:t.sent();this.navigateToStandardChoice();t.label=2;case 2:return[2]}}))}))};this.subscribeToStepEvents=function(){for(var e in t.stepEventHandlers){document.addEventListener(e,t.stepEventHandlers[e])}};this.unSubscribeFromStepEvents=function(){for(var e in t.stepEventHandlers){document.removeEventListener(e,t.stepEventHandlers[e])}};this.stepEventHandlers={continue:this.stepContinued.bind(this)}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(Jt.isBringYourOwnFundCustomStepEnabled&&Jt.isUsingSuperCampaign&&st.isSome(nn.myOwnFundForm.fundUsi)&&st.isSome(nn.myOwnFundForm.fundName)&&st.isSome(nn.myOwnFundForm.memberNumber)&&st.isSome(nn.myOwnFundForm.memberFirstName)&&st.isSome(nn.myOwnFundForm.memberFamilyName)&&st.isSome(Jt.backendUrl)&&st.isSome(Jt.state.jwt)))return[3,2];this.backendUrl=Jt.backendUrl.value;this.accessToken=Jt.state.jwt.value;this.fundUsi=nn.myOwnFundForm.fundUsi.value;this.fundName=nn.myOwnFundForm.fundName.value;this.memberNumber=nn.myOwnFundForm.memberNumber.value;this.memberFirstName=nn.myOwnFundForm.memberFirstName.value;this.memberFamilyName=nn.myOwnFundForm.memberFamilyName.value;this.unSubscribeFromStepEvents();this.subscribeToStepEvents();Jt.hideFooterSection=true;return[4,cn.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi)];case 1:e.sent();return[3,3];case 2:$t.navigateInternally(this.history,nt.MyOwnFund);e.label=3;case 3:return[2]}}))}))};e.prototype.disconnectedCallback=function(){this.unSubscribeFromStepEvents();Jt.hideFooterSection=false};e.prototype.render=function(){return r(u,null,r("apollo-super-byof-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"fund-usi":this.fundUsi}))};e.prototype.navigateToStandardChoice=function(){var e=this;$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName,fundDetails:{type:"myOwnFund",fundName:this.fundName,fundUsi:this.fundUsi,memberNumber:this.memberNumber},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi,memberNumber:this.memberNumber,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName,standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}})};return e}());re(En);var An=e("sss_my_own_fund_inputs",function(){function e(e){var t=this;n(this,e);this.formChanged=l(this,"formChanged",7);this.MIN_SEARCH_STRING_LENGTH=3;this.MAX_RECORD_COUNT=25;this.searchFundsAsync=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:return[4,un.searchFundsAsync(e,this.MAX_RECORD_COUNT)];case 1:t=r.sent();switch(t.result){case"TooManyResults":{return[2,{kind:"too-many-results"}]}default:{n=t.data.sort((function(e,t){return e.productName.localeCompare(t.productName)})).map((function(e){return{label:e.productName+" ("+e.usi+")",value:e.usi}}));return[2,{kind:"success",value:n}]}}return[2]}}))}))};if(K(this.myOwnFundForm.fundUsi)&&K(this.myOwnFundForm.fundName)){this.selectedOption={label:this.myOwnFundForm.fundName.value,value:this.myOwnFundForm.fundUsi.value}}}e.prototype.render=function(){var e=this;return r("div",null,r("div",null,r("label",{class:"text-sm font-medium text-gray-700"},"Fund name"),r("div",{class:"mt-1"},r("sss-dropdown-async",{testId:"fund-search-input",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})),K(this.myOwnFundForm.fundUsi)&&r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),r("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))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Member number"),r("div",{class:"mt-1"},r("input",{"data-testid":"member-number-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:Z(nn.myOwnFundForm.memberNumber),onChange:function(t){return e.updateMemberNumber(t.target.value.trim())}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Enter a valid member number (only numbers and / or letters)"))),r("div",{class:"flex space-x-4"},r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Given name(s)"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-given-names-input",name:"memberFirstName",readableName:"Member given name(s)",showValidationErrors:this.showValidationErrors,value:Z(nn.myOwnFundForm.memberFirstName),onChange:function(t){return e.updateMemberFirstName(t.target.value.trim())}}))),r("div",{class:"mt-3 w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},"Last name"),r("div",{class:"mt-1"},r("sss-name-input",{testId:"member-last-name-input",name:"memberFamilyName",readableName:"Member last name",showValidationErrors:this.showValidationErrors,value:Z(nn.myOwnFundForm.memberFamilyName),onChange:function(t){return e.updateMemberFamilyName(t.target.value.trim())}})))))};e.prototype.updateFund=function(e){this.formChanged.emit({fundUsi:Y(e.value),fundName:Y(e.label)})};e.prototype.updateMemberNumber=function(e){this.formChanged.emit({memberNumber:Y(e)})};e.prototype.updateMemberFirstName=function(e){this.formChanged.emit({memberFirstName:Y(e)})};e.prototype.updateMemberFamilyName=function(e){this.formChanged.emit({memberFamilyName:Y(e)})};return e}());var Tn=e("sss_name_input",function(){function e(e){n(this,e);this.myInputChange=l(this,"myInputChange",7);this.value="";this.name="";this.readableName="";this.showValidationErrors=false;this.errorMessage="";this.NAME_PATTERN="^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$"}e.prototype.render=function(){var e=this;return r(u,null,r("input",{"data-testid":this.testId,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:this.NAME_PATTERN,name:this.name,value:this.value,onInput:function(t){return e.handleInput(t)}}),this.errorMessage&&r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))};e.prototype.handleInput=function(e){var t=e.target;t.value=t.value.replace(/\s+/g," ");this.validateInput(t);this.myInputChange.emit(t.value.trim())};e.prototype.validateInput=function(e){if(!e.checkValidity()){if(e.validity.valueMissing){this.errorMessage=this.readableName+" is required."}else if(e.validity.patternMismatch){if(e.value.startsWith("-")||e.value.startsWith("'")){this.errorMessage=this.readableName+" must start with a letter."}else if(e.value.includes("--")){this.errorMessage=this.readableName+" must not have a double hypen."}else{this.errorMessage=this.readableName+" contains unsupported characters."}}else{this.errorMessage="Invalid input."}}else{this.errorMessage=""}};return e}());var kn=e("sss_prefill",function(){function e(e){n(this,e);this.prefill=undefined;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.prefill=K(Jt.state.superChoicePrefill)?Jt.state.superChoicePrefill.value:undefined;return[2]}))}))};e.prototype.render=function(){if(this.prefill&&this.prefill.type==="myOwnFund"){if(this.prefill.data.fundDetail.type==="Valid"){return this.renderMyOwnFund(this.prefill.data)}else{return this.renderInvalidMyOwnFund(this.prefill.data)}}if(this.prefill&&this.prefill.type==="smsf"){if(this.prefill.data.fundAbn.valid){return this.renderSMSF(this.prefill.data)}else{return this.renderInvalidSMSF(this.prefill.data)}}$t.navigateInternally(this.history,nt.ChoicePage);return null};e.prototype.renderMyOwnFund=function(e){return r("sss-prefill-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderInvalidMyOwnFund=function(e){return r("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:e})};e.prototype.renderSMSF=function(e){return r("sss-prefill-smsf",{history:this.history,prefill:e})};e.prototype.renderInvalidSMSF=function(e){return r("sss-prefill-invalid-smsf",{history:this.history,prefill:e})};return e}());var Pn=e("sss_prefill_display_field",function(){function e(e){n(this,e)}e.prototype.render=function(){return r("div",{class:"flex w-full flex-col sm:flex-row sm:min-h-5 justify-center items-start gap-0.5 sm:gap-4 self-stretch"},r("div",{class:{"sm:w-2/5 sm:max-w-40 self-stretch text-gray-500 text-xs sm:text-sm not-italic font-medium leading-4 sm:leading-5":true,"text-red-600":!this.field.isValid}},this.field.name),r("div",{"data-testid":this.field.testId,class:{"sm:w-3/5 max-w-[300px] self-stretch text-gray-900 text-sm not-italic font-normal leading-5 break-words":true,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))};return e}());var Dn=e("sss_prefill_error_box",function(){function e(e){n(this,e);this.withHeader=false}e.prototype.render=function(){var e=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18ZM8.70711 7.29289C8.31658 6.90237 7.68342 6.90237 7.29289 7.29289C6.90237 7.68342 6.90237 8.31658 7.29289 8.70711L8.58579 10L7.29289 11.2929C6.90237 11.6834 6.90237 12.3166 7.29289 12.7071C7.68342 13.0976 8.31658 13.0976 8.70711 12.7071L10 11.4142L11.2929 12.7071C11.6834 13.0976 12.3166 13.0976 12.7071 12.7071C13.0976 12.3166 13.0976 11.6834 12.7071 11.2929L11.4142 10L12.7071 8.70711C13.0976 8.31658 13.0976 7.68342 12.7071 7.29289C12.3166 6.90237 11.6834 6.90237 11.2929 7.29289L10 8.58579L8.70711 7.29289Z",fill:"#F87171"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},r("div",{class:"w-1 self-stretch bg-red-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(e,null),r("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&r("div",{class:"self-stretch text-red-800 text-sm font-medium leading-tight"},"Please correct ",this.notificationList.length," issues with your fund details"),this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},r("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),r("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},e)))})),!this.withHeader&&this.notificationList.map((function(e){return r("div",{class:"text-sm font-medium leading-tight text-red-800"},e)})))))};return e}());function Mn(e){return e==null||e.trim()===""}var On=function(e,t,n){return r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},e),r("div",{"data-testid":t,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"},n))};var Ln=function(){return r("div",null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),r("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Review or update the below super fund nomination details provided by your employer."))};var Rn=function(){function e(){}e.Input=function(e){return{"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":e}};return e}();var Un="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";var Bn=function(){function e(e,t,n){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._errorMessage=this.validateAndReturnErrorMessage(this._value)}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._errorMessage=this.validateAndReturnErrorMessage(e);this._value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._errorMessage===null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Mn(this._value)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:false,configurable:true});return e}();var Vn=function(){function e(e,t,n,r){this.name=e;this.testId=t;this._value=n!==null&&n!==void 0?n:"";this._isValid=r}Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isValid",{get:function(){return this._isValid},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmpty",{get:function(){return Mn(this._value)},enumerable:false,configurable:true});return e}();var jn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund USI","fund-usi",t,n)||this}return t}(Vn);var qn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund name","fund-name",t,n)||this}return t}(Vn);var zn=function(e){__extends(t,e);function t(t){return e.call(this,"Fund name","smsf-fund-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Fund name is required."}else if(e.length<2){return"Enter a valid Fund name."}else{return null}};return t}(Bn);var Hn=function(e){__extends(t,e);function t(t){return e.call(this,"Member number","member-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[A-Za-z0-9]{4,16}$/;if(Mn(e)){return"Member number is required."}else if(!t.test(e)){return"Enter a valid member number (only numbers and / or letters)"}else{return null}};return t}(Bn);var Wn=function(e){__extends(t,e);function t(t){return e.call(this,"Member last name","member-last-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Un);if(Mn(e)){return"Member last name is required."}else if(!t.test(e)){return"Member last name contains unsupported characters."}else{return null}};return t}(Bn);var Gn=function(e){__extends(t,e);function t(t){return e.call(this,"Member given name(s)","member-given-names",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=new RegExp(Un);if(Mn(e)){return"Member given name(s) is required."}else if(!t.test(e)){return"Member given name(s) contains unsupported characters."}else{return null}};return t}(Bn);var Kn=function(e){__extends(t,e);function t(t,n){return e.call(this,"Fund ABN","fund-abn",t,n)||this}return t}(Vn);var Xn=function(e){__extends(t,e);function t(t){return e.call(this,"Fund ESA","fund-esa",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Fund ESA is required."}else if(e.length<2){return"Enter a valid Fund ESA."}else{return null}};return t}(Bn);var Jn=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 1","address-line-one",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Address line 1 is required."}else if(e.length<2){return"Enter a valid Address line 1."}else{return null}};return t}(Bn);var Yn=function(e){__extends(t,e);function t(t){return e.call(this,"Address line 2","address-line-two",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){return null};return t}(Bn);var $n=function(e){__extends(t,e);function t(t){return e.call(this,"City/suburb","city-suburb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"City/suburb is required."}else{return null}};return t}(Bn);var Zn=function(e){__extends(t,e);function t(t){return e.call(this,"Postcode","postcode",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{4}$/;if(Mn(e)){return"Postcode is required."}else if(!t.test(e)){return"Enter a valid postcode."}else{return null}};return t}(Bn);var Qn=function(e){__extends(t,e);function t(t){return e.call(this,"State","state",t)||this}Object.defineProperty(t.prototype,"options",{get:function(){return[{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"}]},enumerable:false,configurable:true});t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"State is required."}else if(this.options.find((function(t){return t.value=e}))===undefined){return"Enter a valid state."}else{return null}};return t}(Bn);var er=function(e){__extends(t,e);function t(t,n,r,i,a){var o=this;var s=[t,n,r,i,a].map((function(e){return e.value})).filter((function(e){return e})).join(", ");var u=t.isValid&&n.isValid&&r.isValid&&i.isValid&&a.isValid;o=e.call(this,"Fund address","fund-address",s,u)||this;return o}return t}(Vn);var tr=function(e){__extends(t,e);function t(t){return e.call(this,"Account name","account-name",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){if(Mn(e)){return"Account name is required."}else if(e.length<2){return"Enter a valid Account name."}else{return null}};return t}(Bn);var nr=function(e){__extends(t,e);function t(t,n){return e.call(this,"Bank name","bank-name",t,n)||this}return t}(Vn);var rr=function(e){__extends(t,e);function t(t){return e.call(this,"BSB","bsb",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{6,7}$/;if(Mn(e)){return"BSB is required."}else if(!t.test(e)){return"Enter a valid BSB."}else{return null}};return t}(Bn);var ir=function(e){__extends(t,e);function t(t){return e.call(this,"Account number","account-number",t)||this}t.prototype.validateAndReturnErrorMessage=function(e){var t=/^[0-9]{2,11}$/;if(Mn(e)){return"Account number is required."}else if(!t.test(e)){return"Enter a valid Account number."}else{return null}};return t}(Bn);var ar=e("sss_prefill_invalid_my_own_fund",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Invalid"){this.fundUsi=new jn(this.prefill.fundDetail.fundUsi,false);this.fundName=new qn("",false);this.memberNumber=new Hn(this.prefill.memberNumber);this.memberGivenNames=new Gn(this.prefill.memberFirstName);this.memberLastName=new Wn(this.prefill.memberFamilyName)}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund USI is invalid, or no longer in use. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleChooseAnotherFund()}},"Choose another fund"))))};e.prototype.handleChooseAnotherFund=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var or=e("sss_prefill_invalid_smsf",function(){function e(e){n(this,e);this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&!this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{$t.navigateInternally(this.history,nt.PrefillInvalidMyOwnFundPage)}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-error-box",{class:"self-stretch",notificationList:["The fund ABN is invalid. You are required to choose another fund to continue with your super nomination."]}),r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),r("sss-prefill-display-field",{field:this.bankAccountNumber})))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"primary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.initialiseComponent=function(e){this.fundName=new zn(e.fundName);this.fundAbn=new Kn(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Xn(e.electronicServiceAddress);this.fundAddressLine1=new Jn(e.addressLine1);this.fundAddressLine2=new Yn(e.addressLine2);this.fundAddressCity=new $n(e.addressCity);this.fundAddressPostcode=new Zn(e.addressPostcode);this.fundAddressState=new Qn(e.addressState);this.fundAddress=new er(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new Gn(e.memberFirstName);this.memberLastName=new Wn(e.memberFamilyName);this.bankAccountName=new tr(e.bankAccountName);this.bankAccountBsb=new rr(e.bankAccountBsb);this.bankAccountNumber=new ir(e.bankAccountNumber)};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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var sr=e("sss_prefill_my_own_fund",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"My Own Fund",isUsiValid:e.fundDetail.type==="Valid",isMemberNumberPresent:!Mn(e.memberNumber),isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundDetail.type==="Valid"){this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill)}else{$t.navigateInternally(this.history,nt.ChoicePage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure you are a current member of the fund before completing this step.","Please check that the fund USI is correct as some funds have similar names."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundUsi}),r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.memberNumber}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("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.formHasMissingData()}},On(this.fundName.name,this.fundName.testId,this.fundName.value),On(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:function(t){e.updateMemberNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberNumber.errorMessage))),r("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:Un,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,pattern:Un,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage))))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Choose another fund"))))};e.prototype.initialiseComponent=function(e,t){this.fundUsi=new jn(t.fundDetail.fundUsi,true);this.fundName=new qn(e,true);this.memberNumber=new Hn(t.memberNumber);this.memberGivenNames=new Gn(t.memberFirstName);this.memberLastName=new Wn(t.memberFamilyName);this.isSubmitDisabled=this.formHasMissingData()};e.prototype.isFormValid=function(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid};e.prototype.formHasMissingData=function(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateMemberNumber=function(e){this.memberNumber=new Hn(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new Gn(e.trimStart())};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Wn(e.trim())};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitCustomFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var ur={"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 lr=e("sss_prefill_smsf",function(){function e(e){n(this,e);this.mode="review";this.formState="pristine";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.createSuperFundPrefillDeclinedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}};this.createSuperFundPrefillViewedDetail=function(e){return{fundType:"SMSF",isAbnValid:e.fundAbn.valid,isMemberFirstNamePresent:!Mn(e.memberFirstName),isMemberLastNamePresent:!Mn(e.memberFamilyName)}}}e.prototype.componentDidLoad=function(){var e=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(e)};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.prefill&&this.prefill.fundAbn.valid){this.initialiseComponent(this.prefill)}else{$t.navigateInternally(this.history,nt.PrefillInvalidSMSFPage)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=[this.fundName.errorMessage,this.fundEsa.errorMessage,this.fundAddressLine1.errorMessage,this.fundAddressLine2.errorMessage,this.fundAddressCity.errorMessage,this.fundAddressPostcode.errorMessage,this.fundAddressState.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage,this.bankAccountName.errorMessage,this.bankAccountBsb.errorMessage,this.bankAccountNumber.errorMessage].filter((function(e){return e!==null}));return r("div",null,r(Ln,null),r("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},r("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},r("div",{class:"flex flex-col items-start gap-3 self-stretch"},r("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),r("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),this.mode==="review"&&t.length>0&&r("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:true}),this.mode==="review"&&r("div",{class:"flex flex-col gap-3 self-stretch mt-4"},r("sss-prefill-display-field",{field:this.fundName}),r("sss-prefill-display-field",{field:this.fundAbn}),r("sss-prefill-display-field",{field:this.fundEsa}),r("sss-prefill-display-field",{field:this.fundAddress}),r("sss-prefill-display-field",{field:this.memberLastName}),r("sss-prefill-display-field",{field:this.memberGivenNames}),r("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("sss-prefill-display-field",{field:this.bankAccountName}),r("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&r("sss-prefill-display-field",{field:this.bankName}),r("sss-prefill-display-field",{field:this.bankAccountNumber})),this.mode==="review"&&r("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:true,variant:"secondary",promiseFn:function(){return e.setModeToEdit()}},r("div",{class:"flex flex-row gap-2"},r("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),r("div",{class:"w-4 h-4 relative"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},r("path",{d:"M11.369 2.86865C11.9939 2.24381 13.0069 2.24381 13.6318 2.86865C14.2566 3.49349 14.2566 4.50656 13.6318 5.1314L12.9974 5.76571L10.7347 3.50297L11.369 2.86865Z"}),r("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),this.mode==="edit"&&r("form",{noValidate:true,onSubmit:function(e){return e.preventDefault()},class:{"w-full":true,"was-validated":this.formState==="validated"},ref:function(t){return e.formElement=t},onInput:function(t){return e.isSubmitDisabled=e.formHasMissingData()}},r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:function(t){e.updateFundName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundName.errorMessage))),On(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:function(t){e.updateFundEsa(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.fundEsa.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),r("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},r("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-t-md shadow-none border-b-0":true}),required:true,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:function(t){e.updateAddressLine1(t.target.value)}}),r("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:function(t){return e.updateAddressLine2(t.target.value)}}),r("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none shadow-none border-b-0":true}),required:true,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:function(t){e.updateAddressCity(t.target.value)}}),r("div",{class:"flex -space-x-px"},r("div",{class:"w-1/2 flex-1 min-w-0"},r("input",{placeholder:"Postcode",type:"text",required:true,class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-bl-md shadow-none border-r-0":true}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:function(t){e.updateAddressPostcode(t.target.value)}})),r("div",{class:"flex-1 min-w-0"},r("select",{class:Object.assign(Object.assign({},Rn.Input(this.formState==="validated")),{"rounded-none rounded-br-md shadow-none":true,"text-gray-500":this.formState!=="validated"}),name:"state",required:true,"data-testid":this.fundAddressState.testId,id:"state",onInput:function(t){e.updateAddressState(t.target.value)}},r("option",{disabled:true,selected:this.fundAddressState.value!==undefined,value:""},"State"),this.fundAddressState.options.map((function(t){return r("option",{value:t.value,selected:e.fundAddressState.value===t.value},t.label)})))))),this.formState==="validated"&&r("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),r("div",{class:"flex gap-x-4 flex-col sm:flex-row"},r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:function(t){e.updateMemberGivenNames(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberGivenNames.errorMessage))),r("div",{class:"mt-3 w-full sm:w-1/2"},r("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:function(t){e.updateMemberLastName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.memberLastName.errorMessage)))),r("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:function(t){e.updateBankAccountName(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountName.errorMessage))),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:function(t){var n=t.target.value;e.updateBankName(n);e.updateBankAccountBsb(n)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&On(this.bankName.name,this.bankName.testId,this.bankName.value),r("div",{class:"mt-3"},r("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),r("div",{class:"mt-1"},r("input",{type:"text",class:Rn.Input(this.formState==="validated"),required:true,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:function(t){e.updateBankAccountNumber(t.target.value)}}),r("div",{class:"mt-2 text-sm text-red-600"},this.formState==="validated"&&this.bankAccountNumber.errorMessage)))))),r("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},r("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:true,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:function(){return e.handleSubmitForm()}},"Continue"),r("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:true,variant:"secondary",promiseFn:function(){return e.handleFundNominationDeclined()}},"Make another nomination"))))};e.prototype.isFormValid=function(){return this.fundName.isValid&&this.fundAbn.isValid&&this.fundEsa.isValid&&this.fundAddressLine1.isValid&&this.fundAddressLine2.isValid&&this.fundAddressCity.isValid&&this.fundAddressPostcode.isValid&&this.fundAddressState.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid&&this.bankAccountName.isValid&&this.bankAccountBsb.isValid&&this.bankAccountNumber.isValid};e.prototype.formHasMissingData=function(){return this.fundName.isEmpty||this.fundAbn.isEmpty||this.fundEsa.isEmpty||this.fundAddressLine1.isEmpty||this.fundAddressCity.isEmpty||this.fundAddressPostcode.isEmpty||this.fundAddressState.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty||this.bankAccountName.isEmpty||this.bankAccountBsb.isEmpty||this.bankAccountNumber.isEmpty};e.prototype.setModeToEdit=function(){this.mode="edit";return Promise.resolve()};e.prototype.updateFundName=function(e){this.fundName=new zn(e.trim())};e.prototype.updateFundEsa=function(e){this.fundEsa=new Xn(e.trim())};e.prototype.updateAddressLine1=function(e){this.fundAddressLine1=new Jn(e.trim())};e.prototype.updateAddressLine2=function(e){this.fundAddressLine2=new Yn(e.trim())};e.prototype.updateAddressCity=function(e){this.fundAddressCity=new $n(e.trim())};e.prototype.updateAddressPostcode=function(e){this.fundAddressPostcode=new Zn(e.trim())};e.prototype.updateAddressState=function(e){this.fundAddressState=new Qn(e.trim())};e.prototype.updateBankAccountName=function(e){this.bankAccountName=new tr(e.trim())};e.prototype.updateBankAccountBsb=function(e){this.bankAccountBsb=new rr(e.trim())};e.prototype.updateBankAccountNumber=function(e){this.bankAccountNumber=new ir(e.trim())};e.prototype.updateMemberGivenNames=function(e){this.memberGivenNames=new Gn(e)};e.prototype.updateMemberLastName=function(e){this.memberLastName=new Wn(e.trim())};e.prototype.filterDigits=function(e){return e.replace(/[^0-9]/g,"")};e.prototype.tryGetBankName=function(e){if(e==null)return null;var t=this.filterDigits(e);var n=t.substring(0,2);var r=t.substring(0,3);var i=ur[n];var a=ur[r];if(i)return i;if(a)return a;return null};e.prototype.updateBankName=function(e){var t=this.tryGetBankName(e);this.bankName=new nr(t,t!=null)};e.prototype.handleSubmitForm=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.formState="validated";if(!this.isFormValid()){return[2]}if(this.mode==="edit"&&!this.formElement.checkValidity()){return[2]}$t.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=Object.assign({smsfChoice:{abn:this.fundAbn.value,fundName:this.fundName.value,fundAddress:{addressLine1:this.fundAddressLine1.value,addressLine2:this.fundAddressLine2.value.trim()===""?null:this.fundAddressLine2.value.trim(),city:this.fundAddressCity.value,state:this.fundAddressState.value,postcode:this.fundAddressPostcode.value},bsb:this.bankAccountBsb.value,bankAccountName:this.bankAccountName.value,bankAccountNumber:this.bankAccountNumber.value,electronicServiceAddress:this.fundEsa.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value},standardChoiceFormSignature:t},Jt.promotedFundsConfig);return[4,fn.submitSelfManagedFundChoiceAsync(e)];case 1:n.sent();return[2]}}))}))}});return[2]}))}))};e.prototype.initialiseComponent=function(e){this.fundName=new zn(e.fundName);this.fundAbn=new Kn(e.fundAbn.value,e.fundAbn.valid);this.fundEsa=new Xn(e.electronicServiceAddress);this.fundAddressLine1=new Jn(e.addressLine1);this.fundAddressLine2=new Yn(e.addressLine2);this.fundAddressCity=new $n(e.addressCity);this.fundAddressPostcode=new Zn(e.addressPostcode);this.fundAddressState=new Qn(e.addressState);this.fundAddress=new er(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode);this.memberGivenNames=new Gn(e.memberFirstName);this.memberLastName=new Wn(e.memberFamilyName);this.bankAccountName=new tr(e.bankAccountName);var t=this.tryGetBankName(e.bankAccountBsb);this.bankName=new nr(t,t!=null);this.bankAccountBsb=new rr(e.bankAccountBsb);this.bankAccountNumber=new ir(e.bankAccountNumber);this.isSubmitDisabled=this.formHasMissingData()};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.createSuperFundPrefillDeclinedDetail(this.prefill);return[4,this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(e)];case 1:t.sent();return[2,$t.navigateInternally(this.history,nt.ChoicePage)]}}))}))};return e}());var cr=e("sss_prefill_warning_box",function(){function e(e){n(this,e)}e.prototype.render=function(){var e=this;var t=function(){return r("div",{class:"w-5 h-5"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})))};return r("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},r("div",{class:"w-1 self-stretch bg-yellow-400"}),r("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},r(t,null),r("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},r("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((function(t){return r("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},e.notificationList.length>1&&r("div",{class:"pt-1.5 justify-center items-center flex"},r("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),r("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))}))))))};return e}());var dr=e("sss_standard_choice_form",function(){function e(e){n(this,e);this.standardChoiceFormSignature="";this.isSubmitDisabled=true;this.eventTrackingService=cn.Instance;this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=this;return r(u,null,r("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),r("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."),r("div",{class:"flex justify-center mt-8 sm:mt-12"},r("div",{class:"max-w-560"},r("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),r("div",{class:"flex justify-between w-full"},r("div",null,r("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),r("div",{class:"text-sm mt-2"},tt.fundName)),r("div",{class:"grid content-center ml-4"},r("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.trackChangeRequestedAsync()];case 1:e.sent();$t.navigateInternally(this.history,nt.ChoicePage);return[2]}}))}))}},"Change")))),r("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},r("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),r("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},r("div",{class:"flex"},r("div",{class:"flex-shrink-0"},r("img",{class:"h-5 w-5",src:s("assets/icon-information-circle.svg")})),r("div",{class:"ml-2"},r("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.")))),r("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()}},r("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),r("input",{"data-testid":"standard-choice-form-signature-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}}),r("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),r("div",{class:"mt-6"},r("sss-button",{testid:"confirm-and-continue-button",fillWidth:true,promiseFn:function(){return e.handleSubmitForm()},disabled:this.isSubmitDisabled},"Confirm and continue")))))))};e.prototype.renderLogo=function(){return};e.prototype.trackChangeRequestedAsync=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e={promotedFundsShown:Jt.promotedFunds,defaultFundUsiSet:Z(Jt.defaultFundUsi)};t=tt.fundDetails.type;switch(t){case"default":return[3,1];case"myOwnFund":return[3,3];case"smsf":return[3,5];case"promoted":return[3,7];case"promotedDefault":return[3,9];case"promotedDefaultWithJoin":return[3,11];case"null":return[3,13]}return[3,14];case 1:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 2:n.sent();return[3,14];case 3:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 4:n.sent();return[3,14];case 5:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},tt.fundDetails),e)})];case 6:n.sent();return[3,14];case 7:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 8:n.sent();return[3,14];case 9:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},tt.fundDetails),e)})];case 10:n.sent();return[3,14];case 11:return[4,this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},tt.fundDetails),e)})];case 12:n.sent();return[3,14];case 13:throw"standardChoiceFormState.fundDetails was not set";case 14:return[2]}}))}))};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,tt.handleSubmitFn(this.standardChoiceFormSignature.trim())];case 1:e.sent();Jt.markSuperSelectionAsSubmitted();e.label=2;case 2:return[2]}}))}))};return e}());var fr=e("sss_success",function(){function e(e){n(this,e);this.ignorePopState=function(){return window.history.pushState(null,"",null)}}e.prototype.connectedCallback=function(){this.ignorePopState();window.addEventListener("popstate",this.ignorePopState)};e.prototype.disconnectedCallback=function(){window.removeEventListener("popstate",this.ignorePopState)};e.prototype.render=function(){var e=function(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},r("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 r(u,{class:"text-center"},r("div",{class:"flex justify-center"},r("div",{class:"relative"},r("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),r("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},r(e,null)))),r("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),r("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."),r("div",{class:"flex justify-center mt-8"},r("div",{class:"max-w-[200px] w-full"},r("sss-button",{testid:"continue-button",size:"xl",fillWidth:true,onClick:this.handleContinueButtonClick},r("span",null,"Continue")))))};e.prototype.handleContinueButtonClick=function(e){Jt.completeSuperSelectionFlow()};return e}());var pr=function(){function e(){}e.prototype.trackClickPromotedTileAsync=function(e){return Ht.clickPromotedTileAsync(e)};return e}();var hr=new pr;var mr=function(){if(Jt.superCampaignState!=undefined)return Jt.superCampaignState;throw new Error("Super campaign state has not been initialized")};var vr=function(e){var t=e.sender,n=e.placementId,r=e.fundId,i=e.fundUsi,a=e.fundName,o=e.fundType;return __awaiter(A,void 0,void 0,(function(){var e,s,u,l,c;return __generator(this,(function(d){switch(d.label){case 0:if(!(t==="super-campaign"||t==="featured-funds"))return[3,6];e=mr().PromotedFundIds;s=st.toUndefined(Jt.defaultFundUsi);l=(u=Promise).all;if(!(o==="promoted-default"))return[3,2];return[4,cn.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:"",fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:s,superCampaignEnabled:true,placementId:n})];case 1:c=d.sent();return[3,4];case 2:return[4,cn.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:i!==null&&i!==void 0?i:undefined,fundName:a,promotedFundId:r,promotedFundsShown:e,defaultFundUsiSet:s,superCampaignEnabled:true,placementId:n})];case 3:c=d.sent();d.label=4;case 4:return[4,l.apply(u,[[c,hr.trackClickPromotedTileAsync(o==="promoted-default"?{promotedDefault:{fundId:r,placementId:n}}:{promoted:{fundId:r,placementId:n}})]])];case 5:d.sent();d.label=6;case 6:return[2]}}))}))};var gr="function";var yr="object";var br="undefined";var wr="prototype";var Sr="hasOwnProperty";function xr(){if(typeof globalThis!==br&&globalThis){return globalThis}if(typeof self!==br&&self){return self}if(typeof window!==br&&window){return window}if(typeof global!==br&&global){return global}return null}function _r(e){var t=Object["create"];if(t){return t(e)}if(e==null){return{}}var n=typeof e;if(n!==yr&&n!==gr){throw new TypeError("Object prototype may only be an Object:"+e)}function r(){}r[wr]=e;return new r}function Cr(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t){if(Object[wr][Sr].call(t,i)){e[i]=t[i]}}}return e}var Ir=function(e,t){Ir=Object["setPrototypeOf"]||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t){if(t[Sr](n)){e[n]=t[n]}}};return Ir(e,t)};function Nr(e,t){Ir(e,t);function n(){this.constructor=e}e[wr]=t===null?_r(t):(n[wr]=t[wr],new n)}var Fr=xr()||{};(function(e,t,n){if(!e.__assign){e.__assign=Object.assign||t}if(!e.__extends){e.__extends=n}})(Fr,Cr,Nr);if(!__assign){__assign=Fr.__assign}if(!__extends){__extends=Fr.__extends}var Er={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5};var Ar=br;var Tr=yr;var kr=wr;var Pr=gr;var Dr="window";var Mr="document";var Or="navigator";var Lr="history";var Rr="location";var Ur="console";var Br="performance";var Vr="JSON";var jr="crypto";var qr="msCrypto";var zr="ReactNative";var Hr=xr;function Wr(e){var t=Hr();if(t&&t[e]){return t[e]}if(e===Dr&&Gr()){return window}return null}function Gr(){return Boolean(typeof window===Tr&&window)}function Kr(){if(Gr()){return window}return Wr(Dr)}function Xr(){return Boolean(typeof document===Tr&&document)}function Jr(){if(Xr()){return document}return Wr(Mr)}function Yr(){return Boolean(typeof navigator===Tr&&navigator)}function $r(){if(Yr()){return navigator}return Wr(Or)}function Zr(){return Boolean(typeof history===Tr&&history)}function Qr(){if(Zr()){return history}return Wr(Lr)}function ei(){if(typeof location===Tr&&location){return location}return Wr(Rr)}function ti(){if(typeof console!==Ar){return console}return Wr(Ur)}function ni(){return Wr(Br)}function ri(){return Boolean(typeof JSON===Tr&&JSON||Wr(Vr)!==null)}function ii(){if(ri()){return JSON||Wr(Vr)}return null}function ai(){return Wr(jr)}function oi(){return Wr(qr)}function si(){var e=$r();if(e&&e.product){return e.product===zr}return false}var ui="on";var li="attachEvent";var ci="addEventListener";var di="detachEvent";var fi="removeEventListener";var pi=4294967296;var hi=4294967295;var mi=null;var vi=false;var gi=123456789;var yi=987654321;function bi(e){if(e<0){e>>>=0}gi=123456789+e&hi;yi=987654321-e&hi;vi=true}function wi(){bi(Math.random()*pi^(new Date).getTime())}function Si(e,t){return typeof e===t}function xi(e){return Si(e,br)||e===undefined}function _i(e){return xi(e)||e===null}function Ci(e,t){return e&&Object[wr].hasOwnProperty.call(e,t)}function Ii(e){return Si(e,yr)}function Ni(e){return Si(e,gr)}function Fi(e,t,n,r){if(r===void 0){r=false}var i=false;if(!_i(e)){try{if(!_i(e[ci])){e[ci](t,n,r);i=true}else if(!_i(e[li])){e[li](ui+t,n);i=true}}catch(e){}}return i}function Ei(e,t,n,r){if(r===void 0){r=false}if(!_i(e)){try{if(!_i(e[fi])){e[fi](t,n,r)}else if(!_i(e[di])){e[di](ui+t,n)}}catch(e){}}}function Ai(e){var t=e;var n=/([^\w\d_$])/g;if(n.test(e)){t=e.replace(n,"_")}return t}function Ti(e,t){if(e&&Ii(e)){for(var n in e){if(Ci(e,n)){t.call(e,n,e[n])}}}}var ki=function(){function e(){}e.isDate=function(e){return Object[wr].toString.call(e)==="[object Date]"};e.isArray=function(e){return Object[wr].toString.call(e)==="[object Array]"};e.isError=function(e){return Object[wr].toString.call(e)==="[object Error]"};e.isString=function(e){return Si(e,"string")};e.isNumber=function(e){return Si(e,"number")};e.isBoolean=function(e){return Si(e,"boolean")};e.disableCookies=function(){e._canUseCookies=false};e.newGuid=function(){function t(){return e.randomValue(15)}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(Pi,(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(!Ni(e)&&(!Ii(e)||e===null)){throw new TypeError("objKeys called on non-object")}var n=[];for(var r in e){if(Ci(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(Ci(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=Kr();if(r){n=Fi(r,e,t);n=Fi(r["body"],e,t)||n}var i=Jr();if(i){n=Di.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=ni();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(mi===null){var e=$r()||{};var t=(e.userAgent||"").toLowerCase();mi=t.indexOf("msie")!==-1||t.indexOf("trident/")!==-1}return mi};e.randomValue=function(t){if(t>0){return Math.floor(e.random32()/hi*(t+1))>>>0}return 0};e.random32=function(t){var n;var r=ai()||oi();if(r&&r.getRandomValues){n=r.getRandomValues(new Uint32Array(1))[0]&hi}else if(e.isIE()){if(!vi){wi()}n=e.mwcRandom32()&hi}else{n=Math.floor(pi*Math.random()|0)}if(!t){n>>>=0}return n};e.mwcRandomSeed=function(e){if(!e){wi()}else{bi(e)}};e.mwcRandom32=function(e){yi=36969*(yi&65535)+(yi>>16)&hi;gi=18e3*(gi&65535)+(gi>>16)&hi;var t=(yi<<16)+(gi&65535)>>>0&hi|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=Si;e.isUndefined=xi;e.isNullOrUndefined=_i;e.hasOwnProperty=Ci;e.isFunction=Ni;e.isObject=Ii;e.objCreate=_r;return e}();var Pi=/[xy]/g;var Di=function(){function e(){}e.Attach=Fi;e.AttachEvent=Fi;e.Detach=Ei;e.DetachEvent=Ei;return e}();var Mi;(function(e){e[e["CRITICAL"]=1]="CRITICAL";e[e["WARNING"]=2]="WARNING"})(Mi||(Mi={}));var Oi={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.