@flarehr/apollo-super-selection 3.35.55455 → 3.38.55619
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/apollo-super-selection/apollo-super-selection.esm.js +1 -1
- package/dist/lib/apollo-super-selection/{p-26f5c23f.system.entry.js → p-555759ee.system.entry.js} +6 -6
- package/dist/lib/apollo-super-selection/{p-5d582847.entry.js → p-932add6f.entry.js} +1 -1
- package/dist/lib/apollo-super-selection/p-d82b00ed.system.js +1 -1
- package/dist/lib/cjs/fl-button_46.cjs.entry.js +7 -5
- package/dist/lib/collection/components/super-selection-app/funds/promoted-fund/promoted-fund-standard-choice-page.js +1 -1
- package/dist/lib/collection/components/super-selection-app/funds/qsuper/helpers/confirmCheck.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-fund.store.js +2 -1
- package/dist/lib/collection/components/super-selection-app/funds/slate-super/slate-standard-choice-page.js +1 -1
- package/dist/lib/esm/fl-button_46.entry.js +7 -5
- package/dist/lib/esm-es5/fl-button_46.entry.js +1 -1
- package/dist/lib/types/components/super-selection-app/funds/promoted-fund/api/promoted-fund-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/qsuper/api/qsuper-choice.api.dto.d.ts +1 -0
- package/dist/lib/types/components/super-selection-app/funds/slate-super/api/slate-choice.api.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t,h as e,c as n,g as i,f as r,H as o,a as s,d as a,e as c,s as u}from"./p-082669d9.js";import{f as l,m as f,S as d,a as h,i as p,d as m,b as v,c as b,g,Q as w}from"./p-df9ce4b7.js";import{g as y,O as x,j as k,k as S,a as C}from"./p-342cee5a.js";import{A as _}from"./p-61734b66.js";function A(){}function q(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(q(((n,i)=>l(t(n,i)).pipe(f(((t,r)=>e(n,t,i,r))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends d{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 h(this),n=this.destination;n.add(e);const i=p(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 E(t,e,n,i){return k(n)&&(i=n,n=void 0),i?E(t,e,n).pipe(f((t=>y(t)?i(...t):i(t)))):new x((i=>{I(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function I(t,e,n,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),o=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),o=()=>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),o=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o<s;o++)I(t[o],e,n,i,r)}i.add(o)}class F{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new P(t,this.dueTime,this.scheduler))}}class P extends C{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(R,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 R(t){t.debouncedNext()}function M(t,e,n){return function(i){return i.lift(new T(t,e,n))}}class T{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new N(t,this.nextOrObserver,this.error,this.complete))}}class N extends C{constructor(t,e,n,i){super(t),this._tapNext=A,this._tapError=A,this._tapComplete=A,this._tapError=n||A,this._tapComplete=i||A,k(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||A,this._tapError=e.error||A,this._tapComplete=e.complete||A)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var D=function(t){return"Some"===t._tag},O=function(t){return"None"===t._tag},U={_tag:"None"},L=function(t){return{_tag:"Some",value:t}};function z(t){return null==t?U:L(t)}class H{constructor(t){this.factory=t,this._value=U}get value(){if(D(this._value))return this._value.value;const t=this.factory();return this._value=L(t),t}}function V(t){_.injectProps(t,["history","location"])}const Q=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),W=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),$=t=>t.replace(/([=!:$/()])/g,"\\$1"),Y=t=>t&&t.sensitive?"":"i",X=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,o=W(n.delimiter||"/"),s=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(W).concat("$").join("|"),c="",u=!1,l=0;l<t.length;l++){var f=t[l];if("string"==typeof f)c+=W(f),u=l===t.length-1&&s.indexOf(f[f.length-1])>-1;else{var d=W(f.prefix||""),h=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;e&&e.push(f),c+=f.optional?f.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}return r?(i||(c+="(?:"+o+")?"),c+="$"===a?"$":"(?="+a+")"):(i||(c+="(?:"+o+"(?="+a+"))?"),u||(c+="(?="+o+"|"+a+")")),new RegExp("^"+c,Y(n))},J=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(J(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",Y(n))})(t,e,n):((t,e,n)=>X(((t,e)=>{for(var n,i=[],r=0,o=0,s="",a=e&&e.delimiter||"/",c=e&&e.delimiters||"./",u=!1;null!==(n=Q.exec(t));){var l=n[0],f=n[1],d=n.index;if(s+=t.slice(o,d),o=d+l.length,f)s+=f[1],u=!0;else{var h="",p=t[o],m=n[2],v=n[3],b=n[4],g=n[5];if(!u&&s.length){var w=s.length-1;c.indexOf(s[w])>-1&&(h=s[w],s=s.slice(0,w))}s&&(i.push(s),s="",u=!1);var y=h||a,x=v||b;i.push({name:m||r++,prefix:h,delimiter:y,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,partial:""!==h&&void 0!==p&&p!==h,pattern:x?$(x):"[^"+W(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,n),e,n))(t,e,n),G=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),K=(t,e)=>G(t,e)?t.substr(e.length):t,Z=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,tt=t=>"/"===t.charAt(0)?t:"/"+t,et=t=>"/"===t.charAt(0)?t.substr(1):t,nt=t=>{const{pathname:e,search:n,hash:i}=t;let r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},it=t=>"/"===t.charAt(0),rt=t=>Math.random().toString(36).substr(2,t),ot=(t,e)=>{for(let n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()},st=(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)=>st(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 st(n,i);const r=Object.keys(t),o=Object.keys(e);return r.length===o.length&&r.every((n=>st(t[n],e[n])))}return!1},at=(t,e,n,i)=>{let r;"string"==typeof t?(r=(t=>{let e=t||"/",n="",i="";const r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));const o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(r.state=e)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var o;return r.key=n,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],r=0;const o=t&&t.split("/")||[],s=t&&it(t),a=e&&it(e),c=s||a;if(t&&it(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?ot(i,t):".."===e?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!c)for(;r--;r)i.unshift("..");!c||""===i[0]||i[0]&&it(i[0])||i.unshift("");let u=i.join("/");return n&&"/"!==u.substr(-1)&&(u+="/"),u})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(o=r.search||"")?(/^[?#]/.test(o)?o.slice(1):o).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ct=0;const ut={},lt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:r=!1}=e,{re:o,keys:s}=((t,e)=>{const n=`${e.end}${e.strict}`,i=ut[n]||(ut[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:J(t,o,e),keys:o};return ct<1e4&&(i[r]=s,ct+=1),s})(n,{end:i,strict:r}),a=o.exec(t);if(!a)return null;const[c,...u]=a,l=t===c;return i&&!l?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:l,params:s.reduce(((t,e,n)=>(t[e.name]=u[n],t)),{})}},ft=class{constructor(e){t(this,e),this.isBlockElement=!1,this.disabled=!1,this.variant="primary"}render(){return e("button",{class:{"btn position-relative px-3 py-2":!0,"is-primary":"primary"===this.variant,"is-secondary":"secondary"===this.variant,"btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},e("span",{class:"label"},e("slot",null)))}};ft.style=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var dt={compareTwoStrings:ht,findBestMatch:function(t,e){if(!function(t,e){return"string"==typeof t&&!!Array.isArray(e)&&!!e.length&&!e.find((t=>"string"!=typeof t))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=[];let i=0;for(let r=0;r<e.length;r++){const o=e[r],s=ht(t,o);n.push({target:o,rating:s}),s>n[i].rating&&(i=r)}return{ratings:n,bestMatch:n[i],bestMatchIndex:i}}};function ht(t,e){if(t=t.replace(/\s+/g,""),e=e.replace(/\s+/g,""),!t.length&&!e.length)return 1;if(!t.length||!e.length)return 0;if(t===e)return 1;if(1===t.length&&1===e.length)return 0;if(t.length<2||e.length<2)return 0;let n=new Map;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),r=n.has(i)?n.get(i)+1:1;n.set(i,r)}let i=0;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),o=n.has(r)?n.get(r):0;o>0&&(n.set(r,o-1),i++)}return 2*i/(t.length+e.length-2)}const pt=class{constructor(i){t(this,i),this.valueChanged=n(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.isMouseOver=!1,this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.renderFilteredResults=()=>0===this.filteredOptions.length?e("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===n},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},e("span",null,t.label)))),this.filterResults=t=>{this.filteredOptions=this.sortOptionsByRelevancy(this._options.filter((e=>e.label.toLowerCase().includes(t.toLowerCase()))),t),this.highlightedOptionIndex=void 0},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},this.toggleDropdown=t=>{this.isDropdownVisible=t},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.filteredOptions=this._options},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!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.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))}}get _options(){if(void 0===this.options)throw new Error("Can't render <fl-dropdown /> component with no options");return this.options}componentWillLoad(){var t,e;this.filteredOptions=this._options,this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}onOptionsChanged(){this.filteredOptions=this._options}onValueChanged(){var t,e;this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}render(){var t;return[e("div",{class:"dropdown"},e("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:t=>{const e=t.target.value;this.inputValue=e,this.filterResults(e),this.toggleDropdown(!0)},ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}sortOptionsByRelevancy(t,e){return t.map((t=>Object.assign(Object.assign({},t),{relevancyScore:dt.compareTwoStrings(t.label.toLowerCase(),e.toLowerCase())}))).sort(((t,e)=>e.relevancyScore-t.relevancyScore)).map((t=>({label:t.label,value:t.value})))}static get watchers(){return{options:["onOptionsChanged"],value:["onValueChanged"]}}};pt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const mt=class{constructor(i){t(this,i),this.valueChanged=n(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"dropdown-item disabled"},"Start typing to find the results"):"in progress"===this.searchState?e("div",{class:"d-flex justify-content-end align-items-center pr-4"},e("span",{class:"dropdown-item disabled"},"Searching..."),e("i",{class:"dot-falling"})):0===this.filteredOptions.length?e("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===n},onClick:()=>{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.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!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.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))},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=E(this.inputElement,"keyup").pipe(function(t,e=S){return n=>n.lift(new F(t,e))}(500),f((()=>this.inputElement.value)),m(),v(this.shouldExecuteSearch),M(this.onBeginSearch),q(this._searchFunction),M(this.onCompleteSearch)).subscribe()}componentDidUnload(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.highlightedOptionIndex=void 0,this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return[e("div",{class:"dropdown"},e("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show: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 <fl-dropdown-async/> component with no searchFunction");return this.searchFunction}};mt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const vt=class{constructor(e){t(this,e),this.theme="default"}render(){return e("span",{class:{"dots-container d-inline-flex justify-content-center":!0}},e("span",{class:{"dot-flashing":!0,"theme-default":"default"===this.theme,"theme-dark":"dark"===this.theme}}))}};var bt;vt.style='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}',function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(bt||(bt={}));const gt=class{constructor(e){t(this,e),this.isBlockElement=!1,this.isRounded=!1,this.disabled=!1,this.variant="primary",this.promiseFn=()=>Promise.resolve(),this.state=bt.Available}render(){return this.state===bt.Pending?this.renderLoadingButton():this.renderActiveButton()}renderActiveButton(){return e("fl-button",{disabled:this.disabled,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,variant:this.variant},e("div",null,e("slot",null)))}renderLoadingButton(){return e("fl-button",{disabled:!0,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},e("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),e("div",{class:"invisible"},e("slot",null)))}async clicked(){this.state=bt.Pending;try{await this.promiseFn(),this.state=bt.Available}catch(t){throw this.state=bt.Error,t}}};function wt(t,e){void 0===e&&(e="*"),t.sender="flare",window.parent.postMessage(t,e)}gt.style="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";const yt=function(){wt({type:"appReady"})},xt=function(t,e){wt({type:"contentResized",height:t,width:e})},kt=function(t){wt({type:"pageNavigated",url:t})},St=function(){wt({type:"complete"})},Ct=function(){wt({type:"submitSuccess"})},_t=t=>!("isConnected"in t)||t.isConnected,At=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(_t))})(...e)}),2e3)}})(),qt=(t,e)=>{const n=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const o=n.get(t);e(r,o,t)&&(n.set(t,r),i.set.forEach((e=>e(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(s(e,n),!0)}),c=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:a,get:o,set:s,on:c,onChange:(e,n)=>{const i=c("set",((t,i)=>{t===e&&n(i)})),r=c("reset",(()=>n(t[e])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&c("set",t.set),t.get&&c("get",t.get),t.reset&&c("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,e);return(({on:t})=>{const e=new Map;"function"==typeof i&&(t("dispose",(()=>{e.clear()})),t("get",(t=>{const n=i();n&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(e,t,n)})),t("set",(t=>{const n=e.get(t);n&&e.set(t,n.filter(r)),At(e)})),t("reset",(()=>{e.forEach((t=>t.forEach(r))),At(e)})))})(n),n};function Bt(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var jt=Bt((function(t,e){function n(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(e,"__esModule",{value:!0}),e.bindTo_=e.bind_=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.not=e.unsafeCoerce=e.identity=void 0,e.identity=n,e.unsafeCoerce=n,e.not=function(t){return function(e){return!t(e)}},e.constant=i,e.constTrue=i(!0),e.constFalse=i(!1),e.constNull=i(null),e.constUndefined=i(void 0),e.constVoid=e.constUndefined,e.flip=function(t){return function(e,n){return t(n,e)}},e.flow=function(t,e,n,i,r,o,s,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return i(n(e(t.apply(this,arguments))))};case 5:return function(){return r(i(n(e(t.apply(this,arguments)))))};case 6:return function(){return o(r(i(n(e(t.apply(this,arguments))))))};case 7:return function(){return s(o(r(i(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(s(o(r(i(n(e(t.apply(this,arguments))))))))};case 9:return function(){return c(a(s(o(r(i(n(e(t.apply(this,arguments)))))))))}}},e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},e.increment=function(t){return t+1},e.decrement=function(t){return t-1},e.absurd=r,e.tupled=function(t){return function(e){return t.apply(void 0,e)}},e.untupled=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}},e.pipe=function(t,e,n,i,r,o,s,a,c,u,l,f,d,h,p,m,v,b,g,w){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return r(i(n(e(t))));case 6:return o(r(i(n(e(t)))));case 7:return s(o(r(i(n(e(t))))));case 8:return a(s(o(r(i(n(e(t)))))));case 9:return c(a(s(o(r(i(n(e(t))))))));case 10:return u(c(a(s(o(r(i(n(e(t)))))))));case 11:return l(u(c(a(s(o(r(i(n(e(t))))))))));case 12:return f(l(u(c(a(s(o(r(i(n(e(t)))))))))));case 13:return d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))));case 14:return h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))));case 15:return p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))));case 16:return m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))));case 17:return v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))))));case 18:return b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))))));case 19:return g(b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))))))));case 20:return w(g(b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))))))))}},e.hole=r,e.bind_=function(t,e,n){var i;return Object.assign({},t,((i={})[e]=n,i))},e.bindTo_=function(t){return function(e){var n;return(n={})[t]=e,n}}})),Et=Bt((function(t,e){function n(t){return null==t?e.none:e.some(t)}function i(t){return"Right"===t._tag?e.none:e.some(t.left)}function r(t){return"Left"===t._tag?e.none:e.some(t.right)}function o(t){return function(i){return e.isNone(i)?e.none:n(t(i.value))}}Object.defineProperty(e,"__esModule",{value:!0}),e.getApplySemigroup=e.getOrd=e.getEq=e.getShow=e.URI=e.wilt=e.wither=e.sequence=e.traverse=e.partitionMap=e.partition=e.filterMap=e.filter=e.separate=e.compact=e.reduceRight=e.foldMap=e.reduce=e.duplicate=e.extend=e.throwError=e.zero=e.alt=e.altW=e.flatten=e.chainFirst=e.chain=e.of=e.apSecond=e.apFirst=e.ap=e.map=e.chainNullableK=e.mapNullable=e.fromNullableK=e.getOrElse=e.getOrElseW=e.toUndefined=e.toNullable=e.fold=e.fromEither=e.getRight=e.getLeft=e.tryCatch=e.fromPredicate=e.fromNullable=e.some=e.none=e.isNone=e.isSome=void 0,e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.apS=e.bind=e.bindTo=e.Do=e.getRefinement=e.exists=e.elem=e.option=e.MonadThrow=e.Witherable=e.Traversable=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.Alt=e.Foldable=e.Monad=e.Applicative=e.Functor=e.getMonoid=e.getLastMonoid=e.getFirstMonoid=e.getApplyMonoid=void 0,e.isSome=function(t){return"Some"===t._tag},e.isNone=function(t){return"None"===t._tag},e.none={_tag:"None"},e.some=function(t){return{_tag:"Some",value:t}},e.fromNullable=n,e.fromPredicate=function(t){return function(n){return t(n)?e.some(n):e.none}},e.tryCatch=function(t){try{return e.some(t())}catch(t){return e.none}},e.getLeft=i,e.getRight=r,e.fromEither=r,e.fold=function(t,n){return function(i){return e.isNone(i)?t():n(i.value)}},e.toNullable=function(t){return e.isNone(t)?null:t.value},e.toUndefined=function(t){return e.isNone(t)?void 0:t.value},e.getOrElseW=function(t){return function(n){return e.isNone(n)?t():n.value}},e.getOrElse=e.getOrElseW,e.fromNullableK=function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return n(t.apply(void 0,e))}},e.mapNullable=o,e.chainNullableK=o;var s=function(t,n){return jt.pipe(t,e.map(n))},a=function(t,n){return jt.pipe(t,e.ap(n))},c=function(t,n){return jt.pipe(t,e.chain(n))},u=function(t,n,i){return jt.pipe(t,e.reduce(n,i))},l=function(t){var n=e.foldMap(t);return function(t,e){return jt.pipe(t,n(e))}},f=function(t,n,i){return jt.pipe(t,e.reduceRight(n,i))},d=function(t){var n=e.traverse(t);return function(t,e){return jt.pipe(t,n(e))}},h=function(t,n){return jt.pipe(t,e.alt(n))},p=function(t,n){return jt.pipe(t,e.filter(n))},m=function(t,n){return jt.pipe(t,e.filterMap(n))},v=function(t,n){return jt.pipe(t,e.extend(n))},b=function(t,n){return jt.pipe(t,e.partition(n))},g=function(t,n){return jt.pipe(t,e.partitionMap(n))},w=function(t){var n=e.wither(t);return function(t,e){return jt.pipe(t,n(e))}},y=function(t){var n=e.wilt(t);return function(t,e){return jt.pipe(t,n(e))}};e.map=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n.value))}},e.ap=function(t){return function(n){return e.isNone(n)||e.isNone(t)?e.none:e.some(n.value(t.value))}},e.apFirst=function(t){return jt.flow(e.map((function(t){return function(){return t}})),e.ap(t))},e.apSecond=function(t){return jt.flow(e.map((function(){return function(t){return t}})),e.ap(t))},e.of=e.some,e.chain=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.chainFirst=function(t){return e.chain((function(n){return jt.pipe(t(n),e.map((function(){return n})))}))},e.flatten=e.chain(jt.identity),e.altW=function(t){return function(n){return e.isNone(n)?t():n}},e.alt=e.altW,e.zero=function(){return e.none},e.throwError=function(){return e.none},e.extend=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n))}},e.duplicate=e.extend(jt.identity),e.reduce=function(t,n){return function(i){return e.isNone(i)?t:n(t,i.value)}},e.foldMap=function(t){return function(n){return function(i){return e.isNone(i)?t.empty:n(i.value)}}},e.reduceRight=function(t,n){return function(i){return e.isNone(i)?t:n(i.value,t)}},e.compact=e.flatten;var x={left:e.none,right:e.none};function k(t){return{equals:function(n,i){return n===i||(e.isNone(n)?e.isNone(i):!e.isNone(i)&&t.equals(n.value,i.value))}}}function S(t){return{concat:function(n,i){return e.isSome(n)&&e.isSome(i)?e.some(t.concat(n.value,i.value)):e.none}}}e.separate=function(t){var n=jt.pipe(t,e.map((function(t){return{left:i(t),right:r(t)}})));return e.isNone(n)?x:n.value},e.filter=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)?n:e.none}},e.filterMap=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.partition=function(t){return function(e){return{left:p(e,(function(e){return!t(e)})),right:p(e,t)}}},e.partitionMap=function(t){return jt.flow(e.map(t),e.separate)},e.traverse=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):t.map(n(i.value),e.some)}}},e.sequence=function(t){return function(n){return e.isNone(n)?t.of(e.none):t.map(n.value,e.some)}},e.wither=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):n(i.value)}}},e.wilt=function(t){return function(n){return function(o){return e.isNone(o)?t.of({left:e.none,right:e.none}):t.map(n(o.value),(function(t){return{left:i(t),right:r(t)}}))}}},e.URI="Option",e.getShow=function(t){return{show:function(n){return e.isNone(n)?"none":"some("+t.show(n.value)+")"}}},e.getEq=k,e.getOrd=function(t){return{equals:k(t).equals,compare:function(n,i){return n===i?0:e.isSome(n)?e.isSome(i)?t.compare(n.value,i.value):1:-1}}},e.getApplySemigroup=S,e.getApplyMonoid=function(t){return{concat:S(t).concat,empty:e.some(t.empty)}},e.getFirstMonoid=function(){return{concat:function(t,n){return e.isNone(t)?n:t},empty:e.none}},e.getLastMonoid=function(){return{concat:function(t,n){return e.isNone(n)?t:n},empty:e.none}},e.getMonoid=function(t){return{concat:function(n,i){return e.isNone(n)?i:e.isNone(i)?n:e.some(t.concat(n.value,i.value))},empty:e.none}},e.Functor={URI:e.URI,map:s},e.Applicative={URI:e.URI,map:s,ap:a,of:e.of},e.Monad={URI:e.URI,map:s,ap:a,of:e.of,chain:c},e.Foldable={URI:e.URI,reduce:u,foldMap:l,reduceRight:f},e.Alt={URI:e.URI,map:s,alt:h},e.Alternative={URI:e.URI,map:s,ap:a,of:e.of,alt:h,zero:e.zero},e.Extend={URI:e.URI,map:s,extend:v},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:s,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g},e.Traversable={URI:e.URI,map:s,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence},e.Witherable={URI:e.URI,map:s,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g,wither:w,wilt:y},e.MonadThrow={URI:e.URI,map:s,ap:a,of:e.of,chain:c,throwError:e.throwError},e.option={URI:e.URI,map:s,of:e.of,ap:a,chain:c,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence,zero:e.zero,alt:h,extend:v,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g,wither:w,wilt:y,throwError:e.throwError},e.elem=function(t){return function(n,i){return!e.isNone(i)&&t.equals(n,i.value)}},e.exists=function(t){return function(n){return!e.isNone(n)&&t(n.value)}},e.getRefinement=function(t){return function(n){return e.isSome(t(n))}},e.Do=e.of({}),e.bindTo=function(t){return e.map(jt.bindTo_(t))},e.bind=function(t,n){return e.chain((function(i){return jt.pipe(n(i),e.map((function(e){return jt.bind_(i,t,e)})))}))},e.apS=function(t,n){return jt.flow(e.map((function(e){return function(n){return jt.bind_(e,t,n)}})),e.ap(n))},e.traverseArrayWithIndex=function(t){return function(n){for(var i=[],r=0;r<n.length;r++){var o=t(r,n[r]);if(e.isNone(o))return e.none;i.push(o.value)}return e.some(i)}},e.traverseArray=function(t){return e.traverseArrayWithIndex((function(e,n){return t(n)}))},e.sequenceArray=e.traverseArray(jt.identity)}));function It(t){this.message=t}(It.prototype=new Error).name="InvalidCharacterError";var Ft="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new It("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function Pt(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Ft(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return Ft(e)}}function Rt(t){this.message=t}(Rt.prototype=new Error).name="InvalidTokenError";var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Tt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Nt=function(t,e,n){if(void 0===n&&(n=!1),!t||!e||"object"!=typeof t||"object"!=typeof e)return t;var i=Mt({},t);for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]instanceof Array&&t[r]instanceof Array?n?Tt(t[r],e[r]):e[r]:"object"==typeof e[r]&&"object"==typeof t[r]?Nt(t[r],e[r],n):e[r]);return i},Dt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ot={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,e){for(var n=void 0===e?{}:e,i=n.doThrow,r=void 0===i||i,o=n.instance,s=void 0!==o&&o,a=[],c=2;c<arguments.length;c++)a[c-2]=arguments[c];var u=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!u)throw new Error(t+" is not defined");return s&&u?new(u.bind.apply(u,Dt([void 0],a))):u}},Ut=function(t,e,n,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(e);return!!(r&&r.length>0)&&(n(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(e),Lt.callbacks.delete(e),Lt.callbacks.size<1&&(Lt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},Lt={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var n=Ot.polyfill("performance",{doThrow:!1});(function(t,e){return!Lt.observer&&t&&e&&(Lt.observer=new e((function(e){Lt.callbacks.forEach((function(n,i){Ut(e,i,n,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),Lt.observer})(n,Ot.polyfill("PerformanceObserver",{doThrow:!1}))&&(Ut(n,t,e,n)||(Lt.callbacks.size<1&&Lt.observer.observe({entryTypes:["resource","measure"]}),Lt.callbacks.set(t,e)))}}},zt=function(t){this.error=t},Ht=function(){return(Ht=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Vt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Qt=function(){function t(t,e,n,i,r,o){void 0===n&&(n=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===o&&(o=[]),this._url=t,this._options=e,this._catchers=n,this._resolvers=i,this._middlewares=r,this._deferredChain=o}return t.factory=function(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),new t(e,n)},t.prototype.selfFactory=function(e){var n=void 0===e?{}:e,i=n.url,r=n.options,o=n.catchers,s=void 0===o?this._catchers:o,a=n.resolvers,c=void 0===a?this._resolvers:a,u=n.middlewares,l=void 0===u?this._middlewares:u,f=n.deferredChain,d=void 0===f?this._deferredChain:f;return new t(void 0===i?this._url:i,Ht({},void 0===r?this._options:r),new Map(s),Vt(c),Vt(l),Vt(d))},t.prototype.defaults=function(t,e){return void 0===e&&(e=!1),Ot.defaults=e?Nt(Ot.defaults,t):t,this},t.prototype.errorType=function(t){return Ot.errorType=t,this},t.prototype.polyfills=function(t){return Ot.polyfills=Ht(Ht({},Ot.polyfills),t),this},t.prototype.url=function(t,e){if(void 0===e&&(e=!1),e)return this.selfFactory({url:t});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+t+"?"+n[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?Nt(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:Wt(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:Nt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})["Content-Type"]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var n=new Map(this._catchers);return n.set(t,e),this.selfFactory({catchers:n})},t.prototype.signal=function(t){return this.selfFactory({options:Ht(Ht({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:Vt(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:Vt(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:Vt(this._middlewares,t)})},t.prototype.method=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=null);var i=this._options.headers,r=n?"object"!=typeof n||i&&!Object.entries(i).every((function(t){var e=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||e.startsWith("application/json")}))?this.body(n):this.json(n):this;return function(t){var e=t._url,n=t._resolvers,i=t._middlewares,r=t._options,o=new Map(t._catchers),s=Nt(Ot.defaults,r),a=Ot.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&a&&(s.signal=a.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},u=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(n,i,r){return i(r===t.length-2?n(e):n)}))}}(i)(Ot.polyfill("fetch"))(e,s),l=u.catch((function(t){throw new zt(t)})).then((function(t){return c.clear(),t.ok?t:t[Ot.errorType||"text"]().then((function(e){var n=new Error(e);throw n[Ot.errorType||"text"]=e,n.status=t.status,n.response=t,n}))})),f=function(e){return function(n){return(e?l.then((function(t){return t&&t[e]()})).then((function(t){return n?n(t):t})):l.then((function(t){return n?n(t):t}))).catch((function(e){c.clear();var n=e instanceof zt?e.error:e;if(e instanceof zt&&o.has("__fromFetch"))return o.get("__fromFetch")(n,t);if(o.has(n.status))return o.get(n.status)(n,t);if(o.has(n.name))return o.get(n.name)(n,t);throw n}))}},d={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return u.then((function(e){return Lt.observe(e.url,t)})),d},setTimeout:function(t,e){return void 0===e&&(e=a),c.clear(),c.ref=setTimeout((function(){return e.abort()}),t),d},controller:function(){return[a,d]},error:function(t,e){return o.set(t,e),d},badRequest:function(t){return d.error(400,t)},unauthorized:function(t){return d.error(401,t)},forbidden:function(t){return d.error(403,t)},notFound:function(t){return d.error(404,t)},timeout:function(t){return d.error(408,t)},internalError:function(t){return d.error(500,t)},fetchError:function(t){return d.error("__fromFetch",t)},onAbort:function(t){return d.error("AbortError",t)}};return n.reduce((function(e,n){return n(e,t)}),d)}((r=r.options(Ht(Ht({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Ht(Ht({},this._options),{body:t})})},t.prototype.json=function(t){var e,n=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&e.startsWith("application/json")})))||void 0===e?void 0:e[1];return this.content(n||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body($t(t,e))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(e=t,Object.keys(e).map((function(t){var n=e[t];return n instanceof Array?n.map((function(e){return Yt(t,e)})).join("&"):Yt(t,n)})).join("&"))).content("application/x-www-form-urlencoded");var e},t}(),Wt=function(t,e,n){var i;if("string"==typeof e)i=e;else{var r=Ot.polyfill("URLSearchParams",{instance:!0});for(var o in e)if(e[o]instanceof Array)for(var s=0,a=e[o];s<a.length;s++)r.append(o,a[s]);else r.append(o,e[o]);i=r.toString()}var c=t.split("?");return n||c.length<2?c[0]+"?"+i:t+"&"+i};function $t(t,e,n,i){return void 0===e&&(e=!1),void 0===n&&(n=Ot.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],o=t[1],s=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(s=s?s+"["+r+"]":r,o instanceof Array)for(var a=0,c=o;a<c.length;a++)n.append(s+"[]",c[a]);else!e||"object"!=typeof o||e instanceof Array&&e.includes(r)?n.append(s,o):null!==o&&$t(o,e,n,Vt(i,[r]))})),n}function Yt(t,e){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof e?JSON.stringify(e):""+e)}var Xt=Qt.factory;function Jt(){const t=Zt.jwt,e=Zt.profileId,n=Zt.accountIdOrDefault,i=Zt.partnerIdOrDefault;return Xt(Zt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":e,"X-PARTNER-ID":i,"X-ACCOUNT-ID":n})}Xt.default=Qt.factory;const Gt=new class{async getAustralianFundsAsync(t){return Jt().url("super-choice/australian-funds?"+this.toQueryString(t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Jt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}},Kt={apiBaseUrl:Et.none,appBaseUrl:Et.none,profileId:Et.none,jwt:Et.none,superBuyer:Et.none,promotedFunds:Et.none,accountConfiguration:Et.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},Zt=new class{constructor(){const{state:t,onChange:e}=qt(Kt);this._state=t,this._onChange=e,e("jwt",(t=>{this._state.profileId=jt.pipe(t,Et.chain((t=>Et.fromNullable(function(t,e){if("string"!=typeof t)throw new Rt("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(Pt(t.split(".")[n]))}catch(t){throw new Rt("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(Et.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(Et.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(Et.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(Et.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(Et.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){return jt.pipe(this._state.accountConfiguration,Et.map((t=>Et.fromNullable(t.defaultFundUsi))),Et.flatten)}get accountIdOrDefault(){return jt.pipe(this._state.accountConfiguration,Et.map((t=>t.accountId)),Et.getOrElse((()=>"")))}get partnerIdOrDefault(){return jt.pipe(this._state.superBuyer,Et.map((t=>t.partnerId)),Et.getOrElse((()=>"")))}get jwt(){if(Et.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}get showSmsfNotSupported(){return jt.pipe(this._state.superBuyer,Et.map((t=>t.showSmsfNotSupported)),Et.getOrElse((()=>!1)))}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}async loadAppStateAsync(){const t=await Gt.getAppStateAsync();this._state.accountConfiguration=Et.fromNullable(t.accountConfiguration),this._state.superBuyer=Et.fromNullable(t.superBuyer),this._state.promotedFunds=Et.fromNullable(t.promotedFunds)}},te=new class{navigateInternally(t,e){const n=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(e)}`;kt(n),t.push(n)}toExternalUrl(t){const e=new URL(t);return e.searchParams.append("_extnav","true"),e.href}get appBaseUrl(){return Zt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}};var ee;!function(t){t.ChoicePage="/",t.SlateJoin="/slate/join/",t.SlateStandardChoice="/slate/standard-choice/",t.QSuperOptIn="/qsuper/insurance/opt-in/",t.QSuperQuestion1="/qsuper/insurance/question1/",t.QSuperQuestion2="/qsuper/insurance/question2/",t.QSuperQuestion3="/qsuper/insurance/question3/",t.QSuperQuestion4="/qsuper/insurance/question4/",t.QSuperQuestion5="/qsuper/insurance/question5/",t.QSuperQuestion6="/qsuper/insurance/question6/",t.QSuperQuestion7="/qsuper/insurance/question7/",t.QSuperQuestion8="/qsuper/insurance/question8/",t.QSuperConsent="/qsuper/consent/",t.QSuperJoin="/qsuper/join/",t.PromotedFundJoin="/promoted-fund/join",t.PromotedFundStandardChoice="/promoted-fund/standard-choice/",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.Success="/success/"}(ee||(ee={}));const ne=[e("stencil-route",{exact:!0,url:ee.ChoicePage,component:"sss-super-choice-page"}),e("stencil-route",{url:ee.SlateJoin,component:"sss-slate-join-page"}),e("stencil-route",{url:ee.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),e("stencil-route",{url:ee.QSuperOptIn,component:"sss-qsuper-insurance-opt-in"}),e("stencil-route",{url:ee.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),e("stencil-route",{url:ee.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),e("stencil-route",{url:ee.QSuperQuestion1,component:"sss-qsuper-question-1"}),e("stencil-route",{url:ee.QSuperQuestion2,component:"sss-qsuper-question-2"}),e("stencil-route",{url:ee.QSuperQuestion3,component:"sss-qsuper-question-3"}),e("stencil-route",{url:ee.QSuperQuestion4,component:"sss-qsuper-question-4"}),e("stencil-route",{url:ee.QSuperQuestion5,component:"sss-qsuper-question-5"}),e("stencil-route",{url:ee.QSuperQuestion6,component:"sss-qsuper-question-6"}),e("stencil-route",{url:ee.QSuperQuestion7,component:"sss-qsuper-question-7"}),e("stencil-route",{url:ee.QSuperQuestion8,component:"sss-qsuper-question-8"}),e("stencil-route",{url:ee.QSuperConsent,component:"sss-qsuper-consent"}),e("stencil-route",{url:ee.QSuperJoin,component:"sss-qsuper-join"}),e("stencil-route",{url:ee.MyOwnFund,component:"sss-my-own-fund"}),e("stencil-route",{url:ee.SelfManagedFund,component:"sss-self-managed-fund"}),e("stencil-route",{url:ee.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:ee.Success,component:"sss-success"})];var ie;!function(t){t.MyOwnFund="My Own Fund",t.DefaultFund="Default Fund",t.SelfManagedFund="Self Managed Fund"}(ie||(ie={}));const re={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:U,memberNumber:U,standardChoiceFormSignature:U},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:ie.MyOwnFund,customFunds:[{label:ie.MyOwnFund,value:ee.MyOwnFund},{label:ie.DefaultFund,value:ee.DefaultFund},{label:ie.SelfManagedFund,value:ee.SelfManagedFund}]},{state:oe}=qt(re),se=oe.customFunds,ae=class{constructor(e){t(this,e),this.currentCustomFund=se[0],this.fundOptionsList=se}componentWillLoad(){let t="";window.location.pathname.includes(ee.MyOwnFund)&&(t=ee.MyOwnFund),window.location.pathname.includes(ee.DefaultFund)&&(t=ee.DefaultFund),window.location.pathname.includes(ee.SelfManagedFund)&&(t=ee.SelfManagedFund),this.currentCustomFund=se.find((e=>e.value===t))||se[0],te.navigateInternally(this.history,t)}render(){return e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("p",{class:"font-weight-bold text-center"},"Choose your Super"),e("div",{class:"mb-4"},e("select",{class:"form-control",required:!0,onChange:t=>{this.handleChange(t.target.value.trim())}},this.fundOptionsList.map((t=>e("option",{value:t.value,selected:this.currentCustomFund.value===t.value},t.label))))),e("slot",null))))}handleChange(t){const e=se.find((e=>e.value===t))||{value:ee.MyOwnFund};te.navigateInternally(this.history,e.value)}static get assetsDirs(){return["assets"]}};V(ae);const ce=new class{searchFundsAsync(t,e){return Gt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:e})}async getFundByUsiAsync(t){const e=await Gt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===e.length?Et.some(e[0]):Et.none}};class ue{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Jt().url("analytics-events").post(t).res()}}class le{constructor(){this.eventTrackingApi=ue.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}const fe={items:[]},de=new class{constructor(){const{state:t}=qt(fe);this._state=t}get state(){return this._state}closeCurrent(){const t=[...this._state.items];t.shift(),this._state.items=t}clearNotifications(){this._state.items=[]}showErrorNotification(t,e){this.pushNotification(t,null!=e?e:0,"danger")}showInfoNotification(t,e){this.pushNotification(t,null!=e?e:0,"info")}showWarningNotification(t,e){this.pushNotification(t,null!=e?e:0,"warning")}showSuccessNotification(t,e){this.pushNotification(t,null!=e?e:0,"success")}pushNotification(t,e,n){const i=[...this._state.items];i.push({details:t,type:n,priority:e}),this._state.items=i.sort(((t,e)=>e.priority-t.priority))}},he=new class{async submitDefaultFundChoiceAsync(t){return Jt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Jt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Jt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}},pe=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=le.Instance}async componentWillLoad(){const t=Zt.defaultFundUsi;if(Et.isNone(t))return;this.isDefaultFundExists=!0;const e=await ce.getFundByUsiAsync(t.value);if(Et.isNone(e))return this.isInvalidDefaultFund=!0,void de.showErrorNotification({title:"Something is not right",description:`Couldn't find information about the configured default fund (USI ${t.value})`});this.defaultFund=e.value,this.defaultFundProductName=e.value.productName}componentDidLoad(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},this.isDefaultFundExists?e((t=>[e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Default Fund"),e("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),e("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),e("p",null,t.defaultFundName)),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.defaultFundForm=Object.assign(Object.assign({},oe.defaultFundForm),t.detail)}})]),{defaultFundName:this.defaultFundProductName}):e((()=>e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"No Default Fund"),e("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))),null)),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,disabled:this.isInvalidDefaultFund,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||(this.formState="validated",this.formElement.checkValidity()&&(await he.submitDefaultFundChoiceAsync(oe.defaultFundForm),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)))}},me=class{constructor(e){t(this,e)}render(){return e("div",{class:"container mb-sm-0"},e("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},e("div",{class:"text-decoration-none"},e("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare HR"))),e("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},e("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare HR do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare HR do not express any opinion or make any recommendation about any of the advertised funds.")),e("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))}appVersionBadge(){return e("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v","3.35.55455")}};me.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";const ve=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},e("h5",null,"Loading your superannuation step"),e("fl-loading-indicator",null))}},be=class{constructor(e){t(this,e),this.isNotAllInformationProvidedMessageVisible=!1,this.eventTrackingService=le.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Fund details"),e("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),e("sss-my-own-fund-inputs",{myOwnFundForm:oe.myOwnFundForm,onFormChanged:t=>{oe.myOwnFundForm=Object.assign(Object.assign({},oe.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}})),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.myOwnFundForm=Object.assign(Object.assign({},oe.myOwnFundForm),{standardChoiceFormSignature:z(t.detail.standardChoiceFormSignature)})}})),e("div",{class:"mt-4"},e("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&e("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}async handleSubmitForm(){if(this.formState="validated",!this.formElement.checkValidity())return;if(!(D(oe.myOwnFundForm.fundUsi)&&D(oe.myOwnFundForm.memberNumber)&&D(oe.myOwnFundForm.standardChoiceFormSignature)))return void(this.isNotAllInformationProvidedMessageVisible=!0);const t={fundUsi:this.getOrError(oe.myOwnFundForm.fundUsi),memberNumber:this.getOrError(oe.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(oe.myOwnFundForm.standardChoiceFormSignature)};await he.submitCustomFundChoiceAsync(t),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)}getOrError(t){return jt.pipe(t,(e=()=>{throw new Error("Option value is none.")},function(t){return O(t)?e():t.value}));var e}static get assetsDirs(){return["assets"]}};V(be);const ge=class{constructor(e){t(this,e),this.formChanged=n(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await ce.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,e)=>t.productName.localeCompare(e.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return e("div",null,e("div",{class:""},e("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),e("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:`Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`,value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFundUsi(t.detail.value.toString())}}),e("div",{class:"invalid-feedback"},"Select a fund"),D(this.myOwnFundForm.fundUsi)&&e("div",null,e("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),e("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),e("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Member Number"),e("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:(t=oe.myOwnFundForm.memberNumber,O(t)?void 0:t.value),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")));var t}updateFundUsi(t){this.formChanged.emit({fundUsi:L(t)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:L(t)})}},we=class{constructor(e){t(this,e)}disconnectedCallback(){de.clearNotifications()}render(){const{items:t}=de.state;return t.length<=0?e(o,null):e("div",{class:"alert alert-"+t[0].type,role:"alert"},e("div",{class:"d-flex"},e("p",{class:"mb-0 flex-grow-1"},e("strong",null,t[0].details.title)),e("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},e("span",{"aria-hidden":"true"},"×"))),e("p",{class:"mb-0 mt-1"},t[0].details.description))}handleClose(){de.closeCurrent()}},{state:ye}=qt({fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""}),xe=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/promoted-fund-redirect.html",i=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Zt.partnerIdOrDefault,accountId:Zt.accountIdOrDefault,fundId:ye.fundId,successRedirectUrl:n,cancelRedirectUrl:n,authToken:Zt.jwt}),r=n=>{const{data:i}=n;if(i)if("promoted-fund-redirect"!==i.sender){if("promoted-fund-join"===i.sender)switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),kt(window.location.href)}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){ye.memberNumber=i.memberNumber,ye.usi=i.usi,te.navigateInternally(e,ee.PromotedFundStandardChoice);break}default:te.navigateInternally(e,ee.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,s.append(e)}}o.appendChild(s),o.close(),s.submit()}getMemberData(){var t,e;const n=Zt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},ke=class{constructor(e){t(this,e)}componentDidLoad(){xe.build(this.iframeElement,this.history)}render(){return e(o,{class:"d-flex flex-fill"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},Se=new class{async submitChoiceAsync(t){return Jt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},Ce=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("div",null,e("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{ye.standardChoiceFormSignature=t.detail.standardChoiceFormSignature}})),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(Se.submitChoiceAsync(Object.assign({},ye)),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success))}},_e="60905115063001",Ae="https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements",qe="https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Be="https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",je="https://aware.com.au/member/forms-and-resources/pds",Ee=[{dtoPropName:"qSuper",id:"qsuper"},{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"}],Ie=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}render(){return e("div",{class:"d-flex align-items-center justify-content-center"},e("p",{class:"confirm-title font-weight-bold text-center"},"You are now applying for a"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds1.pdf")},"QSuper Accumulation Account"),". Read the"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"PDS")," ","here."))}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Insurance Opt In"})}static get assetsDirs(){return["assets"]}};var Fe,Pe;Ie.style="",function(t){t[t.InsuranceConfirm=0]="InsuranceConfirm",t[t.InsuranceQuestions=1]="InsuranceQuestions",t[t.AccumulationAccount=2]="AccumulationAccount",t[t.ConfirmSelection=3]="ConfirmSelection"}(Fe||(Fe={})),function(t){t[t.question1=0]="question1",t[t.question2=1]="question2",t[t.question3=2]="question3",t[t.question4=3]="question4",t[t.question5=4]="question5",t[t.question6=5]="question6",t[t.question7=6]="question7",t[t.question8=7]="question8"}(Pe||(Pe={}));const Re={currentQSuperInsuranceQuestion:Pe.question1,currentQSuperFormPage:Fe.InsuranceConfirm,qSuperFormValid:!1,nextRoute:"/",continueAllowed:!1,qSuperOptInPageCheckbox:!1,qSuperJoinPageCheckbox:!1,qSuperInsuranceQuestions:{question1:{answered:!1},question2:{answered:!1},question3:{answered:!1},question4:{answered:!1},question5:{answered:!1},question6:{answered:!1},question7:{answered:!1},question8:{answered:!1}},qSuperQuestionnaire:{reviewedApplication:!1,acceptedDeclaration:!1,readDutyOfDisclosure:!1,insuranceChosen:!1},standardChoiceFormSignature:""},{state:Me,reset:Te}=qt(Re),Ne=Te;function De(){var t,e,n,i;const r=window.location.pathname.split(Zt.appBaseUrl)[1],o={[ee.QSuperOptIn]:ee.QSuperQuestion1,[ee.QSuperQuestion1]:Me.qSuperInsuranceQuestions.question1.answered?!0===(null===(t=Me.qSuperQuestionnaire.questions)||void 0===t?void 0:t.question1)?ee.QSuperQuestion4:ee.QSuperQuestion2:ee.QSuperQuestion1,[ee.QSuperQuestion2]:Me.qSuperInsuranceQuestions.question2.answered?!0===(null===(e=Me.qSuperQuestionnaire.questions)||void 0===e?void 0:e.question2)?ee.QSuperQuestion4:ee.QSuperQuestion3:ee.QSuperQuestion2,[ee.QSuperQuestion3]:Me.qSuperInsuranceQuestions.question3.answered?ee.QSuperQuestion4:ee.QSuperQuestion3,[ee.QSuperQuestion4]:Me.qSuperInsuranceQuestions.question4.answered?ee.QSuperQuestion5:ee.QSuperQuestion4,[ee.QSuperQuestion5]:Me.qSuperInsuranceQuestions.question5.answered?ee.QSuperQuestion6:ee.QSuperQuestion5,[ee.QSuperQuestion6]:Me.qSuperInsuranceQuestions.question6.answered?ee.QSuperQuestion7:ee.QSuperQuestion6,[ee.QSuperQuestion7]:Me.qSuperInsuranceQuestions.question7.answered?ee.QSuperQuestion8:ee.QSuperQuestion7,[ee.QSuperQuestion8]:Me.qSuperInsuranceQuestions.question8.answered?ee.QSuperConsent:ee.QSuperQuestion8,[ee.QSuperConsent]:Me.qSuperQuestionnaire.readDutyOfDisclosure&&Me.qSuperQuestionnaire.reviewedApplication?ee.QSuperJoin:ee.QSuperConsent,[ee.QSuperJoin]:Me.qSuperJoinPageCheckbox?ee.Success:ee.QSuperJoin};return r===ee.QSuperQuestion5?Me.qSuperInsuranceQuestions.question1.answered&&Me.qSuperInsuranceQuestions.question2.answered&&Me.qSuperInsuranceQuestions.question3.answered&&Me.qSuperInsuranceQuestions.question4.answered&&Me.qSuperInsuranceQuestions.question5.answered&&(!0===(null===(n=Me.qSuperQuestionnaire.questions)||void 0===n?void 0:n.question3)||!0===(null===(i=Me.qSuperQuestionnaire.questions)||void 0===i?void 0:i.question5))?ee.QSuperQuestion6:ee.QSuperConsent:r===ee.QSuperOptIn?Me.qSuperOptInPageCheckbox?Me.qSuperQuestionnaire.insuranceChosen?ee.QSuperQuestion1:ee.QSuperConsent:r:o[r]}const Oe=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}async componentDidLoad(){window.scroll(0,0),Me.currentQSuperFormPage=Fe.AccumulationAccount}render(){return e("sss-qsuper-layout",null,e("div",{class:"d-flex align-items-center justify-content-center"},e("p",{class:"confirm-title font-weight-bold text-center"},"Your QSuper Accumulation Account")),e("div",{class:"p-3 d-flex mt-4 checkbox-container"},e("p",null,"Just finally, we need you to confirm that you understand the declarations below and the product you've applied for by ticking the box below.",e("br",null),e("br",null),"This form and all products are issued by the QSuper Board (ABN 32 125 059 006 AFSL 489650) as trustee for QSuper (ABN 60 905 115 063).",e("br",null),e("br",null),"I have read and agree to the terms and conditions in the QSuper"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"Product Disclosure Statement for Accumulation and Income Accounts"),", QSuper's"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf")},"Your Privacy factsheet"),", and the"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf")},"Financial Services Guide"),".",e("br",null),e("br",null),"I understand that any insurance cover I might have as a result of this application, commences when the first contribution is received into my account. Once I am a member I can cancel, or, subject to eligibility conditions, vary, my cover at any time. Premiums are deducted in accordance with the PDS.",e("br",null),e("br",null),"I also agree to be bound by the Trust Deed and the governing rules of QSuper in relation to the operation of my Accumulation account.",e("br",null),e("br",null),"I confirm that the information I have given is true and correct.",e("br",null),e("br",null),"I confirm that I am the person identified as the applicant in this form.",e("br",null),e("br",null),"I consent to the QSuper Board paying Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, a fee of $300 on receipt of the first contribution into my account, for the provision of technology services.",e("br",null),e("br",null),"I understand that I will be placed into the default investment option QSuper Lifetime.",e("br",null),e("br",null),"I understand that my Tax File Number will be provided to QSuper. NB - if you have your Tax File Number available, this will help speed up the processing of this application and we may be able to Find your Super.",e("br",null),e("br",null),"I have read and accept the"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/misc/tfn")},"Privacy and Contact Information Statement"))),e("div",null,e("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackAllCheckBox"},e("div",{class:"w-auto px-2 fl-checkbox-container"},e("input",{id:"ackAllCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0 mt-1"},"I acknowledge all of the above. ",e("i",null,"(required)"))))))}handleCheckboxToggle(){Me.qSuperQuestionnaire.readDutyOfDisclosure=!Me.qSuperQuestionnaire.readDutyOfDisclosure,Me.qSuperQuestionnaire.reviewedApplication=!Me.qSuperQuestionnaire.reviewedApplication,Me.continueAllowed=!Me.continueAllowed,Me.nextRoute=De()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Accumulation Page"})}};function Ue(){const t=window.location.pathname.split(Zt.appBaseUrl)[1];Me.continueAllowed={[ee.QSuperOptIn]:Me.qSuperOptInPageCheckbox,[ee.QSuperJoin]:Me.qSuperJoinPageCheckbox&&Me.standardChoiceFormSignature}[t]}function Le(){Ne(),Me.qSuperQuestionnaire=Object.assign(Object.assign({},Me.qSuperQuestionnaire),{acceptedDeclaration:!1,insuranceChosen:!1,readDutyOfDisclosure:!1,reviewedApplication:!1}),Me.qSuperInsuranceQuestions={question1:{answered:!1},question2:{answered:!1},question3:{answered:!1},question4:{answered:!1},question5:{answered:!1},question6:{answered:!1},question7:{answered:!1},question8:{answered:!1}}}Oe.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const ze=class{constructor(e){t(this,e),this.insuranceChosen=!1,this.eventTrackingService=le.Instance,this.isEligibleForInsurance=!1}componentDidLoad(){return this.eventTrackingService.TrackFinancialProductViewedAsync({fundUsi:_e,fundName:"QSuper",financialProduct:"QSuper Insurance"})}componentWillLoad(){Le(),this.ensureInsuranceEligibility()}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-layout",{class:"d-flex flex-fill"},e("sss-qsuper-confirm-header",null),e("div",{class:"mt-4 p-3 checkbox-container"},e("p",null,"As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",e("br",null),e("br",null),"You will receive this cover when: ",e("br",null),e("br",null),"You are 25 years or older; ",e("br",null),"and You have had at least $6,000 in your accumulation account; ",e("br",null),"and At that time, we have received money into your account within the previous 13 months ",e("br",null),e("br",null),"Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",e("br",null),e("br",null),"Do you want this insurance cover?"),e("div",{class:"d-flex justify-content-between mt-4"},e("div",{class:"button-holder flex-grow-1 mr-2"},e("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:!0,variant:this.insuranceChosen?"primary":"secondary",onClick:()=>this.handleInsuranceToggle(!0)},"Yes")),e("div",{class:"button-holder flex-grow-1 ml-2"},e("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:!0,variant:this.insuranceChosen?"secondary":"primary",onClick:()=>this.handleInsuranceToggle(!1)},"No")))),e("div",null,e("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackCheckBox"},e("div",{class:"w-auto px-2 fl-checkbox-container"},e("input",{id:"ackCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0"},"I acknowledge that my personal information will be shared with QSuper as part of their application process."))))))}ensureInsuranceEligibility(){Zt.superBuyer.userProfile.yearsOfAge<14||(Zt.superBuyer.userProfile.yearsOfAge<16?this.showIneligibleNotification("You may still apply for QSuper, however people under the age of 16 are not able to apply for insurance."):this.isEligibleForInsurance=!0)}showIneligibleNotification(t){de.showInfoNotification({title:"Unable to apply for Insurance",description:t})}handleInsuranceToggle(t){Me.qSuperQuestionnaire.insuranceChosen=t&&this.isEligibleForInsurance,this.insuranceChosen=Me.qSuperQuestionnaire.insuranceChosen,Me.nextRoute=De()}handleCheckboxToggle(){Me.qSuperOptInPageCheckbox=!Me.qSuperOptInPageCheckbox,Ue(),Me.nextRoute=De()}};ze.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const He=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-layout",{class:"d-flex flex-fill"},e("sss-qsuper-confirm-header",null),e("div",{class:"p-3 mt-4 checkbox-container"},e("slot",null),e("sss-qsuper-question-yes-no-buttons",null))))}};He.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const Ve=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}render(){return e("sss-qsuper-layout",null,e("img",{class:"ss-choice-logo mx-auto",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-qsuper.png")}),e("div",{class:"row"},e("div",{class:"col text-center"},e("p",{class:"confirm-title font-weight-bold mb-0"},"You have chosen to join QSuper"))),e("div",{class:"my-3 card p-3"},e("p",{class:"confirm-text"},"We are almost there... All you have to do now is sign the super choice form. We'll prefill it for you. Make sure the info is correct. Your application to join the fund is subject to Trustee approval."),e("p",{class:"confirm-text mb-0"},"You've chosen to stay with your existing fund. Review the details below and click continue to confirm your choice")),e("div",{class:"card p-3"},e("p",{class:"text-center"},"100 years strong"),e("p",{class:"text-center"},"One of Australia's largest funds"),e("p",{class:"text-center mb-0"},"Awarded SuperRatings highest performance rating")),e("div",{class:"mt-3"},e("p",{class:"text-center confirm-text"},"Your application to join the fund is subject to Trustee approval.")),e("div",null,e("label",{class:"d-flex mt-4 p-3 checkbox-container",htmlFor:"confirmCheckBox"},e("div",{class:"w-auto px-2 py-2 fl-checkbox-container"},e("input",{id:"confirmCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0 mt-1"},"I've read and understood the"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/")},"PDS")," ","and confirm all information I have provided is true and correct. I understand that my information will be sent to the trustee of this fund to process my request to join and I consent to my TFN, as currently held on the Flare HR Platform, being given to the trustee in order to open and administer my account.")))),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{Me.standardChoiceFormSignature=t.detail.standardChoiceFormSignature,Ue()}}))}handleCheckboxToggle(){Me.qSuperJoinPageCheckbox=!Me.qSuperJoinPageCheckbox,Ue(),Me.nextRoute=De()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Confirm Page"})}};Ve.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const Qe=new class{async submitQSuperChoiceAsync(t){return Jt().url("super-choice/qsuper").post(t).badRequest((()=>{throw new Error("Failed to process QSuper join request")})).text()}},We=class{constructor(e){t(this,e),this.isEligible=!1,this.canContinue=()=>this.isEligible&&Me.continueAllowed,this.ensureEligibility=()=>{Zt.superBuyer.userProfile.yearsOfAge<14?this.showIneligibleNotification("People under the age of 14 are not able to open accounts."):Zt.superBuyer.userProfile.yearsOfAge>70?this.showIneligibleNotification("People over the age of 70 are not able to open accounts."):this.isEligible=!0},this.showIneligibleNotification=t=>{de.showInfoNotification({title:"Unable to apply for QSuper",description:t})}}async componentWillLoad(){this.ensureEligibility(),Me.nextRoute=De()}render(){return e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("slot",null),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,disabled:!this.canContinue(),promiseFn:()=>this.tryAsync()},e("span",null,"Continue"))))))))}async tryAsync(){try{if(!this.canContinue())return;await async function(){if(Me.continueAllowed)if(Me.continueAllowed=!1,Me.currentQSuperFormPage===Fe.InsuranceConfirm&&Me.qSuperQuestionnaire.insuranceChosen)Me.currentQSuperFormPage=Fe.InsuranceQuestions;else if(Me.currentQSuperFormPage!==Fe.InsuranceConfirm||Me.qSuperQuestionnaire.insuranceChosen)if(Me.currentQSuperFormPage!==Fe.InsuranceQuestions){if(Me.currentQSuperFormPage===Fe.AccumulationAccount)return Me.qSuperFormValid=!1,void(Me.currentQSuperFormPage=Fe.ConfirmSelection);if(Me.currentQSuperFormPage===Fe.ConfirmSelection){Me.qSuperQuestionnaire.acceptedDeclaration=!0;const t={questionnaire:Me.qSuperQuestionnaire,standardChoiceFormSignature:Me.standardChoiceFormSignature};await Qe.submitQSuperChoiceAsync(t),Zt.markSuperSelectionAsSubmitted()}}else Me.currentQSuperFormPage=Fe.AccumulationAccount;else Me.currentQSuperFormPage=Fe.AccumulationAccount}(),te.navigateInternally(this.history,Me.nextRoute)}catch(t){de.showErrorNotification({title:"Couldn't process your request",description:"We had an issue processing your request to join QSuper. Please try again shortly."}),Me.continueAllowed=!0}}static get assetsDirs(){return["assets"]}};V(We);const $e=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 1"),e("p",{class:" mb-0"},"Are you currently a registered or enrolled nurse or assistant in nursing who is qualified and currently practicing, or working in the retail sector, or food and beverage service?")))}},Ye=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 2"),e("p",{class:" mb-0"},"Are you currently a qualified tradesperson currently working within your area of expertise (e.g. hairdresser, chef, plumber, electrician, plasterer, carpenter or concreter), or a skilled worker with light manual duties (e.g. jeweller, building inspector, laboratory technician, foreman or office equipment technician)?")))}},Xe=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 3"),e("p",{class:" mb-0"},"Are you currently a police officer, firefighter, paramedic, or other emergency or protective services worker, including security guard or corrections officer, or a professional sportsperson, or working in a manual occupation which does not require trade specific qualifications and may be subject to accident or environment hazards (e.g. earthmover, driver, cleaner, labourer, factory worker or agricultural worker)?")))}},Je=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 4"),e("p",{class:" mb-0"},"Are the usual work activities of your job considered office based or school teaching ( meaning you spend at least 80% of your work time doing clerical, call centre, administrative or other office or classroom based activities), or are you a medical practitioner, lawyer or engineer who spends at least 80% of your work hours in an office or clinical environment?")))}},Ge=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 5"),e("p",{class:" mb-0"},"Do you currently perform, or intend to work in a job within the next three months that includes, any of the following risky activities: handling firearms (other than as a police officer, correctional officer or licensed security guard), dangerous chemicals or explosives, or offshore work – oil and gas platforms, ships at sea, or being underground (in construction and mining environments) or underwater for more than 20% of total at work time, or working at heights over 20 metres in any environment requiring hard hat and harness for safety by law, or crop dusting, aerial mustering or any low level flying activity (defined as below 150 metres or 500 feet), or flying more than 200 hours per annum as a passenger other than on a commercial airline, or as a pilot (fixed wing or helicopter)?")))}},Ke=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 6"),e("p",{class:" mb-0"},"Are you earning more than $120,000 a year, (before tax and employer paid superannuation), from your job?")))}},Ze=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 7"),e("p",{class:" mb-0"},"Do you have a university qualification which you are using/is required in your current role?")))}},tn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 8"),e("p",{class:" mb-0"},"Do you have a senior/executive level management role in your company (your direct reports would be mid-level managers or skilled specialists in a sedentary setting), or is your role considered professional (e.g. doctor, solicitor, accountant – requiring membership of a professional or government body to practice in your occupation)?")))}},en=class{constructor(e){t(this,e)}render(){return e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>this.handleQuestionClick(!0),isBlockElement:!0,variant:"secondary"},e("span",null,"Yes")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,variant:"secondary",onClick:()=>this.handleQuestionClick(!1)},e("span",null,"No")))))}handleQuestionClick(t){const e=window.location.pathname.split(Zt.appBaseUrl+"/qsuper/insurance/")[1].replace(/\/+$/,"");void 0===Me.qSuperQuestionnaire.questions&&(Me.qSuperQuestionnaire.questions={question1:!1,question2:!1,question3:!1,question4:!1,question5:!1,question6:!1,question7:!1,question8:!1}),Me.qSuperQuestionnaire.questions[e]=t,Me.qSuperInsuranceQuestions[e].answered=!0,Me.nextRoute=De(),te.navigateInternally(this.history,Me.nextRoute)}};V(en);const nn=class{constructor(e){t(this,e)}render(){return e(o,{class:"bg-white rounded-sm picked-box-border p-3"},e("div",{class:"d-flex"},e("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),e("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),e("div",null,this.fundName))}};nn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";const rn=class{constructor(e){t(this,e),this.showSmsfNotSupported=!1,this.eventTrackingService=le.Instance,this.success=()=>{Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)}}componentDidLoad(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Fund details"),e("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),e("sss-self-managed-fund-inputs",{fundForm:oe.selfManagedFundForm,onFormChanged:t=>{oe.selfManagedFundForm=Object.assign(Object.assign({},oe.selfManagedFundForm),t.detail)}})),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.selfManagedFundForm=Object.assign(Object.assign({},oe.selfManagedFundForm),t.detail)}}),this.showSmsfNotSupported&&e("sss-smsf-not-supported-dialog",{ref:t=>this.notSupportedDialog=t,onContinue:this.success})),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}componentDidRender(){var t;this.showSmsfNotSupported&&(null===(t=this.notSupportedDialog)||void 0===t||t.scrollIntoView())}async handleSubmitForm(){if(this.formState="validated",this.formElement.checkValidity()){const t={smsfChoice:{abn:oe.selfManagedFundForm.fundAbn,fundName:oe.selfManagedFundForm.fundName,fundAddress:{addressLine1:oe.selfManagedFundForm.addressLine1,addressLine2:oe.selfManagedFundForm.addressLine2,city:oe.selfManagedFundForm.city,state:oe.selfManagedFundForm.state,postcode:oe.selfManagedFundForm.postcode},bsb:oe.selfManagedFundForm.bsb,bankAccountName:oe.selfManagedFundForm.bankAccountName,bankAccountNumber:oe.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:oe.selfManagedFundForm.fundEsa},standardChoiceFormSignature:oe.selfManagedFundForm.standardChoiceFormSignature};await he.submitSelfManagedFundChoiceAsync(t),Zt.showSmsfNotSupported?this.showSmsfNotSupported=!0:this.success()}}};V(rn);const on={"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"},sn=class{constructor(e){t(this,e),this.formChanged=n(this,"formChanged",7),this.currentBank=U,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){return e("div",null,e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Fund name *"),e("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundName",id:"fundName",value:oe.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund name")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),e("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:oe.selfManagedFundForm.fundAbn,onChange:t=>this.updateFormField("fundAbn",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),e("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:oe.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),e("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:oe.selfManagedFundForm.addressLine1,onChange:t=>this.updateFormField("addressLine1",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid address")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),e("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:oe.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid address")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),e("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:!0,id:"city",value:oe.selfManagedFundForm.city,onChange:t=>this.updateFormField("city",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),e("div",{class:"mt-3"},e("label",{class:"mb-2 font-weight-bold"},"State *"),e("select",{class:"form-control",name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim())}},e("option",{disabled:!0,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((t=>e("option",{value:t.value,selected:this.fundForm.state===t.value},t.label)))),e("div",{class:"invalid-feedback"},"Select a state")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Post code *"),e("input",{placeholder:"Enter your post code",type:"text",required:!0,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:oe.selfManagedFundForm.postcode,onChange:t=>this.updateFormField("postcode",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid post code")),e("div",null,e("i",{class:"fas fa-check-circle"})),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"BSB *"),e("input",{placeholder:"Enter your BSB",type:"text",required:!0,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:oe.selfManagedFundForm.bsb}),D(this.currentBank)&&e("p",{class:"mt-3"},e("strong",null,"Bank name"),e("br",null),e("span",{class:"ml-2"},this.currentBank.value)),e("div",{class:"invalid-feedback"},"Enter a valid BSB")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),e("input",{placeholder:"Enter your bank account name",type:"text",required:!0,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:oe.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid bank account name")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),e("input",{placeholder:"Enter your bank account number",type:"text",required:!0,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:oe.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid bank account number")))}updateFormField(t,e){this.formChanged.emit({[t]:e})}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const e=this.filterDigits(t.target.value),n=e.substring(0,2),i=e.substring(0,3),r=on[n],o=on[i];r&&(this.currentBank=L(r)),o&&(this.currentBank=L(o)),""===e&&(this.currentBank=U),this.updateFormField("bsb",e)}updateCurrentBankAccountNumber(t){const e=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",e)}};var an;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(an||(an={}));class cn{}let un=class extends g{constructor(){super({authenticationState:an.Unauthorized,jwt:U,reactNativeInterop:U,iframeInterop:U,appConfiguration:U})}};un=function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([b({name:"sss-session",resettable:!0})],un);const ln=new un,fn=new class extends w{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return D(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return D(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(O(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(ln),{state:dn}=qt({slateFundForm:{memberNumber:"",standardChoiceFormSignature:""}}),hn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>fn.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:n,cancelRedirectUrl:n,skipConsolidation:this.skipConsolidation(),skipInsurance:"true"});this.includeJwt()&&(i.authToken=Zt.jwt);const r=n=>{const{data:i,origin:o}=n;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&o.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){dn.slateFundForm.memberNumber=i.memberNumber,te.navigateInternally(e,ee.SlateStandardChoice);break}default:te.navigateInternally(e,ee.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,s.append(e)}}o.appendChild(s),o.close(),s.submit()}getSlateJoinMemberData(){var t,e;const n=Zt.superBuyer;return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},pn=class{constructor(e){t(this,e)}componentDidLoad(){hn.build(this.iframeElement,this.history)}render(){return e(o,{class:"d-flex flex-fill"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},mn=new class{async submitSlateChoiceAsync(t){return Jt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},vn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("sss-slatesuper-header",null),e("div",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{dn.slateFundForm=Object.assign(Object.assign({},dn.slateFundForm),t.detail)}})),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("stencil-route-link",{url:"/"},e("fl-button",{isBlockElement:!0,variant:"secondary"},e("span",null,"Back"))))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await mn.submitSlateChoiceAsync(dn.slateFundForm),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success))}},bn=class{constructor(e){t(this,e)}render(){return e("div",{class:"d-flex"},e("div",null,e("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),e("div",{class:"d-flex flex-column ml-3 align-items-left"},e("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),e("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))}static get assetsDirs(){return["assets"]}};bn.style="";const gn=class{constructor(e){t(this,e),this.continue=n(this,"continue",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.handleContinue=()=>{this.continue.emit()}}render(){return e(o,null,e("div",{class:"overlay"}),e("div",{class:"dialog"},e("div",{class:"card p-4 mt-4 bg-light text-center"},e("div",{style:{"text-align":"center"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},e("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),e("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",e("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),e("div",{class:"d-flex mt-4"},e("div",{class:"w-25"}),e("div",{class:"w-50"},e("fl-button",{onClick:this.handleContinue,isBlockElement:!0,variant:"primary"},e("span",null,"Continue")))))))}};gn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";const wn=class{constructor(e){t(this,e),this.standardChoiceFormSignatureUpdated=n(this,"standardChoiceFormSignatureUpdated",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.standardChoiceFormSignature=""}render(){return e("div",{class:"card p-4 mt-4 bg-light"},e("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),e("p",{class:"small mt-2"},"The superannuation"," ",e("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),e("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),e("input",{placeholder:"Type your full name",type:"text",class:"form-control",required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onKeyUp:t=>this.updateFormField(t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Type your full name"),e("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))}updateFormField(t){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:t})}},yn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container mt-5"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-9 col-md-6"},e("div",{class:"bg-light rounded p-4"},e("div",{class:"d-flex justify-content-center"},e("div",null,e("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),e("div",{class:"d-flex justify-content-center"},e("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),e("div",{class:"mt-2 text-center"},e("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),e("br",null),e("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",e("strong",null,"Continue")," below."))),e("div",{class:"flex-grow-1 mt-4"},e("fl-promise-button",{isBlockElement:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))))}handleContinueButtonClick(t){Zt.completeSuperSelectionFlow()}},xn=class{constructor(e){t(this,e),this.joinFundClicked=n(this,"joinFundClicked",7),this.eventTrackingService=le.Instance}render(){return e(o,{class:{"d-flex p-3 fund-item":!0,"ss-picked-fund":this.isSelected}},e("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&e("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),e("div",{class:"d-flex flex-fill flex-column align-items-center"},e("div",{class:"d-flex justify-content-end w-100"},e("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),e("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),e("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&e("span",{class:"text-muted small text-center font-italic"},this.subText),e("div",{class:"mt-3"},JSON.parse(this.features).map((t=>e("p",{class:"text-center"},t.value)))))),e("div",{class:"text-center bottom-half-fund-tile"},e("div",{class:"p-3"},e("fl-button",{class:"uuid-button-continue",isBlockElement:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),e("div",{class:"mb-2"},e("a",{target:"_blank",href:this.pdsLink,onClick:()=>this.pdsViewedAsync()},"View the PDS")),this.disclaimer,e("div",{class:"small text-muted"},this.abnInfo)))}handleFundClick(){return this.joinFundClicked.emit()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};xn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const kn=new class{async GetChosenFundAsync(){var t,e;const n=null===(t=Zt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!n)return U;if("promoted"in n){const t=Ee.find((t=>t.dtoPropName in n.promoted)),i=null!==(e=null==t?void 0:t.id)&&void 0!==e?e:"";return L({isPromoted:!0,promotedId:i})}if("smsf"in n)return L({isPromoted:!1,name:n.smsf.fundName,type:"Self Managed Fund"});if("myOwnFund"in n){const t=n.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return L({isPromoted:!1,name:D(e)?e.value.productName:t,type:"My Own Fund"})}if("default"in n){const t=n.default.usi,e=await this.getFundByUsiAsync(t);return L({isPromoted:!1,name:D(e)?e.value.productName:t,type:"Default Fund"})}return U}getFundByUsiAsync(t){return ce.getFundByUsiAsync(t)}},Sn=class{constructor(e){t(this,e),this.promotedFunds=this.getPromotedFunds(),this.chosenFund=U,this.eventTrackingService=le.Instance,this.isPromotedFundSelected=t=>D(this.chosenFund)&&this.chosenFund.value.isPromoted&&this.chosenFund.value.promotedId===t}componentDidLoad(){yt();const t=this.promotedFunds.map((t=>t.fundId));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t})}async componentWillLoad(){Le(),this.chosenFund=await kn.GetChosenFundAsync()}render(){return e(o,null,e("div",{class:"container mt-0 mb-0"},e("div",{class:"row justify-content-center"},e("div",{class:"col"},e("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),e("div",{class:"row justify-content-center"},e("div",{class:"col"},e("p",{class:"text-center font-weight-bold"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare HR is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),e("p",{class:"text-center"},"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare HR are making any recommendation or opinion."),e("p",{class:"text-center"},"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."))),e("div",{class:"row"},e("div",{class:"col"},e("sss-notifications-section",null))),e("div",{class:"row justify-content-center mt-4"},e("div",{class:"col col-sm-10 col-md-8 col-xl-7"},e("div",{class:"row"},e("div",{class:"col"},e("div",{class:"d-flex flex-fill"},D(this.chosenFund)&&!this.chosenFund.value.isPromoted&&e("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),e("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((t=>e("div",{class:"col-12 col-lg-6 d-flex"},e("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:this.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLink:te.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),disclaimer:t.disclaimer,abnInfo:t.abnInfo,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))),e("div",{class:"row mt-3 px-3"},e("div",{class:"col p-4 border rounded bg-light"},e("div",{class:"row"},e("div",{class:"col"},e("h5",{class:"font-weight-bold"},"Choose another super fund"),e("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),e("ul",{class:"ml-n3"},e("li",null,"If you are unsure of your current super fund details, you can find out at"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://my.gov.au")},"my.gov.au")),e("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au/register-of-superannuation-institutions"))))),e("div",{class:"row"},e("div",{class:"col"},e("stencil-route-link",{url:ee.MyOwnFund},e("fl-button",{isBlockElement:!0,variant:"primary",class:"d-lg-none"},"Choose another fund"),e("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},e("fl-button",{variant:"primary"},"Choose another fund"))))))))),e("div",{class:"row justify-content-center mt-5"},e("div",{class:"col"},e("p",{class:"text-center"},"You should be aware that, if you do choose one of these advertised funds, Flare HR and its associated entities will normally receive a fee for you doing so.")))))}allFunds(){return[{fundId:"slate",usi:"32367272075001",name:"Slate Super",logo:"logo-slate.png",route:ee.SlateJoin,pdsLink:qe,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(qe),onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited ABN: 49 006 421 638"},{fundId:"qsuper",usi:_e,name:"QSuper",logo:"logo-qsuper-square.png",route:ee.QSuperOptIn,pdsLink:Ae,features:[{order:1,value:"100 years strong"},{order:2,value:"One of Australia's largest funds"},{order:3,value:"Awarded SuperRatings highest performance rating"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(Ae),onClick:()=>this.pdsViewedAsync("QSuper",_e)},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"QSuper Board ABN: 32 125 059 006"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:ee.PromotedFundJoin,pdsLink:Be,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(Be),onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust ABN: 60 905 115 063"},{fundId:"aware",name:"Aware Super",logo:"logo-aware.svg",route:ee.PromotedFundJoin,pdsLink:je,features:[{order:1,value:"Lorem ipsum dolor sit amet"},{order:2,value:"Lorem ipsum dolor sit amet"},{order:3,value:"Lorem ipsum dolor sit amet"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(je),onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd ABN: 53 226 460 365"}]}getPromotedFunds(){const t=[];return Zt.promotedFunds.forEach((e=>{const n=this.allFunds().find((t=>e==t.fundId));void 0!==n&&t.push(n)})),t}async handleJoinSuperClickAsync(t){const e=Zt.promotedFunds;return"slate"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:"32367272075001",fundName:"Slate Super",promotedFundId:"slate",promotedFundsShown:e}):"qsuper"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:_e,fundName:"QSuper",promotedFundId:"qsuper",promotedFundsShown:e}):"australian-retirement-trust"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Australian Retirement Trust",promotedFundId:"australian-retirement-trust",promotedFundsShown:e}),ye.fundId=t.fundId):"aware"===t.fundId&&(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Aware Super",promotedFundId:"aware",promotedFundsShown:e}),ye.fundId=t.fundId),te.navigateInternally(this.history,t.route)}pdsViewedAsync(t,e){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:e,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Sn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const Cn=class{constructor(e){t(this,e),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const e=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!e)return this.previousMatch=this.match,this.match=lt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var e,n;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(n=this.previousMatch,null==(e=this.match)&&null==n||null!=n&&e&&n&&e.path===n.path&&e.url===n.url&&st(e.params,n.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?e(this.component,Object.assign({},t)):void 0}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};_.injectProps(Cn,["location","history","historyType","routeViewsUpdated"]),Cn.style="stencil-route.inactive{display:none}";const _n=(t,e,n)=>n(t.confirm(e)),An=(t,e)=>{const n=t[e],i="__storage_test__";try{return n.setItem(i,i),n.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},qn=class{constructor(e){t(this,e),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=lt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var e,n,i;if(!((e=t).metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(n=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+n:i+n))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),e(this.custom,Object.assign({},t),e("slot",null))}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};_.injectProps(qn,["history","location","root"]);const Bn=t=>"STENCIL-ROUTE"===t.tagName,jn=class{constructor(e){t(this,e),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=c(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let e=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(Bn).map(((n,i)=>{const r=lt(t.pathname,{path:n.url,exact:n.exact,strict:!0});return r&&-1===e&&(e=i),{el:n,match:r}})),-1===e)return;if(this.activeIndex===e)return void(this.subscribers[e].el.match=this.subscribers[e].match);this.activeIndex=e;const n=this.subscribers[this.activeIndex];this.scrollTopOffset&&(n.el.scrollTopOffset=this.scrollTopOffset),n.el.group=this.group,n.el.match=n.match,n.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,e)=>{if(t.el.componentUpdated=void 0,e===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return e("slot",null)}get el(){return a(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};_.injectProps(jn,["location","routeViewsUpdated"]);const En=(t,...e)=>{t||console.warn(...e)},In=()=>{let t,e=[];return{setPrompt:e=>(En(null==t,"A history supports only one prompt at a time"),t=e,()=>{t===e&&(t=null)}),confirmTransitionTo:(e,n,i,r)=>{if(null!=t){const o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof i?i(o,r):(En(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:t=>{let n=!0;const i=(...e)=>{n&&t(...e)};return e.push(i),()=>{n=!1,e=e.filter((t=>t!==i))}},notifyListeners:(...t)=>{e.forEach((e=>e(...t)))}}},Fn=(t,e="scrollPositions")=>{let n=new Map;const i=(e,i)=>{if(n.set(e,i),An(t,"sessionStorage")){const e=[];n.forEach(((t,n)=>{e.push([n,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(e))}};if(An(t,"sessionStorage")){const i=t.sessionStorage.getItem(e);n=i?new Map(JSON.parse(i)):n}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>n.get(t),has:t=>n.has(t),capture:e=>{i(e,[t.scrollX,t.scrollY])}}},Pn={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+et(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:et,decodePath:tt},slash:{encodePath:tt,decodePath:tt}},Rn=(t,e)=>{const n=0==t.pathname.indexOf(e)?"/"+t.pathname.slice(e.length):t.pathname;return Object.assign({},t,{pathname:n})},Mn={browser:(t,e={})=>{let n=!1;const i=t.history,r=t.location,o=t.navigator,s=(t=>{const e=t.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===o.userAgent.indexOf("Trident")),c=Fn(t),u=null!=e.forceRefresh&&e.forceRefresh,l=null!=e.getUserConfirmation?e.getUserConfirmation:_n,f=null!=e.keyLength?e.keyLength:6,d=e.basename?Z(tt(e.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:e,state:n}=t,{pathname:i,search:o,hash:s}=r;let a=i+o+s;return En(!d||G(a,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+d+'".'),d&&(a=K(a,d)),at(a,n,e||rt(f))},m=In(),v=t=>{c.capture(B.location.key),Object.assign(B,t),B.location.scrollPosition=c.get(B.location.key),B.length=i.length,m.notifyListeners(B.location,B.action)},b=t=>{((t,e)=>void 0===e.state&&-1===t.userAgent.indexOf("CriOS"))(o,t)||w(p(t.state))},g=()=>{w(p(h()))},w=t=>{if(n)n=!1,v();else{const e="POP";m.confirmTransitionTo(t,e,l,(n=>{n?v({action:e,location:t}):y(t)}))}},y=t=>{let e=k.indexOf(B.location.key),i=k.indexOf(t.key);-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,A(r))},x=p(h());let k=[x.key],S=0,C=!1;const _=t=>d+nt(t),A=t=>{i.go(t)},q=e=>{S+=e,1===S?(t.addEventListener("popstate",b),a&&t.addEventListener("hashchange",g)):0===S&&(t.removeEventListener("popstate",b),a&&t.removeEventListener("hashchange",g))},B={length:i.length,action:"POP",location:x,createHref:_,push:(t,e)=>{En(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const n="PUSH",o=at(t,e,rt(f),B.location);m.confirmTransitionTo(o,n,l,(t=>{if(!t)return;const e=_(o),{key:a,state:c}=o;if(s)if(i.pushState({key:a,state:c},"",e),u)r.href=e;else{const t=k.indexOf(B.location.key),e=k.slice(0,-1===t?0:t+1);e.push(o.key),k=e,v({action:n,location:o})}else En(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=e}))},replace:(t,e)=>{En(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const n="REPLACE",o=at(t,e,rt(f),B.location);m.confirmTransitionTo(o,n,l,(t=>{if(!t)return;const e=_(o),{key:a,state:c}=o;if(s)if(i.replaceState({key:a,state:c},"",e),u)r.replace(e);else{const t=k.indexOf(B.location.key);-1!==t&&(k[t]=o.key),v({action:n,location:o})}else En(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(e)}))},go:A,goBack:()=>A(-1),goForward:()=>A(1),block:(t="")=>{const e=m.setPrompt(t);return C||(q(1),C=!0),()=>(C&&(C=!1,q(-1)),e())},listen:t=>{const e=m.appendListener(t);return q(1),()=>{q(-1),e()}},win:t};return B},hash:(t,e={})=>{let n=!1,i=null,r=0,o=!1;const s=t.location,a=t.history,c=-1===t.navigator.userAgent.indexOf("Firefox"),u=null!=e.keyLength?e.keyLength:6,{getUserConfirmation:l=_n,hashType:f="slash"}=e,d=e.basename?Z(tt(e.basename)):"",{encodePath:h,decodePath:p}=Pn[f],m=()=>{const t=s.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},v=t=>{const e=s.href.indexOf("#");s.replace(s.href.slice(0,e>=0?e:0)+"#"+t)},b=()=>{let t=p(m());return En(!d||G(t,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+d+'".'),d&&(t=K(t,d)),at(t,void 0,rt(u))},g=In(),w=t=>{Object.assign(j,t),j.length=a.length,g.notifyListeners(j.location,j.action)},y=()=>{const t=m(),e=h(t);if(t!==e)v(e);else{const t=b(),e=j.location;if(!n&&(r=e).pathname===(o=t).pathname&&r.search===o.search&&r.hash===o.hash&&r.key===o.key&&st(r.state,o.state))return;if(i===nt(t))return;i=null,x(t)}var r,o},x=t=>{if(n)n=!1,w();else{const e="POP";g.confirmTransitionTo(t,e,l,(n=>{n?w({action:e,location:t}):k(t)}))}},k=t=>{let e=A.lastIndexOf(nt(j.location)),i=A.lastIndexOf(nt(t));-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,q(r))},S=m(),C=h(S);S!==C&&v(C);const _=b();let A=[nt(_)];const q=t=>{En(c,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},B=(t,e)=>{r+=e,1===r?t.addEventListener("hashchange",y):0===r&&t.removeEventListener("hashchange",y)},j={length:a.length,action:"POP",location:_,createHref:t=>"#"+h(d+nt(t)),push:(t,e)=>{En(void 0===e,"Hash history cannot push state; it is ignored");const n="PUSH",r=at(t,void 0,rt(u),j.location);g.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=nt(r),o=h(d+e);if(m()!==o){i=e,(t=>{s.hash=t})(o);const t=A.lastIndexOf(nt(j.location)),a=A.slice(0,-1===t?0:t+1);a.push(e),A=a,w({action:n,location:r})}else En(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}))},replace:(t,e)=>{En(void 0===e,"Hash history cannot replace state; it is ignored");const n="REPLACE",r=at(t,void 0,rt(u),j.location);g.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=nt(r),o=h(d+e);m()!==o&&(i=e,v(o));const s=A.indexOf(nt(j.location));-1!==s&&(A[s]=e),w({action:n,location:r})}))},go:q,goBack:()=>q(-1),goForward:()=>q(1),block:(e="")=>{const n=g.setPrompt(e);return o||(B(t,1),o=!0),()=>(o&&(o=!1,B(t,-1)),n())},listen:e=>{const n=g.appendListener(e);return B(t,1),()=>{B(t,-1),n()}},win:t};return j}},Tn=class{constructor(e){t(this,e),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const e=this.history.win.document.getElementById(t.scrollToId);if(e)return e.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=c(this,"isServer"),this.queue=c(this,"queue")}componentWillLoad(){this.history=Mn[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=Rn(t,this.root),this.location=t})),this.location=Rn(this.history.location,this.root)}scrollTo(t){const e=this.history;if(null!=t&&!this.isServer&&e)return"POP"===e.action&&Array.isArray(e.location.scrollPosition)?this.queue.write((()=>{e&&e.location&&Array.isArray(e.location.scrollPosition)&&e.win.scrollTo(e.location.scrollPosition[0],e.location.scrollPosition[1])})):this.queue.write((()=>{e.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return e(_.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},e("slot",null))}get el(){return a(this)}},Nn=class{constructor(e){t(this,e),this.stepSubmitSuccess=n(this,"step-completion",7),this.successPageAcknowledged=n(this,"successPageAcknowledged",5),this.initialised=n(this,"initialised",7),this.isAppInitialised=!1}async componentWillLoad(){const t=Et.fromNullable(this.accessToken);if(Et.isNone(t))throw Error("jwt property is missing.");Zt.state.jwt=t;const e=Et.fromNullable(this.backendUrl);if(Et.isNone(e))throw Error("apiBaseUrl property is missing.");Zt.state.apiBaseUrl=Et.some(e.value.replace(/\/$/,"")+"/");const n=Et.fromNullable(this.appBaseUrl);if(Et.isNone(n))throw Error("appBaseUrl property is missing.");Zt.state.appBaseUrl=Et.some(n.value.replace(/\/$/,"")),Zt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),Zt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),Zt.state.hasSuperSelectionBeenSubmitted=!1)}))}async componentDidLoad(){Le(),await Zt.loadAppStateAsync(),this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:Zt.accountIdOrDefault,partnerIdOrDefault:Zt.partnerIdOrDefault,profileId:Zt.profileId})}authTokenChanged(t){Zt.state.jwt=Et.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return e(o,{class:"d-flex justify-content-center flex-grow-1"},e("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return e("stencil-router",{root:this.routerBaseUrl()},e("stencil-route-switch",{scrollTopOffset:0},e("div",{class:"d-flex flex-column"},e("div",{class:"d-flex justify-content-center"},this.isAppInitialised?ne:e("fl-loading-indicator",{class:"mt-5"})),e("div",{class:"d-flex justify-content-center"},e("sss-footer-section",null)))))}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};V(Nn),Nn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var Dn,On=[],Un="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Dn||(Dn={}));var Ln,zn=function(t){return Object.freeze(t)},Hn=function(t,e){this.inlineSize=t,this.blockSize=e,zn(this)},Vn=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zn(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Qn=function(t){return t instanceof SVGElement&&"getBBox"in t},Wn=function(t){if(Qn(t)){var e=t.getBBox();return!e.width&&!e.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},$n=function(t){var e,n,i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},Yn="undefined"!=typeof window?window:{},Xn=new WeakMap,Jn=/auto|scroll/,Gn=/^tb|vertical/,Kn=/msie|trident/i.test(Yn.navigator&&Yn.navigator.userAgent),Zn=function(t){return parseFloat(t||"0")},ti=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new Hn((n?e:t)||0,(n?t:e)||0)},ei=zn({devicePixelContentBoxSize:ti(),borderBoxSize:ti(),contentBoxSize:ti(),contentRect:new Vn(0,0,0,0)}),ni=function(t,e){if(void 0===e&&(e=!1),Xn.has(t)&&!e)return Xn.get(t);if(Wn(t))return Xn.set(t,ei),ei;var n=getComputedStyle(t),i=Qn(t)&&t.ownerSVGElement&&t.getBBox(),r=!Kn&&"border-box"===n.boxSizing,o=Gn.test(n.writingMode||""),s=!i&&Jn.test(n.overflowY||""),a=!i&&Jn.test(n.overflowX||""),c=i?0:Zn(n.paddingTop),u=i?0:Zn(n.paddingRight),l=i?0:Zn(n.paddingBottom),f=i?0:Zn(n.paddingLeft),d=i?0:Zn(n.borderTopWidth),h=i?0:Zn(n.borderRightWidth),p=i?0:Zn(n.borderBottomWidth),m=f+u,v=c+l,b=(i?0:Zn(n.borderLeftWidth))+h,g=d+p,w=a?t.offsetHeight-g-t.clientHeight:0,y=s?t.offsetWidth-b-t.clientWidth:0,x=r?m+b:0,k=r?v+g:0,S=i?i.width:Zn(n.width)-x-y,C=i?i.height:Zn(n.height)-k-w,_=S+m+y+b,A=C+v+w+g,q=zn({devicePixelContentBoxSize:ti(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:ti(_,A,o),contentBoxSize:ti(S,C,o),contentRect:new Vn(f,c,S,C)});return Xn.set(t,q),q},ii=function(t,e,n){var i=ni(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Dn.DEVICE_PIXEL_CONTENT_BOX:return s;case Dn.BORDER_BOX:return r;default:return o}},ri=function(t){var e=ni(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=zn([e.borderBoxSize]),this.contentBoxSize=zn([e.contentBoxSize]),this.devicePixelContentBoxSize=zn([e.devicePixelContentBoxSize])},oi=function(t){if(Wn(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},si=function(){var t=1/0,e=[];On.forEach((function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach((function(e){var n=new ri(e.target),r=oi(e.target);i.push(n),e.lastReportedSize=ii(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},ai=function(t){On.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(oi(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},ci=[],ui=0,li={attributes:!0,characterData:!0,childList:!0,subtree:!0},fi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],di=function(t){return void 0===t&&(t=0),Date.now()+t},hi=!1,pi=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!hi){hi=!0;var n,i=di(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(ai(e);On.some((function(t){return t.activeTargets.length>0}));)e=si(),ai(e);return On.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Un}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Un),window.dispatchEvent(t)),e>0}()}finally{if(hi=!1,t=i-di(),!ui)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!Ln){var e=0,n=document.createTextNode("");new MutationObserver((function(){return ci.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),Ln=function(){n.textContent=""+(e?e--:e++)}}ci.push(t),Ln()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,li)};document.body?e():Yn.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),fi.forEach((function(e){return Yn.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),fi.forEach((function(e){return Yn.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),mi=function(t){!ui&&t>0&&pi.start(),!(ui+=t)&&pi.stop()},vi=function(){function t(t,e){this.target=t,this.observedBox=e||Dn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=ii(this.target,this.observedBox,!0);return Qn(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),bi=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},gi=new WeakMap,wi=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},yi=function(){function t(){}return t.connect=function(t,e){var n=new bi(t,e);gi.set(t,n)},t.observe=function(t,e,n){var i=gi.get(t),r=0===i.observationTargets.length;wi(i.observationTargets,e)<0&&(r&&On.push(i),i.observationTargets.push(new vi(e,n&&n.box)),mi(1),pi.schedule())},t.unobserve=function(t,e){var n=gi.get(t),i=wi(n.observationTargets,e);i>=0&&(1===n.observationTargets.length&&On.splice(On.indexOf(n),1),n.observationTargets.splice(i,1),mi(-1))},t.disconnect=function(t){var e=this,n=gi.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),xi=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");yi.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$n(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$n(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.unobserve(this,t)},t.prototype.disconnect=function(){yi.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const ki=new class{constructor(){this._appRootUrl=new H((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Xt(this.getAppRootUrl()+"config.json").get().json();ln.update({appConfiguration:Et.fromNullable(t)})}resolveRootUrl(){const t=Et.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(Et.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}};function Si(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Ci(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 _i,Ai,qi=function(t,e){return(qi=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)},Bi=Si()||{};Ai=function(t,e){function n(){this.constructor=t}qi(t,e),t.prototype=null===e?Ci(e):(n.prototype=e.prototype,new n)},(_i=Bi).__assign||(_i.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}),_i.__extends||(_i.__extends=Ai),__assign||(__assign=Bi.__assign),__extends||(__extends=Bi.__extends);var ji=Si;function Ei(t){var e=ji();return e&&e[t]?e[t]:"window"===t&&Ii()?window:null}function Ii(){return Boolean("object"==typeof window&&window)}function Fi(){return Ii()?window:Ei("window")}function Pi(){return Boolean("object"==typeof document&&document)}function Ri(){return Pi()?document:Ei("document")}function Mi(){return Boolean("object"==typeof navigator&&navigator)?navigator:Ei("navigator")}function Ti(){return"object"==typeof location&&location?location:Ei("location")}function Ni(){return Ei("performance")}function Di(){return Boolean("object"==typeof JSON&&JSON||null!==Ei("JSON"))}function Oi(){return Di()?JSON||Ei("JSON"):null}var Ui=null,Li=!1,zi=123456789,Hi=987654321;function Vi(t){t<0&&(t>>>=0),zi=123456789+t&4294967295,Hi=987654321-t&4294967295,Li=!0}function Qi(){Vi(4294967296*Math.random()^(new Date).getTime())}function Wi(t,e){return typeof t===e}function $i(t){return Wi(t,"undefined")||void 0===t}function Yi(t){return $i(t)||null===t}function Xi(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function Ji(t){return Wi(t,"object")}function Gi(t){return Wi(t,"function")}function Ki(t,e,n,i){void 0===i&&(i=!1);var r=!1;if(!Yi(t))try{Yi(t.addEventListener)?Yi(t.attachEvent)||(t.attachEvent("on"+e,n),r=!0):(t.addEventListener(e,n,i),r=!0)}catch(t){}return r}function Zi(t,e,n,i){if(void 0===i&&(i=!1),!Yi(t))try{Yi(t.removeEventListener)?Yi(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function tr(t,e){if(t&&Ji(t))for(var n in t)Xi(t,n)&&e.call(t,n,t[n])}var er,nr=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return Wi(t,"string")},t.isNumber=function(t){return Wi(t,"number")},t.isBoolean=function(t){return Wi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ir,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,r=0;r<i;r++)r in t&&e.call(n||t,t[r],r,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,r=n||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in t&&t[o]===e)return o;return-1},t.arrMap=function(t,e,n){for(var i=t.length,r=n||t,o=new Array(i),s=0;s<i;s++)s in t&&(o[s]=e.call(r,t[s],t));return o},t.arrReduce=function(t,e,n){var i,r=t.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in t);)o++;i=t[o++]}for(;o<r;)o in t&&(i=e(i,t[o],o,t)),o++;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(!(Gi(t)||Ji(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)Xi(t,i)&&n.push(i);if(e)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,s=0;s<o;s++)Xi(t,r[s])&&n.push(r[s]);return n},t.objDefineAccessors=function(t,e,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(t,e,o),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=Fi();i&&(n=Ki(i,t,e),n=Ki(i.body,t,e)||n);var r=Ri();return r&&(n=rr.Attach(r,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=Ni();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,r="";r.length<e;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return r},t.isIE=function(){if(null===Ui){var t=((Mi()||{}).userAgent||"").toLowerCase();Ui=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return Ui},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=Ei("crypto")||Ei("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(Li||Qi(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?Vi(t):Qi()},t.mwcRandom32=function(t){var e=((Hi=36969*(65535&Hi)+(Hi>>16)&4294967295)<<16)+(65535&(zi=18e3*(65535&zi)+(zi>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var o=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},t.isTypeof=Wi,t.isUndefined=$i,t.isNullOrUndefined=Yi,t.hasOwnProperty=Xi,t.isFunction=Gi,t.isObject=Ji,t.objCreate=Ci,t}(),ir=/[xy]/g,rr=function(){function t(){}return t.Attach=Ki,t.AttachEvent=Ki,t.Detach=Zi,t.DetachEvent=Zi,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(er||(er={}));var or=Object.getPrototypeOf,sr=0;
|
|
1
|
+
import{r as t,h as e,c as n,g as i,f as r,H as o,a as s,d as a,e as c,s as u}from"./p-082669d9.js";import{f as l,m as f,S as d,a as h,i as p,d as m,b as v,c as b,g,Q as w}from"./p-df9ce4b7.js";import{g as y,O as x,j as k,k as S,a as C}from"./p-342cee5a.js";import{A as _}from"./p-61734b66.js";function A(){}function q(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(q(((n,i)=>l(t(n,i)).pipe(f(((t,r)=>e(n,t,i,r))))),n)):("number"==typeof e&&(n=e),e=>e.lift(new B(t,n)))}class B{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new j(t,this.project,this.concurrent))}}class j extends d{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 h(this),n=this.destination;n.add(e);const i=p(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 E(t,e,n,i){return k(n)&&(i=n,n=void 0),i?E(t,e,n).pipe(f((t=>y(t)?i(...t):i(t)))):new x((i=>{I(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)}))}function I(t,e,n,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),o=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),o=()=>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),o=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,s=t.length;o<s;o++)I(t[o],e,n,i,r)}i.add(o)}class F{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new P(t,this.dueTime,this.scheduler))}}class P extends C{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(R,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 R(t){t.debouncedNext()}function M(t,e,n){return function(i){return i.lift(new T(t,e,n))}}class T{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new N(t,this.nextOrObserver,this.error,this.complete))}}class N extends C{constructor(t,e,n,i){super(t),this._tapNext=A,this._tapError=A,this._tapComplete=A,this._tapError=n||A,this._tapComplete=i||A,k(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||A,this._tapError=e.error||A,this._tapComplete=e.complete||A)}_next(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var D=function(t){return"Some"===t._tag},O=function(t){return"None"===t._tag},U={_tag:"None"},L=function(t){return{_tag:"Some",value:t}};function z(t){return null==t?U:L(t)}class H{constructor(t){this.factory=t,this._value=U}get value(){if(D(this._value))return this._value.value;const t=this.factory();return this._value=L(t),t}}function V(t){_.injectProps(t,["history","location"])}const Q=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),W=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),$=t=>t.replace(/([=!:$/()])/g,"\\$1"),Y=t=>t&&t.sensitive?"":"i",X=(t,e,n)=>{for(var i=(n=n||{}).strict,r=!1!==n.end,o=W(n.delimiter||"/"),s=n.delimiters||"./",a=[].concat(n.endsWith||[]).map(W).concat("$").join("|"),c="",u=!1,l=0;l<t.length;l++){var f=t[l];if("string"==typeof f)c+=W(f),u=l===t.length-1&&s.indexOf(f[f.length-1])>-1;else{var d=W(f.prefix||""),h=f.repeat?"(?:"+f.pattern+")(?:"+d+"(?:"+f.pattern+"))*":f.pattern;e&&e.push(f),c+=f.optional?f.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}return r?(i||(c+="(?:"+o+")?"),c+="$"===a?"$":"(?="+a+")"):(i||(c+="(?:"+o+"(?="+a+"))?"),u||(c+="(?="+o+"|"+a+")")),new RegExp("^"+c,Y(n))},J=(t,e,n)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,n)=>{for(var i=[],r=0;r<t.length;r++)i.push(J(t[r],e,n).source);return new RegExp("(?:"+i.join("|")+")",Y(n))})(t,e,n):((t,e,n)=>X(((t,e)=>{for(var n,i=[],r=0,o=0,s="",a=e&&e.delimiter||"/",c=e&&e.delimiters||"./",u=!1;null!==(n=Q.exec(t));){var l=n[0],f=n[1],d=n.index;if(s+=t.slice(o,d),o=d+l.length,f)s+=f[1],u=!0;else{var h="",p=t[o],m=n[2],v=n[3],b=n[4],g=n[5];if(!u&&s.length){var w=s.length-1;c.indexOf(s[w])>-1&&(h=s[w],s=s.slice(0,w))}s&&(i.push(s),s="",u=!1);var y=h||a,x=v||b;i.push({name:m||r++,prefix:h,delimiter:y,optional:"?"===g||"*"===g,repeat:"+"===g||"*"===g,partial:""!==h&&void 0!==p&&p!==h,pattern:x?$(x):"[^"+W(y)+"]+?"})}}return(s||o<t.length)&&i.push(s+t.substr(o)),i})(t,n),e,n))(t,e,n),G=(t,e)=>new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t),K=(t,e)=>G(t,e)?t.substr(e.length):t,Z=t=>"/"===t.charAt(t.length-1)?t.slice(0,-1):t,tt=t=>"/"===t.charAt(0)?t:"/"+t,et=t=>"/"===t.charAt(0)?t.substr(1):t,nt=t=>{const{pathname:e,search:n,hash:i}=t;let r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},it=t=>"/"===t.charAt(0),rt=t=>Math.random().toString(36).substr(2,t),ot=(t,e)=>{for(let n=e,i=n+1,r=t.length;i<r;n+=1,i+=1)t[n]=t[i];t.pop()},st=(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)=>st(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 st(n,i);const r=Object.keys(t),o=Object.keys(e);return r.length===o.length&&r.every((n=>st(t[n],e[n])))}return!1},at=(t,e,n,i)=>{let r;"string"==typeof t?(r=(t=>{let e=t||"/",n="",i="";const r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));const o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i,query:{},key:""}})(t),void 0!==e&&(r.state=e)):(r=Object.assign({pathname:""},t),r.search&&"?"!==r.search.charAt(0)&&(r.search="?"+r.search),r.hash&&"#"!==r.hash.charAt(0)&&(r.hash="#"+r.hash),void 0!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}var o;return r.key=n,i?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=((t,e="")=>{let n,i=e&&e.split("/")||[],r=0;const o=t&&t.split("/")||[],s=t&&it(t),a=e&&it(e),c=s||a;if(t&&it(t)?i=o:o.length&&(i.pop(),i=i.concat(o)),!i.length)return"/";if(i.length){const t=i[i.length-1];n="."===t||".."===t||""===t}else n=!1;for(let t=i.length;t>=0;t--){const e=i[t];"."===e?ot(i,t):".."===e?(ot(i,t),r++):r&&(ot(i,t),r--)}if(!c)for(;r--;r)i.unshift("..");!c||""===i[0]||i[0]&&it(i[0])||i.unshift("");let u=i.join("/");return n&&"/"!==u.substr(-1)&&(u+="/"),u})(r.pathname,i.pathname)):r.pathname=i.pathname:r.pathname||(r.pathname="/"),r.query=(o=r.search||"")?(/^[?#]/.test(o)?o.slice(1):o).split("&").reduce(((t,e)=>{let[n,i]=e.split("=");return t[n]=i?decodeURIComponent(i.replace(/\+/g," ")):"",t}),{}):{},r};let ct=0;const ut={},lt=(t,e={})=>{"string"==typeof e&&(e={path:e});const{path:n="/",exact:i=!1,strict:r=!1}=e,{re:o,keys:s}=((t,e)=>{const n=`${e.end}${e.strict}`,i=ut[n]||(ut[n]={}),r=JSON.stringify(t);if(i[r])return i[r];const o=[],s={re:J(t,o,e),keys:o};return ct<1e4&&(i[r]=s,ct+=1),s})(n,{end:i,strict:r}),a=o.exec(t);if(!a)return null;const[c,...u]=a,l=t===c;return i&&!l?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:l,params:s.reduce(((t,e,n)=>(t[e.name]=u[n],t)),{})}},ft=class{constructor(e){t(this,e),this.isBlockElement=!1,this.disabled=!1,this.variant="primary"}render(){return e("button",{class:{"btn position-relative px-3 py-2":!0,"is-primary":"primary"===this.variant,"is-secondary":"secondary"===this.variant,"btn-block":this.isBlockElement,disabled:this.disabled},style:{"pointer-events":this.disabled?"none":"auto"},disabled:this.disabled},e("span",{class:"label"},e("slot",null)))}};ft.style=":host button,:host button:focus,:host button:active,:host button.focus,:host button.active{-webkit-box-shadow:none;box-shadow:none;border-radius:var(--fl-rounding-button) !important}:host button.disabled,:host button:disabled{opacity:1 !important;cursor:not-allowed !important;color:var(--fl-color-disabled)}:host button .label{font-weight:600 !important}:host button.is-primary{color:var(--fl-color-primary-text);background-color:var(--fl-color-primary);border:none}:host button.is-primary.disabled,:host button.is-primary:disabled{background-color:var(--fl-color-primary-disabled)}:host button.is-primary:hover:not(.disabled),:host button.is-primary:hover:not(:disabled){background-color:var(--fl-color-primary-hover)}:host button.is-primary:active:not(.disabled),:host button.is-primary:active:not(:disabled){background-color:var(--fl-color-primary-focus)}:host button.is-secondary{color:var(--fl-color-secondary-text);background-color:var(--fl-color-secondary)}:host button.is-secondary.disabled,:host button.is-secondary:disabled{background-color:var(--fl-color-secondary-disabled)}:host button.is-secondary:hover:not(.disabled),:host button.is-secondary:hover:not(:disabled){background-color:var(--fl-color-secondary-hover)}:host button.is-secondary:active:not(.disabled),:host button.is-secondary:active:not(:disabled){background-color:var(--fl-color-secondary-focus)}:host button.is-block{display:block}:host button:disabled,:host button.disabled{pointer-events:none}";var dt={compareTwoStrings:ht,findBestMatch:function(t,e){if(!function(t,e){return"string"==typeof t&&!!Array.isArray(e)&&!!e.length&&!e.find((t=>"string"!=typeof t))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=[];let i=0;for(let r=0;r<e.length;r++){const o=e[r],s=ht(t,o);n.push({target:o,rating:s}),s>n[i].rating&&(i=r)}return{ratings:n,bestMatch:n[i],bestMatchIndex:i}}};function ht(t,e){if(t=t.replace(/\s+/g,""),e=e.replace(/\s+/g,""),!t.length&&!e.length)return 1;if(!t.length||!e.length)return 0;if(t===e)return 1;if(1===t.length&&1===e.length)return 0;if(t.length<2||e.length<2)return 0;let n=new Map;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),r=n.has(i)?n.get(i)+1:1;n.set(i,r)}let i=0;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),o=n.has(r)?n.get(r):0;o>0&&(n.set(r,o-1),i++)}return 2*i/(t.length+e.length-2)}const pt=class{constructor(i){t(this,i),this.valueChanged=n(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.isMouseOver=!1,this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.renderFilteredResults=()=>0===this.filteredOptions.length?e("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===n},onClick:()=>{this.toggleDropdown(!1),this.selectOption(t)}},e("span",null,t.label)))),this.filterResults=t=>{this.filteredOptions=this.sortOptionsByRelevancy(this._options.filter((e=>e.label.toLowerCase().includes(t.toLowerCase()))),t),this.highlightedOptionIndex=void 0},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},this.toggleDropdown=t=>{this.isDropdownVisible=t},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.filteredOptions=this._options},this.processKeyboardNavigation=t=>{switch(t.key){case"ArrowDown":return this.toggleDropdown(!0),this.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!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.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))}}get _options(){if(void 0===this.options)throw new Error("Can't render <fl-dropdown /> component with no options");return this.options}componentWillLoad(){var t,e;this.filteredOptions=this._options,this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}onOptionsChanged(){this.filteredOptions=this._options}onValueChanged(){var t,e;this.selectedOption=this._options.find((t=>t.value===this.value)),this.inputValue=null!==(e=null===(t=this.selectedOption)||void 0===t?void 0:t.label)&&void 0!==e?e:""}render(){var t;return[e("div",{class:"dropdown"},e("input",{type:"text",class:"form-control custom-select",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,onInput:t=>{const e=t.target.value;this.inputValue=e,this.filterResults(e),this.toggleDropdown(!0)},ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show:this.isDropdownVisible},onMouseEnter:()=>this.isMouseOver=!0,onMouseLeave:()=>this.isMouseOver=!1},this.renderFilteredResults()))]}sortOptionsByRelevancy(t,e){return t.map((t=>Object.assign(Object.assign({},t),{relevancyScore:dt.compareTwoStrings(t.label.toLowerCase(),e.toLowerCase())}))).sort(((t,e)=>e.relevancyScore-t.relevancyScore)).map((t=>({label:t.label,value:t.value})))}static get watchers(){return{options:["onOptionsChanged"],value:["onValueChanged"]}}};pt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const mt=class{constructor(i){t(this,i),this.valueChanged=n(this,"valueChanged",7),this.required=!1,this.disabled=!1,this.minSearchStringLength=3,this.isMouseOver=!1,this.searchState="pristine",this.inputValue="",this.isDropdownVisible=!1,this.filteredOptions=[],this.shouldExecuteSearch=t=>{var e;return this.isDropdownVisible&&(null==t?void 0:t.length)>=this.minSearchStringLength&&(null===(e=this.selectedOption)||void 0===e?void 0:e.label)!==t},this.onBeginSearch=t=>{this.inputValue=t,this.searchState="in progress"},this.onCompleteSearch=t=>{this.filteredOptions=t,this.highlightedOptionIndex=void 0,this.searchState="done"},this.renderFilteredResults=()=>"pristine"===this.searchState?e("span",{class:"dropdown-item disabled"},"Start typing to find the results"):"in progress"===this.searchState?e("div",{class:"d-flex justify-content-end align-items-center pr-4"},e("span",{class:"dropdown-item disabled"},"Searching..."),e("i",{class:"dot-falling"})):0===this.filteredOptions.length?e("span",{class:"dropdown-item disabled"},"No items match your search"):this.filteredOptions.map(((t,n)=>e("span",{class:{"dropdown-item text-wrap":!0,selected:this.isOptionSelected(t),active:this.highlightedOptionIndex===n},onClick:()=>{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.highlightNextItem(),!0;case"ArrowUp":return this.highlightPreviousItem(),!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.highlightPreviousItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.max(this.highlightedOptionIndex-1,0))},this.highlightNextItem=()=>{0!==this.filteredOptions.length&&(this.highlightedOptionIndex=void 0===this.highlightedOptionIndex?0:Math.min(this.highlightedOptionIndex+1,this.filteredOptions.length-1))},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=E(this.inputElement,"keyup").pipe(function(t,e=S){return n=>n.lift(new F(t,e))}(500),f((()=>this.inputElement.value)),m(),v(this.shouldExecuteSearch),M(this.onBeginSearch),q(this._searchFunction),M(this.onCompleteSearch)).subscribe()}componentDidUnload(){this.searchResultsSubscription.unsubscribe()}handleFocus(){this.toggleDropdown(!0)}handleBlur(){this.isMouseOver||(this.toggleDropdown(!1),this.highlightedOptionIndex=void 0,this.resetInput())}handleKeyDown(t){this.processKeyboardNavigation(t)&&t.preventDefault()}render(){var t;return[e("div",{class:"dropdown"},e("input",{type:"text",class:"form-control",placeholder:this.placeholder,required:this.required,disabled:this.disabled,value:this.inputValue,ref:t=>this.inputElement=t}),e("div",{class:{"invalid-feedback":!0,"d-none":this.isDropdownVisible}},null!==(t=this.requiredValidationMessage)&&void 0!==t?t:"Required."),e("div",{class:{"dropdown-menu shadow mt-0 w-100 overflow-auto":!0,show: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 <fl-dropdown-async/> component with no searchFunction");return this.searchFunction}};mt.style="fl-dropdown .dropdown-menu{max-height:min(20rem, 50vh)}fl-dropdown .dropdown-menu .dropdown-item{cursor:pointer}fl-dropdown .dropdown-menu .dropdown-item.selected{background-color:rgba(253, 189, 0, 0.5)}";const vt=class{constructor(e){t(this,e),this.theme="default"}render(){return e("span",{class:{"dots-container d-inline-flex justify-content-center":!0}},e("span",{class:{"dot-flashing":!0,"theme-default":"default"===this.theme,"theme-dark":"dark"===this.theme}}))}};var bt;vt.style='fl-loading-indicator .dots-container{width:36px}fl-loading-indicator .dot-flashing.theme-default{position:relative;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::before,fl-loading-indicator .dot-flashing.theme-default::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-default::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-default::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#66efc5;color:#9880ff;-webkit-animation:dot-flashing-default 2s infinite linear;animation:dot-flashing-default 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-default{0%{background-color:#66efc5}25%{background-color:#12aa7c}50%,100%{background-color:#66efc5}}fl-loading-indicator .dot-flashing.theme-dark{position:relative;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0.5s;animation-delay:0.5s}@-webkit-keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::before,fl-loading-indicator .dot-flashing.theme-dark::after{content:"";display:inline-block;position:absolute;top:0}fl-loading-indicator .dot-flashing.theme-dark::before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:0s;animation-delay:0s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}fl-loading-indicator .dot-flashing.theme-dark::after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#a7a7a7;color:#9880ff;-webkit-animation:dot-flashing-dark 2s infinite linear;animation:dot-flashing-dark 2s infinite linear;-webkit-animation-delay:1s;animation-delay:1s}@keyframes dot-flashing-dark{0%{background-color:#a7a7a7}25%{background-color:#5b5a5a}50%,100%{background-color:#a7a7a7}}',function(t){t[t.Available=0]="Available",t[t.Pending=1]="Pending",t[t.Error=2]="Error"}(bt||(bt={}));const gt=class{constructor(e){t(this,e),this.isBlockElement=!1,this.isRounded=!1,this.disabled=!1,this.variant="primary",this.promiseFn=()=>Promise.resolve(),this.state=bt.Available}render(){return this.state===bt.Pending?this.renderLoadingButton():this.renderActiveButton()}renderActiveButton(){return e("fl-button",{disabled:this.disabled,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,variant:this.variant},e("div",null,e("slot",null)))}renderLoadingButton(){return e("fl-button",{disabled:!0,onClick:()=>this.clicked(),isBlockElement:this.isBlockElement,class:"position-relative",variant:this.variant},e("fl-loading-indicator",{class:"position-absolute",theme:"dark"}),e("div",{class:"invisible"},e("slot",null)))}async clicked(){this.state=bt.Pending;try{await this.promiseFn(),this.state=bt.Available}catch(t){throw this.state=bt.Error,t}}};function wt(t,e){void 0===e&&(e="*"),t.sender="flare",window.parent.postMessage(t,e)}gt.style="fl-promise-button fl-loading-indicator{left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}";const yt=function(){wt({type:"appReady"})},xt=function(t,e){wt({type:"contentResized",height:t,width:e})},kt=function(t){wt({type:"pageNavigated",url:t})},St=function(){wt({type:"complete"})},Ct=function(){wt({type:"submitSuccess"})},_t=t=>!("isConnected"in t)||t.isConnected,At=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(_t))})(...e)}),2e3)}})(),qt=(t,e)=>{const n=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},r=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((e=>e(t))),n.get(t)),s=(t,r)=>{const o=n.get(t);e(r,o,t)&&(n.set(t,r),i.set.forEach((e=>e(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(s(e,n),!0)}),c=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:a,get:o,set:s,on:c,onChange:(e,n)=>{const i=c("set",((t,i)=>{t===e&&n(i)})),r=c("reset",(()=>n(t[e])));return()=>{i(),r()}},use:(...t)=>t.forEach((t=>{t.set&&c("set",t.set),t.get&&c("get",t.get),t.reset&&c("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),r()},reset:r}})(t,e);return(({on:t})=>{const e=new Map;"function"==typeof i&&(t("dispose",(()=>{e.clear()})),t("get",(t=>{const n=i();n&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(e,t,n)})),t("set",(t=>{const n=e.get(t);n&&e.set(t,n.filter(r)),At(e)})),t("reset",(()=>{e.forEach((t=>t.forEach(r))),At(e)})))})(n),n};function Bt(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var jt=Bt((function(t,e){function n(t){return t}function i(t){return function(){return t}}function r(){throw new Error("Called `absurd` function which should be uncallable")}Object.defineProperty(e,"__esModule",{value:!0}),e.bindTo_=e.bind_=e.hole=e.pipe=e.untupled=e.tupled=e.absurd=e.decrement=e.increment=e.tuple=e.flow=e.flip=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.constant=e.not=e.unsafeCoerce=e.identity=void 0,e.identity=n,e.unsafeCoerce=n,e.not=function(t){return function(e){return!t(e)}},e.constant=i,e.constTrue=i(!0),e.constFalse=i(!1),e.constNull=i(null),e.constUndefined=i(void 0),e.constVoid=e.constUndefined,e.flip=function(t){return function(e,n){return t(n,e)}},e.flow=function(t,e,n,i,r,o,s,a,c){switch(arguments.length){case 1:return t;case 2:return function(){return e(t.apply(this,arguments))};case 3:return function(){return n(e(t.apply(this,arguments)))};case 4:return function(){return i(n(e(t.apply(this,arguments))))};case 5:return function(){return r(i(n(e(t.apply(this,arguments)))))};case 6:return function(){return o(r(i(n(e(t.apply(this,arguments))))))};case 7:return function(){return s(o(r(i(n(e(t.apply(this,arguments)))))))};case 8:return function(){return a(s(o(r(i(n(e(t.apply(this,arguments))))))))};case 9:return function(){return c(a(s(o(r(i(n(e(t.apply(this,arguments)))))))))}}},e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},e.increment=function(t){return t+1},e.decrement=function(t){return t-1},e.absurd=r,e.tupled=function(t){return function(e){return t.apply(void 0,e)}},e.untupled=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}},e.pipe=function(t,e,n,i,r,o,s,a,c,u,l,f,d,h,p,m,v,b,g,w){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return n(e(t));case 4:return i(n(e(t)));case 5:return r(i(n(e(t))));case 6:return o(r(i(n(e(t)))));case 7:return s(o(r(i(n(e(t))))));case 8:return a(s(o(r(i(n(e(t)))))));case 9:return c(a(s(o(r(i(n(e(t))))))));case 10:return u(c(a(s(o(r(i(n(e(t)))))))));case 11:return l(u(c(a(s(o(r(i(n(e(t))))))))));case 12:return f(l(u(c(a(s(o(r(i(n(e(t)))))))))));case 13:return d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))));case 14:return h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))));case 15:return p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))));case 16:return m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))));case 17:return v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))))));case 18:return b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))))));case 19:return g(b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t))))))))))))))))));case 20:return w(g(b(v(m(p(h(d(f(l(u(c(a(s(o(r(i(n(e(t)))))))))))))))))))}},e.hole=r,e.bind_=function(t,e,n){var i;return Object.assign({},t,((i={})[e]=n,i))},e.bindTo_=function(t){return function(e){var n;return(n={})[t]=e,n}}})),Et=Bt((function(t,e){function n(t){return null==t?e.none:e.some(t)}function i(t){return"Right"===t._tag?e.none:e.some(t.left)}function r(t){return"Left"===t._tag?e.none:e.some(t.right)}function o(t){return function(i){return e.isNone(i)?e.none:n(t(i.value))}}Object.defineProperty(e,"__esModule",{value:!0}),e.getApplySemigroup=e.getOrd=e.getEq=e.getShow=e.URI=e.wilt=e.wither=e.sequence=e.traverse=e.partitionMap=e.partition=e.filterMap=e.filter=e.separate=e.compact=e.reduceRight=e.foldMap=e.reduce=e.duplicate=e.extend=e.throwError=e.zero=e.alt=e.altW=e.flatten=e.chainFirst=e.chain=e.of=e.apSecond=e.apFirst=e.ap=e.map=e.chainNullableK=e.mapNullable=e.fromNullableK=e.getOrElse=e.getOrElseW=e.toUndefined=e.toNullable=e.fold=e.fromEither=e.getRight=e.getLeft=e.tryCatch=e.fromPredicate=e.fromNullable=e.some=e.none=e.isNone=e.isSome=void 0,e.sequenceArray=e.traverseArray=e.traverseArrayWithIndex=e.apS=e.bind=e.bindTo=e.Do=e.getRefinement=e.exists=e.elem=e.option=e.MonadThrow=e.Witherable=e.Traversable=e.Filterable=e.Compactable=e.Extend=e.Alternative=e.Alt=e.Foldable=e.Monad=e.Applicative=e.Functor=e.getMonoid=e.getLastMonoid=e.getFirstMonoid=e.getApplyMonoid=void 0,e.isSome=function(t){return"Some"===t._tag},e.isNone=function(t){return"None"===t._tag},e.none={_tag:"None"},e.some=function(t){return{_tag:"Some",value:t}},e.fromNullable=n,e.fromPredicate=function(t){return function(n){return t(n)?e.some(n):e.none}},e.tryCatch=function(t){try{return e.some(t())}catch(t){return e.none}},e.getLeft=i,e.getRight=r,e.fromEither=r,e.fold=function(t,n){return function(i){return e.isNone(i)?t():n(i.value)}},e.toNullable=function(t){return e.isNone(t)?null:t.value},e.toUndefined=function(t){return e.isNone(t)?void 0:t.value},e.getOrElseW=function(t){return function(n){return e.isNone(n)?t():n.value}},e.getOrElse=e.getOrElseW,e.fromNullableK=function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return n(t.apply(void 0,e))}},e.mapNullable=o,e.chainNullableK=o;var s=function(t,n){return jt.pipe(t,e.map(n))},a=function(t,n){return jt.pipe(t,e.ap(n))},c=function(t,n){return jt.pipe(t,e.chain(n))},u=function(t,n,i){return jt.pipe(t,e.reduce(n,i))},l=function(t){var n=e.foldMap(t);return function(t,e){return jt.pipe(t,n(e))}},f=function(t,n,i){return jt.pipe(t,e.reduceRight(n,i))},d=function(t){var n=e.traverse(t);return function(t,e){return jt.pipe(t,n(e))}},h=function(t,n){return jt.pipe(t,e.alt(n))},p=function(t,n){return jt.pipe(t,e.filter(n))},m=function(t,n){return jt.pipe(t,e.filterMap(n))},v=function(t,n){return jt.pipe(t,e.extend(n))},b=function(t,n){return jt.pipe(t,e.partition(n))},g=function(t,n){return jt.pipe(t,e.partitionMap(n))},w=function(t){var n=e.wither(t);return function(t,e){return jt.pipe(t,n(e))}},y=function(t){var n=e.wilt(t);return function(t,e){return jt.pipe(t,n(e))}};e.map=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n.value))}},e.ap=function(t){return function(n){return e.isNone(n)||e.isNone(t)?e.none:e.some(n.value(t.value))}},e.apFirst=function(t){return jt.flow(e.map((function(t){return function(){return t}})),e.ap(t))},e.apSecond=function(t){return jt.flow(e.map((function(){return function(t){return t}})),e.ap(t))},e.of=e.some,e.chain=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.chainFirst=function(t){return e.chain((function(n){return jt.pipe(t(n),e.map((function(){return n})))}))},e.flatten=e.chain(jt.identity),e.altW=function(t){return function(n){return e.isNone(n)?t():n}},e.alt=e.altW,e.zero=function(){return e.none},e.throwError=function(){return e.none},e.extend=function(t){return function(n){return e.isNone(n)?e.none:e.some(t(n))}},e.duplicate=e.extend(jt.identity),e.reduce=function(t,n){return function(i){return e.isNone(i)?t:n(t,i.value)}},e.foldMap=function(t){return function(n){return function(i){return e.isNone(i)?t.empty:n(i.value)}}},e.reduceRight=function(t,n){return function(i){return e.isNone(i)?t:n(i.value,t)}},e.compact=e.flatten;var x={left:e.none,right:e.none};function k(t){return{equals:function(n,i){return n===i||(e.isNone(n)?e.isNone(i):!e.isNone(i)&&t.equals(n.value,i.value))}}}function S(t){return{concat:function(n,i){return e.isSome(n)&&e.isSome(i)?e.some(t.concat(n.value,i.value)):e.none}}}e.separate=function(t){var n=jt.pipe(t,e.map((function(t){return{left:i(t),right:r(t)}})));return e.isNone(n)?x:n.value},e.filter=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)?n:e.none}},e.filterMap=function(t){return function(n){return e.isNone(n)?e.none:t(n.value)}},e.partition=function(t){return function(e){return{left:p(e,(function(e){return!t(e)})),right:p(e,t)}}},e.partitionMap=function(t){return jt.flow(e.map(t),e.separate)},e.traverse=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):t.map(n(i.value),e.some)}}},e.sequence=function(t){return function(n){return e.isNone(n)?t.of(e.none):t.map(n.value,e.some)}},e.wither=function(t){return function(n){return function(i){return e.isNone(i)?t.of(e.none):n(i.value)}}},e.wilt=function(t){return function(n){return function(o){return e.isNone(o)?t.of({left:e.none,right:e.none}):t.map(n(o.value),(function(t){return{left:i(t),right:r(t)}}))}}},e.URI="Option",e.getShow=function(t){return{show:function(n){return e.isNone(n)?"none":"some("+t.show(n.value)+")"}}},e.getEq=k,e.getOrd=function(t){return{equals:k(t).equals,compare:function(n,i){return n===i?0:e.isSome(n)?e.isSome(i)?t.compare(n.value,i.value):1:-1}}},e.getApplySemigroup=S,e.getApplyMonoid=function(t){return{concat:S(t).concat,empty:e.some(t.empty)}},e.getFirstMonoid=function(){return{concat:function(t,n){return e.isNone(t)?n:t},empty:e.none}},e.getLastMonoid=function(){return{concat:function(t,n){return e.isNone(n)?t:n},empty:e.none}},e.getMonoid=function(t){return{concat:function(n,i){return e.isNone(n)?i:e.isNone(i)?n:e.some(t.concat(n.value,i.value))},empty:e.none}},e.Functor={URI:e.URI,map:s},e.Applicative={URI:e.URI,map:s,ap:a,of:e.of},e.Monad={URI:e.URI,map:s,ap:a,of:e.of,chain:c},e.Foldable={URI:e.URI,reduce:u,foldMap:l,reduceRight:f},e.Alt={URI:e.URI,map:s,alt:h},e.Alternative={URI:e.URI,map:s,ap:a,of:e.of,alt:h,zero:e.zero},e.Extend={URI:e.URI,map:s,extend:v},e.Compactable={URI:e.URI,compact:e.compact,separate:e.separate},e.Filterable={URI:e.URI,map:s,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g},e.Traversable={URI:e.URI,map:s,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence},e.Witherable={URI:e.URI,map:s,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g,wither:w,wilt:y},e.MonadThrow={URI:e.URI,map:s,ap:a,of:e.of,chain:c,throwError:e.throwError},e.option={URI:e.URI,map:s,of:e.of,ap:a,chain:c,reduce:u,foldMap:l,reduceRight:f,traverse:d,sequence:e.sequence,zero:e.zero,alt:h,extend:v,compact:e.compact,separate:e.separate,filter:p,filterMap:m,partition:b,partitionMap:g,wither:w,wilt:y,throwError:e.throwError},e.elem=function(t){return function(n,i){return!e.isNone(i)&&t.equals(n,i.value)}},e.exists=function(t){return function(n){return!e.isNone(n)&&t(n.value)}},e.getRefinement=function(t){return function(n){return e.isSome(t(n))}},e.Do=e.of({}),e.bindTo=function(t){return e.map(jt.bindTo_(t))},e.bind=function(t,n){return e.chain((function(i){return jt.pipe(n(i),e.map((function(e){return jt.bind_(i,t,e)})))}))},e.apS=function(t,n){return jt.flow(e.map((function(e){return function(n){return jt.bind_(e,t,n)}})),e.ap(n))},e.traverseArrayWithIndex=function(t){return function(n){for(var i=[],r=0;r<n.length;r++){var o=t(r,n[r]);if(e.isNone(o))return e.none;i.push(o.value)}return e.some(i)}},e.traverseArray=function(t){return e.traverseArrayWithIndex((function(e,n){return t(n)}))},e.sequenceArray=e.traverseArray(jt.identity)}));function It(t){this.message=t}(It.prototype=new Error).name="InvalidCharacterError";var Ft="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new It("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,s="";i=e.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function Pt(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(Ft(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return Ft(e)}}function Rt(t){this.message=t}(Rt.prototype=new Error).name="InvalidTokenError";var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Tt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Nt=function(t,e,n){if(void 0===n&&(n=!1),!t||!e||"object"!=typeof t||"object"!=typeof e)return t;var i=Mt({},t);for(var r in e)e.hasOwnProperty(r)&&(i[r]=e[r]instanceof Array&&t[r]instanceof Array?n?Tt(t[r],e[r]):e[r]:"object"==typeof e[r]&&"object"==typeof t[r]?Nt(t[r],e[r],n):e[r]);return i},Dt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ot={defaults:{},errorType:null,polyfills:{fetch:null,FormData:null,URLSearchParams:null,performance:null,PerformanceObserver:null,AbortController:null},polyfill:function(t,e){for(var n=void 0===e?{}:e,i=n.doThrow,r=void 0===i||i,o=n.instance,s=void 0!==o&&o,a=[],c=2;c<arguments.length;c++)a[c-2]=arguments[c];var u=this.polyfills[t]||("undefined"!=typeof self?self[t]:null)||("undefined"!=typeof global?global[t]:null);if(r&&!u)throw new Error(t+" is not defined");return s&&u?new(u.bind.apply(u,Dt([void 0],a))):u}},Ut=function(t,e,n,i){if(!t.getEntriesByName)return!1;var r=t.getEntriesByName(e);return!!(r&&r.length>0)&&(n(r.reverse()[0]),i.clearMeasures&&i.clearMeasures(e),Lt.callbacks.delete(e),Lt.callbacks.size<1&&(Lt.observer.disconnect(),i.clearResourceTimings&&i.clearResourceTimings()),!0)},Lt={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var n=Ot.polyfill("performance",{doThrow:!1});(function(t,e){return!Lt.observer&&t&&e&&(Lt.observer=new e((function(e){Lt.callbacks.forEach((function(n,i){Ut(e,i,n,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),Lt.observer})(n,Ot.polyfill("PerformanceObserver",{doThrow:!1}))&&(Ut(n,t,e,n)||(Lt.callbacks.size<1&&Lt.observer.observe({entryTypes:["resource","measure"]}),Lt.callbacks.set(t,e)))}}},zt=function(t){this.error=t},Ht=function(){return(Ht=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Vt=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Qt=function(){function t(t,e,n,i,r,o){void 0===n&&(n=new Map),void 0===i&&(i=[]),void 0===r&&(r=[]),void 0===o&&(o=[]),this._url=t,this._options=e,this._catchers=n,this._resolvers=i,this._middlewares=r,this._deferredChain=o}return t.factory=function(e,n){return void 0===e&&(e=""),void 0===n&&(n={}),new t(e,n)},t.prototype.selfFactory=function(e){var n=void 0===e?{}:e,i=n.url,r=n.options,o=n.catchers,s=void 0===o?this._catchers:o,a=n.resolvers,c=void 0===a?this._resolvers:a,u=n.middlewares,l=void 0===u?this._middlewares:u,f=n.deferredChain,d=void 0===f?this._deferredChain:f;return new t(void 0===i?this._url:i,Ht({},void 0===r?this._options:r),new Map(s),Vt(c),Vt(l),Vt(d))},t.prototype.defaults=function(t,e){return void 0===e&&(e=!1),Ot.defaults=e?Nt(Ot.defaults,t):t,this},t.prototype.errorType=function(t){return Ot.errorType=t,this},t.prototype.polyfills=function(t){return Ot.polyfills=Ht(Ht({},Ot.polyfills),t),this},t.prototype.url=function(t,e){if(void 0===e&&(e=!1),e)return this.selfFactory({url:t});var n=this._url.split("?");return this.selfFactory({url:n.length>1?n[0]+t+"?"+n[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?Nt(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:Wt(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:Nt(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})["Content-Type"]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var n=new Map(this._catchers);return n.set(t,e),this.selfFactory({catchers:n})},t.prototype.signal=function(t){return this.selfFactory({options:Ht(Ht({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:Vt(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:Vt(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:Vt(this._middlewares,t)})},t.prototype.method=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n=null);var i=this._options.headers,r=n?"object"!=typeof n||i&&!Object.entries(i).every((function(t){var e=t[1];return t[0].toLowerCase()!=="Content-Type".toLowerCase()||e.startsWith("application/json")}))?this.body(n):this.json(n):this;return function(t){var e=t._url,n=t._resolvers,i=t._middlewares,r=t._options,o=new Map(t._catchers),s=Nt(Ot.defaults,r),a=Ot.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&a&&(s.signal=a.signal);var c={ref:null,clear:function(){c.ref&&(clearTimeout(c.ref),c.ref=null)}},u=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(n,i,r){return i(r===t.length-2?n(e):n)}))}}(i)(Ot.polyfill("fetch"))(e,s),l=u.catch((function(t){throw new zt(t)})).then((function(t){return c.clear(),t.ok?t:t[Ot.errorType||"text"]().then((function(e){var n=new Error(e);throw n[Ot.errorType||"text"]=e,n.status=t.status,n.response=t,n}))})),f=function(e){return function(n){return(e?l.then((function(t){return t&&t[e]()})).then((function(t){return n?n(t):t})):l.then((function(t){return n?n(t):t}))).catch((function(e){c.clear();var n=e instanceof zt?e.error:e;if(e instanceof zt&&o.has("__fromFetch"))return o.get("__fromFetch")(n,t);if(o.has(n.status))return o.get(n.status)(n,t);if(o.has(n.name))return o.get(n.name)(n,t);throw n}))}},d={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return u.then((function(e){return Lt.observe(e.url,t)})),d},setTimeout:function(t,e){return void 0===e&&(e=a),c.clear(),c.ref=setTimeout((function(){return e.abort()}),t),d},controller:function(){return[a,d]},error:function(t,e){return o.set(t,e),d},badRequest:function(t){return d.error(400,t)},unauthorized:function(t){return d.error(401,t)},forbidden:function(t){return d.error(403,t)},notFound:function(t){return d.error(404,t)},timeout:function(t){return d.error(408,t)},internalError:function(t){return d.error(500,t)},fetchError:function(t){return d.error("__fromFetch",t)},onAbort:function(t){return d.error("AbortError",t)}};return n.reduce((function(e,n){return n(e,t)}),d)}((r=r.options(Ht(Ht({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),r))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Ht(Ht({},this._options),{body:t})})},t.prototype.json=function(t){var e,n=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[1];return t[0].toLowerCase()==="Content-Type".toLowerCase()&&e.startsWith("application/json")})))||void 0===e?void 0:e[1];return this.content(n||"application/json").body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body($t(t,e))},t.prototype.formUrl=function(t){return this.body("string"==typeof t?t:(e=t,Object.keys(e).map((function(t){var n=e[t];return n instanceof Array?n.map((function(e){return Yt(t,e)})).join("&"):Yt(t,n)})).join("&"))).content("application/x-www-form-urlencoded");var e},t}(),Wt=function(t,e,n){var i;if("string"==typeof e)i=e;else{var r=Ot.polyfill("URLSearchParams",{instance:!0});for(var o in e)if(e[o]instanceof Array)for(var s=0,a=e[o];s<a.length;s++)r.append(o,a[s]);else r.append(o,e[o]);i=r.toString()}var c=t.split("?");return n||c.length<2?c[0]+"?"+i:t+"&"+i};function $t(t,e,n,i){return void 0===e&&(e=!1),void 0===n&&(n=Ot.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(t).forEach((function(t){var r=t[0],o=t[1],s=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(s=s?s+"["+r+"]":r,o instanceof Array)for(var a=0,c=o;a<c.length;a++)n.append(s+"[]",c[a]);else!e||"object"!=typeof o||e instanceof Array&&e.includes(r)?n.append(s,o):null!==o&&$t(o,e,n,Vt(i,[r]))})),n}function Yt(t,e){return encodeURIComponent(t)+"="+encodeURIComponent("object"==typeof e?JSON.stringify(e):""+e)}var Xt=Qt.factory;function Jt(){const t=Zt.jwt,e=Zt.profileId,n=Zt.accountIdOrDefault,i=Zt.partnerIdOrDefault;return Xt(Zt.apiBaseUrl).headers({Authorization:"Bearer "+t,"X-PROFILE-ID":e,"X-PARTNER-ID":i,"X-ACCOUNT-ID":n})}Xt.default=Qt.factory;const Gt=new class{async getAustralianFundsAsync(t){return Jt().url("super-choice/australian-funds?"+this.toQueryString(t)).get().notFound((()=>{throw new Error("Failed to fetch the list of australian super funds.")})).json()}async getAppStateAsync(){return Jt().url("client-app-state").get().notFound((()=>{throw new Error("Failed to fetch application configuration.")})).json()}toQueryString(t){switch(t.type){case"partialMatch":return`search=${t.searchString}&maxRecordCount=${t.maxRecordCount}`;case"usiMatch":return"usi="+t.usi}}},Kt={apiBaseUrl:Et.none,appBaseUrl:Et.none,profileId:Et.none,jwt:Et.none,superBuyer:Et.none,promotedFunds:Et.none,accountConfiguration:Et.none,hasSuccessPageBeenAcknowledged:!1,hasSuperSelectionBeenSubmitted:!1},Zt=new class{constructor(){const{state:t,onChange:e}=qt(Kt);this._state=t,this._onChange=e,e("jwt",(t=>{this._state.profileId=jt.pipe(t,Et.chain((t=>Et.fromNullable(function(t,e){if("string"!=typeof t)throw new Rt("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(Pt(t.split(".")[n]))}catch(t){throw new Rt("Invalid token specified: "+t.message)}}(t).sub))))}))}get state(){return this._state}get onChange(){return this._onChange}get superBuyer(){if(Et.isNone(this._state.superBuyer))throw Error("User information is not set");return this._state.superBuyer.value}get apiBaseUrl(){if(Et.isNone(this._state.apiBaseUrl))throw Error("API base URL is not set");return this._state.apiBaseUrl.value}get appBaseUrl(){if(Et.isNone(this._state.appBaseUrl))throw Error("App base URL is not set");return this._state.appBaseUrl.value}get promotedFunds(){if(Et.isNone(this._state.promotedFunds))throw Error("Promoted Funds is not set");return this._state.promotedFunds.value}get profileId(){if(Et.isNone(this._state.profileId))throw Error("Failed to get Profile ID from JWT");return this._state.profileId.value}get defaultFundUsi(){return jt.pipe(this._state.accountConfiguration,Et.map((t=>Et.fromNullable(t.defaultFundUsi))),Et.flatten)}get accountIdOrDefault(){return jt.pipe(this._state.accountConfiguration,Et.map((t=>t.accountId)),Et.getOrElse((()=>"")))}get partnerIdOrDefault(){return jt.pipe(this._state.superBuyer,Et.map((t=>t.partnerId)),Et.getOrElse((()=>"")))}get jwt(){if(Et.isNone(this._state.jwt))throw Error("No authentication information was found");return this._state.jwt.value}get showSmsfNotSupported(){return jt.pipe(this._state.superBuyer,Et.map((t=>t.showSmsfNotSupported)),Et.getOrElse((()=>!1)))}completeSuperSelectionFlow(){this._state.hasSuccessPageBeenAcknowledged=!0}markSuperSelectionAsSubmitted(){this._state.hasSuperSelectionBeenSubmitted=!0}async loadAppStateAsync(){const t=await Gt.getAppStateAsync();this._state.accountConfiguration=Et.fromNullable(t.accountConfiguration),this._state.superBuyer=Et.fromNullable(t.superBuyer),this._state.promotedFunds=Et.fromNullable(t.promotedFunds)}},te=new class{navigateInternally(t,e){const n=`${this.appBaseUrl}${this.toRouteWithLeadingSlash(e)}`;kt(n),t.push(n)}toExternalUrl(t){const e=new URL(t);return e.searchParams.append("_extnav","true"),e.href}get appBaseUrl(){return Zt.appBaseUrl.replace(/\/$/,"")}toRouteWithLeadingSlash(t){return t.length>0&&"/"===t[0]?t:"/"+t}};var ee;!function(t){t.ChoicePage="/",t.SlateJoin="/slate/join/",t.SlateStandardChoice="/slate/standard-choice/",t.QSuperOptIn="/qsuper/insurance/opt-in/",t.QSuperQuestion1="/qsuper/insurance/question1/",t.QSuperQuestion2="/qsuper/insurance/question2/",t.QSuperQuestion3="/qsuper/insurance/question3/",t.QSuperQuestion4="/qsuper/insurance/question4/",t.QSuperQuestion5="/qsuper/insurance/question5/",t.QSuperQuestion6="/qsuper/insurance/question6/",t.QSuperQuestion7="/qsuper/insurance/question7/",t.QSuperQuestion8="/qsuper/insurance/question8/",t.QSuperConsent="/qsuper/consent/",t.QSuperJoin="/qsuper/join/",t.PromotedFundJoin="/promoted-fund/join",t.PromotedFundStandardChoice="/promoted-fund/standard-choice/",t.MyOwnFund="/super-choice/my-own-fund/",t.SelfManagedFund="/super-choice/smsf/",t.DefaultFund="/super-choice/default/",t.Success="/success/"}(ee||(ee={}));const ne=[e("stencil-route",{exact:!0,url:ee.ChoicePage,component:"sss-super-choice-page"}),e("stencil-route",{url:ee.SlateJoin,component:"sss-slate-join-page"}),e("stencil-route",{url:ee.SlateStandardChoice,component:"sss-slate-standard-choice-page"}),e("stencil-route",{url:ee.QSuperOptIn,component:"sss-qsuper-insurance-opt-in"}),e("stencil-route",{url:ee.PromotedFundJoin,component:"sss-promoted-fund-join-page"}),e("stencil-route",{url:ee.PromotedFundStandardChoice,component:"sss-promoted-fund-standard-choice-page"}),e("stencil-route",{url:ee.QSuperQuestion1,component:"sss-qsuper-question-1"}),e("stencil-route",{url:ee.QSuperQuestion2,component:"sss-qsuper-question-2"}),e("stencil-route",{url:ee.QSuperQuestion3,component:"sss-qsuper-question-3"}),e("stencil-route",{url:ee.QSuperQuestion4,component:"sss-qsuper-question-4"}),e("stencil-route",{url:ee.QSuperQuestion5,component:"sss-qsuper-question-5"}),e("stencil-route",{url:ee.QSuperQuestion6,component:"sss-qsuper-question-6"}),e("stencil-route",{url:ee.QSuperQuestion7,component:"sss-qsuper-question-7"}),e("stencil-route",{url:ee.QSuperQuestion8,component:"sss-qsuper-question-8"}),e("stencil-route",{url:ee.QSuperConsent,component:"sss-qsuper-consent"}),e("stencil-route",{url:ee.QSuperJoin,component:"sss-qsuper-join"}),e("stencil-route",{url:ee.MyOwnFund,component:"sss-my-own-fund"}),e("stencil-route",{url:ee.SelfManagedFund,component:"sss-self-managed-fund"}),e("stencil-route",{url:ee.DefaultFund,component:"sss-default-fund"}),e("stencil-route",{url:ee.Success,component:"sss-success"})];var ie;!function(t){t.MyOwnFund="My Own Fund",t.DefaultFund="Default Fund",t.SelfManagedFund="Self Managed Fund"}(ie||(ie={}));const re={continueAllowed:!1,nextRoute:"/",myOwnFundForm:{fundUsi:U,memberNumber:U,standardChoiceFormSignature:U},defaultFundForm:{standardChoiceFormSignature:""},selfManagedFundForm:{fundName:"",fundAbn:"",fundEsa:"",addressLine1:"",addressLine2:"",state:"",postcode:"",city:"",bankAccountName:"",bsb:"",bankAccountNumber:"",standardChoiceFormSignature:""},currentCustomFundType:ie.MyOwnFund,customFunds:[{label:ie.MyOwnFund,value:ee.MyOwnFund},{label:ie.DefaultFund,value:ee.DefaultFund},{label:ie.SelfManagedFund,value:ee.SelfManagedFund}]},{state:oe}=qt(re),se=oe.customFunds,ae=class{constructor(e){t(this,e),this.currentCustomFund=se[0],this.fundOptionsList=se}componentWillLoad(){let t="";window.location.pathname.includes(ee.MyOwnFund)&&(t=ee.MyOwnFund),window.location.pathname.includes(ee.DefaultFund)&&(t=ee.DefaultFund),window.location.pathname.includes(ee.SelfManagedFund)&&(t=ee.SelfManagedFund),this.currentCustomFund=se.find((e=>e.value===t))||se[0],te.navigateInternally(this.history,t)}render(){return e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("p",{class:"font-weight-bold text-center"},"Choose your Super"),e("div",{class:"mb-4"},e("select",{class:"form-control",required:!0,onChange:t=>{this.handleChange(t.target.value.trim())}},this.fundOptionsList.map((t=>e("option",{value:t.value,selected:this.currentCustomFund.value===t.value},t.label))))),e("slot",null))))}handleChange(t){const e=se.find((e=>e.value===t))||{value:ee.MyOwnFund};te.navigateInternally(this.history,e.value)}static get assetsDirs(){return["assets"]}};V(ae);const ce=new class{searchFundsAsync(t,e){return Gt.getAustralianFundsAsync({type:"partialMatch",searchString:t,maxRecordCount:e})}async getFundByUsiAsync(t){const e=await Gt.getAustralianFundsAsync({type:"usiMatch",usi:t});return 1===e.length?Et.some(e[0]):Et.none}};class ue{static get Instance(){return this.instance||(this.instance=new this)}async PostAnalyticsEventAsync(t){return Jt().url("analytics-events").post(t).res()}}class le{constructor(){this.eventTrackingApi=ue.Instance}static get Instance(){return this.instance||(this.instance=new this)}async TrackFinancialProductViewedAsync(t){return this.trackEventAsync({FinancialProductViewed:t})}async TrackSuperFundPdsViewedAsync(t){return this.trackEventAsync({SuperFundPdsViewed:t})}async TrackFinancialProductAcceptedAsync(t){return this.trackEventAsync({FinancialProductAccepted:t})}async TrackFinancialProductRejectedAsync(t){return this.trackEventAsync({FinancialProductRejected:t})}async TrackSuperFundPrivacyConfirmationAcceptedAsync(t){return this.trackEventAsync({SuperFundPrivacyConfirmationAccepted:t})}async TrackPromotedSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{PromotedFund:t}})}async TrackMyOwnSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{MyOwnFund:t}})}async TrackSmsfSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{Smsf:t}})}async TrackDefaultSuperFundDetailViewedAsync(t){return this.trackEventAsync({SuperFundDetailViewed:{DefaultFund:t}})}async TrackSuperFundPanelViewedAsync(t){return this.trackEventAsync({SuperFundPanelViewed:t})}async trackEventAsync(t){try{await this.eventTrackingApi.PostAnalyticsEventAsync({event:t})}catch(t){return}}}const fe={items:[]},de=new class{constructor(){const{state:t}=qt(fe);this._state=t}get state(){return this._state}closeCurrent(){const t=[...this._state.items];t.shift(),this._state.items=t}clearNotifications(){this._state.items=[]}showErrorNotification(t,e){this.pushNotification(t,null!=e?e:0,"danger")}showInfoNotification(t,e){this.pushNotification(t,null!=e?e:0,"info")}showWarningNotification(t,e){this.pushNotification(t,null!=e?e:0,"warning")}showSuccessNotification(t,e){this.pushNotification(t,null!=e?e:0,"success")}pushNotification(t,e,n){const i=[...this._state.items];i.push({details:t,type:n,priority:e}),this._state.items=i.sort(((t,e)=>e.priority-t.priority))}},he=new class{async submitDefaultFundChoiceAsync(t){return Jt().url("super-choice/default").post(t).badRequest((()=>{throw new Error("Failed to process default fund join request")})).text()}async submitCustomFundChoiceAsync(t){return Jt().url("super-choice/custom-fund").post(t).badRequest((()=>{throw new Error("Failed to process custom fund join request")})).text()}async submitSelfManagedFundChoiceAsync(t){return Jt().url("super-choice/smsf").post(t).badRequest((()=>{throw new Error("Failed to process SMSF choice request")})).text()}},pe=class{constructor(e){t(this,e),this.defaultFundProductName="Loading fund...",this.eventTrackingService=le.Instance}async componentWillLoad(){const t=Zt.defaultFundUsi;if(Et.isNone(t))return;this.isDefaultFundExists=!0;const e=await ce.getFundByUsiAsync(t.value);if(Et.isNone(e))return this.isInvalidDefaultFund=!0,void de.showErrorNotification({title:"Something is not right",description:`Couldn't find information about the configured default fund (USI ${t.value})`});this.defaultFund=e.value,this.defaultFundProductName=e.value.productName}componentDidLoad(){return this.eventTrackingService.TrackDefaultSuperFundDetailViewedAsync({fundUsi:this.defaultFund.usi,fundName:this.defaultFund.productName,promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},this.isDefaultFundExists?e((t=>[e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Default Fund"),e("p",{class:"mb-4 small"},"Almost there... all you have to do now is review the fund below, complete and sign the super choice form and save. Your application to join the fund is subject to Trustee approval."),e("p",{class:"font-weight-bold mt-3"},"Default Fund Name"),e("p",null,t.defaultFundName)),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.defaultFundForm=Object.assign(Object.assign({},oe.defaultFundForm),t.detail)}})]),{defaultFundName:this.defaultFundProductName}):e((()=>e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"No Default Fund"),e("p",{class:"mb-4 small"},"It looks like your employer has not yet defined a default fund. Please contact them if you wish to choose your company's default fund."))),null)),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},this.isDefaultFundExists&&e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,disabled:this.isInvalidDefaultFund,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}async handleSubmitForm(){this.isInvalidDefaultFund||(this.formState="validated",this.formElement.checkValidity()&&(await he.submitDefaultFundChoiceAsync(oe.defaultFundForm),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)))}},me=class{constructor(e){t(this,e)}render(){return e("div",{class:"container mb-sm-0"},e("div",{class:"row justify-content-center pt-3 mt-3 mb-3 border-top"},e("div",{class:"text-decoration-none"},e("p",{class:"mt-3 small text-center mb-1 text-muted"},"Powered by Flare HR"))),e("div",{class:"row justify-content-center pb-sm-0 px-3 px-sm-0 text-center"},e("p",{class:"text-muted small"},"This page contains factual information only and does not take into account your particular objectives, financial circumstances or needs. If you have questions or need help making a decision about your super fund, you should speak to a licensed financial advice provider. You should consider the relevant super fund's PDS and TMD (if applicable) in deciding whether to apply to join the super fund. Each of the advertised fund's PDS and TMD (if applicable) can be found in their advertisements above. If you are considering joining another fund you can find the PDS and TMD on the fund's website. Your employer and Flare HR do not endorse or accept responsibility for any financial product advice or services provided by the promoters or trustees of the advertised superannuation funds. Flare HR do not endorse or accept responsibility for any of their content shown about any of the advertised superannuation funds as they are merely passing on the content as provided without any changes. Flare HR do not express any opinion or make any recommendation about any of the advertised funds.")),e("div",{class:"row justify-content-end my-1 px-3 px-sm-0"},this.appVersionBadge()))}appVersionBadge(){return e("small",{style:{opacity:"0.5"},class:"text-muted"},"Powered by Flare, v","3.38.55619")}};me.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.ss-footer-logo{max-width:7rem}";const ve=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-column justify-content-center align-items-center flex-grow-1"},e("h5",null,"Loading your superannuation step"),e("fl-loading-indicator",null))}},be=class{constructor(e){t(this,e),this.isNotAllInformationProvidedMessageVisible=!1,this.eventTrackingService=le.Instance}componentDidLoad(){return this.eventTrackingService.TrackMyOwnSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Fund details"),e("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),e("sss-my-own-fund-inputs",{myOwnFundForm:oe.myOwnFundForm,onFormChanged:t=>{oe.myOwnFundForm=Object.assign(Object.assign({},oe.myOwnFundForm),t.detail),this.isNotAllInformationProvidedMessageVisible=!1}})),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.myOwnFundForm=Object.assign(Object.assign({},oe.myOwnFundForm),{standardChoiceFormSignature:z(t.detail.standardChoiceFormSignature)})}})),e("div",{class:"mt-4"},e("sss-notifications-section",null)),this.isNotAllInformationProvidedMessageVisible&&e("div",{class:"mt-4 alert alert-danger",role:"alert"},"All fields are required to complete submission. Make sure you have selected a fund."),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}async handleSubmitForm(){if(this.formState="validated",!this.formElement.checkValidity())return;if(!(D(oe.myOwnFundForm.fundUsi)&&D(oe.myOwnFundForm.memberNumber)&&D(oe.myOwnFundForm.standardChoiceFormSignature)))return void(this.isNotAllInformationProvidedMessageVisible=!0);const t={fundUsi:this.getOrError(oe.myOwnFundForm.fundUsi),memberNumber:this.getOrError(oe.myOwnFundForm.memberNumber),standardChoiceFormSignature:this.getOrError(oe.myOwnFundForm.standardChoiceFormSignature)};await he.submitCustomFundChoiceAsync(t),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)}getOrError(t){return jt.pipe(t,(e=()=>{throw new Error("Option value is none.")},function(t){return O(t)?e():t.value}));var e}static get assetsDirs(){return["assets"]}};V(be);const ge=class{constructor(e){t(this,e),this.formChanged=n(this,"formChanged",7),this.MIN_SEARCH_STRING_LENGTH=3,this.MAX_RECORD_COUNT=10,this.searchFundsAsync=async t=>(await ce.searchFundsAsync(t,this.MAX_RECORD_COUNT)).sort(((t,e)=>t.productName.localeCompare(e.productName))).map((t=>({label:`${t.productName} (${t.usi})`,value:t.usi})))}render(){return e("div",null,e("div",{class:""},e("label",{class:"mb-2 font-weight-bold"},"Superannuation Fund Name"),e("fl-dropdown-async",{searchFunction:this.searchFundsAsync,minSearchStringLength:this.MIN_SEARCH_STRING_LENGTH,required:!0,requiredValidationMessage:"Select a fund",placeholder:`Search by name or USI (type at least ${this.MIN_SEARCH_STRING_LENGTH} characters)`,value:this.selectedOption,onValueChanged:t=>{this.selectedOption=t.detail,this.updateFundUsi(t.detail.value.toString())}}),e("div",{class:"invalid-feedback"},"Select a fund"),D(this.myOwnFundForm.fundUsi)&&e("div",null,e("label",{class:"mb-2 mt-3 font-weight-bold"},"Superannuation Fund USI"),e("p",{class:"mb-0"},this.myOwnFundForm.fundUsi.value),e("p",{class:"small mt-1"},"Please ensure this is the correct fund USI as some funds have similar names"))),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Member Number"),e("input",{placeholder:"Enter your member number",type:"text",class:"form-control",required:!0,pattern:"[A-Za-z0-9]{4,16}",name:"memberNumber",id:"memberNumber",value:(t=oe.myOwnFundForm.memberNumber,O(t)?void 0:t.value),onChange:t=>this.updateMemberNumber(t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid member number (only numbers and / or letters)")));var t}updateFundUsi(t){this.formChanged.emit({fundUsi:L(t)})}updateMemberNumber(t){this.formChanged.emit({memberNumber:L(t)})}},we=class{constructor(e){t(this,e)}disconnectedCallback(){de.clearNotifications()}render(){const{items:t}=de.state;return t.length<=0?e(o,null):e("div",{class:"alert alert-"+t[0].type,role:"alert"},e("div",{class:"d-flex"},e("p",{class:"mb-0 flex-grow-1"},e("strong",null,t[0].details.title)),e("button",{onClick:this.handleClose,type:"button",class:"close pb-1","aria-label":"Close"},e("span",{"aria-hidden":"true"},"×"))),e("p",{class:"mb-0 mt-1"},t[0].details.description))}handleClose(){de.closeCurrent()}},{state:ye}=qt({fundId:"",memberNumber:"",usi:"",standardChoiceFormSignature:""}),xe=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.environmentDiscriminator=()=>this.hostIsLocalSuperSelection()?"autodev-partner":window.location.hostname.toLowerCase().split(".")[0],this.promotedFundJoinAppUrl=()=>`https://${this.environmentDiscriminator()}.flarehr.com/promoted-fund-join/embed/v1.0/web`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/promoted-fund-redirect.html",i=Object.assign(Object.assign({},this.getMemberData()),{partnerId:Zt.partnerIdOrDefault,accountId:Zt.accountIdOrDefault,fundId:ye.fundId,successRedirectUrl:n,cancelRedirectUrl:n,authToken:Zt.jwt}),r=n=>{const{data:i}=n;if(i)if("promoted-fund-redirect"!==i.sender){if("promoted-fund-join"===i.sender)switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width;break;case"pageNavigated":window.scroll(t.offsetLeft,t.offsetTop),kt(window.location.href)}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){ye.memberNumber=i.memberNumber,ye.usi=i.usi,te.navigateInternally(e,ee.PromotedFundStandardChoice);break}default:te.navigateInternally(e,ee.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.promotedFundJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,s.append(e)}}o.appendChild(s),o.close(),s.submit()}getMemberData(){var t,e;const n=Zt.superBuyer;return{title:n.userProfile.title,firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:n.userProfile.gender,email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}},ke=class{constructor(e){t(this,e)}componentDidLoad(){xe.build(this.iframeElement,this.history)}render(){return e(o,{class:"d-flex flex-fill"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},Se=new class{async submitChoiceAsync(t){return Jt().url("super-choice/promoted-fund").post(t).badRequest((()=>{throw new Error("Failed to process Promoted Fund choice request")})).text()}},Ce=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("div",null,e("div",null,"You're almost done, simply sign the Standard Choice Form below to finalise your superannuation choice."),e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{ye.standardChoiceFormSignature=t.detail.standardChoiceFormSignature}})),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await Se.submitChoiceAsync(Object.assign(Object.assign({},ye),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success))}},_e="60905115063001",Ae="https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements",qe="https://slate.co/pds/?utm_source=flare&utm_medium=superselection",Be="https://www.australianretirementtrust.com.au/library/media/pdfs/pds/super-savings-product-disclosure-statement-and-membership-form.pdf",je="https://aware.com.au/member/forms-and-resources/pds",Ee=[{dtoPropName:"qSuper",id:"qsuper"},{dtoPropName:"slate",id:"slate"},{dtoPropName:"australianRetirementTrust",id:"australian-retirement-trust"},{dtoPropName:"aware",id:"aware"}],Ie=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}render(){return e("div",{class:"d-flex align-items-center justify-content-center"},e("p",{class:"confirm-title font-weight-bold text-center"},"You are now applying for a"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds1.pdf")},"QSuper Accumulation Account"),". Read the"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"PDS")," ","here."))}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Insurance Opt In"})}static get assetsDirs(){return["assets"]}};var Fe,Pe;Ie.style="",function(t){t[t.InsuranceConfirm=0]="InsuranceConfirm",t[t.InsuranceQuestions=1]="InsuranceQuestions",t[t.AccumulationAccount=2]="AccumulationAccount",t[t.ConfirmSelection=3]="ConfirmSelection"}(Fe||(Fe={})),function(t){t[t.question1=0]="question1",t[t.question2=1]="question2",t[t.question3=2]="question3",t[t.question4=3]="question4",t[t.question5=4]="question5",t[t.question6=5]="question6",t[t.question7=6]="question7",t[t.question8=7]="question8"}(Pe||(Pe={}));const Re={currentQSuperInsuranceQuestion:Pe.question1,currentQSuperFormPage:Fe.InsuranceConfirm,qSuperFormValid:!1,nextRoute:"/",continueAllowed:!1,qSuperOptInPageCheckbox:!1,qSuperJoinPageCheckbox:!1,qSuperInsuranceQuestions:{question1:{answered:!1},question2:{answered:!1},question3:{answered:!1},question4:{answered:!1},question5:{answered:!1},question6:{answered:!1},question7:{answered:!1},question8:{answered:!1}},qSuperQuestionnaire:{reviewedApplication:!1,acceptedDeclaration:!1,readDutyOfDisclosure:!1,insuranceChosen:!1},standardChoiceFormSignature:""},{state:Me,reset:Te}=qt(Re),Ne=Te;function De(){var t,e,n,i;const r=window.location.pathname.split(Zt.appBaseUrl)[1],o={[ee.QSuperOptIn]:ee.QSuperQuestion1,[ee.QSuperQuestion1]:Me.qSuperInsuranceQuestions.question1.answered?!0===(null===(t=Me.qSuperQuestionnaire.questions)||void 0===t?void 0:t.question1)?ee.QSuperQuestion4:ee.QSuperQuestion2:ee.QSuperQuestion1,[ee.QSuperQuestion2]:Me.qSuperInsuranceQuestions.question2.answered?!0===(null===(e=Me.qSuperQuestionnaire.questions)||void 0===e?void 0:e.question2)?ee.QSuperQuestion4:ee.QSuperQuestion3:ee.QSuperQuestion2,[ee.QSuperQuestion3]:Me.qSuperInsuranceQuestions.question3.answered?ee.QSuperQuestion4:ee.QSuperQuestion3,[ee.QSuperQuestion4]:Me.qSuperInsuranceQuestions.question4.answered?ee.QSuperQuestion5:ee.QSuperQuestion4,[ee.QSuperQuestion5]:Me.qSuperInsuranceQuestions.question5.answered?ee.QSuperQuestion6:ee.QSuperQuestion5,[ee.QSuperQuestion6]:Me.qSuperInsuranceQuestions.question6.answered?ee.QSuperQuestion7:ee.QSuperQuestion6,[ee.QSuperQuestion7]:Me.qSuperInsuranceQuestions.question7.answered?ee.QSuperQuestion8:ee.QSuperQuestion7,[ee.QSuperQuestion8]:Me.qSuperInsuranceQuestions.question8.answered?ee.QSuperConsent:ee.QSuperQuestion8,[ee.QSuperConsent]:Me.qSuperQuestionnaire.readDutyOfDisclosure&&Me.qSuperQuestionnaire.reviewedApplication?ee.QSuperJoin:ee.QSuperConsent,[ee.QSuperJoin]:Me.qSuperJoinPageCheckbox?ee.Success:ee.QSuperJoin};return r===ee.QSuperQuestion5?Me.qSuperInsuranceQuestions.question1.answered&&Me.qSuperInsuranceQuestions.question2.answered&&Me.qSuperInsuranceQuestions.question3.answered&&Me.qSuperInsuranceQuestions.question4.answered&&Me.qSuperInsuranceQuestions.question5.answered&&(!0===(null===(n=Me.qSuperQuestionnaire.questions)||void 0===n?void 0:n.question3)||!0===(null===(i=Me.qSuperQuestionnaire.questions)||void 0===i?void 0:i.question5))?ee.QSuperQuestion6:ee.QSuperConsent:r===ee.QSuperOptIn?Me.qSuperOptInPageCheckbox?Me.qSuperQuestionnaire.insuranceChosen?ee.QSuperQuestion1:ee.QSuperConsent:r:o[r]}const Oe=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}async componentDidLoad(){window.scroll(0,0),Me.currentQSuperFormPage=Fe.AccumulationAccount}render(){return e("sss-qsuper-layout",null,e("div",{class:"d-flex align-items-center justify-content-center"},e("p",{class:"confirm-title font-weight-bold text-center"},"Your QSuper Accumulation Account")),e("div",{class:"p-3 d-flex mt-4 checkbox-container"},e("p",null,"Just finally, we need you to confirm that you understand the declarations below and the product you've applied for by ticking the box below.",e("br",null),e("br",null),"This form and all products are issued by the QSuper Board (ABN 32 125 059 006 AFSL 489650) as trustee for QSuper (ABN 60 905 115 063).",e("br",null),e("br",null),"I have read and agree to the terms and conditions in the QSuper"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/pds11.pdf")},"Product Disclosure Statement for Accumulation and Income Accounts"),", QSuper's"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/fs15.pdf")},"Your Privacy factsheet"),", and the"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/-/media/pdfs/qsuper-public/publications/qiib09.pdf")},"Financial Services Guide"),".",e("br",null),e("br",null),"I understand that any insurance cover I might have as a result of this application, commences when the first contribution is received into my account. Once I am a member I can cancel, or, subject to eligibility conditions, vary, my cover at any time. Premiums are deducted in accordance with the PDS.",e("br",null),e("br",null),"I also agree to be bound by the Trust Deed and the governing rules of QSuper in relation to the operation of my Accumulation account.",e("br",null),e("br",null),"I confirm that the information I have given is true and correct.",e("br",null),e("br",null),"I confirm that I am the person identified as the applicant in this form.",e("br",null),e("br",null),"I consent to the QSuper Board paying Simple Financial Choices Pty Ltd, a wholly owned subsidiary of Flare, a fee of $300 on receipt of the first contribution into my account, for the provision of technology services.",e("br",null),e("br",null),"I understand that I will be placed into the default investment option QSuper Lifetime.",e("br",null),e("br",null),"I understand that my Tax File Number will be provided to QSuper. NB - if you have your Tax File Number available, this will help speed up the processing of this application and we may be able to Find your Super.",e("br",null),e("br",null),"I have read and accept the"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://qsuper.qld.gov.au/misc/tfn")},"Privacy and Contact Information Statement"))),e("div",null,e("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackAllCheckBox"},e("div",{class:"w-auto px-2 fl-checkbox-container"},e("input",{id:"ackAllCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0 mt-1"},"I acknowledge all of the above. ",e("i",null,"(required)"))))))}handleCheckboxToggle(){Me.qSuperQuestionnaire.readDutyOfDisclosure=!Me.qSuperQuestionnaire.readDutyOfDisclosure,Me.qSuperQuestionnaire.reviewedApplication=!Me.qSuperQuestionnaire.reviewedApplication,Me.continueAllowed=!Me.continueAllowed,Me.nextRoute=De()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Accumulation Page"})}};function Ue(){const t=window.location.pathname.split(Zt.appBaseUrl)[1];Me.continueAllowed={[ee.QSuperOptIn]:Me.qSuperOptInPageCheckbox,[ee.QSuperJoin]:Me.qSuperJoinPageCheckbox&&Me.standardChoiceFormSignature}[t]}function Le(){Ne(),Me.qSuperQuestionnaire=Object.assign(Object.assign({},Me.qSuperQuestionnaire),{acceptedDeclaration:!1,insuranceChosen:!1,readDutyOfDisclosure:!1,reviewedApplication:!1}),Me.qSuperInsuranceQuestions={question1:{answered:!1},question2:{answered:!1},question3:{answered:!1},question4:{answered:!1},question5:{answered:!1},question6:{answered:!1},question7:{answered:!1},question8:{answered:!1}}}Oe.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const ze=class{constructor(e){t(this,e),this.insuranceChosen=!1,this.eventTrackingService=le.Instance,this.isEligibleForInsurance=!1}componentDidLoad(){return this.eventTrackingService.TrackFinancialProductViewedAsync({fundUsi:_e,fundName:"QSuper",financialProduct:"QSuper Insurance"})}componentWillLoad(){Le(),this.ensureInsuranceEligibility()}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-layout",{class:"d-flex flex-fill"},e("sss-qsuper-confirm-header",null),e("div",{class:"mt-4 p-3 checkbox-container"},e("p",null,"As part of becoming a QSuper member, you will receive death cover and total and permanent disability cover when you become eligible. ",e("br",null),e("br",null),"You will receive this cover when: ",e("br",null),e("br",null),"You are 25 years or older; ",e("br",null),"and You have had at least $6,000 in your accumulation account; ",e("br",null),"and At that time, we have received money into your account within the previous 13 months ",e("br",null),e("br",null),"Please see the Accumulation Account Insurance Guide, available on the QSuper website, for further information ",e("br",null),e("br",null),"Do you want this insurance cover?"),e("div",{class:"d-flex justify-content-between mt-4"},e("div",{class:"button-holder flex-grow-1 mr-2"},e("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:!0,variant:this.insuranceChosen?"primary":"secondary",onClick:()=>this.handleInsuranceToggle(!0)},"Yes")),e("div",{class:"button-holder flex-grow-1 ml-2"},e("fl-button",{disabled:!this.isEligibleForInsurance,isBlockElement:!0,variant:this.insuranceChosen?"secondary":"primary",onClick:()=>this.handleInsuranceToggle(!1)},"No")))),e("div",null,e("label",{class:"d-flex mt-3 p-3 checkbox-container",htmlFor:"ackCheckBox"},e("div",{class:"w-auto px-2 fl-checkbox-container"},e("input",{id:"ackCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0"},"I acknowledge that my personal information will be shared with QSuper as part of their application process."))))))}ensureInsuranceEligibility(){Zt.superBuyer.userProfile.yearsOfAge<14||(Zt.superBuyer.userProfile.yearsOfAge<16?this.showIneligibleNotification("You may still apply for QSuper, however people under the age of 16 are not able to apply for insurance."):this.isEligibleForInsurance=!0)}showIneligibleNotification(t){de.showInfoNotification({title:"Unable to apply for Insurance",description:t})}handleInsuranceToggle(t){Me.qSuperQuestionnaire.insuranceChosen=t&&this.isEligibleForInsurance,this.insuranceChosen=Me.qSuperQuestionnaire.insuranceChosen,Me.nextRoute=De()}handleCheckboxToggle(){Me.qSuperOptInPageCheckbox=!Me.qSuperOptInPageCheckbox,Ue(),Me.nextRoute=De()}};ze.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const He=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-layout",{class:"d-flex flex-fill"},e("sss-qsuper-confirm-header",null),e("div",{class:"p-3 mt-4 checkbox-container"},e("slot",null),e("sss-qsuper-question-yes-no-buttons",null))))}};He.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.choice-container{margin-top:0 !important;margin-bottom:0 !important}.confirm-title{font-size:20px;margin-bottom:0}.confirm-text{font-size:14px}.edit-toggle{cursor:pointer}.form-value-text{overflow-wrap:anywhere}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-item-text{font-size:13px}.button-holder{min-width:8rem}.confirm-form-view-only-holder *{font-size:14px}";const Ve=class{constructor(e){t(this,e),this.eventTrackingService=le.Instance}render(){return e("sss-qsuper-layout",null,e("img",{class:"ss-choice-logo mx-auto",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-qsuper.png")}),e("div",{class:"row"},e("div",{class:"col text-center"},e("p",{class:"confirm-title font-weight-bold mb-0"},"You have chosen to join QSuper"))),e("div",{class:"my-3 card p-3"},e("p",{class:"confirm-text"},"We are almost there... All you have to do now is sign the super choice form. We'll prefill it for you. Make sure the info is correct. Your application to join the fund is subject to Trustee approval."),e("p",{class:"confirm-text mb-0"},"You've chosen to stay with your existing fund. Review the details below and click continue to confirm your choice")),e("div",{class:"card p-3"},e("p",{class:"text-center"},"100 years strong"),e("p",{class:"text-center"},"One of Australia's largest funds"),e("p",{class:"text-center mb-0"},"Awarded SuperRatings highest performance rating")),e("div",{class:"mt-3"},e("p",{class:"text-center confirm-text"},"Your application to join the fund is subject to Trustee approval.")),e("div",null,e("label",{class:"d-flex mt-4 p-3 checkbox-container",htmlFor:"confirmCheckBox"},e("div",{class:"w-auto px-2 py-2 fl-checkbox-container"},e("input",{id:"confirmCheckBox",class:"confirm-checkbox-item",type:"checkbox",onChange:()=>this.handleCheckboxToggle()})),e("div",{class:"pl-3"},e("p",{class:"confirm-item-text mb-0 mt-1"},"I've read and understood the"," ",e("a",{target:"_blank",onClick:()=>this.pdsViewedAsync(),href:te.toExternalUrl("https://qsuper.qld.gov.au/calculators-and-forms/publications/product-disclosure-statements/")},"PDS")," ","and confirm all information I have provided is true and correct. I understand that my information will be sent to the trustee of this fund to process my request to join and I consent to my TFN, as currently held on the Flare HR Platform, being given to the trustee in order to open and administer my account.")))),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{Me.standardChoiceFormSignature=t.detail.standardChoiceFormSignature,Ue()}}))}handleCheckboxToggle(){Me.qSuperJoinPageCheckbox=!Me.qSuperJoinPageCheckbox,Ue(),Me.nextRoute=De()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:_e,fundName:"QSuper",pageName:"Confirm Page"})}};Ve.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const Qe=new class{async submitQSuperChoiceAsync(t){return Jt().url("super-choice/qsuper").post(t).badRequest((()=>{throw new Error("Failed to process QSuper join request")})).text()}},We=class{constructor(e){t(this,e),this.isEligible=!1,this.canContinue=()=>this.isEligible&&Me.continueAllowed,this.ensureEligibility=()=>{Zt.superBuyer.userProfile.yearsOfAge<14?this.showIneligibleNotification("People under the age of 14 are not able to open accounts."):Zt.superBuyer.userProfile.yearsOfAge>70?this.showIneligibleNotification("People over the age of 70 are not able to open accounts."):this.isEligible=!0},this.showIneligibleNotification=t=>{de.showInfoNotification({title:"Unable to apply for QSuper",description:t})}}async componentWillLoad(){this.ensureEligibility(),Me.nextRoute=De()}render(){return e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("slot",null),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,disabled:!this.canContinue(),promiseFn:()=>this.tryAsync()},e("span",null,"Continue"))))))))}async tryAsync(){try{if(!this.canContinue())return;await async function(){if(Me.continueAllowed)if(Me.continueAllowed=!1,Me.currentQSuperFormPage===Fe.InsuranceConfirm&&Me.qSuperQuestionnaire.insuranceChosen)Me.currentQSuperFormPage=Fe.InsuranceQuestions;else if(Me.currentQSuperFormPage!==Fe.InsuranceConfirm||Me.qSuperQuestionnaire.insuranceChosen)if(Me.currentQSuperFormPage!==Fe.InsuranceQuestions){if(Me.currentQSuperFormPage===Fe.AccumulationAccount)return Me.qSuperFormValid=!1,void(Me.currentQSuperFormPage=Fe.ConfirmSelection);if(Me.currentQSuperFormPage===Fe.ConfirmSelection){Me.qSuperQuestionnaire.acceptedDeclaration=!0;const t={questionnaire:Me.qSuperQuestionnaire,standardChoiceFormSignature:Me.standardChoiceFormSignature,shownFunds:Zt.promotedFunds};await Qe.submitQSuperChoiceAsync(t),Zt.markSuperSelectionAsSubmitted()}}else Me.currentQSuperFormPage=Fe.AccumulationAccount;else Me.currentQSuperFormPage=Fe.AccumulationAccount}(),te.navigateInternally(this.history,Me.nextRoute)}catch(t){de.showErrorNotification({title:"Couldn't process your request",description:"We had an issue processing your request to join QSuper. Please try again shortly."}),Me.continueAllowed=!0}}static get assetsDirs(){return["assets"]}};V(We);const $e=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 1"),e("p",{class:" mb-0"},"Are you currently a registered or enrolled nurse or assistant in nursing who is qualified and currently practicing, or working in the retail sector, or food and beverage service?")))}},Ye=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 2"),e("p",{class:" mb-0"},"Are you currently a qualified tradesperson currently working within your area of expertise (e.g. hairdresser, chef, plumber, electrician, plasterer, carpenter or concreter), or a skilled worker with light manual duties (e.g. jeweller, building inspector, laboratory technician, foreman or office equipment technician)?")))}},Xe=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 3"),e("p",{class:" mb-0"},"Are you currently a police officer, firefighter, paramedic, or other emergency or protective services worker, including security guard or corrections officer, or a professional sportsperson, or working in a manual occupation which does not require trade specific qualifications and may be subject to accident or environment hazards (e.g. earthmover, driver, cleaner, labourer, factory worker or agricultural worker)?")))}},Je=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 4"),e("p",{class:" mb-0"},"Are the usual work activities of your job considered office based or school teaching ( meaning you spend at least 80% of your work time doing clerical, call centre, administrative or other office or classroom based activities), or are you a medical practitioner, lawyer or engineer who spends at least 80% of your work hours in an office or clinical environment?")))}},Ge=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 5"),e("p",{class:" mb-0"},"Do you currently perform, or intend to work in a job within the next three months that includes, any of the following risky activities: handling firearms (other than as a police officer, correctional officer or licensed security guard), dangerous chemicals or explosives, or offshore work – oil and gas platforms, ships at sea, or being underground (in construction and mining environments) or underwater for more than 20% of total at work time, or working at heights over 20 metres in any environment requiring hard hat and harness for safety by law, or crop dusting, aerial mustering or any low level flying activity (defined as below 150 metres or 500 feet), or flying more than 200 hours per annum as a passenger other than on a commercial airline, or as a pilot (fixed wing or helicopter)?")))}},Ke=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 6"),e("p",{class:" mb-0"},"Are you earning more than $120,000 a year, (before tax and employer paid superannuation), from your job?")))}},Ze=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 7"),e("p",{class:" mb-0"},"Do you have a university qualification which you are using/is required in your current role?")))}},tn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("sss-qsuper-insurance-questions",null,e("p",{class:"font-weight-bold"},"Question 8"),e("p",{class:" mb-0"},"Do you have a senior/executive level management role in your company (your direct reports would be mid-level managers or skilled specialists in a sedentary setting), or is your role considered professional (e.g. doctor, solicitor, accountant – requiring membership of a professional or government body to practice in your occupation)?")))}},en=class{constructor(e){t(this,e)}render(){return e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>this.handleQuestionClick(!0),isBlockElement:!0,variant:"secondary"},e("span",null,"Yes")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,variant:"secondary",onClick:()=>this.handleQuestionClick(!1)},e("span",null,"No")))))}handleQuestionClick(t){const e=window.location.pathname.split(Zt.appBaseUrl+"/qsuper/insurance/")[1].replace(/\/+$/,"");void 0===Me.qSuperQuestionnaire.questions&&(Me.qSuperQuestionnaire.questions={question1:!1,question2:!1,question3:!1,question4:!1,question5:!1,question6:!1,question7:!1,question8:!1}),Me.qSuperQuestionnaire.questions[e]=t,Me.qSuperInsuranceQuestions[e].answered=!0,Me.nextRoute=De(),te.navigateInternally(this.history,Me.nextRoute)}};V(en);const nn=class{constructor(e){t(this,e)}render(){return e(o,{class:"bg-white rounded-sm picked-box-border p-3"},e("div",{class:"d-flex"},e("div",{class:"flex-grow-1 font-weight-bold"},this.fundType),e("div",{class:"px-3 py-2 text-white picked-block position-absolute"},"You picked")),e("div",null,this.fundName))}};nn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.picked-block{background-color:var(--fl-color-primary);border-top-right-radius:3px;right:0;top:0}.picked-box-border{border:2px solid var(--fl-color-primary)}";const rn=class{constructor(e){t(this,e),this.showSmsfNotSupported=!1,this.eventTrackingService=le.Instance,this.success=()=>{Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success)}}componentDidLoad(){return this.eventTrackingService.TrackSmsfSuperFundDetailViewedAsync({promotedFundsShown:Zt.promotedFunds})}render(){return e(o,{class:"d-flex flex-fill"},e("sss-custom-fund",{class:"flex-fill"},e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("div",{class:"card p-4"},e("p",{class:"font-weight-bold"},"Fund details"),e("p",{class:"text-warning mb-4 small"},"Make sure you are already a member of the fund before completing this step."),e("sss-self-managed-fund-inputs",{fundForm:oe.selfManagedFundForm,onFormChanged:t=>{oe.selfManagedFundForm=Object.assign(Object.assign({},oe.selfManagedFundForm),t.detail)}})),e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{oe.selfManagedFundForm=Object.assign(Object.assign({},oe.selfManagedFundForm),t.detail)}}),this.showSmsfNotSupported&&e("sss-smsf-not-supported-dialog",{ref:t=>this.notSupportedDialog=t,onContinue:this.success})),e("div",{class:"mt-4"},e("sss-notifications-section",null)),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("fl-button",{onClick:()=>te.navigateInternally(this.history,ee.ChoicePage),isBlockElement:!0,variant:"secondary"},e("span",null,"Back")))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue")))))))}componentDidRender(){var t;this.showSmsfNotSupported&&(null===(t=this.notSupportedDialog)||void 0===t||t.scrollIntoView())}async handleSubmitForm(){if(this.formState="validated",this.formElement.checkValidity()){const t={smsfChoice:{abn:oe.selfManagedFundForm.fundAbn,fundName:oe.selfManagedFundForm.fundName,fundAddress:{addressLine1:oe.selfManagedFundForm.addressLine1,addressLine2:oe.selfManagedFundForm.addressLine2,city:oe.selfManagedFundForm.city,state:oe.selfManagedFundForm.state,postcode:oe.selfManagedFundForm.postcode},bsb:oe.selfManagedFundForm.bsb,bankAccountName:oe.selfManagedFundForm.bankAccountName,bankAccountNumber:oe.selfManagedFundForm.bankAccountNumber,electronicServiceAddress:oe.selfManagedFundForm.fundEsa},standardChoiceFormSignature:oe.selfManagedFundForm.standardChoiceFormSignature};await he.submitSelfManagedFundChoiceAsync(t),Zt.showSmsfNotSupported?this.showSmsfNotSupported=!0:this.success()}}};V(rn);const on={"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"},sn=class{constructor(e){t(this,e),this.formChanged=n(this,"formChanged",7),this.currentBank=U,this.stateOptions=[{value:"NSW",label:"NSW"},{value:"QLD",label:"QLD"},{value:"ACT",label:"ACT"},{value:"VIC",label:"VIC"},{value:"TAS",label:"TAS"},{value:"WA",label:"WA"},{value:"SA",label:"SA"},{value:"NT",label:"NT"}],this.bsbRegex=new RegExp(/^[0-9]{3}[0-9]{3}$/),this.bankAccountNumberRegex=new RegExp(/^[0-9]{2,10}$/)}render(){return e("div",null,e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Fund name *"),e("input",{placeholder:"Enter your fund name",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundName",id:"fundName",value:oe.selfManagedFundForm.fundName,onChange:t=>this.updateFormField("fundName",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund name")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Fund ABN *"),e("input",{placeholder:"Enter your fund ABN",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundAbn",id:"fundAbn",value:oe.selfManagedFundForm.fundAbn,onChange:t=>this.updateFormField("fundAbn",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund ABN")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Electronic service address alias (ESA) *"),e("input",{placeholder:"Enter your ESA",type:"text",class:"form-control",required:!0,minlength:"2",name:"fundEsa",id:"fundEsa",value:oe.selfManagedFundForm.fundEsa,onChange:t=>this.updateFormField("fundEsa",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid fund ESA")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Address line 1 *"),e("input",{placeholder:"Enter your address",type:"text",class:"form-control",required:!0,minlength:"2",name:"addressLine1",id:"addressLine1",value:oe.selfManagedFundForm.addressLine1,onChange:t=>this.updateFormField("addressLine1",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid address")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Address line 2 (optional)"),e("input",{placeholder:"Enter your address",type:"text",class:"form-control",name:"addressLine2",id:"addressLine2",value:oe.selfManagedFundForm.addressLine2,onChange:t=>this.updateFormField("addressLine2",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid address")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"City/suburb *"),e("input",{placeholder:"Enter your city",type:"text",class:"form-control",name:"city",required:!0,id:"city",value:oe.selfManagedFundForm.city,onChange:t=>this.updateFormField("city",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid city/suburb *")),e("div",{class:"mt-3"},e("label",{class:"mb-2 font-weight-bold"},"State *"),e("select",{class:"form-control",name:"state",required:!0,id:"state",onChange:t=>{this.updateFormField("state",t.target.value.trim())}},e("option",{disabled:!0,selected:!this.fundForm.state,value:""},"Select a state"),this.stateOptions.map((t=>e("option",{value:t.value,selected:this.fundForm.state===t.value},t.label)))),e("div",{class:"invalid-feedback"},"Select a state")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Post code *"),e("input",{placeholder:"Enter your post code",type:"text",required:!0,class:"form-control",name:"postcode",minlength:"4",maxlength:"4",pattern:"[0-9]{4}",id:"postcode",value:oe.selfManagedFundForm.postcode,onChange:t=>this.updateFormField("postcode",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid post code")),e("div",null,e("i",{class:"fas fa-check-circle"})),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"BSB *"),e("input",{placeholder:"Enter your BSB",type:"text",required:!0,class:"form-control",name:"bsb",id:"bsb",minlength:"6",maxlength:"7",onKeyUp:t=>this.updateCurrentBank(t),pattern:this.bsbRegex.source,value:oe.selfManagedFundForm.bsb}),D(this.currentBank)&&e("p",{class:"mt-3"},e("strong",null,"Bank name"),e("br",null),e("span",{class:"ml-2"},this.currentBank.value)),e("div",{class:"invalid-feedback"},"Enter a valid BSB")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Bank account name *"),e("input",{placeholder:"Enter your bank account name",type:"text",required:!0,class:"form-control",name:"bankAccountName",minlength:"2",id:"bankAccountName",value:oe.selfManagedFundForm.bankAccountName,onChange:t=>this.updateFormField("bankAccountName",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid bank account name")),e("div",{class:"mt-4"},e("label",{class:"mb-2 font-weight-bold"},"Bank account number *"),e("input",{placeholder:"Enter your bank account number",type:"text",required:!0,class:"form-control",name:"bankAccountNumber",id:"bankAccountNumber",minlength:"2",maxlength:"11",pattern:this.bankAccountNumberRegex.source,value:oe.selfManagedFundForm.bankAccountNumber,onKeyUp:t=>this.updateCurrentBankAccountNumber(t),onChange:t=>this.updateFormField("bankAccountNumber",t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Enter a valid bank account number")))}updateFormField(t,e){this.formChanged.emit({[t]:e})}filterDigits(t){return t.replace(/[^0-9]/g,"")}updateCurrentBank(t){const e=this.filterDigits(t.target.value),n=e.substring(0,2),i=e.substring(0,3),r=on[n],o=on[i];r&&(this.currentBank=L(r)),o&&(this.currentBank=L(o)),""===e&&(this.currentBank=U),this.updateFormField("bsb",e)}updateCurrentBankAccountNumber(t){const e=this.filterDigits(t.target.value);this.updateFormField("bankAccountNumber",e)}};var an;!function(t){t[t.Unauthorized=0]="Unauthorized",t[t.Authenticated=1]="Authenticated",t[t.Error=2]="Error"}(an||(an={}));class cn{}let un=class extends g{constructor(){super({authenticationState:an.Unauthorized,jwt:U,reactNativeInterop:U,iframeInterop:U,appConfiguration:U})}};un=function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([b({name:"sss-session",resettable:!0})],un);const ln=new un,fn=new class extends w{constructor(t){super(t),this.store=t}isReactNativeInteropEnabled(){return D(this.getValue().reactNativeInterop)}isIframeInteropEnabled(){return D(this.getValue().iframeInterop)}getIframeInteropMode(){const t=this.getValue().iframeInterop;if(O(t))throw Error("Failed to get iframe interop information: no data in store");if(!this.isIframeInteropEnabled())throw Error("Failed to get iframe interop information: iframe mode is disabled");return t.value}}(ln),{state:dn}=qt({slateFundForm:{memberNumber:"",standardChoiceFormSignature:"",shownFunds:[]}}),hn=new class{constructor(){this.hostIsLocalSuperSelection=()=>"http://localhost:7100"==window.location.origin,this.hostIsDeployed=()=>window.location.origin.endsWith("partner.flarehr.com"),this.skipConsolidation=()=>fn.isReactNativeInteropEnabled()?"true":"false",this.environmentDiscriminator=()=>{const t=window.location.hostname.toLowerCase().split(".")[0];switch(t){case"autodev-partner":case"test-partner":case"partner":case"sandbox-partner":return t.replace("partner","");default:return"autodev-"}},this.slateJoinAppUrl=()=>`https://${this.environmentDiscriminator()}join.slatesuper.com.au/confirm`}build(t,e){if(!(null==t?void 0:t.contentDocument))return;const n=(this.hostIsLocalSuperSelection()||this.hostIsDeployed()?window.location.origin+"/super-selection/embed/v1.0/app":"https://autodev-partner.flarehr.com/super-selection/embed/v1.0/app")+"/slate-redirect.html",i=Object.assign(Object.assign({},this.getSlateJoinMemberData()),{successRedirectUrl:n,cancelRedirectUrl:n,skipConsolidation:this.skipConsolidation(),skipInsurance:"true"});this.includeJwt()&&(i.authToken=Zt.jwt);const r=n=>{const{data:i,origin:o}=n;if(i)if("slate-redirect"!==i.sender){if("flare"===i.sender&&o.endsWith("join.slatesuper.com.au"))switch(i.type){case"contentResized":t.height=i.height>0?i.height:t.height,t.width=i.width>0?i.width:t.width}}else switch(window.removeEventListener("message",r),i.type){case"success":if(i.memberNumber){dn.slateFundForm.memberNumber=i.memberNumber,te.navigateInternally(e,ee.SlateStandardChoice);break}default:te.navigateInternally(e,ee.ChoicePage)}};window.addEventListener("message",r);const o=t.contentDocument;o.open();const s=o.createElement("form");let a;for(a in s.method="POST",s.target="_self",s.action=this.slateJoinAppUrl(),i){const t=i[a];if(void 0!==t){const e=document.createElement("input");e.type="hidden",e.name=a,e.value=t,s.append(e)}}o.appendChild(s),o.close(),s.submit()}getSlateJoinMemberData(){var t,e;const n=Zt.superBuyer;return{firstName:n.userProfile.firstName,middleName:n.userProfile.middleName,lastName:n.userProfile.lastName,dateOfBirth:n.userProfile.dateOfBirth,gender:(t=>{switch(t){case"Male":return"Male";case"Female":return"Female";case"Intersex":return"Intersex/Indeterminate";default:return"Unknown"}})(n.userProfile.gender),email:n.userProfile.email,mobilePhone:n.userProfile.mobilePhone,taxFileNumber:null!==(t=n.tfn)&&void 0!==t?t:"",addressLine1:n.userProfile.address.addressLine1,addressLine2:null!==(e=n.userProfile.address.addressLine2)&&void 0!==e?e:"",city:n.userProfile.address.city,state:n.userProfile.address.state,postCode:n.userProfile.address.postcode}}includeJwt(){return!this.slateJoinAppUrl().match(/autodev|sandbox/)}},pn=class{constructor(e){t(this,e)}componentDidLoad(){hn.build(this.iframeElement,this.history)}render(){return e(o,{class:"d-flex flex-fill"},e("iframe",{width:"100%",height:window.innerHeight,style:{border:"none"},ref:t=>this.iframeElement=t}))}},mn=new class{async submitSlateChoiceAsync(t){return Jt().url("super-choice/slate").post(t).badRequest((()=>{throw new Error("Failed to process Slate join request")})).text()}},vn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-10 col-md-7"},e("sss-slatesuper-header",null),e("div",null,e("form",{noValidate:!0,onSubmit:t=>t.preventDefault(),class:{"was-validated":"validated"===this.formState},ref:t=>this.formElement=t},e("sss-standard-choice-form",{onStandardChoiceFormSignatureUpdated:t=>{dn.slateFundForm=Object.assign(Object.assign({},dn.slateFundForm),t.detail)}})),e("div",{class:"d-flex mt-4"},e("div",{class:"flex-grow-1 w-50"},e("div",{class:"mr-2"},e("stencil-route-link",{url:"/"},e("fl-button",{isBlockElement:!0,variant:"secondary"},e("span",null,"Back"))))),e("div",{class:"flex-grow-1 w-50"},e("div",{class:"ml-2"},e("fl-promise-button",{isBlockElement:!0,promiseFn:()=>this.handleSubmitForm()},e("span",null,"Save and continue"))))))))))}async handleSubmitForm(){this.formState="validated",this.formElement.checkValidity()&&(await mn.submitSlateChoiceAsync(Object.assign(Object.assign({},dn.slateFundForm),{shownFunds:Zt.promotedFunds})),Zt.markSuperSelectionAsSubmitted(),te.navigateInternally(this.history,ee.Success))}},bn=class{constructor(e){t(this,e)}render(){return e("div",{class:"d-flex"},e("div",null,e("img",{class:"ss-choice-logo img-thumbnail",alt:"Simple Financial Choices Pty Ltd",src:s("assets/logo-slate.png")})),e("div",{class:"d-flex flex-column ml-3 align-items-left"},e("p",{class:"confirm-title font-weight-bold mb-0"},"You’re almost there!"),e("p",{class:"confirm-text mb-0"},"To proceed type your name below which authorises the signing of the Standard Choice form confirming your super selection.")))}static get assetsDirs(){return["assets"]}};bn.style="";const gn=class{constructor(e){t(this,e),this.continue=n(this,"continue",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.handleContinue=()=>{this.continue.emit()}}render(){return e(o,null,e("div",{class:"overlay"}),e("div",{class:"dialog"},e("div",{class:"card p-4 mt-4 bg-light text-center"},e("div",{style:{"text-align":"center"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"orange",viewBox:"0 0 16 16"},e("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}))),e("p",{class:"small mt-4 mb-0"},"You’ve selected a self-managed super fund (SMSF). Currently, SMSF information can’t be sent via this form. You’ll need to provide your employer with a"," ",e("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","for your SMSF details."),e("div",{class:"d-flex mt-4"},e("div",{class:"w-25"}),e("div",{class:"w-50"},e("fl-button",{onClick:this.handleContinue,isBlockElement:!0,variant:"primary"},e("span",null,"Continue")))))))}};gn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.overlay{position:absolute;top:0;left:0;z-index:100;background-color:#fff;opacity:0.7;width:100%;height:100%}.dialog{z-index:101;position:relative}";const wn=class{constructor(e){t(this,e),this.standardChoiceFormSignatureUpdated=n(this,"standardChoiceFormSignatureUpdated",7),this.standardChoiceFormUrl="/super-selection/embed/v1.0/app/assets/Superannuation_Standard_Choice_Form.pdf",this.standardChoiceFormSignature=""}render(){return e("div",{class:"card p-4 mt-4 bg-light"},e("h4",{class:"small font-weight-bold"},"Superannuation Standard Choice Form"),e("p",{class:"small mt-2"},"The superannuation"," ",e("a",{target:"_blank",href:this.standardChoiceFormUrl},"standard choice form")," ","informs your employer of your choice of fund."),e("h4",{class:"small font-weight-bold"},"Type your full name below (required)"),e("input",{placeholder:"Type your full name",type:"text",class:"form-control",required:!0,minlength:"2",name:"standardChoiceFormSignature",id:"standardChoiceFormSignature",value:this.standardChoiceFormSignature,onKeyUp:t=>this.updateFormField(t.target.value.trim())}),e("div",{class:"invalid-feedback"},"Type your full name"),e("p",{class:"small mt-3 mb-0"},"Your authorisation is required for signing this form. Applying your full name in the text field above is the same as applying your written signature and is legally binding."))}updateFormField(t){this.standardChoiceFormSignatureUpdated.emit({standardChoiceFormSignature:t})}},yn=class{constructor(e){t(this,e)}render(){return e(o,{class:"d-flex flex-fill"},e("div",{class:"container mt-5"},e("div",{class:"row justify-content-center"},e("div",{class:"col col-sm-9 col-md-6"},e("div",{class:"bg-light rounded p-4"},e("div",{class:"d-flex justify-content-center"},e("div",null,e("svg",{width:"3em",height:"3em",viewBox:"0 0 16 16",class:"bi bi-check-circle-fill text-success",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd",d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"})))),e("div",{class:"d-flex justify-content-center"},e("p",{class:"mt-3 confirm-title text-center font-weight-bold px-5"},"Successfully updated superannuation details")),e("div",{class:"mt-2 text-center"},e("p",{class:"confirm-text mb-0"},"Your superannuation details have been updated successfully."),e("br",null),e("p",{class:"confirm-text mb-0"},"To continue with your onboarding, press ",e("strong",null,"Continue")," below."))),e("div",{class:"flex-grow-1 mt-4"},e("fl-promise-button",{isBlockElement:!0,onClick:this.handleContinueButtonClick},e("span",null,"Continue")))))))}handleContinueButtonClick(t){Zt.completeSuperSelectionFlow()}},xn=class{constructor(e){t(this,e),this.joinFundClicked=n(this,"joinFundClicked",7),this.eventTrackingService=le.Instance}render(){return e(o,{class:{"d-flex p-3 fund-item":!0,"ss-picked-fund":this.isSelected}},e("div",{class:"card-body py-0 px-0 px-xl-3"},this.isSelected&&e("div",{class:"px-3 py-2 text-white promoted-picked-block position-absolute"},"You picked"),e("div",{class:"d-flex flex-fill flex-column align-items-center"},e("div",{class:"d-flex justify-content-end w-100"},e("div",{class:"text-muted small border rounded-sm px-1 mt-n2 mr-n2 mb-1"},"Advertised")),e("img",{class:"ss-choice-logo",alt:this.name,src:s("assets/"+this.logo)}),e("p",{class:"font-weight-bold text-center mt-3 mb-0"},this.name),this.subText&&e("span",{class:"text-muted small text-center font-italic"},this.subText),e("div",{class:"mt-3"},JSON.parse(this.features).map((t=>e("p",{class:"text-center"},t.value)))))),e("div",{class:"text-center bottom-half-fund-tile"},e("div",{class:"p-3"},e("fl-button",{class:"uuid-button-continue",isBlockElement:!0,onClick:()=>this.handleFundClick()},"Choose this fund")),e("div",{class:"mb-2"},e("a",{target:"_blank",href:this.pdsLink,onClick:()=>this.pdsViewedAsync()},"View the PDS")),this.disclaimer,e("div",{class:"small text-muted"},this.abnInfo)))}handleFundClick(){return this.joinFundClicked.emit()}pdsViewedAsync(){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:this.usi,fundName:this.name,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};xn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const kn=new class{async GetChosenFundAsync(){var t,e;const n=null===(t=Zt.superBuyer.superChoice)||void 0===t?void 0:t.choiceDetails;if(!n)return U;if("promoted"in n){const t=Ee.find((t=>t.dtoPropName in n.promoted)),i=null!==(e=null==t?void 0:t.id)&&void 0!==e?e:"";return L({isPromoted:!0,promotedId:i})}if("smsf"in n)return L({isPromoted:!1,name:n.smsf.fundName,type:"Self Managed Fund"});if("myOwnFund"in n){const t=n.myOwnFund.usi,e=await this.getFundByUsiAsync(t);return L({isPromoted:!1,name:D(e)?e.value.productName:t,type:"My Own Fund"})}if("default"in n){const t=n.default.usi,e=await this.getFundByUsiAsync(t);return L({isPromoted:!1,name:D(e)?e.value.productName:t,type:"Default Fund"})}return U}getFundByUsiAsync(t){return ce.getFundByUsiAsync(t)}},Sn=class{constructor(e){t(this,e),this.promotedFunds=this.getPromotedFunds(),this.chosenFund=U,this.eventTrackingService=le.Instance,this.isPromotedFundSelected=t=>D(this.chosenFund)&&this.chosenFund.value.isPromoted&&this.chosenFund.value.promotedId===t}componentDidLoad(){yt();const t=this.promotedFunds.map((t=>t.fundId));this.eventTrackingService.TrackSuperFundPanelViewedAsync({promotedFundsShown:t})}async componentWillLoad(){Le(),this.chosenFund=await kn.GetChosenFundAsync()}render(){return e(o,null,e("div",{class:"container mt-0 mb-0"},e("div",{class:"row justify-content-center"},e("div",{class:"col"},e("h3",{class:"mt-3 font-weight-bold text-center mb-4"},"Choose your Super"))),e("div",{class:"row justify-content-center"},e("div",{class:"col"},e("p",{class:"text-center font-weight-bold"},"The choice of superannuation fund is an important personal financial decision. It is open to you to continue with your existing fund, or alternatively, you can select from one of the funds below or choose another fund. Flare HR is not licensed to advise you in relation to this decision and you may wish to return to this page at a later stage."),e("p",{class:"text-center"},"The content on this page and on the following pages relating to each super fund is provided by the trustee or promoter of the super fund. The super funds presented have not been selected by your employer and neither your employer or Flare HR are making any recommendation or opinion."),e("p",{class:"text-center"},"There are many super funds out there and you should consider the relevant product disclosure statement and choose one that is right for you. If you are unsure, obtain your own advice. You can choose your super fund later, if you need time to obtain advice."))),e("div",{class:"row"},e("div",{class:"col"},e("sss-notifications-section",null))),e("div",{class:"row justify-content-center mt-4"},e("div",{class:"col col-sm-10 col-md-8 col-xl-7"},e("div",{class:"row"},e("div",{class:"col"},e("div",{class:"d-flex flex-fill"},D(this.chosenFund)&&!this.chosenFund.value.isPromoted&&e("sss-selected-super-choice-section",{fundType:this.chosenFund.value.type,fundName:this.chosenFund.value.name,class:"flex-fill position-relative"})))),e("div",{class:"row mt-3 justify-content-center"},this.getPromotedFunds().map((t=>e("div",{class:"col-12 col-lg-6 d-flex"},e("sss-super-choice-item",{class:"card mb-3 mb-lg-0 mx-0 flex-grow-1",logo:t.logo,isSelected:this.isPromotedFundSelected(t.fundId),usi:t.usi,name:t.name,subText:t.subText,pdsLink:te.toExternalUrl(t.pdsLink),features:JSON.stringify(t.features),disclaimer:t.disclaimer,abnInfo:t.abnInfo,onJoinFundClicked:async()=>this.handleJoinSuperClickAsync(t)}))))),e("div",{class:"row mt-3 px-3"},e("div",{class:"col p-4 border rounded bg-light"},e("div",{class:"row"},e("div",{class:"col"},e("h5",{class:"font-weight-bold"},"Choose another super fund"),e("p",{class:"mb-1"},"Select this option if you'd like to use your current account with another super fund."),e("ul",{class:"ml-n3"},e("li",null,"If you are unsure of your current super fund details, you can find out at"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://my.gov.au")},"my.gov.au")),e("li",{class:"mt-1"},"A full list of super funds can be viewed at"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://www.apra.gov.au/register-of-superannuation-institutions")},"www.apra.gov.au/register-of-superannuation-institutions"))))),e("div",{class:"row"},e("div",{class:"col"},e("stencil-route-link",{url:ee.MyOwnFund},e("fl-button",{isBlockElement:!0,variant:"primary",class:"d-lg-none"},"Choose another fund"),e("div",{class:"mt-n3 d-none d-lg-flex justify-content-end align-items-end"},e("fl-button",{variant:"primary"},"Choose another fund"))))))))),e("div",{class:"row justify-content-center mt-5"},e("div",{class:"col"},e("p",{class:"text-center"},"You should be aware that, if you do choose one of these advertised funds, Flare HR and its associated entities will normally receive a fee for you doing so.")))))}allFunds(){return[{fundId:"slate",usi:"32367272075001",name:"Slate Super",logo:"logo-slate.png",route:ee.SlateJoin,pdsLink:qe,features:[{order:1,value:"A lifestage investment strategy that evolves with you"},{order:2,value:"Advanced mobile app with retirement forecast and smart features"},{order:3,value:"Member advocates at Slate to assist with your account"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(qe),onClick:()=>this.pdsViewedAsync("Slate Super","32367272075001")},"Product Disclosure Statement")," ","and"," ",e("a",{target:"_blank",href:te.toExternalUrl("https://slate.co/forms-and-documents/target-market-determination/")},"Target Market Determination")," ","before deciding to invest in or apply to become a member of the fund."),abnInfo:"Diversa Trustees Limited ABN: 49 006 421 638"},{fundId:"qsuper",usi:_e,name:"QSuper",logo:"logo-qsuper-square.png",route:ee.QSuperOptIn,pdsLink:Ae,features:[{order:1,value:"100 years strong"},{order:2,value:"One of Australia's largest funds"},{order:3,value:"Awarded SuperRatings highest performance rating"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(Ae),onClick:()=>this.pdsViewedAsync("QSuper",_e)},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"QSuper Board ABN: 32 125 059 006"},{fundId:"australian-retirement-trust",name:"Australian Retirement Trust",subText:"QSuper is now part of Australian Retirement Trust. If you have an existing QSuper account, you will continue to hold that account by selecting this option.",logo:"logo-art.svg",route:ee.PromotedFundJoin,pdsLink:Be,features:[{order:1,value:"$200 billion in retirement savings"},{order:2,value:"2+ million members"},{order:3,value:"A focus on delivering strong, long‑term returns"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(Be),onClick:()=>this.pdsViewedAsync("Australian Retirement Trust")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Australian Retirement Trust ABN: 60 905 115 063"},{fundId:"aware",name:"Aware Super",logo:"logo-aware.svg",route:ee.PromotedFundJoin,pdsLink:je,features:[{order:1,value:"Lorem ipsum dolor sit amet"},{order:2,value:"Lorem ipsum dolor sit amet"},{order:3,value:"Lorem ipsum dolor sit amet"}],disclaimer:e("p",{class:"small text-muted"},"You should consider the"," ",e("a",{target:"_blank",href:te.toExternalUrl(je),onClick:()=>this.pdsViewedAsync("Aware Super")},"Product Disclosure Statement")," ","before deciding to invest in or apply to become a member of this fund."),abnInfo:"Aware Super Pty Ltd ABN: 53 226 460 365"}]}getPromotedFunds(){const t=[];return Zt.promotedFunds.forEach((e=>{const n=this.allFunds().find((t=>e==t.fundId));void 0!==n&&t.push(n)})),t}async handleJoinSuperClickAsync(t){const e=Zt.promotedFunds;return"slate"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:"32367272075001",fundName:"Slate Super",promotedFundId:"slate",promotedFundsShown:e}):"qsuper"===t.fundId?await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundUsi:_e,fundName:"QSuper",promotedFundId:"qsuper",promotedFundsShown:e}):"australian-retirement-trust"===t.fundId?(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Australian Retirement Trust",promotedFundId:"australian-retirement-trust",promotedFundsShown:e}),ye.fundId=t.fundId):"aware"===t.fundId&&(await this.eventTrackingService.TrackPromotedSuperFundDetailViewedAsync({fundName:"Aware Super",promotedFundId:"aware",promotedFundsShown:e}),ye.fundId=t.fundId),te.navigateInternally(this.history,t.route)}pdsViewedAsync(t,e){return this.eventTrackingService.TrackSuperFundPdsViewedAsync({fundUsi:e,fundName:t,pageName:"Panel Fund Page"})}static get assetsDirs(){return["assets"]}};Sn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}.checkbox-container{border-radius:4px;background-color:#f5f4f2}.confirm-checkbox-item{-webkit-transform:scale(1.7);transform:scale(1.7)}.simple-choices-text{color:#489882}.choice-card{background:#ffffff;-webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);box-shadow:0 1px 4px rgba(0, 0, 0, 0.25);border-radius:3px}.choice-card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.card.ss-picked-fund{border:2px solid var(--fl-color-primary)}.ss-choice-logo{width:auto;max-height:70px;-o-object-fit:contain;object-fit:contain}img{width:100%;display:block}.choice-component{width:100%;position:relative}.flexible{-ms-flex-positive:1;flex-grow:1}.fund-item{margin-top:1rem}.promoted-picked-block{background-color:var(--fl-color-primary);border-bottom-right-radius:3px;left:0;top:0}@media (min-width: 992px){.bottom-half-fund-tile{height:220px}}";const Cn=class{constructor(e){t(this,e),this.group=null,this.match=null,this.componentProps={},this.exact=!1,this.scrollOnNextRender=!1,this.previousMatch=null}computeMatch(t){const e=null!=this.group||null!=this.el.parentElement&&"stencil-route-switch"===this.el.parentElement.tagName.toLowerCase();if(t&&!e)return this.previousMatch=this.match,this.match=lt(t.pathname,{path:this.url,exact:this.exact,strict:!0})}async loadCompleted(){let t={};var e,n;this.history&&this.history.location.hash?t={scrollToId:this.history.location.hash.substr(1)}:this.scrollTopOffset&&(t={scrollTopOffset:this.scrollTopOffset}),"function"==typeof this.componentUpdated?this.componentUpdated(t):!this.match||(n=this.previousMatch,null==(e=this.match)&&null==n||null!=n&&e&&n&&e.path===n.path&&e.url===n.url&&st(e.params,n.params))||!this.routeViewsUpdated||this.routeViewsUpdated(t)}async componentDidUpdate(){await this.loadCompleted()}async componentDidLoad(){await this.loadCompleted()}render(){if(!this.match||!this.history)return null;const t=Object.assign({},this.componentProps,{history:this.history,match:this.match});return this.routeRender?this.routeRender(Object.assign({},t,{component:this.component})):this.component?e(this.component,Object.assign({},t)):void 0}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};_.injectProps(Cn,["location","history","historyType","routeViewsUpdated"]),Cn.style="stencil-route.inactive{display:none}";const _n=(t,e,n)=>n(t.confirm(e)),An=(t,e)=>{const n=t[e],i="__storage_test__";try{return n.setItem(i,i),n.removeItem(i),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},qn=class{constructor(e){t(this,e),this.unsubscribe=()=>{},this.activeClass="link-active",this.exact=!1,this.strict=!0,this.custom="a",this.match=null}componentWillLoad(){this.computeMatch()}computeMatch(){this.location&&(this.match=lt(this.location.pathname,{path:this.urlMatch||this.url,exact:this.exact,strict:this.strict}))}handleClick(t){var e,n,i;if(!((e=t).metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&this.history&&this.url&&this.root)return t.preventDefault(),this.history.push((i=this.root,"/"==(n=this.url).charAt(0)&&"/"==i.charAt(i.length-1)?i.slice(0,i.length-1)+n:i+n))}render(){let t={class:{[this.activeClass]:null!==this.match},onClick:this.handleClick.bind(this)};return this.anchorClass&&(t.class[this.anchorClass]=!0),"a"===this.custom&&(t=Object.assign({},t,{href:this.url,title:this.anchorTitle,role:this.anchorRole,tabindex:this.anchorTabIndex,"aria-haspopup":this.ariaHaspopup,id:this.anchorId,"aria-posinset":this.ariaPosinset,"aria-setsize":this.ariaSetsize,"aria-label":this.ariaLabel})),e(this.custom,Object.assign({},t),e("slot",null))}get el(){return a(this)}static get watchers(){return{location:["computeMatch"]}}};_.injectProps(qn,["history","location","root"]);const Bn=t=>"STENCIL-ROUTE"===t.tagName,jn=class{constructor(e){t(this,e),this.group=((1e17*Math.random()).toString().match(/.{4}/g)||[]).join("-"),this.subscribers=[],this.queue=c(this,"queue")}componentWillLoad(){null!=this.location&&this.regenerateSubscribers(this.location)}async regenerateSubscribers(t){if(null==t)return;let e=-1;if(this.subscribers=Array.prototype.slice.call(this.el.children).filter(Bn).map(((n,i)=>{const r=lt(t.pathname,{path:n.url,exact:n.exact,strict:!0});return r&&-1===e&&(e=i),{el:n,match:r}})),-1===e)return;if(this.activeIndex===e)return void(this.subscribers[e].el.match=this.subscribers[e].match);this.activeIndex=e;const n=this.subscribers[this.activeIndex];this.scrollTopOffset&&(n.el.scrollTopOffset=this.scrollTopOffset),n.el.group=this.group,n.el.match=n.match,n.el.componentUpdated=t=>{this.queue.write((()=>{this.subscribers.forEach(((t,e)=>{if(t.el.componentUpdated=void 0,e===this.activeIndex)return t.el.style.display="";this.scrollTopOffset&&(t.el.scrollTopOffset=this.scrollTopOffset),t.el.group=this.group,t.el.match=null,t.el.style.display="none"}))})),this.routeViewsUpdated&&this.routeViewsUpdated(Object.assign({scrollTopOffset:this.scrollTopOffset},t))}}render(){return e("slot",null)}get el(){return a(this)}static get watchers(){return{location:["regenerateSubscribers"]}}};_.injectProps(jn,["location","routeViewsUpdated"]);const En=(t,...e)=>{t||console.warn(...e)},In=()=>{let t,e=[];return{setPrompt:e=>(En(null==t,"A history supports only one prompt at a time"),t=e,()=>{t===e&&(t=null)}),confirmTransitionTo:(e,n,i,r)=>{if(null!=t){const o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof i?i(o,r):(En(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:t=>{let n=!0;const i=(...e)=>{n&&t(...e)};return e.push(i),()=>{n=!1,e=e.filter((t=>t!==i))}},notifyListeners:(...t)=>{e.forEach((e=>e(...t)))}}},Fn=(t,e="scrollPositions")=>{let n=new Map;const i=(e,i)=>{if(n.set(e,i),An(t,"sessionStorage")){const e=[];n.forEach(((t,n)=>{e.push([n,t])})),t.sessionStorage.setItem("scrollPositions",JSON.stringify(e))}};if(An(t,"sessionStorage")){const i=t.sessionStorage.getItem(e);n=i?new Map(JSON.parse(i)):n}return"scrollRestoration"in t.history&&(history.scrollRestoration="manual"),{set:i,get:t=>n.get(t),has:t=>n.has(t),capture:e=>{i(e,[t.scrollX,t.scrollY])}}},Pn={hashbang:{encodePath:t=>"!"===t.charAt(0)?t:"!/"+et(t),decodePath:t=>"!"===t.charAt(0)?t.substr(1):t},noslash:{encodePath:et,decodePath:tt},slash:{encodePath:tt,decodePath:tt}},Rn=(t,e)=>{const n=0==t.pathname.indexOf(e)?"/"+t.pathname.slice(e.length):t.pathname;return Object.assign({},t,{pathname:n})},Mn={browser:(t,e={})=>{let n=!1;const i=t.history,r=t.location,o=t.navigator,s=(t=>{const e=t.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&t.history&&"pushState"in t.history})(t),a=!(-1===o.userAgent.indexOf("Trident")),c=Fn(t),u=null!=e.forceRefresh&&e.forceRefresh,l=null!=e.getUserConfirmation?e.getUserConfirmation:_n,f=null!=e.keyLength?e.keyLength:6,d=e.basename?Z(tt(e.basename)):"",h=()=>{try{return t.history.state||{}}catch(t){return{}}},p=t=>{t=t||{};const{key:e,state:n}=t,{pathname:i,search:o,hash:s}=r;let a=i+o+s;return En(!d||G(a,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+d+'".'),d&&(a=K(a,d)),at(a,n,e||rt(f))},m=In(),v=t=>{c.capture(B.location.key),Object.assign(B,t),B.location.scrollPosition=c.get(B.location.key),B.length=i.length,m.notifyListeners(B.location,B.action)},b=t=>{((t,e)=>void 0===e.state&&-1===t.userAgent.indexOf("CriOS"))(o,t)||w(p(t.state))},g=()=>{w(p(h()))},w=t=>{if(n)n=!1,v();else{const e="POP";m.confirmTransitionTo(t,e,l,(n=>{n?v({action:e,location:t}):y(t)}))}},y=t=>{let e=k.indexOf(B.location.key),i=k.indexOf(t.key);-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,A(r))},x=p(h());let k=[x.key],S=0,C=!1;const _=t=>d+nt(t),A=t=>{i.go(t)},q=e=>{S+=e,1===S?(t.addEventListener("popstate",b),a&&t.addEventListener("hashchange",g)):0===S&&(t.removeEventListener("popstate",b),a&&t.removeEventListener("hashchange",g))},B={length:i.length,action:"POP",location:x,createHref:_,push:(t,e)=>{En(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");const n="PUSH",o=at(t,e,rt(f),B.location);m.confirmTransitionTo(o,n,l,(t=>{if(!t)return;const e=_(o),{key:a,state:c}=o;if(s)if(i.pushState({key:a,state:c},"",e),u)r.href=e;else{const t=k.indexOf(B.location.key),e=k.slice(0,-1===t?0:t+1);e.push(o.key),k=e,v({action:n,location:o})}else En(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),r.href=e}))},replace:(t,e)=>{En(!("object"==typeof t&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");const n="REPLACE",o=at(t,e,rt(f),B.location);m.confirmTransitionTo(o,n,l,(t=>{if(!t)return;const e=_(o),{key:a,state:c}=o;if(s)if(i.replaceState({key:a,state:c},"",e),u)r.replace(e);else{const t=k.indexOf(B.location.key);-1!==t&&(k[t]=o.key),v({action:n,location:o})}else En(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),r.replace(e)}))},go:A,goBack:()=>A(-1),goForward:()=>A(1),block:(t="")=>{const e=m.setPrompt(t);return C||(q(1),C=!0),()=>(C&&(C=!1,q(-1)),e())},listen:t=>{const e=m.appendListener(t);return q(1),()=>{q(-1),e()}},win:t};return B},hash:(t,e={})=>{let n=!1,i=null,r=0,o=!1;const s=t.location,a=t.history,c=-1===t.navigator.userAgent.indexOf("Firefox"),u=null!=e.keyLength?e.keyLength:6,{getUserConfirmation:l=_n,hashType:f="slash"}=e,d=e.basename?Z(tt(e.basename)):"",{encodePath:h,decodePath:p}=Pn[f],m=()=>{const t=s.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},v=t=>{const e=s.href.indexOf("#");s.replace(s.href.slice(0,e>=0?e:0)+"#"+t)},b=()=>{let t=p(m());return En(!d||G(t,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+d+'".'),d&&(t=K(t,d)),at(t,void 0,rt(u))},g=In(),w=t=>{Object.assign(j,t),j.length=a.length,g.notifyListeners(j.location,j.action)},y=()=>{const t=m(),e=h(t);if(t!==e)v(e);else{const t=b(),e=j.location;if(!n&&(r=e).pathname===(o=t).pathname&&r.search===o.search&&r.hash===o.hash&&r.key===o.key&&st(r.state,o.state))return;if(i===nt(t))return;i=null,x(t)}var r,o},x=t=>{if(n)n=!1,w();else{const e="POP";g.confirmTransitionTo(t,e,l,(n=>{n?w({action:e,location:t}):k(t)}))}},k=t=>{let e=A.lastIndexOf(nt(j.location)),i=A.lastIndexOf(nt(t));-1===e&&(e=0),-1===i&&(i=0);const r=e-i;r&&(n=!0,q(r))},S=m(),C=h(S);S!==C&&v(C);const _=b();let A=[nt(_)];const q=t=>{En(c,"Hash history go(n) causes a full page reload in this browser"),a.go(t)},B=(t,e)=>{r+=e,1===r?t.addEventListener("hashchange",y):0===r&&t.removeEventListener("hashchange",y)},j={length:a.length,action:"POP",location:_,createHref:t=>"#"+h(d+nt(t)),push:(t,e)=>{En(void 0===e,"Hash history cannot push state; it is ignored");const n="PUSH",r=at(t,void 0,rt(u),j.location);g.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=nt(r),o=h(d+e);if(m()!==o){i=e,(t=>{s.hash=t})(o);const t=A.lastIndexOf(nt(j.location)),a=A.slice(0,-1===t?0:t+1);a.push(e),A=a,w({action:n,location:r})}else En(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}))},replace:(t,e)=>{En(void 0===e,"Hash history cannot replace state; it is ignored");const n="REPLACE",r=at(t,void 0,rt(u),j.location);g.confirmTransitionTo(r,n,l,(t=>{if(!t)return;const e=nt(r),o=h(d+e);m()!==o&&(i=e,v(o));const s=A.indexOf(nt(j.location));-1!==s&&(A[s]=e),w({action:n,location:r})}))},go:q,goBack:()=>q(-1),goForward:()=>q(1),block:(e="")=>{const n=g.setPrompt(e);return o||(B(t,1),o=!0),()=>(o&&(o=!1,B(t,-1)),n())},listen:e=>{const n=g.appendListener(e);return B(t,1),()=>{B(t,-1),n()}},win:t};return j}},Tn=class{constructor(e){t(this,e),this.root="/",this.historyType="browser",this.titleSuffix="",this.routeViewsUpdated=(t={})=>{if(this.history&&t.scrollToId&&"browser"===this.historyType){const e=this.history.win.document.getElementById(t.scrollToId);if(e)return e.scrollIntoView()}this.scrollTo(t.scrollTopOffset||this.scrollTopOffset)},this.isServer=c(this,"isServer"),this.queue=c(this,"queue")}componentWillLoad(){this.history=Mn[this.historyType](this.el.ownerDocument.defaultView),this.history.listen((t=>{t=Rn(t,this.root),this.location=t})),this.location=Rn(this.history.location,this.root)}scrollTo(t){const e=this.history;if(null!=t&&!this.isServer&&e)return"POP"===e.action&&Array.isArray(e.location.scrollPosition)?this.queue.write((()=>{e&&e.location&&Array.isArray(e.location.scrollPosition)&&e.win.scrollTo(e.location.scrollPosition[0],e.location.scrollPosition[1])})):this.queue.write((()=>{e.win.scrollTo(0,t)}))}render(){if(this.location&&this.history)return e(_.Provider,{state:{historyType:this.historyType,location:this.location,titleSuffix:this.titleSuffix,root:this.root,history:this.history,routeViewsUpdated:this.routeViewsUpdated}},e("slot",null))}get el(){return a(this)}},Nn=class{constructor(e){t(this,e),this.stepSubmitSuccess=n(this,"step-completion",7),this.successPageAcknowledged=n(this,"successPageAcknowledged",5),this.initialised=n(this,"initialised",7),this.isAppInitialised=!1}async componentWillLoad(){const t=Et.fromNullable(this.accessToken);if(Et.isNone(t))throw Error("jwt property is missing.");Zt.state.jwt=t;const e=Et.fromNullable(this.backendUrl);if(Et.isNone(e))throw Error("apiBaseUrl property is missing.");Zt.state.apiBaseUrl=Et.some(e.value.replace(/\/$/,"")+"/");const n=Et.fromNullable(this.appBaseUrl);if(Et.isNone(n))throw Error("appBaseUrl property is missing.");Zt.state.appBaseUrl=Et.some(n.value.replace(/\/$/,"")),Zt.onChange("hasSuccessPageBeenAcknowledged",(()=>this.successPageAcknowledged.emit())),Zt.onChange("hasSuperSelectionBeenSubmitted",(t=>{t&&(this.stepSubmitSuccess.emit(),Zt.state.hasSuperSelectionBeenSubmitted=!1)}))}async componentDidLoad(){Le(),await Zt.loadAppStateAsync(),this.isAppInitialised=!0,this.initialised.emit({accountIdOrDefault:Zt.accountIdOrDefault,partnerIdOrDefault:Zt.partnerIdOrDefault,profileId:Zt.profileId})}authTokenChanged(t){Zt.state.jwt=Et.fromNullable(t)}onRouteChange(){null===window||void 0===window||window.scroll(0,0)}render(){return e(o,{class:"d-flex justify-content-center flex-grow-1"},e("div",{class:"d-flex flex-column justify-content-between"},this.renderAppContent()))}routerBaseUrl(){var t;return(null===(t=this.appBaseUrl)||void 0===t?void 0:t.replace(/\/$/,""))+"/"}renderAppContent(){return e("stencil-router",{root:this.routerBaseUrl()},e("stencil-route-switch",{scrollTopOffset:0},e("div",{class:"d-flex flex-column"},e("div",{class:"d-flex justify-content-center"},this.isAppInitialised?ne:e("fl-loading-indicator",{class:"mt-5"})),e("div",{class:"d-flex justify-content-center"},e("sss-footer-section",null)))))}static get watchers(){return{accessToken:["authTokenChanged"],location:["onRouteChange"]}}};V(Nn),Nn.style="html{scroll-behavior:smooth}img.fluid-fit{-o-object-fit:cover;object-fit:cover}stencil-route{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}stencil-route:empty{display:none}";var Dn,On=[],Un="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Dn||(Dn={}));var Ln,zn=function(t){return Object.freeze(t)},Hn=function(t,e){this.inlineSize=t,this.blockSize=e,zn(this)},Vn=function(){function t(t,e,n,i){return this.x=t,this.y=e,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,zn(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Qn=function(t){return t instanceof SVGElement&&"getBBox"in t},Wn=function(t){if(Qn(t)){var e=t.getBBox();return!e.width&&!e.height}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},$n=function(t){var e,n,i=null===(n=null===(e=t)||void 0===e?void 0:e.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(i&&t instanceof i.Element)},Yn="undefined"!=typeof window?window:{},Xn=new WeakMap,Jn=/auto|scroll/,Gn=/^tb|vertical/,Kn=/msie|trident/i.test(Yn.navigator&&Yn.navigator.userAgent),Zn=function(t){return parseFloat(t||"0")},ti=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new Hn((n?e:t)||0,(n?t:e)||0)},ei=zn({devicePixelContentBoxSize:ti(),borderBoxSize:ti(),contentBoxSize:ti(),contentRect:new Vn(0,0,0,0)}),ni=function(t,e){if(void 0===e&&(e=!1),Xn.has(t)&&!e)return Xn.get(t);if(Wn(t))return Xn.set(t,ei),ei;var n=getComputedStyle(t),i=Qn(t)&&t.ownerSVGElement&&t.getBBox(),r=!Kn&&"border-box"===n.boxSizing,o=Gn.test(n.writingMode||""),s=!i&&Jn.test(n.overflowY||""),a=!i&&Jn.test(n.overflowX||""),c=i?0:Zn(n.paddingTop),u=i?0:Zn(n.paddingRight),l=i?0:Zn(n.paddingBottom),f=i?0:Zn(n.paddingLeft),d=i?0:Zn(n.borderTopWidth),h=i?0:Zn(n.borderRightWidth),p=i?0:Zn(n.borderBottomWidth),m=f+u,v=c+l,b=(i?0:Zn(n.borderLeftWidth))+h,g=d+p,w=a?t.offsetHeight-g-t.clientHeight:0,y=s?t.offsetWidth-b-t.clientWidth:0,x=r?m+b:0,k=r?v+g:0,S=i?i.width:Zn(n.width)-x-y,C=i?i.height:Zn(n.height)-k-w,_=S+m+y+b,A=C+v+w+g,q=zn({devicePixelContentBoxSize:ti(Math.round(S*devicePixelRatio),Math.round(C*devicePixelRatio),o),borderBoxSize:ti(_,A,o),contentBoxSize:ti(S,C,o),contentRect:new Vn(f,c,S,C)});return Xn.set(t,q),q},ii=function(t,e,n){var i=ni(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case Dn.DEVICE_PIXEL_CONTENT_BOX:return s;case Dn.BORDER_BOX:return r;default:return o}},ri=function(t){var e=ni(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=zn([e.borderBoxSize]),this.contentBoxSize=zn([e.contentBoxSize]),this.devicePixelContentBoxSize=zn([e.devicePixelContentBoxSize])},oi=function(t){if(Wn(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},si=function(){var t=1/0,e=[];On.forEach((function(n){if(0!==n.activeTargets.length){var i=[];n.activeTargets.forEach((function(e){var n=new ri(e.target),r=oi(e.target);i.push(n),e.lastReportedSize=ii(e.target,e.observedBox),r<t&&(t=r)})),e.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=e;n<i.length;n++)(0,i[n])();return t},ai=function(t){On.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(oi(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},ci=[],ui=0,li={attributes:!0,characterData:!0,childList:!0,subtree:!0},fi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],di=function(t){return void 0===t&&(t=0),Date.now()+t},hi=!1,pi=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!hi){hi=!0;var n,i=di(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(ai(e);On.some((function(t){return t.activeTargets.length>0}));)e=si(),ai(e);return On.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Un}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Un),window.dispatchEvent(t)),e>0}()}finally{if(hi=!1,t=i-di(),!ui)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!Ln){var e=0,n=document.createTextNode("");new MutationObserver((function(){return ci.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),Ln=function(){n.textContent=""+(e?e--:e++)}}ci.push(t),Ln()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,li)};document.body?e():Yn.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),fi.forEach((function(e){return Yn.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),fi.forEach((function(e){return Yn.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),mi=function(t){!ui&&t>0&&pi.start(),!(ui+=t)&&pi.stop()},vi=function(){function t(t,e){this.target=t,this.observedBox=e||Dn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=ii(this.target,this.observedBox,!0);return Qn(t=this.target)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),bi=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},gi=new WeakMap,wi=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},yi=function(){function t(){}return t.connect=function(t,e){var n=new bi(t,e);gi.set(t,n)},t.observe=function(t,e,n){var i=gi.get(t),r=0===i.observationTargets.length;wi(i.observationTargets,e)<0&&(r&&On.push(i),i.observationTargets.push(new vi(e,n&&n.box)),mi(1),pi.schedule())},t.unobserve=function(t,e){var n=gi.get(t),i=wi(n.observationTargets,e);i>=0&&(1===n.observationTargets.length&&On.splice(On.indexOf(n),1),n.observationTargets.splice(i,1),mi(-1))},t.disconnect=function(t){var e=this,n=gi.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),xi=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");yi.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$n(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$n(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");yi.unobserve(this,t)},t.prototype.disconnect=function(){yi.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const ki=new class{constructor(){this._appRootUrl=new H((()=>this.resolveRootUrl())),this.getAppRootUrl=()=>this._appRootUrl.value,this.getAppHostUrl=()=>`${window.location.origin}${this.getAppRootUrl()}`.replace(/\/$/,"")}async loadConfigurationAsync(){const t=await Xt(this.getAppRootUrl()+"config.json").get().json();ln.update({appConfiguration:Et.fromNullable(t)})}resolveRootUrl(){const t=Et.fromNullable(window.location.pathname.match(/^\/super-selection\/embed\/v1.0\/app/));if(Et.isNone(t))throw Error("Unsupported host URL");return t.value[0]+"/"}};function Si(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function Ci(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 _i,Ai,qi=function(t,e){return(qi=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)},Bi=Si()||{};Ai=function(t,e){function n(){this.constructor=t}qi(t,e),t.prototype=null===e?Ci(e):(n.prototype=e.prototype,new n)},(_i=Bi).__assign||(_i.__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}),_i.__extends||(_i.__extends=Ai),__assign||(__assign=Bi.__assign),__extends||(__extends=Bi.__extends);var ji=Si;function Ei(t){var e=ji();return e&&e[t]?e[t]:"window"===t&&Ii()?window:null}function Ii(){return Boolean("object"==typeof window&&window)}function Fi(){return Ii()?window:Ei("window")}function Pi(){return Boolean("object"==typeof document&&document)}function Ri(){return Pi()?document:Ei("document")}function Mi(){return Boolean("object"==typeof navigator&&navigator)?navigator:Ei("navigator")}function Ti(){return"object"==typeof location&&location?location:Ei("location")}function Ni(){return Ei("performance")}function Di(){return Boolean("object"==typeof JSON&&JSON||null!==Ei("JSON"))}function Oi(){return Di()?JSON||Ei("JSON"):null}var Ui=null,Li=!1,zi=123456789,Hi=987654321;function Vi(t){t<0&&(t>>>=0),zi=123456789+t&4294967295,Hi=987654321-t&4294967295,Li=!0}function Qi(){Vi(4294967296*Math.random()^(new Date).getTime())}function Wi(t,e){return typeof t===e}function $i(t){return Wi(t,"undefined")||void 0===t}function Yi(t){return $i(t)||null===t}function Xi(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function Ji(t){return Wi(t,"object")}function Gi(t){return Wi(t,"function")}function Ki(t,e,n,i){void 0===i&&(i=!1);var r=!1;if(!Yi(t))try{Yi(t.addEventListener)?Yi(t.attachEvent)||(t.attachEvent("on"+e,n),r=!0):(t.addEventListener(e,n,i),r=!0)}catch(t){}return r}function Zi(t,e,n,i){if(void 0===i&&(i=!1),!Yi(t))try{Yi(t.removeEventListener)?Yi(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(t){}}function tr(t,e){if(t&&Ji(t))for(var n in t)Xi(t,n)&&e.call(t,n,t[n])}var er,nr=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.isString=function(t){return Wi(t,"string")},t.isNumber=function(t){return Wi(t,"number")},t.isBoolean=function(t){return Wi(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(ir,(function(e){var n=0|t.randomValue(15);return("x"===e?n:3&n|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,r=0;r<i;r++)r in t&&e.call(n||t,t[r],r,t)},t.arrIndexOf=function(t,e,n){for(var i=t.length,r=n||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in t&&t[o]===e)return o;return-1},t.arrMap=function(t,e,n){for(var i=t.length,r=n||t,o=new Array(i),s=0;s<i;s++)s in t&&(o[s]=e.call(r,t[s],t));return o},t.arrReduce=function(t,e,n){var i,r=t.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in t);)o++;i=t[o++]}for(;o<r;)o in t&&(i=e(i,t[o],o,t)),o++;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(!(Gi(t)||Ji(t)&&null!==t))throw new TypeError("objKeys called on non-object");var n=[];for(var i in t)Xi(t,i)&&n.push(i);if(e)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,s=0;s<o;s++)Xi(t,r[s])&&n.push(r[s]);return n},t.objDefineAccessors=function(t,e,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(t,e,o),!0}catch(t){}return!1},t.addEventHandler=function(t,e){var n=!1,i=Fi();i&&(n=Ki(i,t,e),n=Ki(i.body,t,e)||n);var r=Ri();return r&&(n=rr.Attach(r,t,e)||n),n},t.dateNow=function(){var t=Date;return t.now?t.now():(new t).getTime()},t.perfNow=function(){var e=Ni();return e&&e.now?e.now():t.dateNow()},t.newId=function(e){void 0===e&&(e=22);for(var n=t.random32()>>>0,i=0,r="";r.length<e;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(t.random32()<<2&4294967295|3&n)>>>0,i=0);return r},t.isIE=function(){if(null===Ui){var t=((Mi()||{}).userAgent||"").toLowerCase();Ui=-1!==t.indexOf("msie")||-1!==t.indexOf("trident/")}return Ui},t.randomValue=function(e){return e>0?Math.floor(t.random32()/4294967295*(e+1))>>>0:0},t.random32=function(e){var n,i=Ei("crypto")||Ei("msCrypto");return i&&i.getRandomValues?n=4294967295&i.getRandomValues(new Uint32Array(1))[0]:t.isIE()?(Li||Qi(),n=4294967295&t.mwcRandom32()):n=Math.floor(4294967296*Math.random()|0),e||(n>>>=0),n},t.mwcRandomSeed=function(t){t?Vi(t):Qi()},t.mwcRandom32=function(t){var e=((Hi=36969*(65535&Hi)+(Hi>>16)&4294967295)<<16)+(65535&(zi=18e3*(65535&zi)+(zi>>16)&4294967295))>>>0&4294967295|0;return t||(e>>>=0),e},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var o=n[8+(3&t.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},t.isTypeof=Wi,t.isUndefined=$i,t.isNullOrUndefined=Yi,t.hasOwnProperty=Xi,t.isFunction=Gi,t.isObject=Ji,t.objCreate=Ci,t}(),ir=/[xy]/g,rr=function(){function t(){}return t.Attach=Ki,t.AttachEvent=Ki,t.Detach=Zi,t.DetachEvent=Zi,t}();!function(t){t[t.CRITICAL=1]="CRITICAL",t[t.WARNING=2]="WARNING"}(er||(er={}));var or=Object.getPrototypeOf,sr=0;
|
|
2
2
|
/*!
|
|
3
3
|
* Microsoft Dynamic Proto Utility, 1.1.0
|
|
4
4
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|