PageSourceSearch

https://compareclub.com.au/_nuxt/Cp5qznEV.js

js compareclub.com.au collected 2026-09-28 09:13:41 UTC 26,200 bytes, 2 lines download raw bytes

1import xt from"./vGpVzAnw.js";import At from"./CKQlza8f.js";import{_ as kt}from"./C_mSF46R.js";import Ft from"./DgR8siSb.js";import Tt from"./DlYqOrHm.js";import Nt from"./C0eRPtrh.js";import Et from"./CAxFaTf8.js";import Ht from"./DlY2tpqk.js";import{_ as It}from"./BBGPwSPU.js";import{_ as Ct}from"./yrPjxT_s.js";import{_ as Ot}from"./Ckuve7Sj.js";import{b as Pt,e as Lt,f as Rt,K as Vt,C as w,ar as Mt,w as Ue,k as re,O as f,J as m,o as $t,an as Dt,n as be,a2 as Bt,aM as Ut,l as k,L as B,A as F,s as o,N as jt,r as le,t as _,_ as qt,B as T,q as se,a3 as Kt,x as H,$ as zt,Y as Qt,as as Jt,at as Yt,au as Gt,c5 as oe,P as ie,y as Wt,V as Xt,v as Zt,c6 as ea,b3 as ta,E as N,c7 as ye,G as h,al as U,D as aa,F as I,a0 as je,aa as qe,bK as na,am as ra,c8 as la,c9 as sa}from"./CMwFZUZT.js";import{_ as oa}from"./CdbFN4L3.js";import{r as ia}from"./CpyLssEo.js";import{G as Se,d as ua,S as ca,h as Ke}from"./CI_HZIPN.js";import{v as ha}from"./BB5x1VHI.js";import{c as K,d as va,e as fa,f as ue,b as ze,g as da,h as Qe}from"./DXDZs3vt.js";import{u as pa}from"./Z66R5zSh.js";import{g as _a}from"./DUBlRKuA.js";import"./B2hzgH7e.js";import"./B3nvKfDn.js";import"./DiJlYobT.js";import"./DoMeivg7.js";import"./Bl5fQGX_.js";import"./DX27wEk4.js";import"./BS9qk49H.js";import"./KbiTKfkP.js";import"./MJOylZnZ.js";import"./BP1dvt8l.js";import"./D2rjhyfX.js";import"./1JYALcgl.js";import"./Do82p9_g.js";import"./wfRsUPcO.js";import"./DmCmLhDV.js";import"./CbALKcEw.js";const ma={class:"mb-4 md:mb-6 bg-semantic-surface-container-variant-low shadow-combined-elevation-1"},ga={class:"w-full flex-col-reverse lg:flex-row flex justify-center items-center gap-x-[4.875rem] gap-y-2"},ba={key:0,class:"flex flex-col items-center gap-6 lg:gap-8 max-w-wrapper-sm mx-auto px-4 pb-10 lg:px-0"},ya={class:"bg-semantic-surface-container-lowest border border-semantic-surface-container rounded-2xl w-full py-6 px-4 lg:p-8"},Sa={class:"flex flex-col lg:gap-2 text-center"},wa=["innerHTML"],xa=["innerHTML"],Aa={key:3,ref:"terms",class:"text-xs text-semantic-surface-on-surface-variant text-center"},j="/health-insurance/quote/form",un=Object.assign({name:"HealthInsuranceQuoteFormStep"},{__name:"[step]",async setup(ka){let V,z;const C=Pt(),O=Lt(),{$bus:we,$tracking:P}=Rt(),Je=pa(),{form:x,guides:ce}=Vt(Je),s=w(),c=h(()=>je(s.value,1)),y=w(),q=w(),he=w(),Q=w(),ve=(e,{numeric:t}={})=>{{const a=N(e);if(t){const l=Number(a);return isNaN(l)?0:l}if(a==="true"||a==="1"||a===1)return 1}return 0},b=w({healthDetailsSplitForm:ve("abtest.healthDetailsSplitForm",{numeric:!0}),healthFunnelReorder:ve("abtest.healthFunnelReorder",{numeric:!0}),skipHealthCover:ve("abtest.skipHealthCover",{numeric:!0})}),xe=w(!1),Ye=Xt.HEALTH_INSURANCE;let J=null,Y=null;const Ae=["postcode","health_cover","hospital_cover_list","extras_cover_list"],Ge={div:Mt("div"),AtomsHeadline:xt,AtomsInput:At,MoleculesPostcode:kt,MoleculesBirthdate:Ft,MoleculesSelectDropdown:Tt,MoleculesSelection:Nt,MoleculesOccupation:Et,MoleculesStates:Ht,V2AtomsSelection:It,OrganismsProviderLogoSelection:Ct},ke=w({hospital_cover_list:!1,extras_cover_list:!1}),We=e=>!e||!e.props?{}:{...e.props},Fe=([V,z]=Ue(async()=>(async()=>{await aa(100);const e=+N("abtest.healthDetailsSplitForm")||(window.ABTestHealthDetailsSplitForm?window.ABTestHealthDetailsSplitForm:0)||0,t=window.ABTestHealthFunnelReorder,a=N("abtest.healthFunnelReorder"),l=t!=null?+t:a!=null?+a:0,n=+(N("abtest.healthOptionalPhoneNumber")==="true"?1:0)||(window.ABTestHealthOptionalPhoneNumber?window.ABTestHealthOptionalPhoneNumber:0)||0,r=+N("abtest.healthPhoneAgeThreshold")||(window.ABTestHealthPhoneAgeThreshold?window.ABTestHealthPhoneAgeThreshold:0)||0,i=N("abtest.healthPhoneLifeStages")||(window.ABTestHealthPhoneLifeStages?window.ABTestHealthPhoneLifeStages:"")||"",v=N("abtest.healthPhoneAgeOperator")||(window.ABTestHealthPhoneAgeOperator?window.ABTestHealthPhoneAgeOperator:"")||"",p=+N("abtest.skipHealthCover")||(window.ABTestSkipHealthCover?window.ABTestSkipHealthCover:0)||0;return I("abtest.healthDetailsSplitForm",e),I("abtest.healthFunnelReorder",l),I("abtest.healthOptionalPhoneNumber",n),I("abtest.healthPhoneAgeThreshold",r),I("abtest.healthPhoneLifeStages",i),I("abtest.healthPhoneAgeOperator",v),I("abtest.
1skipHealthCover",p),{healthDetailsSplitForm:e,healthFunnelReorder:l,healthOptionalPhoneNumber:n,healthPhoneAgeThreshold:r,healthPhoneLifeStages:i,healthPhoneAgeOperator:v,skipHealthCover:p}})),V=await V,z(),V),Xe=h(()=>b.value?.healthFunnelReorder?la:sa),L=h(()=>JSON.parse(JSON.stringify(Xe.value))),g=h(()=>Object.entries(L.value).reduce((e,[t,a])=>{const l=a[0];if(l){const n=U(l);e[n]=t}return e},{})),Ze={forward:{2:e=>{const t=["Single","Single Parent"].includes(e.life_stage),a=b.value?.skipHealthCover===1;return!t&&e.has_health_fund==="No"?4:e.has_health_fund==="No"?a?7:6:3},3:e=>{const t=["Single","Single Parent"].includes(e.life_stage),a=b.value?.skipHealthCover===1;return t?a?7:6:4},4:e=>{const t=b.value?.skipHealthCover===1;return e.partner_has_health_fund==="No"?t?7:6:5},5:e=>{const t=b.value?.skipHealthCover===1;return e.partner_has_health_fund==="No"||t?7:6},6:()=>7,7:e=>["Single","Single Parent"].includes(e.life_stage)?9:8,8:()=>9,9:()=>10,10:e=>e.cover_type==="Extras"?12:11,11:e=>e.cover_type==="Hospital"?"details":12,12:()=>"details"},backward:{3:()=>2,4:e=>e.has_health_fund==="No"?2:3,5:()=>4,6:e=>{const t=["Single","Single Parent"].includes(e.life_stage);return t&&e.has_health_fund==="No"?2:t&&e.has_health_fund==="Yes"?3:e.partner_has_health_fund==="No"?4:5},7:e=>b.value?.skipHealthCover===1?["Single","Single Parent"].includes(e.life_stage)?e.has_health_fund==="Yes"?3:2:e.partner_has_health_fund==="Yes"?5:4:6,8:()=>7,9:e=>["Single","Single Parent"].includes(e.life_stage)?7:8,10:()=>9,11:()=>10,12:e=>e.cover_type==="Extras"?10:11}},et={forward:{1:()=>2,2:e=>e.cover_type==="Extras"?4:3,3:e=>e.cover_type==="Hospital"?5:4,4:()=>5,5:e=>{const t=["Single","Single Parent"].includes(e.life_stage);return e.has_health_fund==="No"&&t?9:e.has_health_fund==="No"?7:6},6:e=>["Single","Single Parent"].includes(e.life_stage)?9:7,7:e=>e.partner_has_health_fund==="No"?9:8,8:()=>9,9:e=>["Single","Single Parent"].includes(e.life_stage)?11:10,10:()=>11,11:()=>12,12:()=>"details"},backward:{2:()=>1,3:()=>2,4:e=>e.cover_type==="Extras"?2:3,5:e=>e.cover_type==="Hospital"?3:4,6:()=>5,7:e=>e.has_health_fund==="No"?5:6,8:()=>7,9:e=>{const t=["Single","Single Parent"].includes(e.life_stage);return t&&e.has_health_fund==="No"?5:t&&e.has_health_fund==="Yes"?6:e.partner_has_health_fund==="No"?7:8},10:()=>9,11:e=>["Single","Single Parent"].includes(e.life_stage)?9:10,12:()=>11}},Te=h(()=>b.value?.healthFunnelReorder?et:Ze),u=h(()=>{const e=C.params.step,t=+e.replace(/step/g,""),a=Object.keys(L.value).length,l=L.value?.[e]?.[0],r=["coverType","hospitalCoverList","extrasCoverList"].includes(l)?"Cover Details":"About You",i=()=>{const p=Te.value.forward[t];return p?p(c.value):t+1},v=()=>{const p=Te.value.backward[t];return p?p(c.value):t-1};return{number:t,name:e,label:r,prev:t>1?v():"",next:i(),total:a}}),d=h(()=>Object.keys(M.value.form)[0]),G=h(()=>d.value?M.value.form[d.value]:null),fe=h(()=>G.value?.components?.[0]),de=h(()=>fe.value?.component),A=h(()=>d.value?U(d.value):""),Ne=h(()=>d.value?d.value==="hasHealthFund"||d.value==="partnerHasHealthFund"||d.value==="income"||d.value==="coverType":!1),tt=h(()=>{const e=da[A.value];return e?{internalTrackingId:e}:{}}),at=h(()=>u.value.next==="details"),W=h(()=>{if(c.value?.life_stage)return["Couple","Family"].includes(c.value?.life_stage)?"couple":"single"}),pe=h(()=>{const e=["Couple","Family","Single Parent"].includes(c.value?.life_stage)?"couple":"single",t={0:"nil",1:"low",2:"medium",3:"high"};if(!q.value?.length){const n=ie.incomesAB;return m(e,n)}const a=c.value?.age<65?65:c.value?.age<70?69:70,l=q.value?.flat(1)?.filter(n=>n.age===a);if(!l?.length){const n=ie.incomesAB;return m(e,n)}return[...l?.map(n=>{const r=n.tier==0?"Base Tier":`Tier ${n.tier}`,i=parseFloat(n.rebate*100).toFixed(3),v=`A ${i}% (${r}) <br /> government rebate will be applied.`,p=t[n?.tier];return{label:n.label[e].replace(/\s*[-–]\s*/g," to "),desc:n.tier==3?"No government rebate (Tier 3) will be applied.":v,value:p,tierLabel:r,rebate:i,idSuffix:`annualincome-${p}`,income:n.label[e],info:{content:v}}})??[],{label:"Do not apply rebate",desc:"We will not apply Government rebate.",value:"none",rebate:"0.00",idSuffix:"none",income:"$0",tierLabel:""}]}),nt=h(()=>pe.value.filter(e=>e.value!=="none")),rt=h(()=>d.value==="income"),lt=h(()=>d.value==="healthCover"&&!b.value?.healthFunnelReorder),Ee=h(()=>pe.value.find(e=>e.value===c.value?.income)),He=h(()=>{const e=_t(c.value?.income,c.value?.age);return e&&parseFloat(e.rebate*100).toFixed(3)||""}),st=h(()=>c.value?.age&&c.value?.income?He.value?`A ${He.value}% (${Ee.value?.tierLabel}) government rebate will be applied`:Ee.value?.desc??"":""),Ie=h(()=>{const e=Object.assign({},ye);return(W.value==="single"||!W.value)&&(delete e.partnerHasHealthFund,delete e.partnerHealthFund,delete e.partnerBirthdate),c.value?.has_health_fund==="No"&&delete e.healthFund,(!c.value?.partner_has_health_fund||c.value?.partner_has_health_fund==="No")&&delete e.partnerHealthFund,e});[V,z]=Ue(()=>ee()),await V,z(),J=re(()=>W.value,async()=>{await ee()});let X=null;X=re(()=>b.value?.healthFunnelReorder,async(e,t)=>{e!==t&&await ee()});const M=h(()=>{const e=u.value,t=L.value?.[e.name],a=qe(Ie.value,(n,r)=>!t?.includes(r));return ca({step:e.name,form:a,validation:y.value}),{form:(()=>
1{if(L.value?.[e.name]?.[0]==="income"){const r=a?.income?.components.find(i=>i.props?.name==="income");return r&&(r.props={...r.props,options:nt.value}),()=>na({...a,income:{...a.income,info:st.value}})}return()=>a})()?.(),header:(()=>{const n=L.value?.[e.name]?.[0],r=n==="hasHealthFund"?"your requirements.":"",i=Object.assign({},ra[e.name]);return n==="hasHealthFund"&&r&&(i.title=`${i.title} <strong class="font-extrabold">${r}</strong>`),Object.assign({},i)})(),buttons:{back:e.number,main:"Continue"}}}),Z=h(()=>Object.keys(M.value.form).map(e=>U(e))),Ce=h(()=>f(c.value?.health_cover)?!1:c.value.health_cover.includes("Planning on having a baby"));function ee(){if(f(x.value))s.value=Se({form:ye,formItems:g.value,exceptionArr:Ae});else{const t=Se({form:ye,formItems:g.value,exceptionArr:Ae});s.value={...t,...f(x.value)?{}:x.value},Object.keys(t).forEach(a=>{t[a]&&typeof t[a]=="object"&&(s.value[a]||(s.value[a]={}),["health_fund","partner_health_fund","partner_birthdate"].forEach(n=>{x.value[a]?.[n]!==void 0&&(s.value[a][n]=x.value[a][n])}))})}x.value=s.value;const e=Se({form:Ie.value,formItems:g.value,type:"validation"});y.value=e,it(),ot()}function ot(){if(!s.value)return;const e=u.value.name,t=L.value?.[e]?.[0],l={hasHealthFund:"has_health_fund",partnerHasHealthFund:"partner_has_health_fund",income:"income",coverType:"cover_type"}[t];l&&s.value[e]&&(s.value[e][l]="",x.value[e]&&(x.value[e][l]=""))}function it(){if(b.value?.skipHealthCover===1){const e=m("health_cover",g.value);e&&y.value?.[e]&&(y.value[e].health_cover={isSuccess:!0,errorMessage:""})}}const $=h(()=>{if(!f(C.query)){const t={};for(const a in C.query){const l=C.query[a];let n="";Array.isArray(l)?n=l.find(i=>i&&i.trim()!=="")||"":n=l||"",t[a]=String(n).replace(/\//g,"")}return u.value.number===1&&I("health_funnel_query",JSON.stringify(t)),"?"+new URLSearchParams(t).toString()}const e=JSON.parse(N("health_funnel_query")||"{}");return f(e)?"":"?"+new URLSearchParams(e).toString()}),_e=w({}),Oe=w({}),ut=["hospital_cover_list","extras_cover_list"],te=w({});re(()=>u.value.name,()=>{const e=A.value,t=s.value?.[u.value.name]?.[e];Array.isArray(t)&&(_e.value[e]=[...t],Oe.value[e]=[...t])},{immediate:!0});function E(e,t){!P||!e||P.customEvent(e,t)}function Pe(e,t){!P||!e||P.userInput(e,t)}function D(e,t){!P||!e||P.trackedClick(e,t)}function ae(e){const t=fe.value?.props||{};return[t.options,t.dataArr,t.providers].filter(Array.isArray).flat().find(l=>l?.value===e)?.label||""}function ct(){const e=A.value,t=u.value.name,a=s.value?.[t]?.[e];if(ue[e]){f(a)||(E(ue[e],{value:a}),D(ue[e],{elementInnerText:ae(a)}));return}const l=ze[e];if(l){if(Array.isArray(a)){if(a.includes("__toggle_more__")||a.includes("__toggle_less__"))return;const n=_e.value[e]||[];a.filter(r=>!n.includes(r)).forEach(r=>{E(l[r]),D(l[r],{elementInnerText:ae(r)})}),_e.value[e]=[...a];return}a&&(E(l[a]),D(l[a],{elementInnerText:ae(a)}))}}function ht(){const e=A.value;if(!ut.includes(e))return;const t=ze[e];if(!t)return;const a=s.value?.[u.value.name]?.[e];if(!Array.isArray(a))return;const l=a.filter(i=>i!=="__toggle_more__"&&i!=="__toggle_less__"),n=Oe.value[e]||[];l.length===n.length&&l.every(i=>n.includes(i))&&l.forEach(i=>{E(t[i]),D(t[i],{elementInnerText:ae(i)})})}function vt(e){const a=(e?va:fa)[A.value];E(a),D(a,{elementInnerText:e?"View more":"View less"})}const ft=["birthdate","partner_birthdate","health_fund"];function dt(){const e=A.value;if(!ft.includes(e))return;const t=K[e]||ue[e];if(!t)return;const a=s.value?.[u.value.name]?.[e];if(f(a))return;const l=typeof a=="object"?JSON.stringify(a):a;te.value[e]!==l&&(te.value[e]=l,K[e]&&E(K[e],{value:a}),Pe(t,{value:a}))}function pt(){if(A.value!=="postcode")return;const e=s.value?.[u.value.name]?.postcode;if(f(e))return;const t=JSON.stringify(e);if(te.value.postcode===t)return;te.value.postcode=t;const a=e?.postcode||e;E(K.postcode,{value:a}),Pe(K.postcode,{value:a})}const me=()=>{const e=u.value.name,t=s.value?.[e]||{};if(f(t))return;const a={};for(const n in t)if(Object.hasOwnProperty.call(t,n)){const r=t[n];if(r==null||r==="")continue;typeof r=="object"&&!Array.isArray(r)?a[n]=JSON.stringify(r):Array.isArray(r)?r.length>0&&(a[n]=r.join(", ")):a[n]=r}if(f(a))return;const l={...a};we&&we.emit("pageview",l)};$t(async()=>{ee(),xe.value=!0,q.value=await Dt("/api/health-insurance/rebate/active","$QP0HSsdA7d").then(a=>a?.data?.value?.rebates??[]),await be(),wt();let e=0;const t=100;for(;!window.optimizely&&e<t;)await new Promise(a=>requestAnimationFrame(a)),e++;if(window.optimizely?b.value=await Fe():(console.warn("Optimizely failed to load within timeout, using localStorage fallback"),b.value=await Fe()),sessionStorage.setItem("healthInsuranceFunnelDataForDigitalAgent","{}"),f(s.value?.step0?.life_stage)){O.push(`${j}/step0/${$.value}`);return}!Ce.value&&!f(c.value.hospital_cover_list)&&await Le(),await be(),Be(),u.value.number===1&&me()});function _t(e,t){if(!e&&!t||e==="high")return;const a=m(e,{nil:0,low:1,medium:2,high:3}),l={"Under 65":t<65,"65 to 69":t>=65&&t<=69,"70 Plus":t>=70};return f(q.value)?null:q.value.reduce((n,r)=>[...n,...r],[]).filter(n=>n.tier===a).find(n=>l[n.name])}function Le(){const e=c.value.hospital_cover_list.findIndex(a=>a==="pregnancy_birth"),t=m("hospital_cover_list",g.value);e!==-1&&s.value[t].hospital_cover_list.splice(e,1)}function Re(){if(!Ce.value)return;const e=m("hospital_cover_list",g.value),t=f(c.value.cover_type)?c.value.cover_type:c.value.cover_type.toLowerCase();c.value.hospital_cover_list.findIndex(l=>l==="pregnancy_birth")===-1&&t==="combined"?s.value[e].hospital_cover_list.push("pregnancy_birth"):t!=="combined"&&!f(c.value.hospital_cover_list)&&Le()}function Ve(e){const t=U(e);let a=c.value[t];if((t==="hospital_cover_list"||t==="extras_cover_list")&&Array.isArray(a)){const n=a.indexOf("__toggle_more__"),r=a.indexOf("__toggle_less__");
1if(n!==-1){const i=u.value.name;s.value[i][t]=a.filter(v=>v!=="__toggle_more__"),ke.value[t]=!0;return}if(r!==-1){const i=u.value.name;s.value[i][t]=a.filter(v=>v!=="__toggle_less__"),ke.value[t]=!1;return}}const l=m(t,{life_stage:()=>{const n="partner_has_health_fund",r=m(n,g.value);r&&s.value?.[r]&&W.value==="single"&&(s.value[r][n]=void 0,s.value[r].partner_health_fund=void 0,s.value[r].age_secondary=void 0)},"has_health_fund,partner_has_health_fund":()=>{const n=t.replace(/has_/g,""),r=m(n,g.value);r&&s.value?.[r]&&c.value[t]==="No"&&(s.value[r][n]=void 0)},health_cover:()=>{const n=m("health_cover",g.value),r=s.value?.[n]?.health_cover,i=a||r||[],v=i.includes("New arrival to Australia"),p=i.includes("Health cover required as a condition of visa");(v||p)&&(Q.value=v?"arrival":p?"visa":"",he.value.toggle(!0)),Re()},cover_type:()=>{const n=m(t,g.value),r=m("hospital_cover_list",g.value),i=m("extras_cover_list",g.value);if(!(!n||!s.value?.[n])&&!(!r||!s.value?.[r])&&!(!i||!s.value?.[i])){if(a=a.toLowerCase(),["hospital","combined"].includes(a)&&f(s.value[r].hospital_cover_list)){const p=c.value?.postcode?.state==="QLD"?["private_hospital_shared"]:["private_hospital_shared","ambulance"];f(s.value[r].hospital_cover_list)&&(s.value[r].hospital_cover_list=p)}Re(),a==="hospital"?s.value[i].extras_cover_list=[]:a==="extras"&&(s.value[r].hospital_cover_list=[])}}});l&&l()}function ne(e){if(!s.value?.[u.value.name]||!y.value?.[u.value.name])return;const t=s.value[u.value.name],a=y.value[u.value.name];if(e){const n=U(e),r=t[n];y.value[u.value.name][n]={errorMessage:f(r)?oe[n]:"",isSuccess:!f(r)};return}const l=qe(a,(n,r)=>!Z.value.includes(r));for(const n in a)if(Object.hasOwnProperty.call(t,n)){const r=t[n],i=Object.hasOwnProperty.call(l,n);let v=!f(r),p=v?"":oe[n];if(n==="birthdate"||n==="partner_birthdate"){const ge=n==="birthdate"?"age":"age_secondary";ha(s.value[u.value.name][ge],ie?.validAge)||(p=oe[n],v=!1)}y.value[u.value.name][n]={errorMessage:p,isSuccess:v},i||(y.value[u.value.name][n]={isSuccess:!1,errorMessage:""})}}function Me(){const e=je(JSON.parse(JSON.stringify(s.value)),1),t={scale:e?.life_stage,state:e?.postcode?.state||"",income:e?.income&&pe.value.find(a=>a.value===e?.income)?.label||"",cover_type:e?.cover_type||"",hospital_cover_list:e?.hospital_cover_list?e?.hospital_cover_list.join(", "):"",extras_cover_list:e?.extras_cover_list?e?.extras_cover_list.join(", "):"",has_health_fund:e?.has_health_fund??"",current_health_fund:e?.health_fund?.value||"",partner_has_health_fund:e?.partner_has_health_fund??"",partner_health_fund:e?.partner_health_fund?.value||"",priorities:e?.health_cover?e?.health_cover.join(", "):"",birthdate:e?.birthdate??"",age:e?.age??"",age_partner:e?.age_secondary??"",partner_birthdate:e?.partner_birthdate??""};sessionStorage.setItem("healthInsuranceFunnelDataForDigitalAgent",JSON.stringify(t))}async function mt(e){if(ne(e),Ve(e),Ne.value){await be();const t=U(e),a=s.value?.[u.value.name]?.[t];a&&!f(a)&&setTimeout(async()=>{if(e==="hasHealthFund")await R();else if(e==="partnerHasHealthFund")await R();else if(e==="income")await R();else if(e==="coverType")await R();else{await ne();const l=y.value[u.value.name];await Ke(l)||await R()}},300)}}async function R(){await ne();const e=y.value[u.value.name];if(await Ke(e))return;ht(),x.value=s.value,me();const a=u.value.next;if(Me(),a==="details"){const l=b.value?.healthDetailsSplitForm,n=l===2?"details-phone":l===1?"details-email":"details";O.push(`${j}/${n}/${$.value}`)}else O.push(`${j}/step${a}/${$.value}`)}async function gt(){E(Qe),D(Qe,{elementInnerText:"Skip and don't apply a rebate"}),s.value[u.value.name].income="none",await R()}function bt(){const e=m("health_cover",g.value)||u.value.name;e&&s.value?.[e]&&(s.value[e].health_cover=[]),x.value=s.value,me(),Me(),P?.customEvent("WIFY_skipped",{step:u.value.name,elementId:"hnbf-skip-health-cover-btn",elementInnerText:"Skip this question"}),O.push(`${j}/step${u.value.next}/${$.value}`)}function yt(){if(u.value.number===1){O.push(`${j}/step0/${$.value}`);return}if(!f(ce.value.url)&&C.href.includes(ce.value.initialPage)){O.push(ce.value.url);return}const t=u.value.prev;O.push(`${j}/step${t}/${$.value}`)}function $e(){const e=m("health_cover",g.value),t=Q.value==="arrival"?"New arrival to Australia":"Health cover required as a condition of visa",a=c.value.health_cover.indexOf(t);a!==-1&&s.value[e].health_cover.splice(a,1),he.value.toggle(!1)}function St(){const t=`/health-insurance/visitors-visa-ovhc/?motivation=${Q.value}`;window.open(t,"_blank")}_a({title:"Health Insurance Quote Enquiry",ogTitle:"Health Insurance Quote Enquiry"});const De=Bt(),S=h(()=>De.getUserProfile?.profile);Y=re(()=>S.value,()=>{Be()},{immediate:!0,deep:!0});function Be(){if(!De?.isEmailVerified||!s.value?.[u.value.name])return;const e=s.value[u.value.name];Z.value?.includes("life_stage")&&S.value?.household&&!e.life_stage&&(e.life_stage=S.value.household),Z.value?.includes("postcode")&&S.value?.postcode&&S.value?.state&&S.value?.suburb&&!e.postcode&&(e.postcode={suburb:S.value.suburb,state:S.value.state,postcode:S.value.postcode}),Z.value?.includes("birthdate")&&S.value?.dateOfBirth&&!e.birthdate&&(e.birthdate=S.value.dateOfBirth)}function wt(){for(const e in C.query){const t=C.query[e];let a="";Array.isArray(t)?a=t.find(i=>i&&i.trim()!=="")||"":a=t||"",a=String(a).replace(/\//g,"");const l=e.toLowerCase(),n=m(l,g);if(!(!n||!s.value?.[n])){if(l==="postcode"){const r=a.includes(",")?a.split(","):a.split(", ");a={suburb:r[0],state:r[1],postcode:r[2]}}l==="health_fund"&&(s.value[n].has_health_fund="Yes"),n&&(s.value[n][l]=a)}}}return Ut(()=>{J&&(J(),J=null),Y&&(Y(),Y=null),X&&(X(),X=null)}),(e,t)=>{const a=Ot,l=qt,n=oa,r=Kt,i=jt;return k(),B(ta,null,{fallback:F(()=>[...t[9]||(t[9]=[_("article",{class:"flex-1 w-full h-full max-w-8xxl mx-auto grid lg:grid-cols-[7.9375rem,1fr] xl:grid-cols-[7.9375rem,1fr,22.3125rem] lg:bg-blue-5 grid-rows-[auto,auto,1fr] lg:grid-rows-none"}
1,[_("aside",{class:"bg-white lg:bg-transparent order-1 shadow-sm-1 lg:shadow-none relative z-2 p-4 lg:pr-4 lg:py-14 lg:mb-0 hidden md:flex"}),_("div",{class:"h-full order-3 lg:order-2 bg-white px-4 pt-6 pb-10 lg:px-10 lg:pt-10 lg:pb-20"}),_("aside",{class:"flex flex-col gap-6 order-2 lg:order-3 pl-6 pr-12 pt-16 pb-4"})],-1)])]),default:F(()=>[o(f)(o(M))?H("",!0):(k(),B(i,{key:0,name:"custom",class:"!min-h-full"},{header:F(()=>[_("div",ma,[le(a,{modelValue:o(u).label,"onUpdate:modelValue":t[0]||(t[0]=v=>o(u).label=v),class:"max-w-wrapper-md mx-auto !shadow-none",steps:o(ea)},null,8,["modelValue","steps"])])]),main:F(()=>[le(n,{ref_key:"modalAuArrivalRef",ref:he,"card-class":"max-w-[40.875rem] p-6","close-button-size":"large","close-action":$e,"overlay-clickable":!1},{default:F(()=>[t[4]||(t[4]=_("p",{class:"font-bold text-xl mb-4"}," New to Australia and not eligible for Medicare ",-1)),t[5]||(t[5]=_("p",{class:"mb-6"}," If you are a visitor or on a work visa or an overseas student and require health cover as a part of your visa requirement(s), please click 'Yes continue' to proceed to the Overseas Visitor Health Cover section. ",-1)),_("div",ga,[le(l,{theme:"link",size:"large",class:"justify-center inline-flex whitespace-nowrap underline !text-gray-75 !text-sm md:!text-lg w-full md:w-[11.0625rem]",onClick:$e},{default:F(()=>[...t[2]||(t[2]=[T(" Cancel ",-1)])]),_:1}),le(l,{id:o(Q)==="arrival"?"hnbf-new-arrival-to-au-ovhc-continue":"hnbf-require-health-insurance-as-a-condition-of-visa-continue",size:"large",class:"w-full md:w-[14.0625rem] justify-center",onClick:St},{default:F(()=>[...t[3]||(t[3]=[T(" Yes continue ",-1)])]),_:1},8,["id"])])]),_:1},512),o(xe)&&o(s)?.[o(u).name]?(k(),se("div",ba,[o(M)?.buttons?.back?(k(),B(r,{key:0,class:"self
1-start",size:"small",theme:"tertiary","has-icon-left":"","icon-direction":"left",onClick:yt},{default:F(()=>[...t[6]||(t[6]=[T(" Back ",-1)])]),_:1})):H("",!0),_("div",ya,[_("form",{class:"flex flex-col items-center gap-6 lg:gap-10",onSubmit:zt(R,["prevent"])},[_("div",Sa,[_("h2",{class:"text-lg lg:text-2xl font-semibold text-semantic-surface-on-surface",innerHTML:o(G)?.question},null,8,wa),o(G)?.desc?(k(),se("p",{key:0,class:"text-xs lg:text-sm",innerHTML:o(G).desc},null,8,xa)):H("",!0)]),_("div",{class:Qt(["w-full",{"max-w-[14.75rem]":o(de)==="MoleculesPostcode"||o(de)==="MoleculesBirthdate","max-w-[22rem]":o(d)==="hasHealthFund"||o(d)==="partnerHasHealthFund"||o(d)==="income"}]),onFocusout:dt},[(k(),B(Jt(("renderComponent"in e?e.renderComponent:o(ia))(o(de),Ge)),Yt({modelValue:o(s)[o(u).name][o(A)],"onUpdate:modelValue":t[1]||(t[1]=v=>o(s)[o(u).name][o(A)]=v)},We(o(fe)),Gt({update:()=>{ct(),ne(o(d)),Ve(o(d)),(o(d)==="hasHealthFund"||o(d)==="partnerHasHealthFund"||o(d)==="income"||o(d)==="coverType")&&mt(o(d))},validation:()=>pt(),toggle:v=>vt(v),...o(d)?.toLowerCase().includes("birthdate")&&{age:v=>o(ua)({age:v,key:o(A),step:o(u).name,validAge:o(ie)?.validAge,errorMap:o(oe),formModel:o(s),validation:o(y)})}})),null,16,["modelValue"]))],34),o(rt)?(k(),se("button",{key:0,type:"button",class:"text-semantic-primary-default hover:text-semantic-primary-hover text-lg underline cursor-pointer font-semibold",onClick:gt}," Skip and don't apply a rebate ")):H("",!0),o(Ne)?H("",!0):(k(),B(r,{key:1,id:`${("strToKebabCase"in e?e.strToKebabCase:o(Wt))(o(Ye))}-${o(u).name}`,type:"submit",size:"large","data-testid":"submit-btn",class:"w-[14.5rem]","tracking-additional-params":o(tt),"has-icon-right":""},{default:F(()=>[T(Zt(o(M)?.buttons?.main),1)]),_:1},8,["id","tracking-additional-params"])),o(lt)?(k(),B(r,{key:2,id:"hnbf-skip-health-cover-btn",theme:"tertiary",size:"large",type:"button","data-testid":"skip-health-cover-btn","enable-tracking":!1,onClick:bt},{default:F(()=>[...t[7]||(t[7]=[T(" Skip this question ",-1)])]),_:1})):H("",!0),o(at)?(k(),se("p",Aa,[...t[8]||(t[8]=[T(" By clicking 'Continue', I acknowledge that I have read and agree to the ",-1),_("a",{href:"/terms-of-use/",target:"_blank"},[_("strong",{class:"text-semantic-surface-on-surface-variant underline"},"Terms of Use")],-1),T(", the ",-1),_("a",{href:"/privacy-policy/",target:"_blank"},[_("strong",{class:"text-semantic-surface-on-surface-variant underline"},"Privacy Policy")],-1),T(", and the ",-1),_("a",{href:"/collection-notice/",target:"_blank"},[_("strong",{class:"text-semantic-surface-on-surface-variant underline"},"Collection Notice")],-1),T(" and I consent to you contacting me about insurance products that help to manage the risk of unexpected medical expenses, accident, injury, illness or death. I consent to you using sensitive personal information that you may collect for the purposes of providing your products and services. ",-1)])],512)):H("",!0)],32)])])):H("",!0)]),_:1}))]),_:1})}}});
1export{un as default};
2//# sourceMappingURL=Cp5qznEV.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.