@flarehr/apollo-super-selection 5.80.45634 → 5.81.48082

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 +1 @@
1
- import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-b00f648b",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-69bbf1dd",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-4e871154",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-9d2a7c0e",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-33eca162",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-5c73c587",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-9d33e108",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e))));
1
+ import{p as e,b as s}from"./p-db0bded8.js";import"./p-29c11183.js";import{g as t}from"./p-86e3e03f.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>(t(),s([["p-b00f648b",[[0,"sss-super-byof-host",{history:[16],backendUrl:[32],accessToken:[32]}]]],["p-69bbf1dd",[[0,"context-consumer",{context:[16],renderer:[16],subscribe:[16],unsubscribe:[32]}]]],["p-4e871154",[[0,"stencil-async-content",{documentLocation:[1,"document-location"],content:[32]}]]],["p-9d2a7c0e",[[0,"stencil-route-title",{titleSuffix:[1,"title-suffix"],pageTitle:[1,"page-title"]}]]],["p-33eca162",[[0,"stencil-router-prompt",{when:[4],message:[1],history:[16],unblock:[32]}]]],["p-5c73c587",[[0,"stencil-router-redirect",{history:[16],root:[1],url:[1]}]]],["p-39ec0da3",[[0,"sss-prefill",{history:[16],prefill:[32]}],[1,"super-selection-app-host",{sessionState:[32],jwt:[32],appConfiguration:[32],ignoreExistingSelection:[32]}],[0,"sss-default-fund",{history:[16],defaultFundProductName:[32]}],[0,"sss-super-campaign-featured-funds",{history:[16],backendUrl:[32],accessToken:[32],currentView:[32]}],[0,"sss-super-smsf-host",{history:[16],backendUrl:[32],accessToken:[32]}],[0,"sss-existing-choice-page",{history:[16],existingFund:[32]}],[0,"sss-standard-choice-form",{history:[16],standardChoiceFormSignature:[32],formState:[32],isSubmitDisabled:[32]}],[0,"sss-success"],[0,"sss-choice-router",{history:[16]}],[0,"sss-my-own-fund-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberFirstName:[32],memberFamilyName:[32]}],[0,"sss-smsf-engagement-step-host",{history:[16],backendUrl:[32],accessToken:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddress:[32],bsb:[32],bankAccountName:[32],bankAccountNumber:[32],memberFirstName:[32],memberFamilyName:[32],accountId:[32],partnerId:[32]}],[0,"sss-super-campaign-host",{history:[16],scriptImported:[32],backendUrl:[32],accessToken:[32]}],[0,"sss-dropdown-async",{testId:[1,"test-id"],placeholder:[1],searchFunction:[16],value:[16],required:[4],requiredValidationMessage:[1,"required-validation-message"],disabled:[4],minSearchStringLength:[2,"min-search-string-length"],showValidationErrors:[4,"show-validation-errors"],searchState:[32],inputValue:[32],isDropdownVisible:[32],filteredOptions:[32],highlightedOptionIndex:[32],selectedOption:[32]},[[2,"focus","handleFocus"],[2,"blur","handleBlur"],[2,"keydown","handleKeyDown"]]],[0,"sss-name-input",{testId:[1,"test-id"],value:[1],name:[1],readableName:[1,"readable-name"],showValidationErrors:[4,"show-validation-errors"],errorMessage:[32]}],[0,"sss-prefill-my-own-fund",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-smsf",{history:[16],prefill:[16],mode:[32],formState:[32],isSubmitDisabled:[32],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[0,"sss-prefill-invalid-my-own-fund",{history:[16],prefill:[16],fundUsi:[32],fundName:[32],memberNumber:[32],memberGivenNames:[32],memberLastName:[32]}],[0,"sss-prefill-invalid-smsf",{history:[16],prefill:[16],fundName:[32],fundAbn:[32],fundEsa:[32],fundAddressLine1:[32],fundAddressLine2:[32],fundAddressCity:[32],fundAddressPostcode:[32],fundAddressState:[32],fundAddress:[32],memberGivenNames:[32],memberLastName:[32],bankAccountName:[32],bankAccountBsb:[32],bankAccountNumber:[32]}],[1,"super-selection-app",{ignoreExistingSelection:[4,"ignore-existing-selection"],accessToken:[1,"access-token"],backendUrl:[1,"backend-url"],appBaseUrl:[1,"app-base-url"],history:[16],location:[16],isSelfHosted:[4,"is-self-hosted"],isAppInitialised:[32]}],[0,"sss-loading-page"],[0,"sss-footer-section",{textOverride:[1,"text-override"]}],[4,"stencil-route-switch",{group:[513],scrollTopOffset:[2,"scroll-top-offset"],location:[16],routeViewsUpdated:[16]}],[4,"stencil-router",{root:[1],historyType:[1,"history-type"],titleSuffix:[1,"title-suffix"],scrollTopOffset:[2,"scroll-top-offset"],location:[32],history:[32]}],[0,"sss-prefill-warning-box",{notificationList:[16]}],[0,"sss-header-section"],[4,"sss-custom-fund",{history:[16],currentCustomFund:[32],fundOptionsList:[32],showFundOptionsSelection:[32]}],[0,"sss-prefill-display-field",{field:[16]}],[0,"sss-prefill-error-box",{withHeader:[4,"with-header"],notificationList:[16]}],[4,"stencil-route-link",{url:[1],urlMatch:[1,"url-match"],activeClass:[1,"active-class"],exact:[4],strict:[4],custom:[1],anchorClass:[1,"anchor-class"],anchorRole:[1,"anchor-role"],anchorTitle:[1,"anchor-title"],anchorTabIndex:[1,"anchor-tab-index"],anchorId:[1,"anchor-id"],history:[16],location:[16],root:[1],ariaHaspopup:[1,"aria-haspopup"],ariaPosinset:[1,"aria-posinset"],ariaSetsize:[2,"aria-setsize"],ariaLabel:[1,"aria-label"],match:[32]}],[4,"sss-button",{testid:[1],fillWidth:[4,"fill-width"],fillWidthOnMobile:[4,"fill-width-on-mobile"],disabled:[4],variant:[1],size:[1],promiseFn:[16],state:[32]}],[0,"sss-loading-indicator",{theme:[1],size:[2]}],[0,"stencil-route",{group:[513],componentUpdated:[16],match:[1040],url:[1],component:[1],componentProps:[16],exact:[4],routeRender:[16],scrollTopOffset:[2,"scroll-top-offset"],routeViewsUpdated:[16],location:[16],history:[16],historyType:[1,"history-type"]}]]]],e))));
@@ -1,4 +1,4 @@
1
- import{r as t,h as e,F as n,g as i,H as s,c as r,s as a,a as o,d as u}from"./p-db0bded8.js";import{f as c,m as l,S as h,a as d,i as f,b as m,O as p,c as v,d as w,g,h as y,j as b,k as x,l as C,Q as k}from"./p-29c11183.js";import{n as S,i as F,s as M,a as A,b as _,S as N,c as E,C as B,d as I,O as P,E as L,e as j,f as D,g as T,h as R,j as O,k as U,l as q,m as H,t as V,o as z,p as W,q as $,r as X,u as J,v as G}from"./p-24d6e2b8.js";import{A as Z}from"./p-fdadb647.js";function K(){}function Y(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Y(((n,i)=>c(t(n,i)).pipe(l(((t,s)=>e(n,t,i,s))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new Q(t,n)))}class Q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new tt(t,this.project,this.concurrent))}}class tt extends h{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)}_innerSub(t){const e=new d(this),n=this.destination;n.add(e);const i=f(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function et(t,e,n,i){return v(n)&&(i=n,n=void 0),i?et(t,e,n).pipe(l((t=>m(t)?i(...t):i(t)))):new p((i=>{nt(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function nt(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,a=t.length;r<a;r++)nt(t[r],e,n,i,s)}i.add(r)}class it{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new st(t,this.dueTime,this.scheduler))}}class st extends g{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(rt,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function rt(t){t.debouncedNext()}function at(t,e,n){return function(i){return i.lift(new ot(t,e,n))}}class ot{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ut(t,this.nextOrObserver,this.error,this.complete))}}class ut extends g{constructor(t,e,n,i){super(t),this._tapNext=K,this._tapError=K,this._tapComplete=K,this._tapError=n||K,this._tapComplete=i||K,v(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||K,this._tapError=e.error||K,this._tapComplete=e.complete||K)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class ct{constructor(t){this.factory=t,this._value=S}get value(){if(F(this._value))return this._value.value;const t=this.factory();return this._value=M(t),t}}const lt=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),ht=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),dt=t=>t.replace(/([=!:$/()])/g,"\\$1"),ft=t=>t&&t.sensitive?"":"i",mt=(t,e,n)=>{for(var i=(n=n||{}).strict,s=!1!==n.end,r=ht(n.delimiter||"/"),a=n.delimiters||"./",o=[].concat(n.endsWith||[]).map(ht).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var h=t[l];if("string"==typeof h)u+=ht(h),c=l===t.length-1&&a.indexOf(h[h.length-1])>-1;else{var d=ht(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),u+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return s?(i||(u+="(?:"+r+")?"),u+="$"===o?"$":"(?="+o+")"):(i||(u+="(?:"+r+"(?="+o+"))?"),c||(u+="(?="+r+"|"+o+")")),new RegExp("^"+u,ft(n))},pt=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],s=0;s<t.length;s++)i.push(pt(t[s],e,n).source);return new RegExp("(?:"+i.join("|")+")",ft(n))})(t,e,n):((t,e,n)=>mt(((t,e)=>{for(var n,i=[],s=0,r=0,a="",o=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=lt.exec(t));){var l=n[0],h=n[1],d=n.index;if(a+=t.slice(r,d),r=d+l.length,h)a+=h[1],c=!0;else{var f="",m=t[r],p=n[2],v=n[3],w=n[4],g=n[5];if(!c&&a.length){var y=a.length-1;u.indexOf(a[y])>-1&&(f=a[y],a=a.slice(0,y))}a&&(i.push(a),a="",c=!1);var b=f||o,x=v||w;i.push({name:p||s++,prefix:f,delimiter:b,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,partial:""!==f&&void 0!==m&&m!==f,pattern:x?dt(x):"[^"+ht(b)+"]+?"})}}return(a||r<t.length)&&i.push(a+t.substr(r)),i})(t,n),e,n))(t,e,n),vt=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),wt=(t,e)=>vt(t,e)?t.substr(e.length):t,gt=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,yt=t=>"/"===t.charAt(0)?t:"/"+t,bt=t=>"/"===t.charAt(0)?t.substr(1):t,xt=t=>{const{pathname:e,search:n,hash:i}=t;let s=e||"/";return n&&"?"!==n&&(s+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(s+="#"===i.charAt(0)?i:"#"+i),s},Ct=t=>"/"===t.charAt(0),kt=t=>Math.random().toString(36).substr(2,t),St=(t,e)=>{for(let n=e,i=n+1,s=t.length;i<s;n+=1,i+=1)t[n]=t[i];t.pop()},Ft=(t,e)=>{if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>Ft(t,e[n])));const n=typeof t;if(n!==typeof e)return!1;if("object"===n){const n=t.valueOf(),i=e.valueOf();if(n!==t||i!==e)return Ft(n,i);const s=Object.keys(t),r=Object.keys(e);return s.length===r.length&&s.every((n=>Ft(t[n],e[n])))}return!1},Mt=(t,e,n,i)=>{let s;"string"==typeof t?(s=(t=>{let e=t||"/",n="",i="";const s=e.indexOf("#");-1!==s&&(i=e.substr(s),e=e.substr(0,s));const r=e.indexOf("?");return-1!==r&&(n=e.substr(r),e=e.substr(0,r)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(s.state=e)):(s=Object.assign({pathname:""},t),s.search&&"?"!==s.search.charAt(0)&&(s.search="?"+s.search),s.hash&&"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash),void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var r;return s.key=n,i?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],s=0;const r=t&&t.split("/")||[],a=t&&Ct(t),o=e&&Ct(e),u=a||o;if(t&&Ct(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?St(i,t):".."===e?(St(i,t),s++):s&&(St(i,t),s--)}if(!u)for(;s--;s)i.unshift("..");!u||""===i[0]||i[0]&&Ct(i[0])||i.unshift("");let c=i.join("/");return n&&"/"!==c.substr(-1)&&(c+="/"),c})(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s.query=(r=s.search||"")?(/^[?#]/.test(r)?r.slice(1):r).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},s};let At=0;const _t={},Nt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:s=!1}=e,{re:r,keys:a}=((t,e)=>{const n=`${e.end}${e.strict}`,i=_t[n]||(_t[n]={}),s=JSON.stringify(t);if(i[s])return i[s];const r=[],a={re:pt(t,r,e),keys:r};return At<1e4&&(i[s]=a,At+=1),a})(n,{end:i,strict:s}),o=r.exec(t);if(!o)return null;const[u,...c]=o,l=t===u;return i&&!l?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:l,params:a.reduce(((t,e,n)=>(t[e.name]=c[n],t)),{})}};var Et;!function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(Et||(Et={}));const Bt=class{constructor(e){t(this,e),this.fillWidth=!1,this.fillWidthOnMobile=!1,this.disabled=!1,this.variant="primary",this.size="base",this.promiseFn=()=>Promise.resolve(),this.state=Et.Available}render(){return e("button",{"data-testid":this.testid,class:{[{xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"}[this.size]]:!0,"inline-flex items-center justify-center border font-medium":!0,"rounded-md shadow-sm focus:outline-none focus:ring-2":!0,"focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto":!0,"disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400":!0,"border-transparent text-white bg-primary-base hover:bg-primary-hover":"primary"===this.variant,"border-gray-300 text-gray-700 bg-white hover:bg-gray-50":"secondary"===this.variant,"border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white":"light"===this.variant,"w-full":this.fillWidth||this.fillWidthOnMobile,"sm:w-auto":this.fillWidthOnMobile},disabled:this.disabled,onClick:()=>this.clicked()},this.state===Et.Pending&&e("sss-loading-indicator",{theme:"primary"===this.variant?"light":"primary",size:16}),e("div",{class:{hidden:this.state===Et.Pending}},e("slot",null)))}async clicked(){if(this.promiseFn&&this.state!==Et.Pending)try{this.state=Et.Pending,await this.promiseFn(),this.state=Et.Available}catch(t){throw this.state=Et.Error,t}}},It=class{constructor(e){t(this,e)}async componentWillLoad(){_.navigateInternally(this.history,A.superCampaignCanNotBeActivated?N.MyOwnFund:N.SuperCampaign)}render(){return e(n,null)}};E(It);const Pt={label:B.MyOwnFund,value:N.MyOwnFund},Lt=class{constructor(e){t(this,e),this.currentCustomFund=Pt,this.showFundOptionsSelection=!1}componentWillLoad(){let t=N.MyOwnFund;window.location.pathname.includes(N.MyOwnFund)&&(t=N.MyOwnFund),window.location.pathname.includes(N.DefaultFund)&&(t=N.DefaultFund),window.location.pathname.includes(N.SelfManagedFund)&&(t=N.SelfManagedFund),window.location.pathname.includes(N.FeaturedFunds)&&(t=N.FeaturedFunds),this.fundOptionsList=[Pt,{label:B.SelfManagedFund,value:N.SelfManagedFund}],A.isFeaturedFundsEnabled&&A.isUsingSuperCampaign&&this.fundOptionsList.push({label:B.FeaturedFunds,value:N.FeaturedFunds}),this.fundOptionsList.push({label:B.DefaultFund,value:N.DefaultFund}),this.currentCustomFund=this.fundOptionsList.find((e=>e.value===t))||this.currentCustomFund,_.navigateInternally(this.history,t)}render(){const t=()=>e("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}));return e("div",{class:"max-w-560 sm:w-560 relative"},e("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),e("div",{class:"mt-1 mb-4"},e("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:()=>this.showFundOptionsSelection=!this.showFundOptionsSelection},e("span",{class:{"block truncate":!0,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))),null))),this.showFundOptionsSelection&&e("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((n=>e("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base hover:text-white",onClick:()=>{this.showFundOptionsSelection=!this.showFundOptionsSelection,_.navigateInternally(this.history,n.value)}},e("span",{class:{"block truncate":!0,"font-semibold":this.currentCustomFund===n}},n.label),this.currentCustomFund===n&&e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},e(t,null))))))),e("div",{onClick:()=>this.showFundOptionsSelection=!1},e("slot",null)))}};E(Lt);const jt=new class{async searchFundsAsync(t,e){return I.getAustralianFundsAsync({searchString:t,maxRecordCount:e})}async getFundAsync(t,e){const n=await I.getAustralianFundAsync(t,e);return P.some(n)}},Dt=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=L.Instance}async componentWillLoad(){const t=A.defaultFundUsi;if(P.isNone(t))return;this.isDefaultFundExists=!0;const e=await jt.getFundAsync(t.value,!0);P.isNone(e)?this.isInvalidDefaultFund=!0:(this.defaultFund=e.value,this.defaultFundProductName=e.value.productName)}componentDidLoad(){var t,e,n,i;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:null!==(e=null===(t=this.defaultFund)||void 0===t?void 0:t.usi)&&void 0!==e?e:"",fundName:null!==(i=null===(n=this.defaultFund)||void 0===n?void 0:n.productName)&&void 0!==i?i:"",promotedFundsShown:A.promotedFunds,defaultFundUsiSet:P.toUndefined(A.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",null),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:i("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},e("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",null,e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),e("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),e("div",{class:"text-sm text-gray-700"},e("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),e("ul",{class:"list-disc list-outside pl-5"},e("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),e("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),e("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",{class:"mb-4"},e("sss-button",{testid:"continue-button",fillWidth:!0,promiseFn:()=>this.handleSubmitForm()},"Continue")),e("stencil-route-link",{url:N.ChoicePage},e("sss-button",{testid:"back-button",fillWidth:!0,variant:"secondary"},"Back")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||_.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:async t=>{await j.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},A.promotedFundsConfig))}})}},Tt=class{constructor(n){t(this,n),this.valueChanged=r(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{switch(this.highlightedOptionIndex=void 0,t.kind){case"too-many-results":this.searchState="too many results",this.filteredOptions=[];break;case"success":this.searchState="done",this.filteredOptions=t.value;break;default:this.searchState="done",this.filteredOptions=[]}},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results"):"in progress"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching..."):"too many results"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search."):0===this.filteredOptions.length?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":!0,"bg-primary-base":this.isOptionSelected(t)},onClick:()=>{this.highlightedOptionIndex=n,this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,e;this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightItem("Next"),!0;case"ArrowUp":return this.highlightItem("Prev"),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightItem=t=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(Math.max(0,this.highlightedOptionIndex+("Next"===t?1:-1)),this.filteredOptions.length-1),void 0!==this.highlightedOptionIndex&&this.selectOption(this.filteredOptions[this.highlightedOptionIndex]))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=et(this.inputElement,"keyup").pipe(function(t,e=w){return n=>n.lift(new it(t,e))}(500),l((()=>this.inputElement.value)),y(),b(this.shouldExecuteSearch),at(this.onBeginSearch),Y(this._searchFunction),at(this.onCompleteSearch)).subscribe(),this.resetInput()}disconnectedCallback(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return e(s,null,e("div",{class:"relative"},e("input",{"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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":!0,hidden:!this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":!0,hidden:!this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults())))}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction");return this.searchFunction}};Tt.style="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";const Rt=new class{async GetExistingFundAsync(){var t;const e=A.superBuyer.superChoice,n=null===(t=A.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!e)return S;if(!n)return S;const i=null==e.dateSubmitted?S:M(new Date(e.dateSubmitted)),s=O(n),r=U(n);switch(n.kind){case"Promoted":{if(D(s))return S;const t=await this.getFundByUsiAsync(s.value);return M({type:"Promoted Fund",id:T(n.promoted),name:F(t)?t.value.productName:s.value,usi:s,valid:"Active",memberNumber:r,lastNominatedAt:i})}case"MyOwnFund":{const t=n.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return M({type:"My Own Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:r,lastNominatedAt:i})}case"SMSF":return M({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:i});case"Default":{const t=n.default.usi,e=await this.getFundByUsiAsync(t);return M({type:"Default Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"PromotedDefault":{const t=n.promotedDefault.usi,e=await this.getFundByUsiAsync(t);return M({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"DefinedBenefits":{const t=n.definedBenefits.usi,e=await this.getFundByUsiAsync(t);return M({type:"Defined Benefits Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"PromotedDefaultWithJoin":{const t=n.promotedDefaultWithJoin.usi,e=await this.getFundByUsiAsync(t);return M({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:r,lastNominatedAt:i})}default:return S}}async submitRetainSuperFundAsync(t){return R().url("super-choice/retain-super-fund").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}getFundByUsiAsync(t){return jt.getFundAsync(t,!0)}toFundValidState(t){return F(t)?t.value.isActive?"Active":"Inactive":"Unknown"}},Ot=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundNominationDetail=t=>{function e(t){return F(t)?t.value:void 0}return{fundType:t.type.toString(),fundName:t.name,fundUsi:function(t){return"usi"in t?e(t.usi):void 0}(t),memberNumber:function(t){return"memberNumber"in t?e(t.memberNumber):void 0}(t),fundStatus:t.valid.toString(),lastNominatedAt:F(t.lastNominatedAt)?t.lastNominatedAt.value.toISOString():""}}}componentDidLoad(){const t=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(t)}async componentWillLoad(){const t=await Rt.GetExistingFundAsync();F(t)&&"Inactive"!==t.value.valid?this.existingFund=t.value:_.navigateInternally(this.history,N.ChoicePage)}render(){const t=()=>e("div",{class:"flex justify-center"}),n=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"})))),i=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"})))),s=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},e("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"})))),r=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))));return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),"Defined Benefits Fund"==this.existingFund.type?null:e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-400 w-full"},e("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},e("div",{class:"space-y-4"},(()=>{switch(this.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return e(t,{name:this.existingFund.name});case"Self Managed Fund":return e(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return e(n,null);case"Default Fund":return e(s,null);case"Defined Benefits Fund":return e(r,null);default:return e("div",null)}})(),e("div",{class:"sm:text-lg font-bold leading-6 break-words"},(()=>{switch(this.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 this.existingFund.name;default:return""}})())),e("div",{class:"mt-6"},e("sss-button",{testid:"continue-with-this-fund-button",fillWidth:!0,promiseFn:()=>this.handleFundNominationAccepted()},"Continue with this fund"))),e((()=>"Defined Benefits Fund"==this.existingFund.type?null:e("div",{class:"mt-4"},e("sss-button",{testid:"choose-another-fund-button",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund"))),null))))}async handleFundNominationAccepted(){const t=this.createSuperFundNominationDetail(this.existingFund);await Rt.submitRetainSuperFundAsync(t),A.markSuperSelectionAsSubmitted()}async handleFundNominationDeclined(){const t=this.createSuperFundNominationDetail(this.existingFund);await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Ut=class{constructor(e){t(this,e),this.footerText=()=>void 0!==this.textOverride?this.textOverride:"Powered by Flare"}render(){return e("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":!0,"mt-8 sm:mt-20":!A.hideFooterSection}},!A.hideFooterSection&&e("span",null,this.footerText()),e("p",{class:"block text-transparent"},"v","5.80.45634"))}},qt=(t,n)=>e("stencil-route-link",{exact:!0,url:t.route},e("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":!0,"bg-white shadow-sm text-primary-base":t.isActive,"hover:bg-primary-hover text-white":!t.isActive}},n)),Ht=t=>{let n=N.MyOwnFund;return window.location.href.includes(N.SelfManagedFund)?n=N.SelfManagedFund:window.location.href.includes(N.DefaultFund)?n=N.DefaultFund:window.location.href.includes(N.FeaturedFunds)&&(n=N.FeaturedFunds),e(qt,{route:n,isActive:t.isActive},"Choose another fund")},Vt=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex justify-center"},e("div",{class:"text-center max-w-800"},e("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),e(n,null,e("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},e(n,null,A.superCampaignCanNotBeActivated?"You can choose any super fund, including your current fund/SMSF or your employer’s default fund.":"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.")),!A.superCampaignCanNotBeActivated&&e("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},e(qt,{route:N.ChoicePage,isActive:!1},"Featured super funds"),e(Ht,{isActive:!0})))))}},zt=class{constructor(e){t(this,e),this.theme="primary",this.size=48}render(){return e("div",{class:"inline-block animate-spin"},e("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),e("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"primary"===this.theme?"fill-primary-base":"fill-white"})))}},Wt=class{constructor(e){t(this,e)}render(){return e(s,{class:"flex flex-col justify-center items-center"},e("h5",{class:"text-lg"},"Loading your superannuation step"),e("sss-loading-indicator",null))}},$t=class{constructor(e){t(this,e),this.stepContinued=async t=>{"byof-engagement"==t.detail.sender&&(await L.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi,t.detail.reason),this.navigateToStandardChoice())},this.subscribeToStepEvents=()=>{for(const t in this.stepEventHandlers)document.addEventListener(t,this.stepEventHandlers[t])},this.unSubscribeFromStepEvents=()=>{for(const t in this.stepEventHandlers)document.removeEventListener(t,this.stepEventHandlers[t])},this.stepEventHandlers={continue:this.stepContinued.bind(this)}}async componentWillLoad(){A.isBringYourOwnFundCustomStepEnabled&&A.isUsingSuperCampaign&&P.isSome(q.myOwnFundForm.fundUsi)&&P.isSome(q.myOwnFundForm.fundName)&&P.isSome(q.myOwnFundForm.memberNumber)&&P.isSome(q.myOwnFundForm.memberFirstName)&&P.isSome(q.myOwnFundForm.memberFamilyName)&&P.isSome(A.backendUrl)&&P.isSome(A.state.jwt)?(this.backendUrl=A.backendUrl.value,this.accessToken=A.state.jwt.value,this.fundUsi=q.myOwnFundForm.fundUsi.value,this.fundName=q.myOwnFundForm.fundName.value,this.memberNumber=q.myOwnFundForm.memberNumber.value,this.memberFirstName=q.myOwnFundForm.memberFirstName.value,this.memberFamilyName=q.myOwnFundForm.memberFamilyName.value,this.unSubscribeFromStepEvents(),this.subscribeToStepEvents(),A.hideFooterSection=!0,await L.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi)):_.navigateInternally(this.history,N.MyOwnFund)}disconnectedCallback(){this.unSubscribeFromStepEvents(),A.hideFooterSection=!1}render(){return e(s,null,e("apollo-super-byof-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"fund-usi":this.fundUsi}))}navigateToStandardChoice(){_.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName,fundDetails:{type:"myOwnFund",fundName:this.fundName,fundUsi:this.fundUsi,memberNumber:this.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:this.fundUsi,memberNumber:this.memberNumber,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName,standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitCustomFundChoiceAsync(e)}})}};E($t);const Xt=class{constructor(e){t(this,e),this.myInputChange=r(this,"myInputChange",7),this.value="",this.name="",this.readableName="",this.showValidationErrors=!1,this.errorMessage="",this.NAME_PATTERN="^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$"}render(){return e(s,null,e("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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:!0,pattern:this.NAME_PATTERN,name:this.name,value:this.value,onInput:t=>this.handleInput(t)}),this.errorMessage&&e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))}handleInput(t){const e=t.target;e.value=e.value.replace(/\s+/g," "),this.validateInput(e),this.myInputChange.emit(e.value.trim())}validateInput(t){this.errorMessage=t.checkValidity()?"":t.validity.valueMissing?this.readableName+" is required.":t.validity.patternMismatch?t.value.startsWith("-")||t.value.startsWith("'")?this.readableName+" must start with a letter.":t.value.includes("--")?this.readableName+" must not have a double hypen.":this.readableName+" contains unsupported characters.":"Invalid input."}},Jt=class{constructor(e){t(this,e),this.prefill=void 0,this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}async componentWillLoad(){this.prefill=F(A.state.superChoicePrefill)?A.state.superChoicePrefill.value:void 0}render(){return this.prefill&&"myOwnFund"===this.prefill.type?"Valid"===this.prefill.data.fundDetail.type?this.renderMyOwnFund(this.prefill.data):this.renderInvalidMyOwnFund(this.prefill.data):this.prefill&&"smsf"===this.prefill.type?this.prefill.data.fundAbn.valid?this.renderSMSF(this.prefill.data):this.renderInvalidSMSF(this.prefill.data):(_.navigateInternally(this.history,N.ChoicePage),null)}renderMyOwnFund(t){return e("sss-prefill-my-own-fund",{history:this.history,prefill:t})}renderInvalidMyOwnFund(t){return e("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:t})}renderSMSF(t){return e("sss-prefill-smsf",{history:this.history,prefill:t})}renderInvalidSMSF(t){return e("sss-prefill-invalid-smsf",{history:this.history,prefill:t})}},Gt=class{constructor(e){t(this,e)}render(){return e("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"},e("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":!0,"text-red-600":!this.field.isValid}},this.field.name),e("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":!0,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))}},Zt=class{constructor(e){t(this,e),this.withHeader=!1}render(){return e("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},e("div",{class:"w-1 self-stretch bg-red-400"}),e("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},e((()=>e("div",{class:"w-5 h-5"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e("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"})))),null),e("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&e("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((t=>e("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},e("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},e("div",{class:"pt-1.5 justify-center items-center flex"},e("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),e("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},t))))),!this.withHeader&&this.notificationList.map((t=>e("div",{class:"text-sm font-medium leading-tight text-red-800"},t))))))}};function Kt(t){return null==t||""===t.trim()}const Yt=(t,n,i)=>e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},t),e("div",{"data-testid":n,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"},i)),Qt=()=>e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),e("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."));class te{static Input(t){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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":t}}}const ee="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";class ne{constructor(t,e,n){this.name=t,this.testId=e,this._value=null!=n?n:"",this._errorMessage=this.validateAndReturnErrorMessage(this._value)}get value(){return this._value}set value(t){this._errorMessage=this.validateAndReturnErrorMessage(t),this._value=t}get isValid(){return null===this._errorMessage}get isEmpty(){return Kt(this._value)}get errorMessage(){return this._errorMessage}}class ie{constructor(t,e,n,i){this.name=t,this.testId=e,this._value=null!=n?n:"",this._isValid=i}get value(){return this._value}get isValid(){return this._isValid}get isEmpty(){return Kt(this._value)}}class se extends ie{constructor(t,e){super("Fund USI","fund-usi",t,e)}}class re extends ie{constructor(t,e){super("Fund name","fund-name",t,e)}}class ae extends ne{constructor(t){super("Fund name","smsf-fund-name",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Fund name is required.":t.length<2?"Enter a valid Fund name.":null}}class oe extends ne{constructor(t){super("Member number","member-number",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Member number is required.":/^[A-Za-z0-9]{4,16}$/.test(t)?null:"Enter a valid member number (only numbers and / or letters)"}}class ue extends ne{constructor(t){super("Member last name","member-last-name",t)}validateAndReturnErrorMessage(t){const e=new RegExp(ee);return Kt(t)?"Member last name is required.":e.test(t)?null:"Member last name contains unsupported characters."}}class ce extends ne{constructor(t){super("Member given name(s)","member-given-names",t)}validateAndReturnErrorMessage(t){const e=new RegExp(ee);return Kt(t)?"Member given name(s) is required.":e.test(t)?null:"Member given name(s) contains unsupported characters."}}class le extends ie{constructor(t,e){super("Fund ABN","fund-abn",t,e)}}class he extends ne{constructor(t){super("Fund ESA","fund-esa",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Fund ESA is required.":t.length<2?"Enter a valid Fund ESA.":null}}class de extends ne{constructor(t){super("Address line 1","address-line-one",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Address line 1 is required.":t.length<2?"Enter a valid Address line 1.":null}}class fe extends ne{constructor(t){super("Address line 2","address-line-two",t)}validateAndReturnErrorMessage(t){return null}}class me extends ne{constructor(t){super("City/suburb","city-suburb",t)}validateAndReturnErrorMessage(t){return Kt(t)?"City/suburb is required.":null}}class pe extends ne{constructor(t){super("Postcode","postcode",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Postcode is required.":/^[0-9]{4}$/.test(t)?null:"Enter a valid postcode."}}class ve extends ne{constructor(t){super("State","state",t)}get options(){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"}]}validateAndReturnErrorMessage(t){return Kt(t)?"State is required.":void 0===this.options.find((e=>e.value=t))?"Enter a valid state.":null}}class we extends ie{constructor(t,e,n,i,s){super("Fund address","fund-address",[t,e,n,i,s].map((t=>t.value)).filter((t=>t)).join(", "),t.isValid&&e.isValid&&n.isValid&&i.isValid&&s.isValid)}}class ge extends ne{constructor(t){super("Account name","account-name",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Account name is required.":t.length<2?"Enter a valid Account name.":null}}class ye extends ie{constructor(t,e){super("Bank name","bank-name",t,e)}}class be extends ne{constructor(t){super("BSB","bsb",t)}validateAndReturnErrorMessage(t){return Kt(t)?"BSB is required.":/^[0-9]{6,7}$/.test(t)?null:"Enter a valid BSB."}}class xe extends ne{constructor(t){super("Account number","account-number",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Account number is required.":/^[0-9]{2,11}$/.test(t)?null:"Enter a valid Account number."}}const Ce=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&"Invalid"===this.prefill.fundDetail.type?(this.fundUsi=new se(this.prefill.fundDetail.fundUsi,!1),this.fundName=new re("",!1),this.memberNumber=new oe(this.prefill.memberNumber),this.memberGivenNames=new ce(this.prefill.memberFirstName),this.memberLastName=new ue(this.prefill.memberFamilyName)):_.navigateInternally(this.history,N.ChoicePage)}render(){return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),e("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."]}),e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundUsi}),e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.memberNumber}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames})))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:!0,variant:"primary",promiseFn:()=>this.handleChooseAnotherFund()},"Choose another fund"))))}async handleChooseAnotherFund(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},ke=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&!this.prefill.fundAbn.valid?this.initialiseComponent(this.prefill):_.navigateInternally(this.history,N.PrefillInvalidMyOwnFundPage)}render(){return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),e("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."]}),e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.fundAbn}),e("sss-prefill-display-field",{field:this.fundEsa}),e("sss-prefill-display-field",{field:this.fundAddress}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames}),e("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("sss-prefill-display-field",{field:this.bankAccountName}),e("sss-prefill-display-field",{field:this.bankAccountBsb}),e("sss-prefill-display-field",{field:this.bankAccountNumber})))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:!0,variant:"primary",promiseFn:()=>this.handleFundNominationDeclined()},"Make another nomination"))))}initialiseComponent(t){this.fundName=new ae(t.fundName),this.fundAbn=new le(t.fundAbn.value,t.fundAbn.valid),this.fundEsa=new he(t.electronicServiceAddress),this.fundAddressLine1=new de(t.addressLine1),this.fundAddressLine2=new fe(t.addressLine2),this.fundAddressCity=new me(t.addressCity),this.fundAddressPostcode=new pe(t.addressPostcode),this.fundAddressState=new ve(t.addressState),this.fundAddress=new we(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode),this.memberGivenNames=new ce(t.memberFirstName),this.memberLastName=new ue(t.memberFamilyName),this.bankAccountName=new ge(t.bankAccountName),this.bankAccountBsb=new be(t.bankAccountBsb),this.bankAccountNumber=new xe(t.bankAccountNumber)}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Se=class{constructor(e){t(this,e),this.mode="review",this.formState="pristine",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&"Valid"===this.prefill.fundDetail.type?this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill):_.navigateInternally(this.history,N.ChoicePage)}render(){const t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((t=>null!==t));return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),e("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."]}),"review"===this.mode&&t.length>0&&e("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:!0}),"review"===this.mode&&e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundUsi}),e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.memberNumber}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames})),"review"===this.mode&&e("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:!0,variant:"secondary",promiseFn:()=>this.setModeToEdit()},e("div",{class:"flex flex-row gap-2"},e("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),e("div",{class:"w-4 h-4 relative"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},e("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"}),e("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),"edit"===this.mode&&e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=this.formHasMissingData()},Yt(this.fundName.name,this.fundName.testId,this.fundName.value),Yt(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:t=>{this.updateMemberNumber(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberNumber.errorMessage))),e("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},e("div",{class:"w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:ee,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:t=>{this.updateMemberGivenNames(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberGivenNames.errorMessage))),e("div",{class:"w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:ee,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:t=>{this.updateMemberLastName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberLastName.errorMessage))))))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:!0,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:()=>this.handleSubmitForm()},"Continue"),e("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund"))))}initialiseComponent(t,e){this.fundUsi=new se(e.fundDetail.fundUsi,!0),this.fundName=new re(t,!0),this.memberNumber=new oe(e.memberNumber),this.memberGivenNames=new ce(e.memberFirstName),this.memberLastName=new ue(e.memberFamilyName),this.isSubmitDisabled=this.formHasMissingData()}isFormValid(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid}formHasMissingData(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty}setModeToEdit(){return this.mode="edit",Promise.resolve()}updateMemberNumber(t){this.memberNumber=new oe(t.trim())}updateMemberGivenNames(t){this.memberGivenNames=new ce(t.trimStart())}updateMemberLastName(t){this.memberLastName=new ue(t.trim())}async handleSubmitForm(){this.formState="validated",this.isFormValid()&&("edit"!==this.mode||this.formElement.checkValidity())&&_.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitCustomFundChoiceAsync(e)}})}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Fe={"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"},Me=class{constructor(e){t(this,e),this.mode="review",this.formState="pristine",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&this.prefill.fundAbn.valid?this.initialiseComponent(this.prefill):_.navigateInternally(this.history,N.PrefillInvalidSMSFPage)}render(){const 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((t=>null!==t));return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),e("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),"review"===this.mode&&t.length>0&&e("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:!0}),"review"===this.mode&&e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.fundAbn}),e("sss-prefill-display-field",{field:this.fundEsa}),e("sss-prefill-display-field",{field:this.fundAddress}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames}),e("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("sss-prefill-display-field",{field:this.bankAccountName}),e("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&e("sss-prefill-display-field",{field:this.bankName}),e("sss-prefill-display-field",{field:this.bankAccountNumber})),"review"===this.mode&&e("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:!0,variant:"secondary",promiseFn:()=>this.setModeToEdit()},e("div",{class:"flex flex-row gap-2"},e("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),e("div",{class:"w-4 h-4 relative"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},e("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"}),e("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),"edit"===this.mode&&e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"w-full":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=this.formHasMissingData()},e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:t=>{this.updateFundName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.fundName.errorMessage))),Yt(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:t=>{this.updateFundEsa(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.fundEsa.errorMessage))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),e("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},e("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-t-md shadow-none border-b-0":!0}),required:!0,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:t=>{this.updateAddressLine1(t.target.value)}}),e("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none shadow-none border-b-0":!0}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:t=>this.updateAddressLine2(t.target.value)}),e("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none shadow-none border-b-0":!0}),required:!0,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:t=>{this.updateAddressCity(t.target.value)}}),e("div",{class:"flex -space-x-px"},e("div",{class:"w-1/2 flex-1 min-w-0"},e("input",{placeholder:"Postcode",type:"text",required:!0,class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-bl-md shadow-none border-r-0":!0}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:t=>{this.updateAddressPostcode(t.target.value)}})),e("div",{class:"flex-1 min-w-0"},e("select",{class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-br-md shadow-none":!0,"text-gray-500":"validated"!==this.formState}),name:"state",required:!0,"data-testid":this.fundAddressState.testId,id:"state",onInput:t=>{this.updateAddressState(t.target.value)}},e("option",{disabled:!0,selected:void 0!==this.fundAddressState.value,value:""},"State"),this.fundAddressState.options.map((t=>e("option",{value:t.value,selected:this.fundAddressState.value===t.value},t.label))))))),"validated"===this.formState&&e("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),e("div",{class:"flex gap-x-4 flex-col sm:flex-row"},e("div",{class:"mt-3 w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:t=>{this.updateMemberGivenNames(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberGivenNames.errorMessage))),e("div",{class:"mt-3 w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:t=>{this.updateMemberLastName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberLastName.errorMessage)))),e("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:t=>{this.updateBankAccountName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountName.errorMessage))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:t=>{const e=t.target.value;this.updateBankName(e),this.updateBankAccountBsb(e)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&Yt(this.bankName.name,this.bankName.testId,this.bankName.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:t=>{this.updateBankAccountNumber(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountNumber.errorMessage)))))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:!0,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:()=>this.handleSubmitForm()},"Continue"),e("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Make another nomination"))))}isFormValid(){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}formHasMissingData(){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}setModeToEdit(){return this.mode="edit",Promise.resolve()}updateFundName(t){this.fundName=new ae(t.trim())}updateFundEsa(t){this.fundEsa=new he(t.trim())}updateAddressLine1(t){this.fundAddressLine1=new de(t.trim())}updateAddressLine2(t){this.fundAddressLine2=new fe(t.trim())}updateAddressCity(t){this.fundAddressCity=new me(t.trim())}updateAddressPostcode(t){this.fundAddressPostcode=new pe(t.trim())}updateAddressState(t){this.fundAddressState=new ve(t.trim())}updateBankAccountName(t){this.bankAccountName=new ge(t.trim())}updateBankAccountBsb(t){this.bankAccountBsb=new be(t.trim())}updateBankAccountNumber(t){this.bankAccountNumber=new xe(t.trim())}updateMemberGivenNames(t){this.memberGivenNames=new ce(t)}updateMemberLastName(t){this.memberLastName=new ue(t.trim())}filterDigits(t){return t.replace(/[^0-9]/g,"")}tryGetBankName(t){if(null==t)return null;const e=this.filterDigits(t),n=e.substring(0,2),i=e.substring(0,3);return Fe[n]||Fe[i]||null}updateBankName(t){const e=this.tryGetBankName(t);this.bankName=new ye(e,null!=e)}async handleSubmitForm(){this.formState="validated",this.isFormValid()&&("edit"!==this.mode||this.formElement.checkValidity())&&_.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:async t=>{const 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},A.promotedFundsConfig);await j.submitSelfManagedFundChoiceAsync(e)}})}initialiseComponent(t){this.fundName=new ae(t.fundName),this.fundAbn=new le(t.fundAbn.value,t.fundAbn.valid),this.fundEsa=new he(t.electronicServiceAddress),this.fundAddressLine1=new de(t.addressLine1),this.fundAddressLine2=new fe(t.addressLine2),this.fundAddressCity=new me(t.addressCity),this.fundAddressPostcode=new pe(t.addressPostcode),this.fundAddressState=new ve(t.addressState),this.fundAddress=new we(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode),this.memberGivenNames=new ce(t.memberFirstName),this.memberLastName=new ue(t.memberFamilyName),this.bankAccountName=new ge(t.bankAccountName);const e=this.tryGetBankName(t.bankAccountBsb);this.bankName=new ye(e,null!=e),this.bankAccountBsb=new be(t.bankAccountBsb),this.bankAccountNumber=new xe(t.bankAccountNumber),this.isSubmitDisabled=this.formHasMissingData()}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Ae=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},e("div",{class:"w-1 self-stretch bg-yellow-400"}),e("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},e((()=>e("div",{class:"w-5 h-5"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e("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"})))),null),e("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},e("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((t=>e("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},this.notificationList.length>1&&e("div",{class:"pt-1.5 justify-center items-center flex"},e("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),e("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))))))))}},_e=class{constructor(e){t(this,e),this.allFormFieldsAreFilled=t=>null!=t.fundName&&null!=t.fundAbn&&null!=t.fundEsa&&null!=t.addressLine1&&null!=t.city&&null!=t.state&&null!=t.postcode&&null!=t.bsb&&null!=t.bankAccountName&&null!=t.bankAccountNumber&&null!=t.memberFirstName&&null!=t.memberFamilyName,this.stepContinued=async t=>{"smsf-engagement"==t.detail.sender&&(await L.Instance.TrackSuperSmsfEngagementStepContinued(t.detail.reason),this.navigateToStandardChoice())},this.subscribeToStepEvents=()=>{for(const t in this.stepEventHandlers)document.addEventListener(t,this.stepEventHandlers[t])},this.unSubscribeFromStepEvents=()=>{for(const t in this.stepEventHandlers)document.removeEventListener(t,this.stepEventHandlers[t])},this.stepEventHandlers={continue:this.stepContinued.bind(this)}}async componentWillLoad(){A.isSmsfCustomStepEnabled&&A.isUsingSuperCampaign&&this.allFormFieldsAreFilled(q.selfManagedFundForm)&&P.isSome(A.backendUrl)&&P.isSome(A.state.jwt)?(this.backendUrl=A.backendUrl.value,this.accessToken=A.state.jwt.value,this.accountId=A.accountIdOrDefault,this.partnerId=A.partnerIdOrDefault,this.initialiseFormState(q.selfManagedFundForm),this.unSubscribeFromStepEvents(),this.subscribeToStepEvents(),A.hideFooterSection=!0,await L.Instance.TrackSuperSmsfEngagementStepActivationSucceeded()):_.navigateInternally(this.history,N.SelfManagedFund)}disconnectedCallback(){this.unSubscribeFromStepEvents(),A.hideFooterSection=!1}render(){return e(s,null,e("apollo-super-smsf-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"account-id":this.accountId,"partner-id":this.partnerId}))}navigateToStandardChoice(){_.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName,fundEsa:this.fundEsa},handleSubmitFn:async t=>{const e=Object.assign({smsfChoice:{abn:this.fundAbn,fundName:this.fundName,fundAddress:{addressLine1:this.fundAddress.addressLine1,addressLine2:this.fundAddress.addressLine2,city:this.fundAddress.city,state:this.fundAddress.state,postcode:this.fundAddress.postcode},bsb:this.bsb,bankAccountName:this.bankAccountName,bankAccountNumber:this.bankAccountNumber,electronicServiceAddress:this.fundEsa,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName},standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitSelfManagedFundChoiceAsync(e)}})}initialiseFormState(t){this.fundName=t.fundName,this.fundAbn=t.fundAbn,this.fundEsa=t.fundEsa,this.fundAddress={addressLine1:t.addressLine1,addressLine2:t.addressLine2,city:t.city,state:t.state,postcode:t.postcode},this.bsb=t.bsb,this.bankAccountName=t.bankAccountName,this.bankAccountNumber=t.bankAccountNumber,this.memberFirstName=t.memberFirstName,this.memberFamilyName=t.memberFamilyName}};E(_e);const Ne=class{constructor(e){t(this,e),this.standardChoiceFormSignature="",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}render(){return e(s,null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),e("div",{class:"sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8"},"Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-560"},e("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),e("div",{class:"flex justify-between w-full"},e("div",null,e("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),e("div",{class:"text-sm mt-2"},H.fundName)),e("div",{class:"grid content-center ml-4"},e("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:async()=>{await this.trackChangeRequestedAsync(),_.navigateInternally(this.history,N.ChoicePage)}},"Change")))),e("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},e("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),e("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:i("assets/icon-information-circle.svg")})),e("div",{class:"ml-2"},e("p",{class:"text-sm text-blue-800 leading-5"},"Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"mt-3":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),e("input",{"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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":"validated"===this.formState},required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:t=>this.standardChoiceFormSignature=t.target.value}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),e("div",{class:"mt-6"},e("sss-button",{testid:"confirm-and-continue-button",fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Confirm and continue")))))))}renderLogo(){}async trackChangeRequestedAsync(){const t={promotedFundsShown:A.promotedFunds,defaultFundUsiSet:V(A.defaultFundUsi)};switch(H.fundDetails.type){case"default":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"myOwnFund":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"smsf":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promoted":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promotedDefault":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promotedDefaultWithJoin":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},H.fundDetails),t)});break;case"null":throw"standardChoiceFormState.fundDetails was not set"}}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await H.handleSubmitFn(this.standardChoiceFormSignature.trim()),A.markSuperSelectionAsSubmitted())}},Ee=class{constructor(e){t(this,e),this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}render(){return e(s,{class:"text-center"},e("div",{class:"flex justify-center"},e("div",{class:"relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},e("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))),null)))),e("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),e("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),e("div",{class:"flex justify-center mt-8"},e("div",{class:"max-w-[200px] w-full"},e("sss-button",{testid:"continue-button",size:"xl",fillWidth:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))}handleContinueButtonClick(t){A.completeSuperSelectionFlow()}},Be=new class{trackClickPromotedTileAsync(t){return I.clickPromotedTileAsync(t)}},Ie=async({sender:t,placementId:e,fundId:n,fundUsi:i,fundName:s,fundType:r})=>{if("super-campaign"===t||"featured-funds"===t){const t=(()=>{if(null!=A.superCampaignState)return A.superCampaignState;throw new Error("Super campaign state has not been initialized")})().PromotedFundIds,a=P.toUndefined(A.defaultFundUsi);await Promise.all(["promoted-default"===r?await L.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:null!=i?i:"",fundName:s,promotedFundId:n,promotedFundsShown:t,defaultFundUsiSet:a,superCampaignEnabled:!0,placementId:e}):await L.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:null!=i?i:void 0,fundName:s,promotedFundId:n,promotedFundsShown:t,defaultFundUsiSet:a,superCampaignEnabled:!0,placementId:e}),Be.trackClickPromotedTileAsync("promoted-default"===r?{promotedDefault:{fundId:n,placementId:e}}:{promoted:{fundId:n,placementId:e}})])}};function Pe(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Le(t){var e=Object.create;if(e)return e(t);if(null==t)return{};var n=typeof t;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var je,De,Te=function(t,e){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},Re=Pe()||{};De=function(t,e){function n(){this.constructor=t}Te(t,e),t.prototype=null===e?Le(e):(n.prototype=e.prototype,new n)},(je=Re).__assign||(je.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}),je.__extends||(je.__extends=De),__assign||(__assign=Re.__assign),__extends||(__extends=Re.__extends);var Oe=Pe;function Ue(t){var e=Oe();return e&&e[t]?e[t]:"window"===t&&qe()?window:null}function qe(){return Boolean("object"==typeof window&&window)}function He(){return qe()?window:Ue("window")}function Ve(){return Boolean("object"==typeof document&&document)}function ze(){return Ve()?document:Ue("document")}function We(){return Boolean("object"==typeof navigator&&navigator)?navigator:Ue("navigator")}function $e(){return"object"==typeof location&&location?location:Ue("location")}function Xe(){return Ue("performance")}function Je(){return Boolean("object"==typeof JSON&&JSON||null!==Ue("JSON"))}function Ge(){return Je()?JSON||Ue("JSON"):null}var Ze=null,Ke=!1,Ye=123456789,Qe=987654321;function tn(t){t<0&&(t>>>=0),Ye=123456789+t&4294967295,Qe=987654321-t&4294967295,Ke=!0}function en(){tn(4294967296*Math.random()^(new Date).getTime())}function nn(t,e){return typeof t===e}function sn(t){return nn(t,"undefined")||void 0===t}function rn(t){return sn(t)||null===t}function an(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function on(t){return nn(t,"object")}function un(t){return nn(t,"function")}function cn(t,e,n,i){void 0===i&&(i=!1);var s=!1;if(!rn(t))try{rn(t.addEventListener)?rn(t.attachEvent)||(t.attachEvent("on"+e,n),s=!0):(t.addEventListener(e,n,i),s=!0)}catch(t){}return s}function ln(t,e,n,i){if(void 0===i&&(i=!1),!rn(t))try{rn(t.removeEventListener)?rn(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function hn(t,e){if(t&&on(t))for(var n in t)an(t,n)&&e.call(t,n,t[n])}var dn,fn=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return nn(t,"string")},t.isNumber=function(t){return nn(t,"number")},t.isBoolean=function(t){return nn(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(mn,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,s=0;s<i;s++)s in t&&e.call(n||t,t[s],s,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,s=n||0,r=Math.max(s>=0?s:i-Math.abs(s),0);r<i;r++)if(r in t&&t[r]===e)return r;return-1},t.arrMap=function(t,e,n){for(var i=t.length,s=n||t,r=new Array(i),a=0;a<i;a++)a in t&&(r[a]=e.call(s,t[a],t));return r},t.arrReduce=function(t,e,n){var i,s=t.length,r=0;if(arguments.length>=3)i=arguments[2];else{for(;r<s&&!(r in t);)r++;i=t[r++]}for(;r<s;)r in t&&(i=e(i,t[r],r,t)),r++;return i},t.strTrim=function(e){return t.isString(e)?e.replace(/^\s+|\s+$/g,""):e},t.objKeys=function(t){var e=!{toString:null}.propertyIsEnumerable("toString");if(!(un(t)||on(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)an(t,i)&&n.push(i);if(e)for(var s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=s.length,a=0;a<r;a++)an(t,s[a])&&n.push(s[a]);return n},t.objDefineAccessors=function(t,e,n,i){var s=Object.defineProperty;if(s)try{var r={enumerable:!0,configurable:!0};return n&&(r.get=n),i&&(r.set=i),s(t,e,r),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=He();i&&(n=cn(i,t,e),n=cn(i.body,t,e)||n);var s=ze();return s&&(n=pn.Attach(s,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=Xe();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,s="";s.length<e;)i++,s+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return s},t.isIE=function(){if(null===Ze){var t=((We()||{}).userAgent||"").toLowerCase();Ze=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return Ze},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=Ue("crypto")||Ue("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(Ke||en(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?tn(t):en()},t.mwcRandom32=function(t){var e=((Qe=36969*(65535&Qe)+(Qe>>16)&4294967295)<<16)+(65535&(Ye=18e3*(65535&Ye)+(Ye>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",s=0;s<4;s++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var r=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+r+i.substr(16,3)+i.substr(19,12)},t.isTypeof=nn,t.isUndefined=sn,t.isNullOrUndefined=rn,t.hasOwnProperty=an,t.isFunction=un,t.isObject=on,t.objCreate=Le,t}(),mn=/[xy]/g,pn=function(){function t(){}return t.Attach=cn,t.AttachEvent=cn,t.Detach=ln,t.DetachEvent=ln,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(dn||(dn={}));var vn=Object.getPrototypeOf,wn=0;
1
+ import{r as t,h as e,F as n,g as i,H as s,c as r,s as a,a as o,d as u}from"./p-db0bded8.js";import{f as c,m as l,S as h,a as d,i as f,b as m,O as p,c as v,d as w,g,h as y,j as b,k as x,l as C,Q as k}from"./p-29c11183.js";import{n as S,i as F,s as M,a as A,b as _,S as N,c as E,C as B,d as I,O as P,E as L,e as j,f as D,g as T,h as R,j as O,k as U,l as q,m as H,t as V,o as z,p as W,q as $,r as X,u as J,v as G}from"./p-24d6e2b8.js";import{A as Z}from"./p-fdadb647.js";function K(){}function Y(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Y(((n,i)=>c(t(n,i)).pipe(l(((t,s)=>e(n,t,i,s))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new Q(t,n)))}class Q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new tt(t,this.project,this.concurrent))}}class tt extends h{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)}_innerSub(t){const e=new d(this),n=this.destination;n.add(e);const i=f(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function et(t,e,n,i){return v(n)&&(i=n,n=void 0),i?et(t,e,n).pipe(l((t=>m(t)?i(...t):i(t)))):new p((i=>{nt(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function nt(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,a=t.length;r<a;r++)nt(t[r],e,n,i,s)}i.add(r)}class it{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new st(t,this.dueTime,this.scheduler))}}class st extends g{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(rt,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function rt(t){t.debouncedNext()}function at(t,e,n){return function(i){return i.lift(new ot(t,e,n))}}class ot{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new ut(t,this.nextOrObserver,this.error,this.complete))}}class ut extends g{constructor(t,e,n,i){super(t),this._tapNext=K,this._tapError=K,this._tapComplete=K,this._tapError=n||K,this._tapComplete=i||K,v(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||K,this._tapError=e.error||K,this._tapComplete=e.complete||K)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class ct{constructor(t){this.factory=t,this._value=S}get value(){if(F(this._value))return this._value.value;const t=this.factory();return this._value=M(t),t}}const lt=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),ht=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),dt=t=>t.replace(/([=!:$/()])/g,"\\$1"),ft=t=>t&&t.sensitive?"":"i",mt=(t,e,n)=>{for(var i=(n=n||{}).strict,s=!1!==n.end,r=ht(n.delimiter||"/"),a=n.delimiters||"./",o=[].concat(n.endsWith||[]).map(ht).concat("$").join("|"),u="",c=!1,l=0;l<t.length;l++){var h=t[l];if("string"==typeof h)u+=ht(h),c=l===t.length-1&&a.indexOf(h[h.length-1])>-1;else{var d=ht(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),u+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return s?(i||(u+="(?:"+r+")?"),u+="$"===o?"$":"(?="+o+")"):(i||(u+="(?:"+r+"(?="+o+"))?"),c||(u+="(?="+r+"|"+o+")")),new RegExp("^"+u,ft(n))},pt=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],s=0;s<t.length;s++)i.push(pt(t[s],e,n).source);return new RegExp("(?:"+i.join("|")+")",ft(n))})(t,e,n):((t,e,n)=>mt(((t,e)=>{for(var n,i=[],s=0,r=0,a="",o=e&&e.delimiter||"/",u=e&&e.delimiters||"./",c=!1;null!==(n=lt.exec(t));){var l=n[0],h=n[1],d=n.index;if(a+=t.slice(r,d),r=d+l.length,h)a+=h[1],c=!0;else{var f="",m=t[r],p=n[2],v=n[3],w=n[4],g=n[5];if(!c&&a.length){var y=a.length-1;u.indexOf(a[y])>-1&&(f=a[y],a=a.slice(0,y))}a&&(i.push(a),a="",c=!1);var b=f||o,x=v||w;i.push({name:p||s++,prefix:f,delimiter:b,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,partial:""!==f&&void 0!==m&&m!==f,pattern:x?dt(x):"[^"+ht(b)+"]+?"})}}return(a||r<t.length)&&i.push(a+t.substr(r)),i})(t,n),e,n))(t,e,n),vt=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),wt=(t,e)=>vt(t,e)?t.substr(e.length):t,gt=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,yt=t=>"/"===t.charAt(0)?t:"/"+t,bt=t=>"/"===t.charAt(0)?t.substr(1):t,xt=t=>{const{pathname:e,search:n,hash:i}=t;let s=e||"/";return n&&"?"!==n&&(s+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(s+="#"===i.charAt(0)?i:"#"+i),s},Ct=t=>"/"===t.charAt(0),kt=t=>Math.random().toString(36).substr(2,t),St=(t,e)=>{for(let n=e,i=n+1,s=t.length;i<s;n+=1,i+=1)t[n]=t[i];t.pop()},Ft=(t,e)=>{if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(((t,n)=>Ft(t,e[n])));const n=typeof t;if(n!==typeof e)return!1;if("object"===n){const n=t.valueOf(),i=e.valueOf();if(n!==t||i!==e)return Ft(n,i);const s=Object.keys(t),r=Object.keys(e);return s.length===r.length&&s.every((n=>Ft(t[n],e[n])))}return!1},Mt=(t,e,n,i)=>{let s;"string"==typeof t?(s=(t=>{let e=t||"/",n="",i="";const s=e.indexOf("#");-1!==s&&(i=e.substr(s),e=e.substr(0,s));const r=e.indexOf("?");return-1!==r&&(n=e.substr(r),e=e.substr(0,r)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(s.state=e)):(s=Object.assign({pathname:""},t),s.search&&"?"!==s.search.charAt(0)&&(s.search="?"+s.search),s.hash&&"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash),void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var r;return s.key=n,i?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],s=0;const r=t&&t.split("/")||[],a=t&&Ct(t),o=e&&Ct(e),u=a||o;if(t&&Ct(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?St(i,t):".."===e?(St(i,t),s++):s&&(St(i,t),s--)}if(!u)for(;s--;s)i.unshift("..");!u||""===i[0]||i[0]&&Ct(i[0])||i.unshift("");let c=i.join("/");return n&&"/"!==c.substr(-1)&&(c+="/"),c})(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s.query=(r=s.search||"")?(/^[?#]/.test(r)?r.slice(1):r).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},s};let At=0;const _t={},Nt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:s=!1}=e,{re:r,keys:a}=((t,e)=>{const n=`${e.end}${e.strict}`,i=_t[n]||(_t[n]={}),s=JSON.stringify(t);if(i[s])return i[s];const r=[],a={re:pt(t,r,e),keys:r};return At<1e4&&(i[s]=a,At+=1),a})(n,{end:i,strict:s}),o=r.exec(t);if(!o)return null;const[u,...c]=o,l=t===u;return i&&!l?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:l,params:a.reduce(((t,e,n)=>(t[e.name]=c[n],t)),{})}};var Et;!function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(Et||(Et={}));const Bt=class{constructor(e){t(this,e),this.fillWidth=!1,this.fillWidthOnMobile=!1,this.disabled=!1,this.variant="primary",this.size="base",this.promiseFn=()=>Promise.resolve(),this.state=Et.Available}render(){return e("button",{"data-testid":this.testid,class:{[{xs:"px-2.5 py-1.5 text-xs",base:"px-4 py-2 text-base",xl:"px-6 py-3 text-base"}[this.size]]:!0,"inline-flex items-center justify-center border font-medium":!0,"rounded-md shadow-sm focus:outline-none focus:ring-2":!0,"focus:ring-offset-2 focus:ring-primary-focus pointer-events-auto":!0,"disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400":!0,"border-transparent text-white bg-primary-base hover:bg-primary-hover":"primary"===this.variant,"border-gray-300 text-gray-700 bg-white hover:bg-gray-50":"secondary"===this.variant,"border-transparent bg-primary-light hover:bg-primary-base text-primary-dark hover:text-white":"light"===this.variant,"w-full":this.fillWidth||this.fillWidthOnMobile,"sm:w-auto":this.fillWidthOnMobile},disabled:this.disabled,onClick:()=>this.clicked()},this.state===Et.Pending&&e("sss-loading-indicator",{theme:"primary"===this.variant?"light":"primary",size:16}),e("div",{class:{hidden:this.state===Et.Pending}},e("slot",null)))}async clicked(){if(this.promiseFn&&this.state!==Et.Pending)try{this.state=Et.Pending,await this.promiseFn(),this.state=Et.Available}catch(t){throw this.state=Et.Error,t}}},It=class{constructor(e){t(this,e)}async componentWillLoad(){_.navigateInternally(this.history,A.superCampaignCanNotBeActivated?N.MyOwnFund:N.SuperCampaign)}render(){return e(n,null)}};E(It);const Pt={label:B.MyOwnFund,value:N.MyOwnFund},Lt=class{constructor(e){t(this,e),this.currentCustomFund=Pt,this.showFundOptionsSelection=!1}componentWillLoad(){let t=N.MyOwnFund;window.location.pathname.includes(N.MyOwnFund)&&(t=N.MyOwnFund),window.location.pathname.includes(N.DefaultFund)&&(t=N.DefaultFund),window.location.pathname.includes(N.SelfManagedFund)&&(t=N.SelfManagedFund),window.location.pathname.includes(N.FeaturedFunds)&&(t=N.FeaturedFunds),this.fundOptionsList=[Pt,{label:B.SelfManagedFund,value:N.SelfManagedFund}],A.isFeaturedFundsEnabled&&A.isUsingSuperCampaign&&this.fundOptionsList.push({label:B.FeaturedFunds,value:N.FeaturedFunds}),this.fundOptionsList.push({label:B.DefaultFund,value:N.DefaultFund}),this.currentCustomFund=this.fundOptionsList.find((e=>e.value===t))||this.currentCustomFund,_.navigateInternally(this.history,t)}render(){const t=()=>e("svg",{class:"h-5 w-5 fill-primary-base group-hover:fill-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"}));return e("div",{class:"max-w-560 sm:w-560 relative"},e("label",{class:"font-medium text-gray-700 text-sm"},"Which fund would you like to nominate?"),e("div",{class:"mt-1 mb-4"},e("button",{type:"button",class:"bg-white relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-primary-focus focus:border-primary-base text-base sm:text-sm",onClick:()=>this.showFundOptionsSelection=!this.showFundOptionsSelection},e("span",{class:{"block truncate":!0,"text-gray-500":this.showFundOptionsSelection}},this.showFundOptionsSelection?"Select":this.currentCustomFund.label),e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500",viewBox:"0 0 20 20"},e("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}))),null))),this.showFundOptionsSelection&&e("ul",{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-60 rounded-md py-1 ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none text-base sm:text-sm"},this.fundOptionsList.map((n=>e("li",{class:"text-gray-900 cursor-default select-none relative py-2 pl-3 pr-9 group hover:bg-primary-base hover:text-white",onClick:()=>{this.showFundOptionsSelection=!this.showFundOptionsSelection,_.navigateInternally(this.history,n.value)}},e("span",{class:{"block truncate":!0,"font-semibold":this.currentCustomFund===n}},n.label),this.currentCustomFund===n&&e("span",{class:"absolute inset-y-0 right-0 flex items-center pr-4"},e(t,null))))))),e("div",{onClick:()=>this.showFundOptionsSelection=!1},e("slot",null)))}};E(Lt);const jt=new class{async searchFundsAsync(t,e){return I.getAustralianFundsAsync({searchString:t,maxRecordCount:e})}async getFundAsync(t,e){const n=await I.getAustralianFundAsync(t,e);return P.some(n)}},Dt=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=L.Instance}async componentWillLoad(){const t=A.defaultFundUsi;if(P.isNone(t))return;this.isDefaultFundExists=!0;const e=await jt.getFundAsync(t.value,!0);P.isNone(e)?this.isInvalidDefaultFund=!0:(this.defaultFund=e.value,this.defaultFundProductName=e.value.productName)}componentDidLoad(){var t,e,n,i;return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:null!==(e=null===(t=this.defaultFund)||void 0===t?void 0:t.usi)&&void 0!==e?e:"",fundName:null!==(i=null===(n=this.defaultFund)||void 0===n?void 0:n.productName)&&void 0!==i?i:"",promotedFundsShown:A.promotedFunds,defaultFundUsiSet:P.toUndefined(A.defaultFundUsi)})}render(){return e(s,null,e("sss-header-section",null),e("div",{class:"flex justify-center mt-11"},e("sss-custom-fund",null,e("div",{class:"p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg"},e("p",{class:"sm:text-lg font-bold mb-3"},"Fund details"),(!this.isDefaultFundExists||this.isInvalidDefaultFund)&&e("div",{class:"bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:i("assets/icon-exclamation.svg")})),e("div",{class:"ml-3 text-sm text-yellow-700 leading-5"},e("span",null,"It looks like your employer has not specified a default fund, please contact them if you’d like to use your company’s default fund.")))),this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",null,e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund Name"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFundProductName)),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund USI"),e("div",{class:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm"},this.defaultFund.usi)),e("div",{class:"mt-8 mb-8 h-px w-full bg-gray-200"}),e("div",{class:"text-sm text-gray-700"},e("label",{class:"font-semibold text-gray-900"},"By clicking “Continue”, you acknowledge that:"),e("ul",{class:"list-disc list-outside pl-5"},e("li",{class:"mt-2"},"you are choosing to join your employer’s default super fund;"),e("li",{class:"mt-2"},"your employer will open a new account for you with their default super fund; and"),e("li",{class:"mt-2"},"your application to join is subject to Trustee approval."))))),e("div",{class:"flex justify-center mt-8"},e("div",{class:"sm:max-w-320 w-full"},this.isDefaultFundExists&&!this.isInvalidDefaultFund&&e("div",{class:"mb-4"},e("sss-button",{testid:"continue-button",fillWidth:!0,promiseFn:()=>this.handleSubmitForm()},"Continue")),e("stencil-route-link",{url:N.ChoicePage},e("sss-button",{testid:"back-button",fillWidth:!0,variant:"secondary"},"Back")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||_.navigateInternallyToStandardChoice({history:this.history,fundName:"Employer’s default fund",fundDetails:{type:"default",fundName:this.defaultFundProductName,fundUsi:this.defaultFund.usi},handleSubmitFn:async t=>{await j.submitDefaultFundChoiceAsync(Object.assign({standardChoiceFormSignature:t},A.promotedFundsConfig))}})}},Tt=class{constructor(n){t(this,n),this.valueChanged=r(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{switch(this.highlightedOptionIndex=void 0,t.kind){case"too-many-results":this.searchState="too many results",this.filteredOptions=[];break;case"success":this.searchState="done",this.filteredOptions=t.value;break;default:this.searchState="done",this.filteredOptions=[]}},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Start typing to find the results"):"in progress"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Searching..."):"too many results"===this.searchState?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"Keep typing to narrow down your search."):0===this.filteredOptions.length?e("span",{class:"cursor-pointer text-gray-500 py-1.5 pl-4"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("div",{class:{"cursor-pointer text-wrap hover:bg-primary-base py-1.5 pl-4":!0,"bg-primary-base":this.isOptionSelected(t)},onClick:()=>{this.highlightedOptionIndex=n,this.toggleDropdown(!1),this.selectOption(t)}},t.label))),this.resetInput=()=>{var t,e;this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""},this.toggleDropdown=t=>{this.isDropdownVisible=t},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightItem("Next"),!0;case"ArrowUp":return this.highlightItem("Prev"),!0;case"Enter":return void 0!==this.highlightedOptionIndex&&(this.toggleDropdown(!1),this.selectOption(this.filteredOptions[this.highlightedOptionIndex])),!0;case"Escape":return this.inputElement.blur(),!0}return!1},this.highlightItem=t=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(Math.max(0,this.highlightedOptionIndex+("Next"===t?1:-1)),this.filteredOptions.length-1),void 0!==this.highlightedOptionIndex&&this.selectOption(this.filteredOptions[this.highlightedOptionIndex]))},this.selectOption=t=>{this.selectedOption=t,this.inputValue=t.label,this.valueChanged.emit(t)},this.isOptionSelected=t=>{var e;return(null===(e=this.selectedOption)||void 0===e?void 0:e.label)===t.label}}componentWillLoad(){this.selectedOption=this.value}componentDidLoad(){this.searchResultsSubscription=et(this.inputElement,"keyup").pipe(function(t,e=w){return n=>n.lift(new it(t,e))}(500),l((()=>this.inputElement.value)),y(),b(this.shouldExecuteSearch),at(this.onBeginSearch),Y(this._searchFunction),at(this.onCompleteSearch)).subscribe(),this.resetInput()}disconnectedCallback(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return e(s,null,e("div",{class:"relative"},e("input",{"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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback mt-2 text-sm text-red-600":!0,hidden:!this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"sss-dropdown-menu absolute shadow rounded-md border mt-0.5 w-full overflow-auto bg-white z-50 py-2 text-sm":!0,hidden:!this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults())))}get _searchFunction(){if(void 0===this.searchFunction)throw new Error("Can't render <sss-dropdown-async/> component with no searchFunction");return this.searchFunction}};Tt.style="html{scroll-behavior:smooth}.sss-dropdown-menu{max-height:min(20rem, 50vh)}";const Rt=new class{async GetExistingFundAsync(){var t;const e=A.superBuyer.superChoice,n=null===(t=A.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!e)return S;if(!n)return S;const i=null==e.dateSubmitted?S:M(new Date(e.dateSubmitted)),s=O(n),r=U(n);switch(n.kind){case"Promoted":{if(D(s))return S;const t=await this.getFundByUsiAsync(s.value);return M({type:"Promoted Fund",id:T(n.promoted),name:F(t)?t.value.productName:s.value,usi:s,valid:"Active",memberNumber:r,lastNominatedAt:i})}case"MyOwnFund":{const t=n.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return M({type:"My Own Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:r,lastNominatedAt:i})}case"SMSF":return M({type:"Self Managed Fund",name:n.smsf.fundName,valid:"Unknown",lastNominatedAt:i});case"Default":{const t=n.default.usi,e=await this.getFundByUsiAsync(t);return M({type:"Default Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"PromotedDefault":{const t=n.promotedDefault.usi,e=await this.getFundByUsiAsync(t);return M({type:"Promoted Default Fund",id:n.promotedDefault.fundId,name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"DefinedBenefits":{const t=n.definedBenefits.usi,e=await this.getFundByUsiAsync(t);return M({type:"Defined Benefits Fund",name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),lastNominatedAt:i})}case"PromotedDefaultWithJoin":{const t=n.promotedDefaultWithJoin.usi,e=await this.getFundByUsiAsync(t);return M({type:"Promoted Default Fund With Join",id:n.promotedDefaultWithJoin.fundId,name:F(e)?e.value.productName:t,usi:s,valid:this.toFundValidState(e),memberNumber:r,lastNominatedAt:i})}default:return S}}async submitRetainSuperFundAsync(t){return R().url("super-choice/retain-super-fund").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}getFundByUsiAsync(t){return jt.getFundAsync(t,!0)}toFundValidState(t){return F(t)?t.value.isActive?"Active":"Inactive":"Unknown"}},Ot=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundNominationDetail=t=>{function e(t){return F(t)?t.value:void 0}return{fundType:t.type.toString(),fundName:t.name,fundUsi:function(t){return"usi"in t?e(t.usi):void 0}(t),memberNumber:function(t){return"memberNumber"in t?e(t.memberNumber):void 0}(t),fundStatus:t.valid.toString(),lastNominatedAt:F(t.lastNominatedAt)?t.lastNominatedAt.value.toISOString():""}}}componentDidLoad(){const t=this.createSuperFundNominationDetail(this.existingFund);return this.eventTrackingService.TrackSuperFundNominationViewedAsync(t)}async componentWillLoad(){const t=await Rt.GetExistingFundAsync();F(t)&&"Inactive"!==t.value.valid?this.existingFund=t.value:_.navigateInternally(this.history,N.ChoicePage)}render(){const t=()=>e("div",{class:"flex justify-center"}),n=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"})))),i=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M248.9 192H272v48C272 248.8 279.2 256 288 256C296.8 256 304 248.8 304 240V192h23.12C411.4 192 480 113 480 16C480 7.164 472.8 0 464 0h-39.13C364.9 0 313 40.13 288 98.13C263 40.13 211.1 0 151.1 0H112C103.2 0 96 7.164 96 16C96 113 164.6 192 248.9 192zM424.9 32h22.38c-6.625 71.88-58 128-120 128h-22.5C311.4 88.13 362.8 32 424.9 32zM151.1 32C213.3 32 264.5 88.13 271.3 160h-22.5c-62 0-113.4-56.13-120-128H151.1zM558.2 333.6c-9.5-8.619-22-13.37-35.12-13.37c-12.5 0-24.88 4.248-34.62 12.12l-61.45 49.21c-1.928 1.545-4.324 2.385-6.795 2.385h-41.62c4.625-9.619 6.5-20.74 4.75-32.23C379.4 323.7 353.7 304 325.6 304H181.2c-20.75 0-40.1 6.746-57.5 19.24l-38.5 28.73H16c-8.801 0-16 7.195-16 15.99S7.198 383.1 15.1 383.1l80.01-.0238l46.86-35.25c11.12-8.244 24.62-12.74 38.37-12.74h146.7c13.25 0 24 10.74 24 23.99s-10.75 23.98-24 23.98H239.1c-8.75 0-16 7.246-16 15.99c0 8.746 7.25 15.99 16 15.99h180.2c9.625 0 19-3.248 26.62-9.246l61.62-49.22c4.25-3.373 9.5-5.248 14.62-5.248c5 0 9.875 1.75 13.75 5.248c10.12 9.119 9.375 24.48-.875 32.61l-100.7 80.58c-7.584 6.064-17.01 9.369-26.72 9.369H16c-8.801 0-15.1 7.189-15.1 15.98S7.198 512 15.1 512h392.5c17 0 33.38-5.871 46.62-16.37l100.9-80.7c12.25-9.744 19.5-24.36 19.1-39.98C576.5 359.3 569.1 344.2 558.2 333.6z"})))),s=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"fill-primary-base"},e("path",{d:"M448 96h-64V48C384 21.53 362.5 0 336 0h-160C149.5 0 128 21.53 128 48V96H64C28.65 96 0 124.7 0 160v256c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V160C512 124.7 483.3 96 448 96zM160 48C160 39.17 167.2 32 176 32h160C344.8 32 352 39.17 352 48V96H160V48zM480 416c0 17.64-14.36 32-32 32H64c-17.64 0-32-14.36-32-32V288h144v64c0 8.844 7.156 16 16 16h128c8.844 0 16-7.156 16-16V288H480V416zM208 336V288h96v48H208zM480 256H32V160c0-17.64 14.36-32 32-32h384c17.64 0 32 14.36 32 32V256z"})))),r=()=>e("div",{class:"flex h-20 justify-center items-center relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-10 w-10 absolute"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",class:"fill-primary-base"},e("path",{d:"M174.7 111.8C165.1 110.3 160.1 102.1 161.5 93.35C170.4 40.37 216.5 0 272 0C320.8 0 362.3 31.19 377.6 74.67C380.6 82.1 376.2 92.14 367.9 95.09C359.5 98.03 350.4 93.66 347.5 85.33C336.5 54.24 306.8 32 272 32C232.4 32 199.5 60.82 193.1 98.65C191.6 107.4 183.4 113.2 174.7 111.8V111.8zM400 264C400 250.7 410.7 240 424 240C437.3 240 448 250.7 448 264C448 277.3 437.3 288 424 288C410.7 288 400 277.3 400 264zM488.5 125.8L480 159.1C501.1 176.5 519.6 198.5 530.7 224H544C561.7 224 576 238.3 576 256V352C576 369.7 561.7 384 544 384H512C495.5 405.1 473.5 423.6 448 434.7V464C448 490.5 426.5 512 400 512H368C341.5 512 320 490.5 320 464V448H256V464C256 490.5 234.5 512 208 512H176C149.5 512 128 490.5 128 464V416C89.14 386.8 64 340.3 64 288C28.52 287.2 0 258.2 0 222.6C0 197.8 14 175.1 36.18 164L40.84 161.7C48.75 157.7 58.36 160.9 62.31 168.8C66.26 176.7 63.06 186.4 55.16 190.3L50.49 192.6C39.16 198.3 31.1 209.9 31.1 222.6C31.1 241 46.97 256 65.44 256H67.2C82.02 182.1 146.6 128 223.1 128H376.4C394 108.4 419.6 96 448 96H465.3C480.9 96 492.3 110.7 488.5 125.8H488.5zM224 160C153.3 160 96 217.3 96 288C96 329.9 116.1 367 147.2 390.4L160 400V464C160 472.8 167.2 480 176 480H208C216.8 480 224 472.8 224 464V416H352V464C352 472.8 359.2 480 368 480H400C408.8 480 416 472.8 416 464V413.7L435.2 405.4C455.6 396.5 473.2 382.4 486.4 364.8L496 352H544V256H509.7L501.4 236.8C492.5 216.4 478.4 198.8 460.8 185.6L443.8 172.8L455 128H448C429 128 412.1 136.2 400.3 149.3L390.7 160H224z"}))));return e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),"Defined Benefits Fund"==this.existingFund.type?null:e("div",{class:"sm:text-lg text-gray-600 mt-3 sm:mt-4 max-w-800 text-center leading-7"},"Continue with your chosen fund or choose another fund below."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-400 w-full"},e("div",{class:"flex-col border shadow-sm p-6 pt-8 rounded-lg text-center"},e("div",{class:"space-y-4"},(()=>{switch(this.existingFund.type){case"Promoted Fund":case"Promoted Default Fund":return e(t,{name:this.existingFund.name});case"Self Managed Fund":return e(i,null);case"My Own Fund":case"Promoted Default Fund With Join":return e(n,null);case"Default Fund":return e(s,null);case"Defined Benefits Fund":return e(r,null);default:return e("div",null)}})(),e("div",{class:"sm:text-lg font-bold leading-6 break-words"},(()=>{switch(this.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 this.existingFund.name;default:return""}})())),e("div",{class:"mt-6"},e("sss-button",{testid:"continue-with-this-fund-button",fillWidth:!0,promiseFn:()=>this.handleFundNominationAccepted()},"Continue with this fund"))),e((()=>"Defined Benefits Fund"==this.existingFund.type?null:e("div",{class:"mt-4"},e("sss-button",{testid:"choose-another-fund-button",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund"))),null))))}async handleFundNominationAccepted(){const t=this.createSuperFundNominationDetail(this.existingFund);await Rt.submitRetainSuperFundAsync(t),A.markSuperSelectionAsSubmitted()}async handleFundNominationDeclined(){const t=this.createSuperFundNominationDetail(this.existingFund);await this.eventTrackingService.TrackSuperFundNominationDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Ut=class{constructor(e){t(this,e),this.footerText=()=>void 0!==this.textOverride?this.textOverride:"Powered by Flare"}render(){return e("div",{class:{"text-center text-gray-500 text-xs w-full max-w-960 mx-auto":!0,"mt-8 sm:mt-20":!A.hideFooterSection}},!A.hideFooterSection&&e("span",null,this.footerText()),e("p",{class:"block text-transparent"},"v","5.81.48082"))}},qt=(t,n)=>e("stencil-route-link",{exact:!0,url:t.route},e("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":!0,"bg-white shadow-sm text-primary-base":t.isActive,"hover:bg-primary-hover text-white":!t.isActive}},n)),Ht=t=>{let n=N.MyOwnFund;return window.location.href.includes(N.SelfManagedFund)?n=N.SelfManagedFund:window.location.href.includes(N.DefaultFund)?n=N.DefaultFund:window.location.href.includes(N.FeaturedFunds)&&(n=N.FeaturedFunds),e(qt,{route:n,isActive:t.isActive},"Choose another fund")},Vt=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex justify-center"},e("div",{class:"text-center max-w-800"},e("h3",{class:"font-bold mb-3 sm:mb-4 text-2xl sm:text-3xl"},"Nominate a super fund"),e(n,null,e("div",{class:"text-gray-600 sm:text-lg leading-7 sm:leading-8"},e(n,null,A.superCampaignCanNotBeActivated?"You can choose any super fund, including your current fund/SMSF or your employer’s default fund.":"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.")),!A.superCampaignCanNotBeActivated&&e("div",{class:"inline-flex mt-8 sm:mt-12 bg-primary-base rounded-lg p-0.5 whitespace-normal"},e(qt,{route:N.ChoicePage,isActive:!1},"Featured super funds"),e(Ht,{isActive:!0})))))}},zt=class{constructor(e){t(this,e),this.theme="primary",this.size=48}render(){return e("div",{class:"inline-block animate-spin"},e("svg",{width:this.size,height:this.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",fill:"white","fill-opacity":"0.3"}),e("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"primary"===this.theme?"fill-primary-base":"fill-white"})))}},Wt=class{constructor(e){t(this,e)}render(){return e(s,{class:"flex flex-col justify-center items-center"},e("h5",{class:"text-lg"},"Loading your superannuation step"),e("sss-loading-indicator",null))}},$t=class{constructor(e){t(this,e),this.stepContinued=async t=>{"byof-engagement"==t.detail.sender&&(await L.Instance.TrackSuperMyOwnFundEngagementStepContinued(this.fundUsi,t.detail.reason),this.navigateToStandardChoice())},this.subscribeToStepEvents=()=>{for(const t in this.stepEventHandlers)document.addEventListener(t,this.stepEventHandlers[t])},this.unSubscribeFromStepEvents=()=>{for(const t in this.stepEventHandlers)document.removeEventListener(t,this.stepEventHandlers[t])},this.stepEventHandlers={continue:this.stepContinued.bind(this)}}async componentWillLoad(){A.isBringYourOwnFundCustomStepEnabled&&A.isUsingSuperCampaign&&P.isSome(q.myOwnFundForm.fundUsi)&&P.isSome(q.myOwnFundForm.fundName)&&P.isSome(q.myOwnFundForm.memberNumber)&&P.isSome(q.myOwnFundForm.memberFirstName)&&P.isSome(q.myOwnFundForm.memberFamilyName)&&P.isSome(A.backendUrl)&&P.isSome(A.state.jwt)?(this.backendUrl=A.backendUrl.value,this.accessToken=A.state.jwt.value,this.fundUsi=q.myOwnFundForm.fundUsi.value,this.fundName=q.myOwnFundForm.fundName.value,this.memberNumber=q.myOwnFundForm.memberNumber.value,this.memberFirstName=q.myOwnFundForm.memberFirstName.value,this.memberFamilyName=q.myOwnFundForm.memberFamilyName.value,this.unSubscribeFromStepEvents(),this.subscribeToStepEvents(),A.hideFooterSection=!0,await L.Instance.TrackSuperMyOwnFundEngagementStepActivationSucceeded(this.fundUsi)):_.navigateInternally(this.history,N.MyOwnFund)}disconnectedCallback(){this.unSubscribeFromStepEvents(),A.hideFooterSection=!1}render(){return e(s,null,e("apollo-super-byof-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"fund-usi":this.fundUsi}))}navigateToStandardChoice(){_.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName,fundDetails:{type:"myOwnFund",fundName:this.fundName,fundUsi:this.fundUsi,memberNumber:this.memberNumber},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:this.fundUsi,memberNumber:this.memberNumber,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName,standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitCustomFundChoiceAsync(e)}})}};E($t);const Xt=class{constructor(e){t(this,e),this.myInputChange=r(this,"myInputChange",7),this.value="",this.name="",this.readableName="",this.showValidationErrors=!1,this.errorMessage="",this.NAME_PATTERN="^[A-Za-z](?:[A-Za-z]||'[A-Za-z]||-[A-Za-z]|| [A-Za-z])*\\s*$"}render(){return e(s,null,e("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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":this.showValidationErrors},required:!0,pattern:this.NAME_PATTERN,name:this.name,value:this.value,onInput:t=>this.handleInput(t)}),this.errorMessage&&e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},this.errorMessage))}handleInput(t){const e=t.target;e.value=e.value.replace(/\s+/g," "),this.validateInput(e),this.myInputChange.emit(e.value.trim())}validateInput(t){this.errorMessage=t.checkValidity()?"":t.validity.valueMissing?this.readableName+" is required.":t.validity.patternMismatch?t.value.startsWith("-")||t.value.startsWith("'")?this.readableName+" must start with a letter.":t.value.includes("--")?this.readableName+" must not have a double hypen.":this.readableName+" contains unsupported characters.":"Invalid input."}},Jt=class{constructor(e){t(this,e),this.prefill=void 0,this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}async componentWillLoad(){this.prefill=F(A.state.superChoicePrefill)?A.state.superChoicePrefill.value:void 0}render(){return this.prefill&&"myOwnFund"===this.prefill.type?"Valid"===this.prefill.data.fundDetail.type?this.renderMyOwnFund(this.prefill.data):this.renderInvalidMyOwnFund(this.prefill.data):this.prefill&&"smsf"===this.prefill.type?this.prefill.data.fundAbn.valid?this.renderSMSF(this.prefill.data):this.renderInvalidSMSF(this.prefill.data):(_.navigateInternally(this.history,N.ChoicePage),null)}renderMyOwnFund(t){return e("sss-prefill-my-own-fund",{history:this.history,prefill:t})}renderInvalidMyOwnFund(t){return e("sss-prefill-invalid-my-own-fund",{history:this.history,prefill:t})}renderSMSF(t){return e("sss-prefill-smsf",{history:this.history,prefill:t})}renderInvalidSMSF(t){return e("sss-prefill-invalid-smsf",{history:this.history,prefill:t})}},Gt=class{constructor(e){t(this,e)}render(){return e("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"},e("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":!0,"text-red-600":!this.field.isValid}},this.field.name),e("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":!0,"h-5 sm:h-auto":this.field.isEmpty,"text-red-600":!this.field.isValid}},this.field.value))}},Zt=class{constructor(e){t(this,e),this.withHeader=!1}render(){return e("div",{class:"flex items-start self-stretch rounded-md bg-red-50"},e("div",{class:"w-1 self-stretch bg-red-400"}),e("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},e((()=>e("div",{class:"w-5 h-5"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e("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"})))),null),e("div",{class:"flex-col justify-start items-start gap-2 inline-flex"},this.withHeader&&e("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((t=>e("div",{class:"self-stretch h-5 flex-col justify-start items-start gap-1 flex"},e("div",{class:"self-stretch pl-1.5 justify-start items-start gap-[7px] inline-flex"},e("div",{class:"pt-1.5 justify-center items-center flex"},e("div",{class:"w-1.5 h-1.5 bg-red-700 rounded-full"})),e("div",{class:"grow shrink basis-0 text-red-700 text-sm font-normal leading-tight"},t))))),!this.withHeader&&this.notificationList.map((t=>e("div",{class:"text-sm font-medium leading-tight text-red-800"},t))))))}};function Kt(t){return null==t||""===t.trim()}const Yt=(t,n,i)=>e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},t),e("div",{"data-testid":n,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"},i)),Qt=()=>e("div",null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Your super nomination"),e("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."));class te{static Input(t){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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:placeholder-red-300 invalid:focus:ring-red-500 invalid:focus:border-red-500":t}}}const ee="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";class ne{constructor(t,e,n){this.name=t,this.testId=e,this._value=null!=n?n:"",this._errorMessage=this.validateAndReturnErrorMessage(this._value)}get value(){return this._value}set value(t){this._errorMessage=this.validateAndReturnErrorMessage(t),this._value=t}get isValid(){return null===this._errorMessage}get isEmpty(){return Kt(this._value)}get errorMessage(){return this._errorMessage}}class ie{constructor(t,e,n,i){this.name=t,this.testId=e,this._value=null!=n?n:"",this._isValid=i}get value(){return this._value}get isValid(){return this._isValid}get isEmpty(){return Kt(this._value)}}class se extends ie{constructor(t,e){super("Fund USI","fund-usi",t,e)}}class re extends ie{constructor(t,e){super("Fund name","fund-name",t,e)}}class ae extends ne{constructor(t){super("Fund name","smsf-fund-name",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Fund name is required.":t.length<2?"Enter a valid Fund name.":null}}class oe extends ne{constructor(t){super("Member number","member-number",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Member number is required.":/^[A-Za-z0-9]{4,16}$/.test(t)?null:"Enter a valid member number (only numbers and / or letters)"}}class ue extends ne{constructor(t){super("Member last name","member-last-name",t)}validateAndReturnErrorMessage(t){const e=new RegExp(ee);return Kt(t)?"Member last name is required.":e.test(t)?null:"Member last name contains unsupported characters."}}class ce extends ne{constructor(t){super("Member given name(s)","member-given-names",t)}validateAndReturnErrorMessage(t){const e=new RegExp(ee);return Kt(t)?"Member given name(s) is required.":e.test(t)?null:"Member given name(s) contains unsupported characters."}}class le extends ie{constructor(t,e){super("Fund ABN","fund-abn",t,e)}}class he extends ne{constructor(t){super("Fund ESA","fund-esa",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Fund ESA is required.":t.length<2?"Enter a valid Fund ESA.":null}}class de extends ne{constructor(t){super("Address line 1","address-line-one",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Address line 1 is required.":t.length<2?"Enter a valid Address line 1.":null}}class fe extends ne{constructor(t){super("Address line 2","address-line-two",t)}validateAndReturnErrorMessage(t){return null}}class me extends ne{constructor(t){super("City/suburb","city-suburb",t)}validateAndReturnErrorMessage(t){return Kt(t)?"City/suburb is required.":null}}class pe extends ne{constructor(t){super("Postcode","postcode",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Postcode is required.":/^[0-9]{4}$/.test(t)?null:"Enter a valid postcode."}}class ve extends ne{constructor(t){super("State","state",t)}get options(){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"}]}validateAndReturnErrorMessage(t){return Kt(t)?"State is required.":void 0===this.options.find((e=>e.value=t))?"Enter a valid state.":null}}class we extends ie{constructor(t,e,n,i,s){super("Fund address","fund-address",[t,e,n,i,s].map((t=>t.value)).filter((t=>t)).join(", "),t.isValid&&e.isValid&&n.isValid&&i.isValid&&s.isValid)}}class ge extends ne{constructor(t){super("Account name","account-name",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Account name is required.":t.length<2?"Enter a valid Account name.":null}}class ye extends ie{constructor(t,e){super("Bank name","bank-name",t,e)}}class be extends ne{constructor(t){super("BSB","bsb",t)}validateAndReturnErrorMessage(t){return Kt(t)?"BSB is required.":/^[0-9]{6,7}$/.test(t)?null:"Enter a valid BSB."}}class xe extends ne{constructor(t){super("Account number","account-number",t)}validateAndReturnErrorMessage(t){return Kt(t)?"Account number is required.":/^[0-9]{2,11}$/.test(t)?null:"Enter a valid Account number."}}const Ce=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&"Invalid"===this.prefill.fundDetail.type?(this.fundUsi=new se(this.prefill.fundDetail.fundUsi,!1),this.fundName=new re("",!1),this.memberNumber=new oe(this.prefill.memberNumber),this.memberGivenNames=new ce(this.prefill.memberFirstName),this.memberLastName=new ue(this.prefill.memberFamilyName)):_.navigateInternally(this.history,N.ChoicePage)}render(){return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),e("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."]}),e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundUsi}),e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.memberNumber}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames})))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:!0,variant:"primary",promiseFn:()=>this.handleChooseAnotherFund()},"Choose another fund"))))}async handleChooseAnotherFund(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},ke=class{constructor(e){t(this,e),this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&!this.prefill.fundAbn.valid?this.initialiseComponent(this.prefill):_.navigateInternally(this.history,N.PrefillInvalidMyOwnFundPage)}render(){return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),e("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."]}),e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.fundAbn}),e("sss-prefill-display-field",{field:this.fundEsa}),e("sss-prefill-display-field",{field:this.fundAddress}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames}),e("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("sss-prefill-display-field",{field:this.bankAccountName}),e("sss-prefill-display-field",{field:this.bankAccountBsb}),e("sss-prefill-display-field",{field:this.bankAccountNumber})))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:!0,variant:"primary",promiseFn:()=>this.handleFundNominationDeclined()},"Make another nomination"))))}initialiseComponent(t){this.fundName=new ae(t.fundName),this.fundAbn=new le(t.fundAbn.value,t.fundAbn.valid),this.fundEsa=new he(t.electronicServiceAddress),this.fundAddressLine1=new de(t.addressLine1),this.fundAddressLine2=new fe(t.addressLine2),this.fundAddressCity=new me(t.addressCity),this.fundAddressPostcode=new pe(t.addressPostcode),this.fundAddressState=new ve(t.addressState),this.fundAddress=new we(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode),this.memberGivenNames=new ce(t.memberFirstName),this.memberLastName=new ue(t.memberFamilyName),this.bankAccountName=new ge(t.bankAccountName),this.bankAccountBsb=new be(t.bankAccountBsb),this.bankAccountNumber=new xe(t.bankAccountNumber)}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Se=class{constructor(e){t(this,e),this.mode="review",this.formState="pristine",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"My Own Fund",isUsiValid:"Valid"===t.fundDetail.type,isMemberNumberPresent:!Kt(t.memberNumber),isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&"Valid"===this.prefill.fundDetail.type?this.initialiseComponent(this.prefill.fundDetail.fundName,this.prefill):_.navigateInternally(this.history,N.ChoicePage)}render(){const t=[this.memberNumber.errorMessage,this.memberLastName.errorMessage,this.memberGivenNames.errorMessage].filter((t=>null!==t));return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3.5 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your fund details"),e("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."]}),"review"===this.mode&&t.length>0&&e("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:!0}),"review"===this.mode&&e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundUsi}),e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.memberNumber}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames})),"review"===this.mode&&e("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:!0,variant:"secondary",promiseFn:()=>this.setModeToEdit()},e("div",{class:"flex flex-row gap-2"},e("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),e("div",{class:"w-4 h-4 relative"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},e("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"}),e("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),"edit"===this.mode&&e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=this.formHasMissingData()},Yt(this.fundName.name,this.fundName.testId,this.fundName.value),Yt(this.fundUsi.name,this.fundUsi.testId,this.fundUsi.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberNumber.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:"[A-Za-z0-9]{4,16}","data-testid":this.memberNumber.testId,value:this.memberNumber.value,onInput:t=>{this.updateMemberNumber(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberNumber.errorMessage))),e("div",{class:"flex mt-3 gap-x-4 flex-col sm:flex-row"},e("div",{class:"w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:ee,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:t=>{this.updateMemberGivenNames(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberGivenNames.errorMessage))),e("div",{class:"w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,pattern:ee,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:t=>{this.updateMemberLastName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberLastName.errorMessage))))))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:!0,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:()=>this.handleSubmitForm()},"Continue"),e("sss-button",{testid:"choose-another-fund-button",class:"self-stretch",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Choose another fund"))))}initialiseComponent(t,e){this.fundUsi=new se(e.fundDetail.fundUsi,!0),this.fundName=new re(t,!0),this.memberNumber=new oe(e.memberNumber),this.memberGivenNames=new ce(e.memberFirstName),this.memberLastName=new ue(e.memberFamilyName),this.isSubmitDisabled=this.formHasMissingData()}isFormValid(){return this.fundUsi.isValid&&this.fundName.isValid&&this.memberNumber.isValid&&this.memberGivenNames.isValid&&this.memberLastName.isValid}formHasMissingData(){return this.fundUsi.isEmpty||this.fundName.isEmpty||this.memberNumber.isEmpty||this.memberGivenNames.isEmpty||this.memberLastName.isEmpty}setModeToEdit(){return this.mode="edit",Promise.resolve()}updateMemberNumber(t){this.memberNumber=new oe(t.trim())}updateMemberGivenNames(t){this.memberGivenNames=new ce(t.trimStart())}updateMemberLastName(t){this.memberLastName=new ue(t.trim())}async handleSubmitForm(){this.formState="validated",this.isFormValid()&&("edit"!==this.mode||this.formElement.checkValidity())&&_.navigateInternallyToStandardChoice({history:this.history,fundName:this.fundName.value,fundDetails:{type:"myOwnFund",fundName:this.fundName.value,fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value},handleSubmitFn:async t=>{const e=Object.assign({fundUsi:this.fundUsi.value,memberNumber:this.memberNumber.value,memberFirstName:this.memberGivenNames.value,memberFamilyName:this.memberLastName.value,standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitCustomFundChoiceAsync(e)}})}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Fe={"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"},Me=class{constructor(e){t(this,e),this.mode="review",this.formState="pristine",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.createSuperFundPrefillDeclinedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)}),this.createSuperFundPrefillViewedDetail=t=>({fundType:"SMSF",isAbnValid:t.fundAbn.valid,isMemberFirstNamePresent:!Kt(t.memberFirstName),isMemberLastNamePresent:!Kt(t.memberFamilyName)})}componentDidLoad(){const t=this.createSuperFundPrefillViewedDetail(this.prefill);return this.eventTrackingService.TrackSuperFundPrefillViewedAsync(t)}async componentWillLoad(){this.prefill&&this.prefill.fundAbn.valid?this.initialiseComponent(this.prefill):_.navigateInternally(this.history,N.PrefillInvalidSMSFPage)}render(){const 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((t=>null!==t));return e("div",null,e(Qt,null),e("div",{class:"flex flex-col items-center gap-8 mt-8 sm:mt-12"},e("div",{class:"flex max-w-[560px] flex-col items-start gap-6 p-6 border shadow-sm rounded-lg"},e("div",{class:"flex flex-col items-start gap-3 self-stretch"},e("div",{class:"self-stretch text-grey-900 text-lg not-italic font-bold leading-7"},"Your self-managed super fund (SMSF) details"),e("sss-prefill-warning-box",{class:"self-stretch",notificationList:["Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."]}),"review"===this.mode&&t.length>0&&e("sss-prefill-error-box",{class:"self-stretch",notificationList:t,withHeader:!0}),"review"===this.mode&&e("div",{class:"flex flex-col gap-3 self-stretch mt-4"},e("sss-prefill-display-field",{field:this.fundName}),e("sss-prefill-display-field",{field:this.fundAbn}),e("sss-prefill-display-field",{field:this.fundEsa}),e("sss-prefill-display-field",{field:this.fundAddress}),e("sss-prefill-display-field",{field:this.memberLastName}),e("sss-prefill-display-field",{field:this.memberGivenNames}),e("div",{class:"mt-4 mb-2 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("sss-prefill-display-field",{field:this.bankAccountName}),e("sss-prefill-display-field",{field:this.bankAccountBsb}),this.bankName.isValid&&e("sss-prefill-display-field",{field:this.bankName}),e("sss-prefill-display-field",{field:this.bankAccountNumber})),"review"===this.mode&&e("sss-button",{testid:"edit-details-button",class:"self-stretch mt-3",fillWidth:!0,variant:"secondary",promiseFn:()=>this.setModeToEdit()},e("div",{class:"flex flex-row gap-2"},e("div",{class:"text-sm not-italic font-medium leading-4"},"Edit details"),e("div",{class:"w-4 h-4 relative"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"currentColor"},e("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"}),e("path",{d:"M9.60334 4.63434L2.90039 11.3373V13.6H5.16313L11.8661 6.89708L9.60334 4.63434Z"}))))),"edit"===this.mode&&e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"w-full":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=this.formHasMissingData()},e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.fundName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.fundName.testId,value:this.fundName.value,onInput:t=>{this.updateFundName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.fundName.errorMessage))),Yt(this.fundAbn.name,this.fundAbn.testId,this.fundAbn.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.fundEsa.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,minlength:"2","data-testid":this.fundEsa.testId,value:this.fundEsa.value,onInput:t=>{this.updateFundEsa(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.fundEsa.errorMessage))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},"Fund address"),e("div",{class:"mt-1 rounded-md shadow-sm -space-y-px"},e("input",{placeholder:"Address line 1",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-t-md shadow-none border-b-0":!0}),required:!0,minlength:"2",name:"addressLine1",id:"addressLine1","data-testid":this.fundAddressLine1.testId,value:this.fundAddressLine1.value,onInput:t=>{this.updateAddressLine1(t.target.value)}}),e("input",{placeholder:"Address line 2 (optional)",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none shadow-none border-b-0":!0}),"data-testid":this.fundAddressLine2.testId,value:this.fundAddressLine2.value,onInput:t=>this.updateAddressLine2(t.target.value)}),e("input",{placeholder:"City/suburb",type:"text",class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none shadow-none border-b-0":!0}),required:!0,"data-testid":this.fundAddressCity.testId,value:this.fundAddressCity.value,onInput:t=>{this.updateAddressCity(t.target.value)}}),e("div",{class:"flex -space-x-px"},e("div",{class:"w-1/2 flex-1 min-w-0"},e("input",{placeholder:"Postcode",type:"text",required:!0,class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-bl-md shadow-none border-r-0":!0}),name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode","data-testid":this.fundAddressPostcode.testId,value:this.fundAddressPostcode.value,inputmode:"numeric",onInput:t=>{this.updateAddressPostcode(t.target.value)}})),e("div",{class:"flex-1 min-w-0"},e("select",{class:Object.assign(Object.assign({},te.Input("validated"===this.formState)),{"rounded-none rounded-br-md shadow-none":!0,"text-gray-500":"validated"!==this.formState}),name:"state",required:!0,"data-testid":this.fundAddressState.testId,id:"state",onInput:t=>{this.updateAddressState(t.target.value)}},e("option",{disabled:!0,selected:void 0!==this.fundAddressState.value,value:""},"State"),this.fundAddressState.options.map((t=>e("option",{value:t.value,selected:this.fundAddressState.value===t.value},t.label))))))),"validated"===this.formState&&e("div",{class:"mt-2 text-sm text-red-600"},this.fundAddressLine1.errorMessage||this.fundAddressLine1.errorMessage||this.fundAddressCity.errorMessage||this.fundAddressPostcode.errorMessage||this.fundAddressState.errorMessage)),e("div",{class:"flex gap-x-4 flex-col sm:flex-row"},e("div",{class:"mt-3 w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberGivenNames.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.memberGivenNames.testId,value:this.memberGivenNames.value,onInput:t=>{this.updateMemberGivenNames(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberGivenNames.errorMessage))),e("div",{class:"mt-3 w-full sm:w-1/2"},e("label",{class:"text-sm font-medium text-gray-700"},this.memberLastName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.memberLastName.testId,value:this.memberLastName.value,onInput:t=>{this.updateMemberLastName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.memberLastName.errorMessage)))),e("div",{class:"mt-6 text-gray-900 text-lg font-bold leading-7"},"Fund bank details"),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountName.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountName.testId,value:this.bankAccountName.value,onInput:t=>{this.updateBankAccountName(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountName.errorMessage))),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountBsb.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountBsb.testId,value:this.bankAccountBsb.value,onInput:t=>{const e=t.target.value;this.updateBankName(e),this.updateBankAccountBsb(e)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountBsb.errorMessage))),this.bankName.isValid&&Yt(this.bankName.name,this.bankName.testId,this.bankName.value),e("div",{class:"mt-3"},e("label",{class:"text-sm font-medium text-gray-700"},this.bankAccountNumber.name),e("div",{class:"mt-1"},e("input",{type:"text",class:te.Input("validated"===this.formState),required:!0,"data-testid":this.bankAccountNumber.testId,value:this.bankAccountNumber.value,onInput:t=>{this.updateBankAccountNumber(t.target.value)}}),e("div",{class:"mt-2 text-sm text-red-600"},"validated"===this.formState&&this.bankAccountNumber.errorMessage)))))),e("div",{class:"flex w-full sm:w-80 max-w-[560px] flex-col items-start gap-4"},e("sss-button",{testid:"continue-button",class:"self-stretch",fillWidth:!0,variant:"primary",disabled:this.isSubmitDisabled,promiseFn:()=>this.handleSubmitForm()},"Continue"),e("sss-button",{testid:"make-another-nomination-button",class:"self-stretch",fillWidth:!0,variant:"secondary",promiseFn:()=>this.handleFundNominationDeclined()},"Make another nomination"))))}isFormValid(){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}formHasMissingData(){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}setModeToEdit(){return this.mode="edit",Promise.resolve()}updateFundName(t){this.fundName=new ae(t.trim())}updateFundEsa(t){this.fundEsa=new he(t.trim())}updateAddressLine1(t){this.fundAddressLine1=new de(t.trim())}updateAddressLine2(t){this.fundAddressLine2=new fe(t.trim())}updateAddressCity(t){this.fundAddressCity=new me(t.trim())}updateAddressPostcode(t){this.fundAddressPostcode=new pe(t.trim())}updateAddressState(t){this.fundAddressState=new ve(t.trim())}updateBankAccountName(t){this.bankAccountName=new ge(t.trim())}updateBankAccountBsb(t){this.bankAccountBsb=new be(t.trim())}updateBankAccountNumber(t){this.bankAccountNumber=new xe(t.trim())}updateMemberGivenNames(t){this.memberGivenNames=new ce(t)}updateMemberLastName(t){this.memberLastName=new ue(t.trim())}filterDigits(t){return t.replace(/[^0-9]/g,"")}tryGetBankName(t){if(null==t)return null;const e=this.filterDigits(t),n=e.substring(0,2),i=e.substring(0,3);return Fe[n]||Fe[i]||null}updateBankName(t){const e=this.tryGetBankName(t);this.bankName=new ye(e,null!=e)}async handleSubmitForm(){this.formState="validated",this.isFormValid()&&("edit"!==this.mode||this.formElement.checkValidity())&&_.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName.value,fundEsa:this.fundEsa.value},handleSubmitFn:async t=>{const 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},A.promotedFundsConfig);await j.submitSelfManagedFundChoiceAsync(e)}})}initialiseComponent(t){this.fundName=new ae(t.fundName),this.fundAbn=new le(t.fundAbn.value,t.fundAbn.valid),this.fundEsa=new he(t.electronicServiceAddress),this.fundAddressLine1=new de(t.addressLine1),this.fundAddressLine2=new fe(t.addressLine2),this.fundAddressCity=new me(t.addressCity),this.fundAddressPostcode=new pe(t.addressPostcode),this.fundAddressState=new ve(t.addressState),this.fundAddress=new we(this.fundAddressLine1,this.fundAddressLine2,this.fundAddressCity,this.fundAddressState,this.fundAddressPostcode),this.memberGivenNames=new ce(t.memberFirstName),this.memberLastName=new ue(t.memberFamilyName),this.bankAccountName=new ge(t.bankAccountName);const e=this.tryGetBankName(t.bankAccountBsb);this.bankName=new ye(e,null!=e),this.bankAccountBsb=new be(t.bankAccountBsb),this.bankAccountNumber=new xe(t.bankAccountNumber),this.isSubmitDisabled=this.formHasMissingData()}async handleFundNominationDeclined(){const t=this.createSuperFundPrefillDeclinedDetail(this.prefill);return await this.eventTrackingService.TrackSuperFundPrefillDeclinedAsync(t),_.navigateInternally(this.history,N.ChoicePage)}},Ae=class{constructor(e){t(this,e)}render(){return e("div",{class:"flex items-start self-stretch rounded-md bg-yellow-50"},e("div",{class:"w-1 self-stretch bg-yellow-400"}),e("div",{class:"flex items-start gap-3 flex-[1_0_0] p-4"},e((()=>e("div",{class:"w-5 h-5"},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},e("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"})))),null),e("div",{class:"flex flex-col items-start gap-2 flex-[1_0_0]"},e("div",{class:"flex flex-col items-start gap-1 self-stretch"},this.notificationList.map((t=>e("div",{class:"flex items-start gap-[7px] self-stretch pl-0"},this.notificationList.length>1&&e("div",{class:"pt-1.5 justify-center items-center flex"},e("div",{class:"w-1.5 h-1.5 bg-yellow-700 rounded-full"})),e("div",{class:"flex-[1_0_0] text-sm not-italic font-normal leading-5 text-yellow-700"},t))))))))}},_e=class{constructor(e){t(this,e),this.allFormFieldsAreFilled=t=>null!=t.fundName&&null!=t.fundAbn&&null!=t.fundEsa&&null!=t.addressLine1&&null!=t.city&&null!=t.state&&null!=t.postcode&&null!=t.bsb&&null!=t.bankAccountName&&null!=t.bankAccountNumber&&null!=t.memberFirstName&&null!=t.memberFamilyName,this.stepContinued=async t=>{"smsf-engagement"==t.detail.sender&&(await L.Instance.TrackSuperSmsfEngagementStepContinued(t.detail.reason),this.navigateToStandardChoice())},this.subscribeToStepEvents=()=>{for(const t in this.stepEventHandlers)document.addEventListener(t,this.stepEventHandlers[t])},this.unSubscribeFromStepEvents=()=>{for(const t in this.stepEventHandlers)document.removeEventListener(t,this.stepEventHandlers[t])},this.stepEventHandlers={continue:this.stepContinued.bind(this)}}async componentWillLoad(){A.isSmsfCustomStepEnabled&&A.isUsingSuperCampaign&&this.allFormFieldsAreFilled(q.selfManagedFundForm)&&P.isSome(A.backendUrl)&&P.isSome(A.state.jwt)?(this.backendUrl=A.backendUrl.value,this.accessToken=A.state.jwt.value,this.accountId=A.accountIdOrDefault,this.partnerId=A.partnerIdOrDefault,this.initialiseFormState(q.selfManagedFundForm),this.unSubscribeFromStepEvents(),this.subscribeToStepEvents(),A.hideFooterSection=!0,await L.Instance.TrackSuperSmsfEngagementStepActivationSucceeded()):_.navigateInternally(this.history,N.SelfManagedFund)}disconnectedCallback(){this.unSubscribeFromStepEvents(),A.hideFooterSection=!1}render(){return e(s,null,e("apollo-super-smsf-engagement",{"backend-url":this.backendUrl,"access-token":this.accessToken,"account-id":this.accountId,"partner-id":this.partnerId}))}navigateToStandardChoice(){_.navigateInternallyToStandardChoice({history:this.history,fundName:"Self-managed super fund",fundDetails:{type:"smsf",fundName:this.fundName,fundEsa:this.fundEsa},handleSubmitFn:async t=>{const e=Object.assign({smsfChoice:{abn:this.fundAbn,fundName:this.fundName,fundAddress:{addressLine1:this.fundAddress.addressLine1,addressLine2:this.fundAddress.addressLine2,city:this.fundAddress.city,state:this.fundAddress.state,postcode:this.fundAddress.postcode},bsb:this.bsb,bankAccountName:this.bankAccountName,bankAccountNumber:this.bankAccountNumber,electronicServiceAddress:this.fundEsa,memberFirstName:this.memberFirstName,memberFamilyName:this.memberFamilyName},standardChoiceFormSignature:t},A.promotedFundsConfig);await j.submitSelfManagedFundChoiceAsync(e)}})}initialiseFormState(t){this.fundName=t.fundName,this.fundAbn=t.fundAbn,this.fundEsa=t.fundEsa,this.fundAddress={addressLine1:t.addressLine1,addressLine2:t.addressLine2,city:t.city,state:t.state,postcode:t.postcode},this.bsb=t.bsb,this.bankAccountName=t.bankAccountName,this.bankAccountNumber=t.bankAccountNumber,this.memberFirstName=t.memberFirstName,this.memberFamilyName=t.memberFamilyName}};E(_e);const Ne=class{constructor(e){t(this,e),this.standardChoiceFormSignature="",this.isSubmitDisabled=!0,this.eventTrackingService=L.Instance,this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}render(){return e(s,null,e("div",{class:"text-2xl sm:text-3xl font-bold text-center"},"Confirm your super choice"),e("div",{class:"sm:text-lg text-gray-600 max-w-800 mt-4 text-center leading-7 sm:leading-8"},"Your authorisation is required to complete your super choice by signing the standard choice form, which informs your employer of your choice of fund."),e("div",{class:"flex justify-center mt-8 sm:mt-12"},e("div",{class:"max-w-560"},e("div",{class:"p-4 sm:p-6 border shadow-sm rounded-lg flex flex-col sm:flex-row"},this.renderLogo(),e("div",{class:"flex justify-between w-full"},e("div",null,e("div",{class:"text-xs font-semibold text-gray-500 uppercase"},"Nominated fund"),e("div",{class:"text-sm mt-2"},H.fundName)),e("div",{class:"grid content-center ml-4"},e("sss-button",{testid:"change-fund-button",size:"xs",variant:"secondary",promiseFn:async()=>{await this.trackChangeRequestedAsync(),_.navigateInternally(this.history,N.ChoicePage)}},"Change")))),e("div",{class:"mt-4 p-4 sm:p-6 border shadow-sm rounded-lg"},e("div",{class:"sm:text-lg font-bold"},"Superannuation Standard Choice Form"),e("div",{class:"bg-blue-50 border-l-4 border-blue-400 p-4 mt-3"},e("div",{class:"flex"},e("div",{class:"flex-shrink-0"},e("img",{class:"h-5 w-5",src:i("assets/icon-information-circle.svg")})),e("div",{class:"ml-2"},e("p",{class:"text-sm text-blue-800 leading-5"},"Applying your full name in the text field below is the same as applying your written signature and is legally binding.")))),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"mt-3":!0,"was-validated":"validated"===this.formState},ref:t=>this.formElement=t,onInput:()=>this.isSubmitDisabled=!this.formElement.checkValidity()},e("label",{class:"text-sm font-medium text-gray-700"},"Type your full name"),e("input",{"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":!0,"invalid:border-red-300 invalid:text-red-900 invalid:focus:ring-red-500 invalid:focus:border-red-500":"validated"===this.formState},required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onInput:t=>this.standardChoiceFormSignature=t.target.value}),e("div",{class:"invalid-feedback mt-2 text-sm text-red-600"},"Type your full name"),e("div",{class:"mt-6"},e("sss-button",{testid:"confirm-and-continue-button",fillWidth:!0,promiseFn:()=>this.handleSubmitForm(),disabled:this.isSubmitDisabled},"Confirm and continue")))))))}renderLogo(){}async trackChangeRequestedAsync(){const t={promotedFundsShown:A.promotedFunds,defaultFundUsiSet:V(A.defaultFundUsi)};switch(H.fundDetails.type){case"default":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({DefaultFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"myOwnFund":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({MyOwnFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"smsf":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({Smsf:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promoted":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promotedDefault":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFund:Object.assign(Object.assign({},H.fundDetails),t)});break;case"promotedDefaultWithJoin":await this.eventTrackingService.TrackSuperFundDetailChangeRequestedAsync({PromotedDefaultFundWithJoin:Object.assign(Object.assign({},H.fundDetails),t)});break;case"null":throw"standardChoiceFormState.fundDetails was not set"}}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await H.handleSubmitFn(this.standardChoiceFormSignature.trim()),A.markSuperSelectionAsSubmitted())}},Ee=class{constructor(e){t(this,e),this.ignorePopState=()=>window.history.pushState(null,"",null)}connectedCallback(){this.ignorePopState(),window.addEventListener("popstate",this.ignorePopState)}disconnectedCallback(){window.removeEventListener("popstate",this.ignorePopState)}render(){return e(s,{class:"text-center"},e("div",{class:"flex justify-center"},e("div",{class:"relative"},e("div",{class:"h-20 w-20 rounded-full bg-primary-base opacity-10"}),e("div",{class:"h-8 w-8 absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2"},e((()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"fill-primary-base"},e("path",{d:"M443.3 100.7C449.6 106.9 449.6 117.1 443.3 123.3L171.3 395.3C165.1 401.6 154.9 401.6 148.7 395.3L4.686 251.3C-1.562 245.1-1.562 234.9 4.686 228.7C10.93 222.4 21.06 222.4 27.31 228.7L160 361.4L420.7 100.7C426.9 94.44 437.1 94.44 443.3 100.7H443.3z"}))),null)))),e("h3",{class:"text-2xl leading-8 font-bold mt-4"},"Your super choice has been submitted"),e("p",{class:"mt-4 text-center text-gray-600 leading-7 max-w-560 mx-auto"},"Your superannuation details have been updated successfully and will be submitted to your employer."),e("div",{class:"flex justify-center mt-8"},e("div",{class:"max-w-[200px] w-full"},e("sss-button",{testid:"continue-button",size:"xl",fillWidth:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))}handleContinueButtonClick(t){A.completeSuperSelectionFlow()}},Be=new class{trackClickPromotedTileAsync(t){return I.clickPromotedTileAsync(t)}},Ie=async({sender:t,placementId:e,fundId:n,fundUsi:i,fundName:s,fundType:r})=>{if("super-campaign"===t||"featured-funds"===t){const t=(()=>{if(null!=A.superCampaignState)return A.superCampaignState;throw new Error("Super campaign state has not been initialized")})().PromotedFundIds,a=P.toUndefined(A.defaultFundUsi);await Promise.all(["promoted-default"===r?await L.Instance.TrackPromotedDefaultSuperFundDetailViewedAsync({fundUsi:null!=i?i:"",fundName:s,promotedFundId:n,promotedFundsShown:t,defaultFundUsiSet:a,superCampaignEnabled:!0,placementId:e}):await L.Instance.TrackPromotedSuperFundDetailViewedAsync({fundUsi:null!=i?i:void 0,fundName:s,promotedFundId:n,promotedFundsShown:t,defaultFundUsiSet:a,superCampaignEnabled:!0,placementId:e}),Be.trackClickPromotedTileAsync("promoted-default"===r?{promotedDefault:{fundId:n,placementId:e}}:{promoted:{fundId:n,placementId:e}})])}};function Pe(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Le(t){var e=Object.create;if(e)return e(t);if(null==t)return{};var n=typeof t;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+t);function i(){}return i.prototype=t,new i}var je,De,Te=function(t,e){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},Re=Pe()||{};De=function(t,e){function n(){this.constructor=t}Te(t,e),t.prototype=null===e?Le(e):(n.prototype=e.prototype,new n)},(je=Re).__assign||(je.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}),je.__extends||(je.__extends=De),__assign||(__assign=Re.__assign),__extends||(__extends=Re.__extends);var Oe=Pe;function Ue(t){var e=Oe();return e&&e[t]?e[t]:"window"===t&&qe()?window:null}function qe(){return Boolean("object"==typeof window&&window)}function He(){return qe()?window:Ue("window")}function Ve(){return Boolean("object"==typeof document&&document)}function ze(){return Ve()?document:Ue("document")}function We(){return Boolean("object"==typeof navigator&&navigator)?navigator:Ue("navigator")}function $e(){return"object"==typeof location&&location?location:Ue("location")}function Xe(){return Ue("performance")}function Je(){return Boolean("object"==typeof JSON&&JSON||null!==Ue("JSON"))}function Ge(){return Je()?JSON||Ue("JSON"):null}var Ze=null,Ke=!1,Ye=123456789,Qe=987654321;function tn(t){t<0&&(t>>>=0),Ye=123456789+t&4294967295,Qe=987654321-t&4294967295,Ke=!0}function en(){tn(4294967296*Math.random()^(new Date).getTime())}function nn(t,e){return typeof t===e}function sn(t){return nn(t,"undefined")||void 0===t}function rn(t){return sn(t)||null===t}function an(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function on(t){return nn(t,"object")}function un(t){return nn(t,"function")}function cn(t,e,n,i){void 0===i&&(i=!1);var s=!1;if(!rn(t))try{rn(t.addEventListener)?rn(t.attachEvent)||(t.attachEvent("on"+e,n),s=!0):(t.addEventListener(e,n,i),s=!0)}catch(t){}return s}function ln(t,e,n,i){if(void 0===i&&(i=!1),!rn(t))try{rn(t.removeEventListener)?rn(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function hn(t,e){if(t&&on(t))for(var n in t)an(t,n)&&e.call(t,n,t[n])}var dn,fn=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return nn(t,"string")},t.isNumber=function(t){return nn(t,"number")},t.isBoolean=function(t){return nn(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(mn,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,s=0;s<i;s++)s in t&&e.call(n||t,t[s],s,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,s=n||0,r=Math.max(s>=0?s:i-Math.abs(s),0);r<i;r++)if(r in t&&t[r]===e)return r;return-1},t.arrMap=function(t,e,n){for(var i=t.length,s=n||t,r=new Array(i),a=0;a<i;a++)a in t&&(r[a]=e.call(s,t[a],t));return r},t.arrReduce=function(t,e,n){var i,s=t.length,r=0;if(arguments.length>=3)i=arguments[2];else{for(;r<s&&!(r in t);)r++;i=t[r++]}for(;r<s;)r in t&&(i=e(i,t[r],r,t)),r++;return i},t.strTrim=function(e){return t.isString(e)?e.replace(/^\s+|\s+$/g,""):e},t.objKeys=function(t){var e=!{toString:null}.propertyIsEnumerable("toString");if(!(un(t)||on(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)an(t,i)&&n.push(i);if(e)for(var s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=s.length,a=0;a<r;a++)an(t,s[a])&&n.push(s[a]);return n},t.objDefineAccessors=function(t,e,n,i){var s=Object.defineProperty;if(s)try{var r={enumerable:!0,configurable:!0};return n&&(r.get=n),i&&(r.set=i),s(t,e,r),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=He();i&&(n=cn(i,t,e),n=cn(i.body,t,e)||n);var s=ze();return s&&(n=pn.Attach(s,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=Xe();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,s="";s.length<e;)i++,s+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return s},t.isIE=function(){if(null===Ze){var t=((We()||{}).userAgent||"").toLowerCase();Ze=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return Ze},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=Ue("crypto")||Ue("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(Ke||en(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?tn(t):en()},t.mwcRandom32=function(t){var e=((Qe=36969*(65535&Qe)+(Qe>>16)&4294967295)<<16)+(65535&(Ye=18e3*(65535&Ye)+(Ye>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",s=0;s<4;s++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var r=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+r+i.substr(16,3)+i.substr(19,12)},t.isTypeof=nn,t.isUndefined=sn,t.isNullOrUndefined=rn,t.hasOwnProperty=an,t.isFunction=un,t.isObject=on,t.objCreate=Le,t}(),mn=/[xy]/g,pn=function(){function t(){}return t.Attach=cn,t.AttachEvent=cn,t.Detach=ln,t.DetachEvent=ln,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(dn||(dn={}));var vn=Object.getPrototypeOf,wn=0;
2
2
  /*!
3
3
  * Microsoft Dynamic Proto Utility, 1.1.0
4
4
  * Copyright (c) Microsoft and contributors. All rights reserved.