(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4734],{34734:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,87970,23)),Promise.resolve().then(t.bind(t,1183)),Promise.resolve().then(t.bind(t,5137)),Promise.resolve().then(t.bind(t,66941)),Promise.resolve().then(t.bind(t,56253)),Promise.resolve().then(t.bind(t,87857)),Promise.resolve().then(t.bind(t,7342)),Promise.resolve().then(t.bind(t,18595)),Promise.resolve().then(t.bind(t,7715)),Promise.resolve().then(t.bind(t,94604)),Promise.resolve().then(t.bind(t,80178)),Promise.resolve().then(t.bind(t,12562)),Promise.resolve().then(t.bind(t,20278)),Promise.resolve().then(t.bind(t,27411)),Promise.resolve().then(t.t.bind(t,89202,23)),Promise.resolve().then(t.bind(t,29030)),Promise.resolve().then(t.bind(t,51136)),Promise.resolve().then(t.bind(t,86974)),Promise.resolve().then(t.bind(t,56684)),Promise.resolve().then(t.bind(t,97284)),Promise.resolve().then(t.bind(t,28145)),Promise.resolve().then(t.bind(t,7182)),Promise.resolve().then(t.bind(t,79693)),Promise.resolve().then(t.bind(t,24190)),Promise.resolve().then(t.bind(t,88321)),Promise.resolve().then(t.bind(t,70426)),Promise.resolve().then(t.bind(t,95229)),Promise.resolve().then(t.bind(t,23149)),Promise.resolve().then(t.bind(t,42542)),Promise.resolve().then(t.bind(t,89478)),Promise.resolve().then(t.bind(t,43235)),Promise.resolve().then(t.bind(t,54432)),Promise.resolve().then(t.bind(t,96462)),Promise.resolve().then(t.bind(t,25872)),Promise.resolve().then(t.bind(t,34582)),Promise.resolve().then(t.bind(t,31942)),Promise.resolve().then(t.bind(t,47502)),Promise.resolve().then(t.bind(t,99226)),Promise.resolve().then(t.bind(t,79978)),Promise.resolve().then(t.bind(t,90256)),Promise.resolve().then(t.bind(t,30457)),Promise.resolve().then(t.bind(t,4344)),Promise.resolve().then(t.bind(t,26460))},1183:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var l=t(95155),r=t(12115),n=t(57957),a=t.n(n),i=t(82654),o=t(86974),c=t(85323);function d(e){let{enabled:s,setEnabled:t,title:r,body:n,className:d}=e;return(0,l.jsxs)("div",{className:(0,c.cn)("mt-[-1px] w-full border border-solid border-neutral-80 p-4",d),children:[(0,l.jsxs)(o.default,{className:"flex w-full cursor-pointer items-center justify-between gap-2 p-0 text-left",onClick:()=>t(!s),children:[a()(r)?(0,l.jsx)("div",{className:"font-bold",children:r}):r,(0,l.jsx)(i.A,{size:18,className:"shrink-0 transition-transform duration-300 ease-in-out will-change-transform\n            ".concat(s?"rotate-[90deg]":"")})]}),s?(0,l.jsx)("div",{className:"pt-4 [&_p]:!m-0",children:n}):null]})}let u=function(e){let{active:s=!1,...t}=e,[n,a]=r.useState(s);return(0,l.jsx)(d,{enabled:n,setEnabled:a,...t})}},5137:(e,s,t)=>{"use strict";t.d(s,{default:()=>a});var l=t(95155),r=t(86065),n=t(67787);function a(e){let s,{social:t,size:a,url:i,title:o,description:c}=e,{iconSrc:d,alt:u,component:h,...m}=t;switch(h){case"linkedIn":s=r.wk;break;case"twitter":s=r.r6;break;case"facebook":s=r.uI;break;case"mail":s=r.Ot}return s?(0,l.jsx)(s,{...m,url:i,title:o,subject:o,body:c,children:(0,l.jsx)(n.A,{src:d,alt:u,width:a,height:a})}):null}},66941:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>h});var l=t(95155),r=t(12115),n=t(51973),a=t.n(n),i=t(3876),o=t(82654),c=t(86974),d=t(75426),u=t(21794);let h=(0,t(44630).A)(function(e){let{form:s}=e,[t,n]=r.useState(""),h=async()=>{await s.validateFields({email:t})&&(window.location.href="/newsletter?".concat(a().stringify({email:t})))};return(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,l.jsx)("p",{className:"font-semibold",children:"Get updates on the latest financial news and products"}),(0,l.jsx)("div",{children:(0,l.jsx)(u.A,{value:t,name:"email",onChange:e=>n(e),placeholder:"Enter email address",validators:[i.mw,i.Rp],form:s,addon:(0,l.jsx)(c.default,{"aria-label":"subscribe",className:"p-0",onClick:h,children:(0,l.jsx)(o.A,{size:25,className:"stroke-black"})})})}),(0,l.jsxs)("p",{className:"text-xs",children:["By continuing, you agree to the RateCity"," ",(0,l.jsx)(d.A,{className:"underline hover:no-underline",href:"/privacy-policy",target:"_blank",children:"Privacy Policy"}),","," ",(0,l.jsx)(d.A,{className:"underline hover:no-underline",href:"/terms-of-use",target:"_blank",children:"Terms of Use"})," ","and"," ",(0,l.jsx)(d.A,{className:"underline hover:no-underline",href:"/disclaimer",target:"_blank",children:"Disclaimer"}),"."]})]})})},56253:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var l=t(95155),r=t(12115),n=t(76447),a=t(51829),i=t.n(a),o=t(14086),c=t.n(o),d=t(7871),u=t(85323);let h=function(e){let{children:s}=e,[t,a]=r.useState(!1),o=r.useRef(null),h=r.useRef(null),m=(0,d.A)(),[x,f]=r.useState("");(0,n.A)(o,()=>{t&&a(!1)});let b=e=>i()(c()(e).split(" ")).filter(e=>/^\w+$/.test(e)).join("-"),p=()=>{x&&(window.location.href="/search/".concat(b(x)))},v=t?"right-6 !w-[calc(100vw-90px)] bg-white px-[5px]\n    py-2.5 text-black sm:!w-[calc(60vw)] md:right-10  md:!w-[calc(50vw)] md:px-5 [@media(min-width:1300px)]:!w-[1000px]":"";return(0,l.jsxs)("div",{ref:o,className:(0,u.cn)({expanded:t}),children:[(0,l.jsx)("input",{ref:h,className:(0,u.cn)("\n          absolute right-0 top-[-24px] h-[72px] w-0 \n          appearance-none border-none text-[15px] outline-none transition-[width]\n          duration-[.35s] ease-in ".concat(v)),name:"search",type:"search",value:x,placeholder:"What can we help you find?",onChange:e=>{f(e.target.value)},onKeyDown:e=>m(e,p),autoComplete:"off","aria-label":"Search",tabIndex:t?0:-1,"aria-hidden":!t}),(0,l.jsxs)("button",{type:"button",className:"flex flex-row flex-wrap items-center",onClick:()=>{var e;if(t){a(!1),f("");return}a(!0),null===(e=h.current)||void 0===e||e.focus()},children:[s,(0,l.jsx)("span",{className:"sr-only",children:t?"Close Search bar":"Open search bar"})]})]})}},87857:(e,s,t)=>{"use strict";t.d(s,{default:()=>f});var l=t(95155),r=t(12115),n=t(67787),a=t(9752),i=t(12875),o=t(85323),c=t(84631),d=t.n(c),u=t(35890),h=t.n(u),m=t(75426);function x(e){let{menu:s}=e,[t,n]=r.useState("Home Loans"),a=d()(s,["name",t]);return(0,l.jsxs)("div",{className:"flex max-h-[calc(100vh-40px)] overflow-y-auto px-6",children:[(0,l.jsx)("div",{className:"mr-8",children:(0,l.jsx)("ul",{className:"flex flex-col gap-5",children:h()(s,(e,s)=>(0,l.jsx)("li",{className:(0,o.cn)("relative flex items-center",{"text-primary":t===e.name}),children:e.slug?(0,l.jsx)(m.A,{href:e.slug,className:"text-nowrap font-bold hover:text-primary",children:e.name}):(0,l.jsx)("button",{className:"cursor-pointer text-nowrap font-bold",type:"button",onClick:()=>n(e.name),children:e.name})},s))})}),a&&a.subMenu?(0,l.jsx)("div",{className:"mb-5 h-full",children:h()(a.subMenu,(e,s)=>(0,l.jsxs)("div",{children:[e.title&&(0,l.jsx)("p",{className:"mb-2 font-bold text-black",children:e.title}),(0,l.jsx)("ul",{className:"mb-10 flex flex-col gap-5",children:h()(e.links,e=>(0,l.jsx)("li",{className:(0,o.cn)({"font-bold underline":e.underline}),children:(0,l.jsx)(m.A,{href:e.slug,children:e.name})},e.slug))})]},s))}):null]})}function f(e){let{menu:s}=e,[t,c]=r.useState(!1);(0,a.A)(t);let d=()=>c(e=>!e);return(0,l.jsxs)("div",{className:"flex gap-4 lg:hidden",children:[(0,l.jsx)("button",{onClick:d,children:(0,l.jsx)(n.A,{alt:"menu icon",height:26,src:"https://www.canstar.com.au/wp-content/uploads/2021/09/menu.svg",width:26})}),(0,l.jsxs)("div",{className:(0,o.cn)("duration-400 absolute left-0 top-0 z-[2] h-screen w-full translate-x-[-100%] !overflow-scroll bg-white transition-transform ease-in",{"translate-x-0 ease-out":t}),children:[(0,l.jsx)("div",{className:"flex w-full justify-end",children:(0,l.jsx)("button",{"aria-label":"close menu",type:"button",onClick:d,children:(0,l.jsx)(i.A,{className:"mr-5 mt-3 cursor-pointer",size:28})})}),(0,l.jsx)(x,{menu:s})]})]})}},7342:(e,s,t)=>{"use strict";t.d(s,{default:()=>a});var l=t(12115),r=t(4344),n=t(95221);function a(e){let{children:s}=e,{page:t}=(0,r.useApp)();return l.useEffect(()=>{t&&n.A.pageView(t)},[t]),s}},7715:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var l=t(95155),r=t(12115),n=t(49861),a=t.n(n),i=t(54833),o=t.n(i),c=t(36016),d=t(85323);let u={left:{value:"pl-2 hover:font-bold hover:border-l-4 hover:border-solid hover:border-l-primary",active:"font-bold border-l-4 border-solid border-l-primary"},bottom:{value:"p-2.5 border-b-2 border-transparent hover:border-b-black",active:"border-b-black"}},h=function(e){let{borderSide:s="left",liClassName:t,linkOffset:n,onClick:i,titles:h,ulClassName:m}=e,[x,f]=r.useState(a()(null==h?void 0:h[0]));return 0===o()(h)?null:(0,l.jsx)("ul",{className:(0,d.cn)(m),children:h.map((e,r)=>(0,l.jsx)("li",{className:(0,d.cn)(t),children:(0,l.jsx)(c.N_,{href:"#",className:(0,d.cn)("block duration-300 ease-in-out ".concat(u[s].value,"}"),{[u[s].active]:x===a()(e)}),delay:100,duration:500,horizontal:!1,offset:n?-n:0,onClick:i,onSetActive:e=>f(e),to:a()(e),smooth:!0,spy:!0,children:e})},r))})}},94604:(e,s,t)=>{"use strict";t.d(s,{default:()=>c});var l=t(95155),r=t(12115),n=t(49861),a=t.n(n),i=t(86974),o=t(82654);let c=function(e){let{title:s,content:t}=e,[n,c]=r.useState(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.default,{className:"grid cursor-pointer grid-cols-[1fr,28px] items-center rounded-none border-b border-neutral-80 px-0 py-4 text-left",id:a()(s),onClick:()=>{c(!n)},children:[(0,l.jsx)("h3",{className:"!m-0",children:s}),(0,l.jsx)(o.A,{size:28,strokeWidth:1,className:"duration-300 ease-in-out ".concat(n?"rotate-90":"rotate-[-90deg]")})]}),n?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:"py-4"}):null]})}},80178:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>p});var l=t(95155),r=t(12115),n=t(56840),a=t.n(n),i=t(73492),o=t.n(i),c=t(14086),d=t.n(c),u=t(75426),h=t(52732),m=t(86974),x=t(64439);let f=function(){return(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(x.A,{size:16,strokeWidth:5,color:"var(--color-link-primary)",className:"shrink-0"}),(0,l.jsx)("span",{className:"my-4 block whitespace-nowrap text-sm font-bold text-link-primary",children:"Fact Checked"})]})},b=function(){let[e,s]=r.useState(!1);return(0,l.jsxs)("div",{children:[(0,l.jsx)(m.default,{onClick:e=>{e.preventDefault(),s(!0)},className:"w-max bg-white p-0",children:(0,l.jsx)(f,{})}),e?(0,l.jsx)(h.A,{onClose:()=>{s(!1)},children:(0,l.jsxs)("div",{className:"flex flex-col p-2",children:[(0,l.jsx)("h3",{className:"mb-5",children:"Fact Check Process"}),(0,l.jsx)("p",{className:"border-t border-neutral-95 pt-5",children:"RateCity is committed to ensuring the information on our site is accurate, up-to-date and trustworthy so that you can make better financial decisions with confidence. We proudly stand by our editorial principles to ensure that the information being provided is fair, accurate and trustworthy. Regardless of what's found on RateCity, every review, guide, and article is produced by our team of expert authors, and subsequently edited and fact-checked via a thorough process while maintaining a balanced position."}),(0,l.jsx)(u.A,{href:"/fact-check",className:"text-link-hover",children:"Learn more about RateCity's data and fact-checking process."})]})}):null]})};function p(e){let s,{children:t,reviewedBy:r}=e;if(r){let{name:e,role:t}=r;if(!e)return null;let n=a()(o()(d()(e)," "),"-");s=(0,l.jsxs)("p",{className:"my-4 text-sm [&_a:hover]:underline [&_a]:text-link-primary",children:["This article was reviewed by ",t,(0,l.jsxs)(u.A,{href:"/author/".concat(n),children:[" ",e]})," before it was published as part of RateCity's"," ",(0,l.jsx)(u.A,{href:"/fact-check",children:"Fact Check process."})]})}let n=r?(0,l.jsx)(b,{}):(0,l.jsx)(f,{});return(0,l.jsxs)("section",{className:"border-t border-neutral-80 sm:flex sm:items-center sm:gap-4 sm:pt-4",children:[n,r?s:t]})}},12562:(e,s,t)=>{"use strict";t.d(s,{default:()=>a});var l=t(95155),r=t(86974),n=t(67787);function a(e){let{picture:s,title:t,link:a}=e;return(0,l.jsxs)(r.default,{onClick:()=>{var e;return null===(e=window.open(a,"_blank"))||void 0===e?void 0:e.focus()},className:"flex h-full w-full cursor-pointer flex-col",children:[s?(0,l.jsx)("div",{className:"flex h-full w-full items-center",children:(0,l.jsx)(n.A,{src:s,alt:t,width:500,height:288,className:"mr-4 !h-full !w-full"})}):null,(0,l.jsx)("h5",{className:"font-bold",children:t})]})}},20278:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var l=t(95155),r=t(12115),n=t(49861),a=t.n(n),i=t(66561),o=t.n(i),c=t(67787),d=t(75426),u=t(85323);function h(e){let{title:s,contentAfter:t,items:n=[]}=e,i=o()(n,"order"),[h,m]=r.useState(0),x=i.map((e,s)=>(0,l.jsxs)("div",{className:"flex min-h-[130px] cursor-pointer sm:min-h-[160px]",onClick:()=>m(s),role:"presentation",children:[(0,l.jsx)("div",{className:(0,u.cn)("relative after:absolute after:bottom-0 after:left-1/2 after:top-[40px] after:border-r after:border-neutral-70 sm:after:top-[90px]",{"after:!h-0":s===i.length-1}),children:(0,l.jsx)("div",{className:(0,u.cn)("flex h-10 w-10 items-center justify-center rounded text-[20px] font-bold shadow sm:h-[90px] sm:w-[90px] sm:text-[35px]",{"border border-gold [&&]:text-gold":s===h}),children:s+1})}),(0,l.jsxs)("div",{className:(0,u.cn)("px-2.5 py-0 text-neutral-50 sm:px-5 sm:py-2.5",{"[&&]:text-black":s===h}),children:[(0,l.jsx)("h4",{className:"mb-1.5",children:e.title}),e.content?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:e.content},className:"mt-2.5"}):null]})]},s));return(0,l.jsxs)("div",{className:"my-2.5",children:[(0,l.jsx)("h3",{className:"mb-4 text-center leading-7",id:a()(s),children:s}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,l.jsx)("div",{className:"mt-8 basis-3/4",children:x}),(()=>{var e,s,t;let r=null===(e=i[h].media)||void 0===e?void 0:e.url,n=r?(0,l.jsx)(c.A,{src:r,alt:null!==(t=null===(s=i[h].media)||void 0===s?void 0:s.altText)&&void 0!==t?t:"Step Image",width:260,height:500,className:"m-auto object-contain"}):null,a=i[h].linkUrl;return a?(0,l.jsx)(d.A,{href:a,className:"m-auto flex",children:n}):n})()]}),t?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:"mb-10"}):null]})}},27411:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var l=t(95155),r=t(12115),n=t(49861),a=t.n(n),i=t(66561),o=t.n(i),c=t(86974),d=t(56684),u=t(67787);function h(e){let{title:s,content:t,media:n,items:i=[]}=e,[h,m]=r.useState(0),x=o()(i,"order");return(0,l.jsxs)("div",{className:"my-2.5",children:[(0,l.jsx)("h3",{className:"mb-4",id:a()(s),children:s}),(0,l.jsxs)("div",{className:"flex flex-col gap-8 sm:flex-row",children:[t?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:"basis-2/3"}):null,(null==n?void 0:n.url)?(0,l.jsx)(u.A,{src:n.url,alt:n.altText,width:240,height:180,className:"!max-w-100% !h-auto !w-auto object-contain md:!w-[320px]"}):null]}),(0,l.jsx)("div",{className:"tab-list mt-5 [&_.slick-track]:!gap-0",children:(0,l.jsx)(d.default,{slidesToShow:4,tabletSettings:{slidesToShow:4},phoneSettings:{slidesToShow:1},children:x.map((e,s)=>(0,l.jsx)(c.default,{className:"!border !border-solid !border-[transparent] !px-3 !py-1.5 !no-underline ".concat(h===s?"selected-tab shadow-[0px_-4px_0px_var(--color-black)_inset]":""),variant:"link",onClick:()=>m(s),children:e.title},s))})}),(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:x[h].content},className:"mt-5"})]})}},29030:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>u});var l=t(95155),r=t(12115),n=t(40051),a=t(57957),i=t.n(a),o=t(85323),c=t(86974),d=t(28590);function u(e){let{children:s,className:t,onToggle:a,singleAccordion:u=!1,title:h,value:m=!1}=e,[x,f]=r.useState(m);return r.useEffect(()=>{x!==m&&f(m)},[m]),(0,n.A)(()=>{a&&a(x)},[x]),(0,l.jsxs)("div",{className:(0,o.cn)(t),children:[h?(0,l.jsxs)(c.default,{className:(0,o.cn)("accordion-title flex items-center justify-between rounded-none border-b border-neutral-90 p-4",{"!border-none":u},{"border-0":x}),disabled:u,onClick:()=>f(e=>!e),children:[i()(h)?(0,l.jsx)("p",{children:h}):h,!u&&(0,l.jsx)(d.A,{size:25,strokeWidth:1,className:(0,o.cn)("shrink-0 stroke-neutral-60 transition-transform duration-300 ease-in-out will-change-transform",{"rotate-[180deg]":x})})]}):null,(0,l.jsx)("div",{className:(0,o.cn)("accordion-body hidden px-4 pb-4",{"block border-b border-neutral-90":x,"!border-none":u}),children:s})]})}},56684:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>h});var l=t(95155);t(12115);var r=t(91151);t(66298),t(44202),t(74341);let n={sm:550,md:768,lg:1024,xl:1170};var a=t(85323);function i(e){let{ariaLabel:s,children:t,classname:r,customStyle:n,onClick:a}=e;return(0,l.jsx)("button",{"aria-label":s,className:r,onClick:a,type:"button",style:n,children:t})}var o=t(82654);function c(e){let{className:s,onClick:t,size:r,style:n}=e;return(0,l.jsx)("button",{"aria-label":"next",className:(0,a.cn)("shrink-0 rounded-full bg-neutral-95 p-2 hover:bg-neutral-90 focus-visible:!outline focus-visible:outline-offset-4",s),onClick:t,style:{width:"".concat(r,"px"),height:"".concat(r,"px"),...n},type:"button",children:(0,l.jsx)(o.A,{size:16})})}var d=t(7133);function u(e){let{className:s,onClick:t,size:r,style:n}=e;return(0,l.jsx)("button",{"aria-label":"previous",className:(0,a.cn)("shrink-0 rounded-full bg-neutral-95 p-2 hover:bg-neutral-90 focus-visible:!outline focus-visible:outline-offset-4",s),onClick:t,style:{width:"".concat(r,"px"),height:"".concat(r,"px"),...n},type:"button",children:(0,l.jsx)(d.A,{size:16})})}function h(e){let{arrowSize:s=32,children:t,className:o,customIconNext:d,customIconPrev:h,desktopSettings:m,disableArrows:x,disableResponsive:f,dots:b=!1,focusOnSelect:p=!1,infinite:v=!1,initialSlide:j=0,laptopSettings:w,phoneSettings:N,responsive:g,rows:y=1,sliderRef:k,slidesToScroll:C=1,slidesToShow:A,speed:P=500,tabletSettings:S,adaptiveHeight:_,variableWidth:T,draggable:z=!0}=e,L={arrows:!x,dots:b,infinite:v,slidesToShow:A,slidesToScroll:C,initialSlide:j,focusOnSelect:p,rows:y,speed:P,adaptiveHeight:_,variableWidth:T,draggable:z,nextArrow:d?(0,l.jsx)(i,{classname:null==d?void 0:d.className,customStyle:null==d?void 0:d.style,ariaLabel:"next",children:null==d?void 0:d.icon}):(0,l.jsx)(c,{size:s}),prevArrow:h?(0,l.jsx)(i,{classname:null==h?void 0:h.className,customStyle:null==h?void 0:h.style,ariaLabel:"prev",children:null==h?void 0:h.icon}):(0,l.jsx)(u,{size:s}),responsive:f?[]:null!=g?g:[{breakpoint:n.xl,settings:{slidesToShow:5,...m}},{breakpoint:n.lg,settings:{slidesToShow:4,...w}},{breakpoint:n.md,settings:{slidesToShow:3,...S}},{breakpoint:n.sm,settings:{slidesToShow:2,...N}}]};return(0,l.jsx)(r.A,{...L,ref:e=>{k&&(k.current=e)},className:(0,a.cn)("[&.slick-slider]:flex [&.slick-slider]:items-center",o),children:t})}},79693:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>y});var l=t(95155),r=t(12115),n=t(78914),a=t.n(n),i=t(93201),o=t.n(i),c=t(49861),d=t.n(c),u=t(35890),h=t.n(u),m=t(54833),x=t.n(m),f=t(29030),b=t(86974),p=t(12875),v=t(67787),j=t(52732),w=t(21794),N=t(94522),g=t(4344);function y(e){let{glossary:s,verticalName:t}=e,{closeGlossary:n}=(0,N.A)(),{glossary:i}=(0,g.useApp)(),[c,u]=r.useState(-1),[m,y]=r.useState(""),k=r.useRef(null),C=r.useRef(Array(x()(s)).fill(null).map(()=>r.createRef())),A=()=>{u(-1),y(""),n()},P=a()(s,e=>e.title.toLowerCase().includes(m.toLowerCase())||e.description.toLowerCase().includes(m.toLowerCase()));return r.useEffect(()=>{let e=i.keyword;if(!e)return;let t=o()(s,s=>d()(s.title).includes(d()(e)));t>-1&&u(t)},[s,i.keyword]),i.visible?(0,l.jsxs)(j.A,{fullWidth:!0,className:"overflow-hidden lg:p-8",hideCloseButton:!0,onClose:A,onMount:function(){if(c>-1){let e=C.current[c];e.current&&k.current&&(k.current.scrollTop=e.current.offsetTop)}},children:[(0,l.jsxs)("h3",{className:"mt-0 flex w-full items-center justify-between bg-white pb-4",children:[(0,l.jsxs)("span",{className:"font-normal",children:[t," glossary"]}),(0,l.jsxs)(b.default,{onClick:A,className:"flex w-fit justify-center p-0",children:[(0,l.jsx)(p.A,{color:"black",size:24}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]}),(0,l.jsx)(w.A,{addon:(0,l.jsx)(v.A,{alt:"search",src:"https://www.canstar.com.au/wp-content/uploads/2021/11/Search.svg",height:16,width:16}),className:"mb-4 border-b border-neutral-90 pb-4",inputWrapperClassName:"border-neutral-90 rounded-sm [&>input]:text-sm hover:border-neutral-90 hover:shadow-light",name:"searchTerm",onChange:e=>y(e),placeholder:"Search terms"}),(0,l.jsx)("div",{className:"relative h-[90%] overflow-y-auto pb-16 md:h-[min(32rem,calc(100vh-240px))] [&_a:hover]:underline [&_a]:text-link-primary",ref:k,children:h()(P,(e,s)=>(0,l.jsx)("div",{ref:C.current[s],children:(0,l.jsx)(f.default,{title:(0,l.jsx)("p",{className:"text-left text-xl font-medium text-gray",children:e.title}),value:s===c,children:(0,l.jsx)("p",{className:"text-sm leading-6 text-neutral-50 md:text-base",dangerouslySetInnerHTML:{__html:e.description}})})},s))}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-10 border-t border-neutral-95 bg-white p-4",children:(0,l.jsx)(b.default,{variant:"primary",onClick:A,children:(0,l.jsx)("span",{className:"text-white",children:"Close"})})})]}):null}},88321:(e,s,t)=>{"use strict";t.d(s,{default:()=>o});var l=t(95155);t(12115);var r=t(52732),n=t(12875),a=t(86974),i=t(4344);function o(e){let{children:s}=e,{importantDisc:t,setImportantDisc:o}=(0,i.useApp)(),c=()=>o(!1);return t?(0,l.jsxs)(r.A,{fullWidth:!0,className:"overflow-hidden lg:p-8 [&_a:hover]:underline [&_a]:text-link-primary",hideCloseButton:!0,onClose:c,children:[(0,l.jsxs)("h3",{className:"mt-0 flex w-full items-center justify-between border-b border-neutral-200 bg-white pb-4",children:[(0,l.jsx)("span",{className:"font-normal",children:"Important Disclosure"}),(0,l.jsxs)(a.default,{onClick:c,className:"flex w-fit justify-center p-0",children:[(0,l.jsx)(n.A,{color:"black",size:24}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]}),(0,l.jsx)("div",{className:"relative h-[90%] overflow-y-auto pb-16 md:h-[min(32rem,calc(100vh-160px))]",children:s}),(0,l.jsx)("div",{className:"absolute bottom-0 left-0 right-0 z-10 border-t border-neutral-95 bg-white p-4",children:(0,l.jsx)(a.default,{variant:"primary",onClick:c,children:(0,l.jsx)("span",{className:"text-white",children:"Close"})})})]}):null}},9752:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var l=t(12115);let r=e=>{l.useEffect(()=>(document.body.style.overflow=e?"hidden":"initial",()=>{document.body.style.overflow="initial"}),[e])}},89202:()=>{},74341:()=>{}}]);