"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1136],{51136:(e,a,t)=>{t.d(a,{default:()=>H});var n=t(95155),r=t(12115),i=t(87993),s=t.n(i),l=t(76046),o=t(86974),c=t(95221),d=t(85323),m=t(4088),u=t(86734),p=t(73127),v=t(13625),h=t(4344),f=t(29618),g=t(52732),y=t(81418),w=t(12875),b=t(67787),x=t(79522),N=t(52003),A=t(3377);function j(e){let{size:a,className:t,strokeWidth:r=2,color:i="currentColor"}=e;return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:r,strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[(0,n.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,n.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,n.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})}var _=t(75426),k=t(1407),S=t(21794),C=t(98405),P=t(44630),T=t(3876),I=t(88185);class R{updateTabRef(e){e?this.tab?(this.tab.location.href=e,this.tab.focus()):window.open(e,"_blank"):this.closeTab()}appendToWrapper(e){this.wrapperElement.innerHTML=e}closeTab(){var e;null===(e=this.tab)||void 0===e||e.close()}constructor(){var e;this.tab=window.open("","_blank"),this.wrapperElement=document.createElement("div"),this.wrapperElement.style.cssText="position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; max-width: 500px; margin: 0 auto; font-family: sans-serif;",null===(e=this.tab)||void 0===e||e.document.body.appendChild(this.wrapperElement)}}let U=(0,P.A)(function(e){var a,t,i;let{closeModal:s,form:l,onSuccess:o,variables:c}=e,{user:d}=(0,I.A)(),m=null!==(t=c.email)&&void 0!==t?t:null==d?void 0:d.email,p=null!==(i=null==d?void 0:null===(a=d.displayName)||void 0===a?void 0:a.split(" "))&&void 0!==i?i:[],v=p[0],f=p[(null==p?void 0:p.length)-1],{host:g}=(0,h.useApp)(),y=g===u.zh?"Canstar":"RateCity",[w,b]=r.useState({email:m,firstName:v,lastName:f}),[P,{loading:U}]=function(e){let[a,t]=r.useState(!1),[n,i]=r.useState(),[s,l]=r.useState();return[r.useCallback(async function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{variables:n,headers:r}=a;t(!0);let{data:s,error:o}=await (0,C.A)(e,n,{headers:r});return t(!1),i(s),l(o),{data:s,error:o}},[e]),{data:n,loading:a,error:s}]}("\n  mutation PersonalLoansQuote(\n    $comparisonId: String\n    $creditScore: Int\n    $dateOfBirth: String!\n    $email: String!\n    $employmentType: String!\n    $firstName: String!\n    $host: HOST!\n    $lastName: String!\n    $livingStatus: String!\n    $loanAmount: Int!\n    $loanPurpose: String!\n    $mobile: String!\n    $productId: String!\n    $residency: String!\n    $termLength: Int!\n  ) {\n    personalLoansQuote(\n      comparisonId: $comparisonId\n      creditScore: $creditScore\n      dateOfBirth: $dateOfBirth\n      email: $email\n      employmentType: $employmentType\n      firstName: $firstName\n      host: $host\n      lastName: $lastName\n      livingStatus: $livingStatus\n      loanAmount: $loanAmount\n      loanPurpose: $loanPurpose\n      mobile: $mobile\n      productId: $productId\n      residency: $residency\n      termLength: $termLength\n    ) {\n        data {\n         applyUrl\n         productId\n        }\n    }\n  }\n");async function L(e){if(e.preventDefault(),U||!await l.validateFields(w))return;let a=new R;a.appendToWrapper('\n    <div style="display: flex; flex-direction: column; gap: 60px;">\n      <div \n        style="display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;"\n      >\n        <img src="https://www.canstar.com.au/wp-content/themes/canstar/dist/images/logo.png" />\n        <img src="https://production-content-assets.ratecity.com.au/20250113/driva-logo-TvMlkvR9N.png" />\n      </div>\n      <p>Please wait while we redirect you to Driva...</p>\n    </div>');try{var t,n;let{data:e}=await P({variables:{...c,...w,dateOfBirth:(0,x.GP)(w.dateOfBirth,"yyyy-MM-dd"),host:g}}),r=null==e?void 0:null===(n=e.personalLoansQuote.data)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.applyUrl;a.updateTabRef(r)}catch(e){console.error("Error fetching quote:",e),a.closeTab()}null==o||o(),s()}function M(e,a){b(t=>({...t,[e]:a}))}return(0,n.jsxs)("form",{onSubmit:L,className:"grid grid-cols-1 gap-[15px] md:grid-cols-2",children:[(0,n.jsx)(S.A,{disabled:U,form:l,label:(0,n.jsx)(k.A,{label:"First Name"}),name:"firstName",onChange:e=>M("firstName",e),validators:[T.mw,T.UU],value:w.firstName}),(0,n.jsx)(S.A,{disabled:U,form:l,label:(0,n.jsx)(k.A,{label:"Last Name"}),name:"lastName",onChange:e=>M("lastName",e),validators:[T.mw,T.UU],value:w.lastName}),(0,n.jsx)(S.A,{className:"col-span-full",disabled:U,form:l,label:(0,n.jsx)(k.A,{label:"Email address"}),name:"email",onChange:e=>M("email",e),validators:[T.mw,T.Rp],value:w.email}),(0,n.jsx)(S.A,{disabled:U,form:l,label:(0,n.jsx)(k.A,{label:"Mobile number"}),name:"mobile",onChange:e=>M("mobile",e),type:"phone",validators:[T.mw,e=>(0,T.Hw)(e,10)],value:w.mobile}),(0,n.jsx)(A.A,{calendarClassName:"md:left-auto md:right-0",disabled:U,form:l,label:(0,n.jsx)(k.A,{label:"Date of Birth"}),name:"dateOfBirth",onClick:e=>M("dateOfBirth",e),placeholder:"DD / MM / YYYY",validators:[T.mw,T.Wq,T.Gn],value:w.dateOfBirth}),(0,n.jsxs)("p",{className:"col-span-full text-sm",children:["By proceeding, you agree that both ",y," and Driva are collecting your personal information and will handle your information in accordance with their respective privacy policies. ",y,"’s"," ",(0,n.jsx)(_.A,{href:"/privacy-policy/",className:"text-primary-dark",target:"_blank",children:"Privacy Policy"})," ","&"," ",(0,n.jsx)(_.A,{href:"/terms-of-use/",className:"text-primary-dark",target:"_blank",children:"Terms of Use"}),". Driva’s"," ",(0,n.jsx)(_.A,{href:" https://www.driva.com.au/legal/",className:"text-primary-dark",target:"_blank",children:"Privacy Policy"}),". Your personal information will be shared with Driva and you will be re-directed to their site to make an application for your selected lender. References to Driva mean Driva Pty Ltd, ABN 37 636 659 160 and Australian Credit Licence No. 531492."]}),(0,n.jsx)("div",{className:"col-span-full flex justify-center",children:(0,n.jsx)(N.A,{className:"w-[280px] px-[15px] py-3",loading:U,type:"submit",variant:"primary",children:(0,n.jsxs)("span",{className:"flex items-center justify-center gap-2 text-sm font-bold uppercase",children:[(0,n.jsx)("span",{children:"Continue"}),(0,n.jsx)(j,{size:16})]})})})]})});var L=t(75828);let M=(0,L.createServerReference)("7f3c369bfc789aaa61fc66288c771e8853b4f41fe5",L.callServer,void 0,L.findSourceMapURL,"saveQuote");var O=t(23714);function D(e){let{brand:a}=e;return(0,n.jsxs)("p",{className:"col-span-full text-sm",children:["By proceeding, you agree that ",a," & ItsMy Health (The ItsMy Group Pty Ltd ABN 85 167 289 965) may each collect, use and disclose your personal information as set out in ",a,"’s"," ",(0,n.jsx)(_.A,{href:"/privacy-policy/",className:"text-primary-dark",target:"_blank",children:"Privacy Policy"})," ","and ItsMy Health’s"," ",(0,n.jsx)(_.A,{href:"https://www.itsmyhealthinsurance.com.au/privacy/",className:"text-primary-dark",target:"_blank",children:"Privacy Policy"}),". Both ItsMy Health & Canstar may send you marketing materials. Health insurance advice is provided by ItsMy Health, not Canstar. ItsMy Health is a signatory to the PHIIA code of conduct."]})}let F=(0,P.A)(function(e){let{form:a,variables:t}=e,{user:i}=(0,I.A)(),{host:s}=(0,h.useApp)(),l=s===u.zh?"Canstar":"",[o,c]=r.useState(()=>{var e,a,n;let r=null!==(a=t.email)&&void 0!==a?a:null==i?void 0:i.email,[s,l]=null!==(n=null==i?void 0:null===(e=i.displayName)||void 0===e?void 0:e.split(" "))&&void 0!==n?n:[];return{firstName:s,lastName:l,email:r,phoneNumber:""}}),[d,m]=r.useState("initial"),p="loading"===d,v=async e=>{try{if(e.preventDefault(),p||!await a.validateFields(o))return;let n=O.$j.find(e=>e.value===t.membershipType);m("loading");let r={...o,productId:t.productId,comparisonId:t.comparisonId,state:t.state,type:(null==n?void 0:n.name)||""};await M(r),m("success")}catch(e){console.error(e),m("error")}};function f(e,a){c(t=>({...t,[e]:a}))}return"success"===d||"error"===d?(0,n.jsx)("h2",{className:"text-center",children:"success"===d?"Email sent!":"Something went wrong. Please try again later."}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-center",children:"Get a detailed copy of your chosen policy sent straight to you via SMS & email and join online"}),(0,n.jsxs)("form",{onSubmit:v,className:"grid grid-cols-1 gap-[15px] md:grid-cols-2",children:[(0,n.jsx)(S.A,{disabled:p,form:a,label:(0,n.jsx)(k.A,{label:"First Name"}),name:"firstName",onChange:e=>f("firstName",e),validators:[T.mw,T.UU],value:o.firstName}),(0,n.jsx)(S.A,{disabled:p,form:a,label:(0,n.jsx)(k.A,{label:"Last Name"}),name:"lastName",onChange:e=>f("lastName",e),validators:[T.mw,T.UU],value:o.lastName}),(0,n.jsx)(S.A,{className:"col-span-full",disabled:p,form:a,label:(0,n.jsx)(k.A,{label:"Email address"}),name:"email",onChange:e=>f("email",e),validators:[T.mw,T.Rp],value:o.email}),(0,n.jsx)(S.A,{className:"col-span-full",disabled:p,form:a,label:(0,n.jsx)(k.A,{label:"Mobile number"}),name:"phoneNumber",onChange:e=>f("phoneNumber",e),type:"phone",validators:[T.mw,e=>(0,T.Hw)(e,10)],value:o.phoneNumber}),(0,n.jsx)(D,{brand:l}),(0,n.jsx)("div",{className:"col-span-full flex justify-center",children:(0,n.jsx)(N.A,{className:"w-[280px] px-[15px] py-3",loading:p,type:"submit",variant:"primary",children:"Send quote"})})]})]})}),E={"personal-loans":function(e){let{closeModal:a,onSuccess:t,variables:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-center gap-5",children:[(0,n.jsx)(y.A,{}),(0,n.jsx)(w.A,{size:24}),(0,n.jsx)(b.A,{src:"https://production-content-assets.ratecity.com.au/20250113/driva-logo-TvMlkvR9N.png",width:180,height:50,alt:"Driva logo"})]}),(0,n.jsx)("p",{className:"text-center",children:"Enter your details to begin an application with Driva, our Personal Loan broker partner. You’ll receive a detailed quote with personalised rates from Driva."}),(0,n.jsx)(U,{closeModal:a,formName:"enquiry-form",onSuccess:t,placement:"enquiry-form",variables:r})]})},"health-insurance":function(e){let{closeModal:a,variables:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex items-center justify-center gap-5",children:[(0,n.jsx)(y.A,{}),(0,n.jsxs)("div",{className:"self-end",children:[(0,n.jsx)("i",{className:"text-[10px]",children:"powered by"}),(0,n.jsx)(b.A,{src:"https://www.canstar.com.au/wp-content/uploads/itsmygroup-logo-200px.png",width:68,height:18,alt:"ItsMy Group logo"})]})]}),(0,n.jsx)(F,{closeModal:a,formName:"enquiry-form",placement:"enquiry-form",variables:t})]})}};function G(e){let{children:a,className:t,onClick:i,onSuccess:s,variables:l,variant:c,vertical:m}=e,[u,p]=r.useState(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.default,{className:(0,d.cn)(t),onClick:function(){p(!0),i()},referrerPolicy:"no-referrer-when-downgrade",rel:"nofollow",target:"_blank",variant:c,children:a}),u?(0,n.jsx)(g.A,{className:"flex flex-col gap-[30px] px-6 py-10 md:px-10 md:py-5",onClose:()=>p(!1),children:function(){let e=E[m];return e?(0,n.jsx)(e,{closeModal:()=>p(!1),onSuccess:s,variables:l}):null}()}):null]})}let $=(e,a)=>{let t=new URLSearchParams(e);return a.forEach((e,a)=>{t.set(a,e)}),t},V=["pxf.io","sjv.io","ngih.net"];function H(e){var a,t;let{applyUrl:i,btnPosition:g,children:y,className:w,comparisonId:b,filterFields:x,isEnquiryForm:N,isFpl:A,isNative:j,isSponsored:_,placement:k="ratetable",position:S,product:C,selectorFields:P,variables:T,variant:I,vertical:R}=e,U=(0,l.useSearchParams)(),{host:L,page:M,isEmbed:O}=(0,h.useApp)(),[,D]=r.useState(""),{query:F,pathname:E,origin:H}=(0,m.Ru)(i),B=new URLSearchParams(F),W=r.useRef(new URLSearchParams).current;if(W.set("spark_poc","true"),W.set("host",L),L===u.ug&&(W.set("page_type",null!==(a=null==M?void 0:M.type)&&void 0!==a?a:"LANDING"),W.set("position",String(S)),W.set("placement",k),W.has("utm_source")&&W.set("utmSource",U.get("utm_source")),U.has("utm_medium")&&W.set("utmMedium",U.get("utm_medium")),U.has("utm_campaign")&&W.set("utmCampaign",U.get("utm_campaign"))),j&&W.set("flags","monetised"),_&&W.set("flags","promoted"),A&&(W.set("flags","sponsored"),W.set("isFpl","true")),L===u.zh&&(W.set("selectorFields",P),W.set("filterFields",x)),B.has("handOffURL")&&b){let e;try{e=new URL(B.get("handOffURL"))}catch(a){e=new URL("https://"+B.get("handOffURL"))}if(e){let a=decodeURIComponent(e.toString()),t=a.includes("{{cnsqtid}}"),n=a.includes("{{SubId1}}");(t||n)&&(e=new URL(a.replace(/\{\{cnsqtid\}\}|\{\{SubId1\}\}/g,b))),t||e.searchParams.set("cnsqtid",b),V.some(a=>e.hostname.includes(a))&&!n&&e.searchParams.set("SubId1",b),B.set("handOffURL",e.toString())}}let q=r.useCallback(()=>{let{listType:e,type:a}=(0,f.KP)({isFpl:A,isNative:j,isSponsored:_},C.sponsoredSlot),t=JSON.parse((0,m.Ny)(P)).map(e=>s()(e,["name","value"]));return{ecommerce:{click:{products:[{typeId:"".concat(C.productId,"-").concat(a),id:C.productId,brand:C.company,name:C.productName,list:e,category:C.vertical,dimension11:"Monetised",clickType:f.vc[g],price:C.premium}]}},table:{profile:C.profileName,vertical:C.vertical},selector:t}},[j,_,A,P,C,g]),Y=e=>{let{deviceId:a,impressionId:t}=e;W.set("rf",document.referrer||window.location.href),W.set("dvc_id",a),W.set("impressionId",null!=t?t:""),D(new Date().toString())},z=()=>{if(L!==u.ug||O){if(L===u.zh){let e=q();(0,v.t)("ProductClick",e),(0,p.R)(e,"productClick")}}else{let e=Object.fromEntries($(B,W).entries());c.A.trackGAProductClick(C,e)}};if(r.useEffect(()=>{if(L===u.ug&&!O)try{window.rcTracker("impression_callback",{params:{placement:k,productUuid:C.canstarProductUuid},callback:Y})}catch(e){console.error(e),Y({deviceId:(0,c.w)()})}},[C.canstarProductUuid]),N)return(0,n.jsx)(G,{className:w,onClick:z,variables:{...T,productId:null!==(t=C.productId)&&void 0!==t?t:C.id},variant:I,vertical:R,onSuccess:()=>{if(L===u.zh){let e=q();(0,p.R)(e,"leadSubmit")}},children:y});let Q="".concat(i.startsWith("https")?H:"").concat(E,"?").concat($(B,W));return(0,n.jsx)(o.default,{className:(0,d.cn)(w),href:Q,onClick:z,rel:"nofollow",target:"_blank",variant:I,referrerPolicy:"no-referrer-when-downgrade",children:y})}},29618:(e,a,t)=>{t.d(a,{KP:()=>m,vc:()=>d,vs:()=>c}),t(62322);var n=t(59953),r=t.n(n);t(33196),t(87993),t(60260),t(4088);var i=t(61616);let s=i.iy.reduce((e,a)=>({...e,[a.value]:a.name}),{}),l=i.My.reduce((e,a)=>({...e,[a.value]:a.name}),{}),o=i.e5.reduce((e,a)=>({...e,[a.value]:a.name}),{}),c=(e,a)=>{if(r()(a))return[];let t="string";return({"car-insurance":[{name:"Age",type:t,value:l[a.age]},{name:"State",type:t,value:s[a.state]},{name:"Gender",type:t,value:o[a.gender]},{name:"Extra driver under 25",type:t,value:a.extraDriverUnder25?"Yes":"No"}],"travel-insurance":[],"personal-loans":[],"health-insurance":[],energy:[]})[e]},d={gotoSiteBtn:"Proceed button",productName:"Prod link",companyImg:"Image Link"},m=(e,a)=>{let{isNative:t,isSponsored:n,isFpl:r}=e,i,s="Table";return t&&(i="monetised"),n&&(i="promoted",s="Sponsored - ".concat(a)),r&&(i="sponsored",s="Featured"),{listType:s,type:i}}},52003:(e,a,t)=>{t.d(a,{A:()=>l});var n=t(95155),r=t(86974),i=t(85323),s=t(9747);let l=function(e){let{children:a,loading:t,onClick:l,variant:o,className:c,type:d}=e;return(0,n.jsxs)(r.default,{variant:o,className:(0,i.cn)("relative",c),onClick:l,type:d,children:[(0,n.jsx)("span",{className:(0,i.cn)({"animate-conceal":t}),style:{animationFillMode:"both",animationDuration:"0.2s"},children:a}),t?(0,n.jsx)("span",{className:(0,i.cn)("absolute inset-0 flex items-center justify-center",{"animate-fade-in":t}),style:{animationDelay:"0.25s",animationDuration:"0.2s",animationFillMode:"both"},children:(0,n.jsx)(s.A,{})}):null]})}},3377:(e,a,t)=>{t.d(a,{A:()=>g});var n=t(95155),r=t(12115),i=t(51829),s=t.n(i),l=t(35890),o=t.n(l),c=t(76447),d=t(79522),m=t(13752),u=t(86974),p=t(16568),v=t(67787),h=t(85323),f=t(21794);function g(e){let{calendarClassName:a,disabled:t,form:i,label:l,name:g,onClick:y,placeholder:w,validators:b=[],value:x,inputClassName:N}=e,[A,j]=r.useState(!1),[_,k]=r.useState([]),S=r.useRef(null);(0,c.A)(S,()=>j(!1));let C=r.useCallback(e=>{let a=s()(o()(b,a=>a(e)));return k(a),a},[b]);function P(e){e&&(C(e),y(e),j(!1))}r.useEffect(()=>{void 0!==i&&i.bind(g,C)},[i,g,C]);let T=_.length?_[0]:"";return(0,n.jsxs)("div",{ref:S,className:"relative",children:[(0,n.jsx)("label",{htmlFor:"dob",className:"mb-2 inline-block text-neutral-30",children:l}),(0,n.jsx)(f.A,{disabled:t,form:i,id:"dob",inputWrapperClassName:(0,h.cn)(N,{error:T}),name:"dob-input",onChange:e=>(function(e){if(/\d{2}\/\d{2}\/\d{4}/.test(e)){let[a,t,n]=e.split("/"),r=Number(n),i=(0,m.d)(new Date,100);r<i.getFullYear()&&(r=i.getFullYear()),P(new Date(r,Number(t)-1,Number(a)))}else y(void 0)})(e),placeholder:w,type:"date",value:x?(0,d.GP)(x,"dd/MM/yyyy"):w,addon:(0,n.jsx)(u.default,{className:(0,h.cn)("w-fit p-0",{"cursor-not-allowed":t}),onClick:function(){t||j(!A)},children:(0,n.jsx)(v.A,{alt:"calendar-icon",height:18,src:"https://staging-content-assets.ratecity.com.au/20240806/calendar-plus-ZxEwB05sr.svg",width:18})})}),T?(0,n.jsxs)("div",{className:"flex flex-row items-center justify-start pt-2 leading-[1.4]",children:[(0,n.jsx)("div",{className:"mr-1 flex-shrink-0",children:(0,n.jsx)(v.A,{alt:"red exclamation circle",src:"https://www.canstar.com.au/wp-content/uploads/2022/02/exclamation-circle.svg",height:14,width:14})}),(0,n.jsx)("span",{className:"text-[14px] text-error-red",children:T})]}):null,A&&(0,n.jsx)(p.A,{captionLayout:"dropdown",className:a,disabledAfter:new Date,mode:"single",numberOfMonths:1,onSelect:P,selected:x})]})}},1407:(e,a,t)=>{t.d(a,{A:()=>r});var n=t(95155);function r(e){let{label:a}=e;return(0,n.jsxs)("span",{children:[a,(0,n.jsx)("span",{className:"text-orange",children:" *"})]})}},61616:(e,a,t)=>{t.d(a,{Ay:()=>m,IN:()=>l,My:()=>n,U3:()=>s,e5:()=>i,iy:()=>r,qO:()=>o,wo:()=>c,z1:()=>d});let n=[{name:"Under 25",value:"under25"},{name:"25 - 29",value:"25-29"},{name:"30 - 39",value:"30-39"},{name:"40 - 49",value:"40-49"},{name:"50 - 59",value:"50-59"},{name:"60+",value:"60+"}],r=[{name:"New South Wales",value:"NSW"},{name:"Australian Capital Territory",value:"ACT"},{name:"Queensland",value:"QLD"},{name:"South Australia",value:"SA"},{name:"Tasmania",value:"TAS"},{name:"Victoria",value:"VIC"},{name:"Western Australia",value:"WA"}],i=[{name:"Male",value:"male"},{name:"Female",value:"female"}],s=[{name:"Yes",value:!0},{name:"No",value:!1}],l=[{name:"Agreed value",value:"agreedValue"},{name:"Market value",value:"marketValue"},{name:"Pay monthly at no extra cost",value:"payMonthlyAtNoExtraCost"},{name:"Roadside assistance",value:"roadSideAssistance"},{name:"Reduced premiums offered with age restrictions on 2nd driver ",value:"reducedPremiumOfferedWithAgeRestrictionsOn2ndDriver"},{name:"Can increase excess to reduce premium",value:"canIncreaseExcessToReducePremium"},{name:"Can apply for policy online",value:"canApplyForPolicyOnline"},{name:"24 hour helpline available ",value:"_24HourHelplineAvailable"}],o=[{name:"Discount for low kilometers",value:"discountForLowKilometers"},{name:"Discount when purchased online",value:"discountWhenPurchasedOnline"},{name:"Good driver discount",value:"goodDriverDiscount"},{name:"Multi-policy discount",value:"multiPolicyDiscount"},{name:"No claims discount offered at purchase",value:"noClaimsDiscountOfferedAtPurchase"}],c=[{name:"Free windscreen claim available",value:"freeWindscreenClaimAvailable"},{name:"Theft cover",value:"theftCover"},{name:"Hail cover",value:"hailCover"},{name:"Flood cover",value:"floodCover"},{name:"Trailer cover",value:"trailerCover"},{name:"Baby capsule/child seat cover",value:"babyCapsuleChildSeatCover"},{name:"Covers non-nominated resident driver",value:"coversNonNominatedResidentDriver"}],d=[{name:"Can lodge claim online",value:"canLodgeClaimOnline"},{name:"Choice of repairer",value:"choiceOfRepairer"},{name:"Emergency repairs available",value:"emergencyRepairsAvailable"},{name:"Free repair service",value:"freeRepairService"},{name:"Lifetime repair guarantee",value:"lifetimeRepairGuarantee"},{name:"New car offered in case of write-off",value:"newCarOfferedInCaseOfWriteoff"},{name:"Rental car available following accident if at fault",value:"rentalCarAvailableFollowingAccidentIfAtFault"},{name:"Rental car available following accident if not at fault",value:"rentalCarAvailableFollowingAccidentIfNotAtFault"},{name:"Rental car available following theft",value:"rentalCarAvailableFollowingTheft"}],m={age:n,state:r,gender:i,extraDriverUnder25:s,features:l,discounts:o,cover:c,accidentCare:d,onlinePartner:[{name:"true",value:!0},{name:"false",value:!1}],sortMapper:[{name:"starRating",value:"stars"},{name:"newCarInCaseOfWriteOff",value:"newCarInCaseWriteoff"}],customFieldMapper:[{name:"providers",value:"provider",valueType:"array"},{name:"starRating",value:"stars",valueType:"array",valueArray:[{name:"5 Star",value:5},{name:"4 Star",value:4},{name:"3 Star",value:3},{name:"2 Star",value:2},{name:"1 Star",value:1},{name:"Not Rated",value:10},{name:"New product",value:11}]}]}},23714:(e,a,t)=>{t.d(a,{$j:()=>n,_K:()=>s,h1:()=>l,iy:()=>r,k8:()=>i});let n=[{value:0,name:"Single"},{value:1,name:"Couple"},{value:2,name:"Family"},{value:3,name:"Single Parent Family"}],r=[{value:"ACT",name:"ACT"},{value:"NSW",name:"NSW"},{value:"NT",name:"NT"},{value:"QLD",name:"QLD"},{value:"SA",name:"SA"},{value:"TAS",name:"TAS"},{value:"VIC",name:"VIC"},{value:"WA",name:"WA"}],i=[{value:2,name:"HOSPITAL & EXTRAS"},{value:0,name:"HOSPITAL ONLY"},{value:1,name:"EXTRAS ONLY"}],s=[{value:10,name:"Rehabilitation",description:"Hospital treatment for physical rehabilitation for a patient related to surgery or illness."},{value:26,name:"Bone, Joint and Muscle",description:"Hospital treatment for the investigation and treatment of diseases, disorders and injuries of the musculoskeletal system."},{value:30,name:"Chemotherapy, Radiotherapy and Immunotherapy for Cancer",description:"Hospital treatment for chemotherapy, radiotherapy and immunotherapy for the treatment of cancer or benign tumours."},{value:44,name:"Joint Reconstructions",description:"Hospital treatment for surgery for joint reconstructions. For example, torn tendons, rotator cuff tears and damaged ligaments."},{value:58,name:"Tonsils, Adenoids and Grommets",description:"Hospital treatment of the tonsils, adenoids and insertion or removal of grommets."},{value:45,name:"Joint Replacements",description:"Hospital treatment for surgery for joint replacements, including revisions, resurfacing, partial replacements and removal of prostheses."},{value:24,name:"Back, Neck and Spine",description:"Hospital treatment for the investigation and treatment of the back, neck and spinal column, including spinal fusion."},{value:39,name:"Heart and Vascular System",description:"Hospital treatment for the investigation and treatment of the heart, heart-related conditions and vascular system."},{value:55,name:"Pregnancy and Birth",description:"Hospital treatment for investigation and treatment of conditions associated with pregnancy and child birth."}],l=[{value:1,name:"General Dental",description:"Treatment for or relating to your teeth provided by a dentist or a dental surgeon. Typically this includes check-ups, cleans, and simple fillings."},{value:3,name:"Chiropractic",description:"Chiropractors use spinal adjustments to treat health problems that are related to nerves, skeletons and muscles."},{value:8,name:"Major Dental",description:"Significant dental services, such as complex fillings, tooth extractions, crowns and bridges. Whether specific items are classified as general or major dental depends on each insurer's rules, so check with your insurer for details."},{value:2,name:"Physiotherapy",description:"Physiotherapists treat injury, disease and disorders through physical methods. Physiotherapy uses manual therapies, exercise programs and electrotherapy techniques to improve movement, reduce pain and stiffness, and increase quality of life."},{value:7,name:"Optical",description:"Includes prescription lenses, spectacle frames, and contact lenses. Insurers do not pay benefits for optometrist's consultations as these are generally eligible for Medicare benefits."},{value:16,name:"Remedial Massage",description:"Deep massage to treat injuries and speed recovery (for example, strains, sprains, bruising)."}]},95221:(e,a,t)=>{t.d(a,{A:()=>g,w:()=>f});var n=t(51973),r=t.n(n),i=t(74424),s=t.n(i),l=t(55922),o=t.n(l),c=t(70719),d=t.n(c),m=t(21698),u=t.n(m);class p{interstitialViewed(e,a,t){window.gtag("event","purchase",{send_to:this.GA4_GROUP,transaction_id:a+Math.round(1e7*Math.random()),value:0,items:[{item_id:e.canstarProductUuid,item_name:e.productName,item_brand:e.company,item_category:e.vertical,item_variant:t,price:0,quantity:1,monetised:"monetised"}]})}constructor(){var e=this;this.pageView=()=>{window.rcTracker("device_id_callback",{callback:this.pageViewEvent})},this.pageViewEvent=e=>{let{deviceId:a}=e;window.gtag("config","G-4Y71LRNE32",{groups:this.GA4_GROUP,page_location:this.pageLocation,page_path:this.pagePath,allow_display_features:!1,vertical:this.vertical,unix_timestamp:new Date().getTime().toString(),device_id:a,system_version:this.systemVersion,author:this.author})},this.recordProductImpression=function(a,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e.productImpressions.push({item_id:a.canstarProductUuid,item_name:a.productName,item_category:e.vertical,item_brand:a.company,item_variant:"".concat(e.pageType," Page"),list_name:t,index:n,system_version:e.systemVersion}),e.debounceImpressions()},this.impressionsViewed=()=>{window.gtag("event","view_item_list",{send_to:this.GA4_GROUP,items:this.productImpressions}),this.productImpressions=[]},this.recordFormEvent=(e,a,t,n)=>{window.gtag("event","".concat(e.formName,"_").concat(e.placement),{send_to:this.GA4_GROUP,event_category:t,event_label:null!=n?n:"not set",value:"initial_value"===a?0:1})},this.trackProductClick=function(a){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.gtag("event","select_item",{send_to:e.GA4_GROUP,items:[{item_id:a.canstarProductUuid,item_name:a.productName,item_category:n.vertical,item_brand:a.company,item_variant:"".concat(e.pageType," Page"),list_name:n.placement,index:n.position,system_version:e.systemVersion}]}),window.gtag("event","Product Clicked",{send_to:e.GA4_GROUP,event_category:n.vertical,event_label:a.company,non_interaction:!0}),window.dataLayer.push({product_clicked:{price:null!==(t=a.ecpc)&&void 0!==t?t:0,category:u()(n.vertical).replace(" ","_").replace(/s$/,""),promo_code:[u()(a.name),u()(a.company),new Date().getTime()].join("|"),description:a.name,company:a.company,vertical:u()(n.vertical)},event:"apply_button_clicked"})},this.customGtagEvent=(e,a)=>{window.gtag("event",e,{send_to:this.GA4_GROUP,...a})},this.GA4_GROUP="GA4",this.pageType="",this.vertical="",this.pageLocation="",this.pagePath="",this.systemVersion="spark",this.author="",this.productImpressions=[],this.debounceImpressions=d()(()=>{this.impressionsViewed()},1e3)}}let v=new p;class h{constructor(){this.shouldTrackTheEvent=()=>this.lastTrackedUrl!==window.location.href,this.pageView=e=>{if(this.shouldTrackTheEvent()){var a,t,n,r;let i=e.vertical,s="PAGE"===e.type?null:o()(null!==(n=e.type)&&void 0!==n?n:"");window.rcTracker("set_page_type",{pageType:s}),window.rcTracker("set_vertical",{vertical:i}),window.rcTracker("page_view",{lastTrackedUrl:this.lastTrackedUrl,systemVersion:this.systemVersion}),this.lastTrackedUrl=window.location.href,v.pageLocation=window.location.href,v.pagePath=window.location.pathname,v.pageType=s,v.vertical=i,v.author=null!==(r=null===(t=e.authors)||void 0===t?void 0:null===(a=t[0])||void 0===a?void 0:a.name)&&void 0!==r?r:"not specified",v.pageView()}},this.recordProductImpression=function(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e&&(window.rcTracker("record_product_impression",{product:e,placement:a,productVertical:e.vertical,position:t}),v.recordProductImpression(e,a,t))},this.recordFormEvent=(e,a,t,n,r)=>{if(void 0===e){console.warn("<form> was found undefined in recordFormEvent()",{eventType:a,fieldType:t,field:n,value:r});return}window.rcTracker("record_form_event",{form:e,eventType:a,fieldType:t,field:n,value:r}),v.recordFormEvent(e,a,n,r)},this.trackInteraction=e=>{window.rcTracker("interaction",{clickData:e,productVertical:e.vertical})},this.trackGAProductClick=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v.trackProductClick(e,a)},this.interstitialViewed=(e,a,t,n,i)=>{let l=r().parse(s()(window.location.search,/^\?/,""));v.interstitialViewed(e,a,t),window.rcTracker("interstitial_viewed",{product:e,clickId:a,productVertical:e.vertical,impressionId:n,clickData:l,referrer:i})},this.lastTrackedUrl="",this.systemVersion="spark"}}let f=()=>window.deviceId,g=new h}}]);