1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[687],{17687:function(e,t,n){Promise.resolve().then(n.bind(n,94400)),Promise.resolve().then(n.t.bind(n,73994,23)),Promise.resolve().then(n.bind(n,19167)),Promise.resolve().then(n.bind(n,66093)),Promise.resolve().then(n.bind(n,89113)),Promise.resolve().then(n.bind(n,34367)),Promise.resolve().then(n.bind(n,79185)),Promise.resolve().then(n.bind(n,15843)),Promise.resolve().then(n.bind(n,1210)),Promise.resolve().then(n.bind(n,71223)),Promise.resolve().then(n.bind(n,37327)),Promise.resolve().then(n.bind(n,38594)),Promise.resolve().then(n.bind(n,50781)),Promise.resolve().then(n.bind(n,93033)),Promise.resolve().then(n.bind(n,63846)),Promise.resolve().then(n.bind(n,18095)),Promise.resolve().then(n.bind(n,85354)),Promise.resolve().then(n.bind(n,56265)),Promise.resolve().then(n.bind(n,64437)),Promise.resolve().then(n.bind(n,1993)),Promise.resolve().then(n.bind(n,49207)),Promise.resolve().then(n.bind(n,75103)),Promise.resolve().then(n.bind(n,36835)),Promise.resolve().then(n.bind(n,85921)),Promise.resolve().then(n.bind(n,35741)),Promise.resolve().then(n.bind(n,28659)),Promise.resolve().then(n.bind(n,11456)),Promise.resolve().then(n.bind(n,14049)),Promise.resolve().then(n.bind(n,42910)),Promise.resolve().then(n.bind(n,48122)),Promise.resolve().then(n.bind(n,33307)),Promise.resolve().then(n.bind(n,55100)),Promise.resolve().then(n.bind(n,64100)),Promise.resolve().then(n.bind(n,7016)),Promise.resolve().then(n.bind(n,88224)),Promise.resolve().then(n.bind(n,9975)),Promise.resolve().then(n.bind(n,15891)),Promise.resolve().then(n.bind(n,67182)),Promise.resolve().then(n.bind(n,16557)),Promise.resolve().then(n.bind(n,29154)),Promise.resolve().then(n.bind(n,3403)),Promise.resolve().then(n.bind(n,20390)),Promise.resolve().then(n.bind(n,48869)),Promise.resolve().then(n.bind(n,71793)),Promise.resolve().then(n.bind(n,87281)),Promise.resolve().then(n.bind(n,86290)),Promise.resolve().then(n.bind(n,33948))},41080:function(e,t,n){"use strict";n.d(t,{B:function(){return r},n:function(){return a}});var l=n(77665);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};let r=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/BookingDialog/bookingDialogState.js/openAtom",(0,l.cn)(!1)),a=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/BookingDialog/bookingDialogState.js/bookingIdAtom",(0,l.cn)())},66093:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var l=n(57437),r=n(53717),a=n(42815),i=n(23890),s=n(2265),o=n(93540),c=n(34936),d=n(41080);function u(){let e=(0,c.W4)(),t=(0,s.useRef)(),[n,u]=(0,i.KO)(d.B),m=(0,i.Dv)(d.n),h=(null==m?void 0:m.includes("http"))?m:"https://healthengine.com.au/webplugin/?id=".concat(m);(0,s.useLayoutEffect)(()=>{a.ZP.set(t.current,{display:n?"flex":"none"})},[n]);let p=(0,s.useCallback)(()=>{u(!1)},[u]);return(0,l.jsx)("div",{className:"fixed w-full h-full z-modal justify-center items-center bg-[rgba(1,1,1,0.5)] hidden",ref:t,children:(0,l.jsxs)("div",{className:"w-screen h-[100svh] md:w-[80vw] md:h-[80vh] flex flex-col bg-backgroundColor",children:[(0,l.jsxs)("div",{className:"flex flex-grow-0 px-4 py-1 border-b border-b-neutralGrey200 justify-between items-center",children:[(0,l.jsx)("span",{className:"font-medium",children:e.title}),(0,l.jsx)(o.Z,{variant:"tertiary",iconButton:!0,onClick:p,children:(0,l.jsx)(r.Z,{})})]}),m&&(0,l.jsx)("iframe",{src:h,className:"w-full h-full flex-grow",style:{boxSizing:"border-box",border:"none",background:"white"}})]})})}},93540:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var l=n(57437),r=n(53424),a=n(57042),i=n(2265),s=n(50781);let o={primary:"bg-primary500 text-primary500-foreground hover:bg-primary400 hover:text-primary400-foreground",secondary:"bg-secondary500 text-secondary500-foreground hover:bg-secondary400 hover:text-secondary400-foreground",tertiary:"bg-neutralGrey100 text-neutralGrey100-foreground hover:bg-neutralGrey200 hover:text-neutralGrey200-foreground",white:"bg-backgroundColor text-backgroundColor-foreground hover:bg-neutralGrey100 hover:text-neutralGrey100-foreground",dark:"bg-primary600 text-primary600-foreground hover:bg-primary500 hover:text-primary500-foreground",transparent:"bg-transparent text-current hover:bg-neutralGrey100 hover:text-secondary500",translucent:"bg-neutralGrey100Opacity20 text-bg-neutralGrey100Opacity20-foreground hover:bg-neutralGrey100Opacity50"};function c(e){let{as:t,className:n,button:c,innerClassName:d,variant:u,children:m,display:h="inline-block",iconButton:p,transition:x=!0,...f}=e,v=t||(c?"button":s.default),g=c||t?{}:{showText:!1,nonLinkTag:"button"},b=f.link,j=i.Children.count(m)>0;return(0,l.jsx)(v,{...g,...f,className:(0,a.Z)(n,h,"min-h-[2.625rem] flex items-center"),children:(0,l.jsxs)("div",{className:(0,a.Z)("button",d,"rounded-[1.25rem] min-h-[2.25rem] md:min-
1h-[2.5rem] text-14 cursor-pointer flex items-center justify-center",p?"w-9 h-9 md:w-10 md:h-10":"w-fit md:py-2 px-4 md:px-5 ","text-center whitespace-nowrap font-medium",x&&"transition-colors duration-250 ease-in-out",o[u]||o.primary),children:[!j&&(0,r.Q)(b),m]})})}},89113:function(e,t,n){"use strict";n.r(t),n.d(t,{NextPrevButton:function(){return c},default:function(){return o},useNextPrevSlider:function(){return s}});var l=n(57437),r=n(57042),a=n(49457),i=n(2265);function s(){let[e,t]=(0,i.useState)(0),[n,l]=(0,i.useState)(null),[r,a]=(0,i.useState)(!1);return{nextVisible:r&&e<n,prevVisible:r&&0!==e,sliderFunctions:{slideChanged(e){l(e.track.details.maxIdx),t(e.track.details.rel)},created(e){l(e.track.details.maxIdx),a(!0)}},currentSlide:e}}function o(e){let{options:t={},overflowVisble:n=!0,pagination:o=!0,mdPagination:d=o,hasCursors:u=!0,children:m,rootClassName:h,paginationClassName:p,className:x,caption:f,bgColor:v,...g}=e,{currentSlide:b,nextVisible:j,prevVisible:w,sliderFunctions:y}=s(),[N,k]=(0,a.E)({slides:{perView:3,spacing:24},...t,...y},[]),C=(0,i.useCallback)(()=>{k.current.next()},[k]),_=(0,i.useCallback)(()=>{k.current.prev()},[k]);return(0,l.jsxs)("div",{className:h,children:[(0,l.jsx)("div",{className:(0,r.Z)("keen-slider",u&&"cursor-grab active:cursor-grabbing",n&&"!overflow-visible",x),ref:N,...g,children:m}),(o||d||f)&&(0,l.jsxs)("div",{className:"flex justify-between items-center mt-4",children:[(0,l.jsx)("div",{className:"text-10 flex-1",children:null==f?void 0:f(b)}),(o||d)&&(0,l.jsxs)("div",{className:(0,r.Z)("flex gap-2",!d&&"downMd:hidden",!o&&"md:hidden",p),children:[(0,l.jsx)(c,{bgColor:v,active:w,onClick:_,direction:"prev",children:"prev"}),(0,l.jsx)(c,{bgColor:v,active:j,onClick:C,children:"next"})]})]})]})}function c(e){let{className:t,active:n,onClick:a,bgColor:i,direction:s="next"}=e;return(0,l.jsx)("button",{onClick:a,className:(0,r.Z)("w-8 h-8 rounded-full flex items-center justify-center transition-opacity duration-200","backgroundColor"===i||void 0===i?"bg-neutralGrey100":"bg-backgroundColor",!n&&"opacity-50 cursor-not-allowed",t),"aria-label":"".concat(s," slide"),children:(0,l.jsx)(d,{className:(0,r.Z)("ml-[2px]","next"!==s&&"!ml-[-2px] -scale-x-100")})})}function d(e){return(0,l.jsx)("svg",{width:"0.625rem",height:"1.125rem",viewBox:"0 0 10 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{d:"M1.47917 17.3332L0 15.854L6.85417 8.99984L0 2.14567L1.47917 0.666504L9.8125 8.99984L1.47917 17.3332Z",fill:"currentColor"})})}},34367:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tJ}});var l=n(57437);let r='\n "parent": parent->{\n _type,\n "slug": slug.current,\n title,\n "parent": parent->{\n _type,\n "slug": slug.current,\n title,\n "parent": parent->{\n _type,\n "slug": slug.current,\n title\n }\n }\n }\n',a='\n_id,\naltText,\ntitle,\nassetId,\nextension,\noriginalFilename,\nmetadata {\n dimensions,\n "dominantColor": palette.dominant.background\n},\nmimeType,\nurl,\nhotspot,\ncrop\n',i='\n _id,\n _type,\n title,\n siteUrl,\n siteType,\n "slug": slug.current,\n "parent": parent->{\n _id,\n "slug": slug.current,\n siteUrl,\n title\n }\n',s='\n ...,\n "asset": asset->{\n '.concat(a,"\n }\n"),o='\n _id,\n _type,\n pageType,\n title,\n excerpt,\n subtitle,\n "slug": slug.current,\n allSites,\n "sites": sites[]->{ '.concat(i,' },\n visibleToAllChildSites,\n "templateType": templateType->{ _id, title, "slug": slug.current, filterProp },\n filterProp,\n ').concat(r,",\n featuredImage{\n ").concat(s,'\n },\n defined(file) => {\n "file": file{\n "url": asset->url,\n "filename": asset->originalFilename,\n "size": asset->originalFilename,\n "mimeType": asset->mimeType,\n "extension": asset->extension\n }\n },\n _type == \'practitioner\' => {\n name,\n "jobType": jobType->title,\n jobTitle,\n excerpt,\n video,\n description,\n treatments[]->{\n _id,\n "slug": slug.current,\n title,\n },\n "practices": *[!(_id in path(\'drafts.**\')) && _type == \'site\' && siteType == \'practice\' && ^._id in practice.practitioners[]._ref] {\n title\n },\n },\n _type == \'article\' => {\n category->{\n title\n }\n },\n siteType == \'practice\' => {\n "address": practice.address,\n "featuredImage": practice.featuredImage{\n ').concat(s,"\n },\n },\n _type == 'popup' => {\n heading,\n copy,\n link {\n ...,\n page-> {\n _id,\n \"slug\": slug.current,\n title,\n ").concat(r,"\n }\n },\n image {\n ").concat(s,"\n }\n }\n"),c='\n \n _type == \'practicesListing\' => {\n "practices": *[!(_id in path(\'drafts.**\')) && _type == \'site\' && siteType == \'practice\' && practice.hideFromSite != true] {\n _id,\n title,\n siteUrl,\n siteType,\n redirect,\n "slug": slug.current,\n "parentTitle": parent->.title,\n "state": practice.address.state,\n "suburb": practice.address.suburb\n },\n },\n _type == \'practiceSummary\' => {\n "practice": *[!(_id in path(\'drafts.**\')) && _type == \'site\' && siteType == \'practice\' && _id == ^.^.sites[0]._ref][0] {\n _id,\n title,\n siteUrl,\n siteType,\n "slug": slug.current,\n "parentTitle": parent->.title,\n practice {\n ...,\n "image": featuredImage{ '.concat(s,' },\n "practitioners": null,\n "treatments": null,\n "languages": practitioners[]->languages[]->{ title, "slug": slug.current }\n }\n },\n },\n true => { ',"\n ...\n },\n _type == 'partnerListing' => {\n partners[]{\n _type == 'partner' => @->{\n ").concat(o,",\n name,\n video,\n description,\n treatments[]->{\n _id,\n \"slug\": slug.current,\n title,\n },\n \"practices\": *[!(_id in path('drafts.**')) && _type == 'site' && siteType == 'practice' && ^._id in practice.practitioners[]._ref] {\n title\n },\n },\n _type != 'partner' => @{\n ").concat(o,",\n name,\n practice,\n video,\n description,\n }\n }\n },\n _type == 'logoCarousel' => {\n healthFunds[]-> {\n title,\n \"logo\": logo { ").concat(s," }\n }\n },\n _type == 'formSlice' => {\n \"form\": form->{\n ...\n }\n },\n _type == 'heroSlice' => {\n ...,\n carousel[]{\n ...,\n ").concat(s,"\n }\n },\n"),d=()=>'\n ...,\n "slug": slug.current,\n "sites": sites[]->{ '.concat(i,' },\n "templateType": templateType->{ _id, title, "slug": slug.current, filterProp }
1,\n ').concat(r,",\n slices[]{\n ").concat(c,"\n }\n");var u=e=>{let t='\n {\n "page": *['.concat(e?"":"!(_id in path('drafts.**')) && ",'(slug.current == $slug || slug.current == $fullSlug) && \n (\n (_type == "page" && (allSites || $siteId in sites[]._ref || (visibleToAllChildSites && $parentSiteId in sites[]._ref))) ||\n _type == "treatment" ||\n _type == "article" ||\n _type == "pageTemplate" ||\n _type == "practitioner"\n )\n ] | order(_updatedAt desc)[0]\n {\n ').concat(d(),',\n "treatmentPages": *[').concat(e?"":"!(_id in path('drafts.**')) && ",'\n _type == "treatmentPage" && treatment._ref == ^._id\n ] | order(_updatedAt desc)\n {\n ').concat(d(),"\n }\n }\n }\n ");return t},m=n(12068),h=n.n(m);async function p(e,t){for(let n=0;n<e.length;n++)await t(e[n],n,e)}var x=n(54677),f=n.n(x),v=n(41330),g=n.n(v),b=n(79116),j=n.n(b),w=n(96778),y=n.n(w),N=n(44853),k=n.n(N),C=n(45100),_=n.n(C);let Z={image:"\n *[_id in $imageIds]{\n ".concat(a,"\n }"),file:"\n *[_id in $fileIds]{\n ...\n }",reference:"\n *[_id in $referenceIds]{\n ".concat(o,"\n }")};class L{addQuery(e,t,n,l){this.queries[e]?this.queries[e].callbacks.push(n):this.queries[e]={query:t,callbacks:[n]},l&&(this.queryParams={...this.queryParams,...l})}addDocument(e,t,n){this.documentQueries[e]||(this.documentQueries[e]={}),this.documentQueries[e][t]?this.documentQueries[e][t].push(n):this.documentQueries[e][t]=[n]}async resolve(){let e=f()([...k()(this.queries,(e,t)=>{let{query:n}=e;return'"'.concat(t,'": ').concat(n)}),...k()(Z,(e,t)=>'"'.concat(t,'": ').concat(e))]);if(y()(e))return;let t="{\n ".concat(e.join(","),",\n }"),n=_()(this.documentQueries,(e,t,n)=>(e["".concat(n,"Ids")]=k()(t,(e,t)=>t),e),{});n={...n,...this.queryParams};let l=await this.client.fetch(t,n);j()(l,(e,t)=>{this.queries[t]&&j()(this.queries[t].callbacks,n=>n(t,e)),this.documentQueries[t]&&j()(this.documentQueries[t],(t,n)=>{j()(t,t=>{t(n,g()(e,e=>e._id===n),e)})})})}constructor(e){this.queries={},this.documentQueries={image:{},reference:{},product:{},video:{},file:{}},this.client=e,this.queryParams={}}}var T=n(76005);async function M(e,t){await new T.AsyncWalkBuilder().withGlobalFilter(e=>{var t;return(null===(t=e.val)||void 0===t?void 0:t._type)==="file"}).withSimpleCallback(async e=>{var n,l;let r=null===(l=e.val)||void 0===l?void 0:null===(n=l.asset)||void 0===n?void 0:n._ref;r&&t.addDocument("file",r,(t,n)=>{e.val.asset=n||null})}).walk(e)}async function S(e,t){await new T.AsyncWalkBuilder().withGlobalFilter(e=>{var t,n;return(null===(t=e.val)||void 0===t?void 0:t._type)==="image"||(null===(n=e.val)||void 0===n?void 0:n._type)==="imageWithMeta"}).withSimpleCallback(async e=>{var n,l;let r=null===(l=e.val)||void 0===l?void 0:null===(n=l.asset)||void 0===n?void 0:n._ref;r&&t.addDocument("image",r,(t,n)=>{e.val.asset=(0,T.deepCopy)(n)||null})}).walk(e)}async function P(e,t){await new T.AsyncWalkBuilder().withGlobalFilter(e=>{var t,n;return(null===(t=e.val)||void 0===t?void 0:t._type)==="reference"||(null===(n=e.val)||void 0===n?void 0:n._type)==="practitioner"}).withSimpleCallback(async e=>{let n=e.val._ref;null!=n&&n.startsWith("image-")||t.addDocument("reference",n,(t,n)=>{n&&(Object.keys(e.val).forEach(t=>delete e.val[t]),Object.keys(n).forEach(t=>e.val[t]=n[t]))})}).walk(e)}let A=async(e,t)=>{await p([S,P,M],async n=>await n(e,t))};async function E(e,t){let n=new L(t);if(h()(e))for(let t=0;t<e.length;t++)await A(e[t],n);else await A(e,n);return await n.resolve(),e}var R=n(13900),B=n(39881),I=n(14158),z=n.n(I),D=n(44388),G=n.n(D),F=n(2265);let H=["heroSlice"],V=["homepage","fullWidth"];var O=n(66093);function W(){return(0,l.jsxs)("div",{className:"fixed bottom-2 text-center left-1/2 -translate-x-1/2 bg-[white] font-sans z-[9999] p-2 px-3",children:["\uD83D\uDEA7 Draft mode enabled \uD83D\uDEA7",(0,l.jsx)("a",{href:"/api/disable-draft",className:"inline-block ml-2 underline",children:"click here to disable"})]})}var q=n(15843),U=n(71223),J=n(37327),K=n(38594),Q=n(93033),Y=n(18095),$=n(13139),X=n(23113),ee=n.n(X),et=n(56265),en=n(91835),el=n(36835),er=n(24082),ea=n(48869);function ei(e){var t;let{page:n,site:r}=e,{name:a,featuredImage:i,jobType:s,description:o}=n||{},c=f()([null==a?void 0:a.salutation,null==a?void 0:a.firstName,null==a?void 0:a.lastName]).join(" "),d=ee()(null==r?void 0:null===(t=r.practice)||void 0===t?void 0:t.practitioners,{_id:null==n?void 0:n._id});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(en.Z,{gutter:"md",contain:!0,className:"pt-28 md:pt-36 lg:flex min-h-screen",children:[(0,l.jsxs)("div",{className:"lg:w-1/2",children:[(0,l.jsx)(er.Z,{page:n,site:r,margins:"mt-1 mb-12 lg:mb-24 op
1acity-0 pointer-events-none"}),(0,l.jsx)(et.default,{image:i,aspect:676/720,className:"mb-8 rounded-lg lg:hidden"}),(0,l.jsx)("h1",{className:"h3 mt-8 lg:mt-0",children:c}),(0,l.jsx)("h2",{className:"h3 mb-8 lg:mb-20 text-secondary400",children:null==s?void 0:s.title}),(0,l.jsx)($.Z,{className:"lg:w-4/6 text-secondary400",text:o})]}),(0,l.jsx)("div",{className:"hidden lg:block lg:w-1/2",children:(0,l.jsx)(et.default,{image:i,aspect:676/720,className:"rounded-lg"})})]}),(0,l.jsx)(el.default,{theme:"neutralGrey100",className:"py-24",children:(0,l.jsx)(ea.default,{team:d,data:{title:"Meet the rest of our team"}})})]})}var es=n(49207),eo=n(1993),ec=n(57042),ed=n(77434),eu=n.n(ed),em=n(41873),eh=n.n(em),ep=n(63099),ex=n(93540),ef=n(89113);let ev=e=>{let{banners:t,className:n,siteSlug:r}=e,a=null==t?void 0:t.length;return(0,l.jsx)(ef.default,{options:{slides:{perView:1,spacing:24}},className:(0,ec.Z)("mt-7",n),overflowVisble:!1,pagination:a>1,hasCursors:a>1,children:null==t?void 0:t.map((e,t)=>(0,l.jsx)(eg,{banner:e,siteSlug:r},"".concat(e._key,"-").concat(t,"}")))})};function eg(e){let{banner:t,siteSlug:n}=e,{alignment:r="left",title:a,heading:i,image:s,copy:o,ctaLink:c,ctaLinkText:d,colour:u,trackProps:m,showCopyMobile:h}=null!=t?t:{},p=(0,ep.mJ)(u||("db-dental"===n?"primary300":"primary500")),x="backgroundColor"===u||"primary100"===u||"neutralGrey100"===u;return(0,l.jsxs)("div",{className:"keen-slider__slide rounded-lg p-4 md:p-8 grid grid-cols-2 gap-4 md:gap-8 downMd:flex downMd:flex-col",style:p,children:[(0,l.jsx)("div",{className:(0,ec.Z)("left"===r?"order-1":"order-2","downMd:order-1 rounded-lg overflow-hidden"),children:(0,l.jsx)(et.default,{image:s,aspect:603/496,className:"lg:aspect-[3/2] 2xl:aspect-[unset]",imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")})}),(0,l.jsxs)("div",{className:(0,ec.Z)("left"===r?"order-2":"order-1","downMd:order-2 flex flex-col justify-between"),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mb-4",children:a}),(0,l.jsx)("div",{className:"h3 2xl:max-w-[13em] lg:text-[1.875rem] 2xl:text-h3",children:i})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:(0,ec.Z)("2xl:max-w-[67%]",h?"downMd:mt-6":"downMd:hidden"),children:(0,l.jsx)($.Z,{text:o})}),c&&(0,l.jsx)(ex.Z,{link:c,className:"mt-14 md:mt-8",variant:x?"secondary":"white",trackProps:m,contentBlockName:"Banner Carousel",menuSelection:a,children:d})]})]})]})}function eb(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M24.1921 12.5388C23.2716 12.5388 22.4774 12.2048 21.8094 11.5369C21.1415 10.8689 20.8075 10.0747 20.8075 9.15418C20.8075 8.23365 21.1415 7.43941 21.8094 6.77148C22.4774 6.10351 23.2716 5.76953 24.1921 5.76953C25.1127 5.76953 25.9069 6.10351 26.5748 6.77148C27.2428 7.43941 27.5768 8.23365 27.5768 9.15418C27.5768 10.0747 27.2428 10.8689 26.5748 11.5369C25.9069 12.2048 25.1127 12.5388 24.1921 12.5388ZM34.6537 43.0773V34.0003C34.6537 33.6926 34.5639 33.449 34.3844 33.2696C34.205 33.0901 33.9614 33.0003 33.6537 33.0003H24.2691C23.4255 33.0003 22.7018 32.6984 22.0979 32.0946C21.4941 31.4907 21.1921 30.767 21.1921 29.9234V18.0003C21.1921 17.1567 21.4812 16.4458 22.0594 15.8676C22.6376 15.2894 23.3485 15.0003 24.1921 15.0003C24.6588 15.0003 25.1261 15.1305 25.5941 15.3907C26.062 15.651 26.6165 16.1516 27.2575 16.8926C29.1165 19.067 30.73 20.5561 32.0979 21.3599C33.4659 22.1638 35.0614 22.6849 36.8844 22.9234V24.9234C34.9383 24.7183 33.187 24.1875 31.6306 23.3311C30.0742 22.4747 28.4921 21.1926 26.8844 19.485V30.308H33.5768C34.4204 30.308 35.1441 30.6099 35.7479 31.2138C36.3518 31.8176 36.6537 32.5414 36.6537 33.3849V43.0773H34.6537ZM20.1921 43.0773C17.7075 43.0773 15.5736 42.1856 13.7902 40.4023C12.0069 38.6189 11.1152 36.485 11.1152 34.0003C11.1152 31.6773 11.8736 29.676 13.3902 27.9965C14.9069 26.317 16.8409 25.3208 19.1921 25.008V27.0311C17.4614 27.2927 16.0159 28.0664 14.8556 29.3523C13.6954 30.6381 13.1152 32.1875 13.1152 34.0003C13.1152 35.9747 13.8011 37.6478 15.1729 39.0196C16.5447 40.3913 18.2178 41.0772 20.1921 41.0772C22.005 41.0772 23.5543 40.4971 24.8402 39.3369C26.1261 38.1766 26.8998 36.7311 27.1614 35.0003H29.1844C28.9229 37.3003 27.9396 39.2215 26.2344 40.7638C24.5293 42.3061 22.5152 43.0773 20.1921 43.0773Z",fill:"currentColor"})})}function ej(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M24 42C21.5231 42 19.1897 41.5263 17 40.5789C14.8103 39.6314 12.9032 38.3455 11.2789 36.7211C9.65448 35.0968 8.36858 33.1897 7.42115 31C6.47372 28.8103 6 26.4769 6 24C6 21.5154 6.47372 19.1801 7.42115 16.9943C8.36858 14.8084 9.65448 12.9032 11.2789 11.2789C12.9032 9.65448 14.8103 8.36858 17 7.42115C19.1897 6.47372 21.5231 6 24 6C26.4846 6 28.8199 6.47372 31.0058 7.42115C33.1917 8.36858 35.0968 9.65448 36.7211 11.2789C38.3455 12.9032 39.6314 14.8084 40.5789 16.9943C41.5263 19.1801 42 21.5154 42 24C42 26.4769 41.5263 28.8103 40.5789 31C39.6314 33.1897 38.3455 35.0968 36.7211 36.7211C35.0968 38.3455 33.1917 39.6314 31.0058 40.5789C28.8199 41.5263 26.4846 42 24 42ZM24 40.0154C25.1744 38.5077 26.1423 37.0269 26.9039 35.5731C27.6654 34.1192 28.2846 32.4923 28.7616 30.6923H19.2385C19.7667 32.5949 20.3987 34.2731 21.1346 35.7269C21.8705 37.1808 22.8256 38.6103 24 40.0154ZM21.4538 39.7154C20.5205 38.6154 19.6686 37.2558 18.8981 35.6366C18.1276 34.0173 17.5538 32.3692 17.1769 30.6923H9.5077C10.6539 33.1795 12.2789 35.2193 14.3827 36.8116C16.4865 38.4039 18.8436 39.3718 21.4538 39.7154ZM26.5461 39.7154C29.1564 39.3718 31.5135 38.4039 33.6173 36.8116C35.7211 35.2193 37.3461 33.1795 38.4923 30.6923H30.8231C30.318 32.3949 29.6802 34.0558 28.9097 35.675C28.1391 37.2942 27.3513 38.641 26.5461 39.7154ZM8.6923 28.6923H16.7615C16.6102 27.8718 16.5032 27.0725 16.4404 26.2943C16.3776 25.516 16.3462 24.7513 16.3462 24C16.3462 23.2487 16.3776 22.484 16.4404 21.7057C16.5032 20.9275 16.6102 20.1282 16.7615 19.3077H8.6923C8.47437 20 8.3045 20.7545 8.1827 21.5711C8.0609 22.3878 8 23.1974 8 24C8 24.8026 8.0609 25.6122 8.1827 26.4289C8.3045 27.2455 8.47437 28 8.6923 28.6923ZM18.7615 28.6923H29.2384C29.3897 27.8718 29.4968 27.0853 29.5596 26.3327C29.6224 25.5801 29.6539 24.8026 29.6539 24C29.6539 23.1974 29.6224 22.4199 29.5
1596 21.6673C29.4968 20.9147 29.3897 20.1282 29.2384 19.3077H18.7615C18.6102 20.1282 18.5032 20.9147 18.4404 21.6673C18.3776 22.4199 18.3462 23.1974 18.3462 24C18.3462 24.8026 18.3776 25.5801 18.4404 26.3327C18.5032 27.0853 18.6102 27.8718 18.7615 28.6923ZM31.2384 28.6923H39.3077C39.5256 28 39.6955 27.2455 39.8173 26.4289C39.9391 25.6122 40 24.8026 40 24C40 23.1974 39.9391 22.3878 39.8173 21.5711C39.6955 20.7545 39.5256 20 39.3077 19.3077H31.2384C31.3897 20.1282 31.4968 20.9275 31.5597 21.7057C31.6224 22.484 31.6539 23.2487 31.6539 24C31.6539 24.7513 31.6224 25.516 31.5597 26.2943C31.4968 27.0725 31.3897 27.8718 31.2384 28.6923ZM30.8231 17.3077H38.4923C37.3205 14.7692 35.7147 12.7295 33.675 11.1884C31.6353 9.64745 29.259 8.66668 26.5461 8.24615C27.4795 9.47435 28.3186 10.8788 29.0634 12.4596C29.8083 14.0404 30.3949 15.6564 30.8231 17.3077ZM19.2385 17.3077H28.7616C28.2334 15.4308 27.5821 13.7333 26.8077 12.2154C26.0333 10.6974 25.0974 9.28717 24 7.9846C22.9026 9.28717 21.9667 10.6974 21.1923 12.2154C20.4179 13.7333 19.7667 15.4308 19.2385 17.3077ZM9.5077 17.3077H17.1769C17.6051 15.6564 18.1916 14.0404 18.9365 12.4596C19.6814 10.8788 20.5205 9.47435 21.4538 8.24615C18.7154 8.66668 16.3327 9.65387 14.3057 11.2077C12.2788 12.7615 10.6795 14.7949 9.5077 17.3077Z",fill:"currentColor"})})}var ew=n(48911),ey=n.n(ew),eN=n(61088),ek=n(64437);function eC(e){let{blocks:t,site:n,colours:r}=e,a=null==t?void 0:t.length,i={slides:{perView:a<=4?a:4,spacing:24},breakpoints:{["(max-width: ".concat(eh().lg,"px)")]:{slides:{perView:2.1,spacing:24}},["(max-width: ".concat(eh().md,"px)")]:{slides:{perView:1.1,spacing:24}}}};return(0,l.jsx)(ef.default,{options:i,rootClassName:"col-span-full",className:(0,ec.Z)(a<=4&&"md:!cursor-auto md:active:!cursor-auto"),pagination:!1,children:null==t?void 0:t.map(e=>(0,l.jsx)(eT,{block:e,isCarousel:!0,className:(0,ec.Z)("keen-slider__slide bg-primary500 text-primary500-foreground md:aspect-square",(null==e?void 0:e.image)?"!aspect-[306/384] 3xl:!aspect-[306/356]":"aspect-[306/240]"),site:n,colours:r,total:a},e._key))})}function e_(e){let{blocks:t,site:n,column:r,colours:a,className:i}=e,s=t.length;return(0,l.jsx)("div",{className:(0,ec.Z)("grid grid-cols-2 gap-4 md:grid-rows-2 md:gap-6",i),children:null==t?void 0:t.map((e,t)=>(0,l.jsx)(eT,{block:e,index:t,total:s,site:n,colours:a,className:(0,ec.Z)(3===s&&2===t&&"row-start-1 row-span-2 col-start-2",2===s&&"horizontal"===r.direction&&"col-start-1 col-span-2",2===s&&"vertical"===r.direction&&"row-start-1 row-span-2",1===s&&"row-span-2 col-span-2")},e._key))})}let eZ=["bg-primary200 text-primary200-foreground","bg-primary400 text-primary400-foreground","bg-secondary500 text-secondary500-foreground"],eL=["bg-neutralGrey100 text-neutralGrey100-foreground","bg-secondary500 text-secondary500-foreground","bg-primary200 text-primary200-foreground","bg-primary400 text-primary400-foreground"];function eT(e){var t,n;let{block:r,site:a,total:i,className:s,index:o,isCarousel:c,colours:d}=e,{_type:u,title:m,text:h,subtitle:p,icon:x,image:f}=null!=r?r:{},v=null==a?void 0:null===(t=a.practice)||void 0===t?void 0:t.languages,g=null==a?void 0:null===(n=a.practice)||void 0===n?void 0:n.access,{automaticColours:b,colour:j}=d,w=!1!==b,N=(0,ep.mJ)(j||"primary500");return(0,l.jsxs)("div",{className:(0,ec.Z)("rounded-lg flex flex-col justify-between downMd:aspect-[353/220] flex-shrink-0",w&&3===i&&eZ[o],w&&4===i&&eL[o],w&&2===i&&eZ[o],w&&1===i&&"bg-primary400 text-primary400-foreground",s),style:w?{}:N,children:[f&&(0,l.jsx)(et.default,{image:f,aspect:1.5,className:"!shrink-0",imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) ").concat(Math.round(100/i),"vw, ").concat(Math.round(eh()["max-content"]/i),"px")}),(0,l.jsxs)("div",{className:"p-5 flex flex-col justify-between h-full",children:["practiceLanguagesBlock"===u&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:(0,ec.Z)("h6 ",c&&"downMd:text-18",!!f&&"text-18"),children:(0,l.jsxs)("span",{children:[m,": ",(0,l.jsx)("span",{className:"block opacity-60",children:y()(v)?"English":ey()(["English",...v.map(e=>e.title)]).join(", ")})]})}),(0,l.jsx)(ej,{image:x,className:"w-12 h-12"})]}),"practiceAdditionalInfoBlock"===u&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:(0,ec.Z)("h6 ",c&&"downMd:text-18",!!f&&"text-18"),children:(0,l.jsxs)("span",{children:[m,": ",(0,l.jsx)("span",{className:"block opacity-60",children:y()(g)?"N
1o Info":ey()(g.map(e=>e.title)).join(", ")})]})}),(0,l.jsx)(eb,{image:x,className:"w-12 h-12"})]}),"tile"===u&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{className:(0,ec.Z)("h6",c&&"downMd:text-18",!!f&&"text-18"),children:[h,p&&(0,l.jsx)("span",{className:"block opacity-60",children:null==p?void 0:p.split("\n").map((e,t)=>(0,l.jsx)("span",{className:"block",children:e},t))})]}),x&&(0,l.jsx)(eN.Z,{image:x,className:"!w-12 !h-12",contain:!0})]})]})]})}var eM=n(50781);function eS(e){let{data:t,className:n,isUnited:r}=e,{title:a,subtitle:i,links:s}=null!=t?t:{};return(0,l.jsx)("div",{className:(0,ec.Z)("overflow-hidden rounded-lg flex flex-col bg-secondary400 text-backgroundColor",r&&"!bg-primary100",n),children:(0,l.jsxs)("div",{className:"p-6 flex-1 flex flex-col justify-between md:gap-32 gap-12",children:[(0,l.jsxs)("div",{className:r&&"text-secondary500",children:[(0,l.jsx)("p",{className:"h4 downMd:h5 downMd:text-base downMd:font-body",children:a}),i&&(0,l.jsx)("p",{className:"mb-4",children:i})]}),(0,l.jsx)("div",{className:"flex items-center gap-6",children:null==s?void 0:s.map((e,t)=>0===t?(0,l.jsx)(ex.Z,{link:e,variant:"secondary"},e._key):(0,l.jsx)(eM.default,{link:e,className:"underline text-14",contentBlockName:"Contact Tiles",menuSelection:a},e._key))})]})})}var eP=n(75103),eA=n(42687);let eE={primary:{outer:"bg-primary100 text-primary100-foreground",inner:"bg-primary400 text-primary400-foreground"},secondary:{outer:"bg-neutralGrey100 text-neutralGrey100-foreground",inner:"bg-secondary500 text-secondary500-foreground"}};function eR(e){var t;let{className:n,variant:r="primary",title:a,text:i,link:s,contentBlockName:o,menuSelection:c,linkText:d,image:u,imageLayout:m,alignment:h,inRichText:p}=e,x=eE[r]||eE.primary,f=s?{link:s,showText:!1,contentBlockName:o,menuSelection:c}:{};return(0,l.jsxs)("div",{className:(0,ec.Z)(n,x.outer,"rounded-lg overflow-hidden flex flex-col md:grid md:grid-cols-2 text-left",p&&"md:grid-cols-1 xl:grid-cols-5"),children:[(0,l.jsxs)("div",{className:(0,ec.Z)("p-8 downMd:order-2 flex flex-col","right"===h&&"md:order-2",p&&"xl:col-span-3"),children:[(0,l.jsx)("h3",{className:(0,ec.Z)("h5",p&&"!text-16 !font-body"),children:a}),(0,l.jsxs)("div",{className:(0,ec.Z)("md:mt-32 mt-16 flex-grow flex flex-col justify-end lg:max-w-[60%]",p&&"lg:!max-w-none md:!m-0 !m-0"),children:[i&&(0,l.jsx)($.Z,{text:i}),(0,l.jsx)(eM.default,{nonLinkTag:"div",...f,children:(0,eA.AH)(s)&&(0,l.jsx)(ex.Z,{as:"div",variant:"white",className:"mt-4",children:d||(null==s?void 0:s.text)||s.title||(null==s?void 0:null===(t=s.page)||void 0===t?void 0:t.title)})})]})]}),(0,l.jsx)("div",{className:(0,ec.Z)(x.inner,"downMd:order-0 lg:min-h-[28vw] downMd:aspect-[353/220] flex items-center justify-center",p&&"md:aspect-[353/220] lg:min-h-[unset] xl:aspect-[unset] xl:col-span-2"),children:(0,l.jsx)(eN.Z,{image:u,className:(0,ec.Z)("contain"===m?"w-[12rem] md:w-[20rem] mx-16":"w-full h-full"),imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")})})]})}let eB=["backgroundColor","primary100","neutralGrey100","primary200","primary300","primary400"];var eI=n(85921),ez=n(25901),eD=n(33948);async function eG(e,t){let n=await R.ZP.fetch(e,t);return await E(n,R.ZP),n}var eF=n(57751);let eH=(e,t)=>{var n,l;let r=ey()(f()([...(null===(n=t.treatmentIds)||void 0===n?void 0:n.practitioner)||[],...(null===(l=t.treatmentIds)||void 0===l?void 0:l.practice)||[]]));t.treatments=e.filter(e=>r.includes(e._id)),t.treatmentIds=null},eV=async e=>{if(!e.automatic)return;let t=!!e.treatment,n=e.city?"&& practice.address.city._ref == '".concat(e.city._id,"'"):"",l="\n {\n \"practices\": *[!(_id in path('drafts.**')) && _type == 'site' && siteType == 'practice' && practice.hideFromSite != true ".concat(n,"] {\n ").concat(o,"\n ").concat(t?',\n siteType == "master" => {\n "treatmentIds": {\n "practitioner": *[!(_id in path(\'drafts.**\')) && _type == \'site\' && siteType == \'practice\' && parent._ref == ^._id].practice.practitioners[]->treatments[]._ref,\n "practice": *[!(_id in path(\'drafts.**\')) && _type == \'site\' && siteType == \'practice\' && parent._ref == ^._id].practice.treatments[]._ref\n }\n },\n siteType == "practice" => {\n "treatmentIds": {\n "practitioner": practice.practitioners[]->treatments[]._ref,\n "practice": practice.treatments[]._ref\n }\n }\n ':"",'\n },\n "treatments": *[!(_id in path(\'drafts.**\')) && _type == \'treatment\']|order(orderRank) {\n _id,\n orderRank,\n excerpt,\n "slug": slug.current,\n title,\n "category": category->{ orderRank, _id, title, "slug": slug.current },\n }\n }\n '),r=await eG(l);if(t){var a;return j()(r.practices,e=>{eH(r.treatments,e)}),null==r?void 0:null===(a=r.practices)||void 0===a?void 0:a.filter(t=>{let n=t.treatments.find(t=>t._id===e.treatment._id);return n})}return null==r?void 0:r.practices};function eO(e){let{practice:t}=e,{title:n,featuredImage:r,address:a}=null!=t?t:{};return(0,l.jsxs)("div",{className:"col-span-full md:col-span-4",children:[(0,l.jsx)(eM.default,{link:t,showText:!1,
1className:"block mb-4",contentBlockName:"Filtered Practice Listing",menuSelection:n,children:r?(0,l.jsx)(et.default,{image:r,aspect:1,className:"rounded-lg overflow-hidden",imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 33vw, ").concat(Math.round(eh()["max-content"]/3),"px")}):(0,l.jsx)("div",{className:"bg-primary200 rounded-lg overflow-hidden grid place-items-center",style:{aspectRatio:1},children:(0,l.jsx)(eD.default,{className:"!w-20 text-primary500"})})}),(0,l.jsx)("h3",{className:"h6 mb-4",children:n}),(null==a?void 0:a.suburb)&&(0,l.jsx)("div",{className:"font-[500]",children:null==a?void 0:a.suburb}),a&&(0,l.jsx)("div",{className:"text-secondary400",children:f()([null==a?void 0:a.streetAddress,null==a?void 0:a.suburb,null==a?void 0:a.state,null==a?void 0:a.postcode]).join(" ")}),(0,l.jsxs)(eM.default,{link:t,showText:!1,className:"flex gap-2 items-center mt-4",contentBlockName:"Filtered Practice Listing",menuSelection:n,eventButton:"View clinic",children:[(0,l.jsx)(ez.Z,{className:"text-primary400"}),(0,l.jsx)("span",{children:"View clinic"})]})]})}var eW=n(1210),eq=n(35741),eU=n(28659),eJ=n(14049),eK=n(86290),eQ=n(11456),eY=n(42910),e$=n(48122),eX=n(55100),e0=n(14325);function e1(e){var t,n,r,a,i,s;let{data:o,page:c,site:d}=e,{title:u,image:m,copy:h,footerLinks:p,variant:x,video:f,mediaTint:v,backgroundColor:g}=o,b="fullWidthPractice"===x,j=m||c.featuredImage,w=u||c.title,N="3/4Height"===o.height?"h-[56svh] md:h-screen-3/4 md:max-h-none":"h-screen-[56svh] md:h-screen md:max-h-none",k=!!(null==f?void 0:null===(t=f.vimeoData)||void 0===t?void 0:t.vimeoId),C=(0,F.useMemo)(()=>({eventName:"hero_banner_interaction",location:"Hero Banner",trackProps:{hero_banner_name:u}}),[u]),_=b&&(null==d?void 0:null===(n=d.practice)||void 0===n?void 0:n.showRating)!==!1,Z=b&&y()(p)&&"article"!==c.pageType?F.Fragment:"div";return(0,l.jsxs)(en.Z,{className:"downMd:grid downMd:grid-rows-mobileHero downMd:min-h-screen downMd:h-full clip",children:[(0,l.jsxs)("div",{className:(0,ec.Z)(N,"relative flex justify-start items-center text-backgroundColor downMd:flex-1 downMd:items-start downMd:relative"),children:[j&&!k&&(0,l.jsx)(eY.default,{aspect:"3/4Height"===o.height?1440/680:1.6,mobileAspect:1,image:j,imageSizes:"100vw",position:"absolute",className:(0,ec.Z)(N,"inset-0"),preload:!0}),k&&(0,l.jsx)(eK.default,{controls:!1,data:f,rootClassName:(0,ec.Z)(N,"!absolute left-0 right-0 top-0"),className:(0,ec.Z)(N,"!absolute left-0 right-0 top-0 object-cover")}),(0,l.jsx)("div",{className:(0,ec.Z)(N,"bg-[black] absolute left-0 right-0 top-0"),style:{opacity:(v||2)/10}}),(0,l.jsxs)(en.Z,{as:"div",className:"relative h-full flex flex-col items-start justify-between",bottomMargin:!1,gutter:!0,headerPadding:!0,children:[b?(0,l.jsx)("span",{}):(0,l.jsx)(er.Z,{page:c,site:d,light:!0}),(0,l.jsxs)("div",{className:(0,ec.Z)("downMd:hidden",b&&"mb-6 md:mb-8"),children:[(0,l.jsx)("h1",{className:"mb-4 md:max-w-[40rem]",style:{textWrap:"balance"},children:w}),h&&(0,l.jsx)(ek.default,{content:h,className:"md:max-w-[22rem] text-14 mb-4",trackProps:C}),_&&(0,l.jsx)(e$.default,{address:null==d?void 0:null===(r=d.practice)||void 0===r?void 0:r.address,name:(null==d?void 0:null===(a=d.parent)||void 0===a?void 0:a.title)||(null==d?void 0:d.title)})]}),(0,l.jsx)(Z,{className:"downMd:hidden",children:(!y()(p)||"article"===c.pageType)&&(0,l.jsxs)("div",{className:"mb-6 md:mb-8 mt-4",children:[(0,l.jsx)(eQ.default,{filterData:(0,e0.i)(c),footerLinks:p,title:c.title}),"article"===c.pageType&&(0,l.jsx)(eX.default,{pageId:c._id})]})})]})]}),(0,l.jsxs)("div",{className:"md:hidden p-5 flex flex-col justify-between overflow-hidden h-full",style:{backgroundColor:g?"var(--".concat(g,")"):"var(--neutralGrey100)"},children:[(0,l.jsxs)("div",{className:(0,ec.Z)(b&&"mb-6 md:mb-8"),children:[(0,l.jsx)("h1",{className:"mb-4 md:max-w-[40rem]",style:{textWrap:"balance"},children:w}),h&&(0,l.jsx)(ek.default,{content:h,className:"md:max-w-[22rem] text-14 mb-4",trackProps:C}),_&&(0,l.jsx)(e$.default,{address:null==d?void 0:null===(i=d.practice)||void 0===i?void 0:i.address,name:(null==d?void 0:null===(s=d.parent)||void 0===s?void 0:s.title)||(null==d?void 0:d.title)})]}),(0,l.jsx)(Z,{children:(!y()(p)||"article"===c.pageType)&&(0,l.jsxs)("div",{className:"mt-4",children:[(0,l.jsx)(eQ.default,{opaqueVariant:"primary",filterData:(0,e0.i)(c),footerLinks:p,title:c.title}),"article"===c.pageType&&(0,l.jsx)(eX.default,{pageId:c._id})]})})]})]})}var e2=n(33307),e3=n(64100);let e4={homepage:function(e){let{data:t,page:n}=e,{title:r,image:a,copy:i,mediaTint:s}=t,o=a||n.featuredImage,c=r||n.title,d=(0,F.useMemo)(()=>({eventName:"hero_banner_interaction",location:"Hero Banner",trackProps:{hero_banner_name:r}}),[r]);return(0,l.jsxs)(en.Z,{className:"h-screen block md:flex justify-start items-center md:text-backgroundColor clip",children:[o&&(0,l.jsx)(eY.default,{aspect:16/9,mobileAspect:400/380,image:o,imageSizes:"100vw",position:"relative md:absolute",className:"left-0 right-0 top-0 h-[50%] md:h-screen",preload:!0}),(0,l.jsx)("div",{className:"bg-[black] absolute left-0 right-0 top-0 h-[50%] md:h-screen",style:{opacity:(s||3)/10}}),(0,l.jsxs)(en.Z,{as:"div",className:"relative h-[50%] md:h-auto flex flex-col items-start justify-between py-8 md:py-0",bottomMargin:!1,gutter:!0,children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"mb-4 md:max-w-[40rem]",style:{textWrap:"balance"},children:c}
1),i&&(0,l.jsx)(ek.default,{content:i,className:"md:max-w-[22rem] text-14",trackProps:d})]}),(0,l.jsx)(e2.default,{})]})]})},fullWidth:e1,fullWidthPractice:e1,fullWidthCarousel:eJ.default,split:e0.Z,splitPractice:e0.Z,splitCarousel:e3.default,simple:function(e){let{data:t,page:n,site:r}=e,{title:a,subtitle:i,image:s,copy:o}=t,c=a||n.title,d=(0,F.useMemo)(()=>({eventName:"hero_banner_interaction",location:"Hero Banner",trackProps:{hero_banner_name:a}}),[a]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(en.Z,{headerPadding:!0,gutter:"lg",contain:!0,children:[(0,l.jsx)(er.Z,{page:n,site:r}),(0,l.jsxs)(en.Z,{grid:!0,className:"mt-14 md:mt-24",bottomMargin:!1,children:[(0,l.jsxs)("h1",{className:"mb-4 col-span-full md:col-span-5 md:col-start-1",style:{textWrap:"balance"},children:[c,!!i&&" ",i&&(0,l.jsx)("span",{className:"md:block opacity-60",children:i})]}),o&&(0,l.jsx)(ek.default,{content:o,className:"mb-4 text-18 col-span-full md:col-span-6 md:col-start-7",trackProps:d})]}),s&&(0,l.jsx)(et.default,{aspect:2,image:s,imageSizes:"100vw",preload:!0,className:"mt-24 md:mt-36 rounded-lg"})]})})}};var e5=n(96900),e6=n.n(e5),e7=n(7016);async function e8(e,t,n){if("healthFund"===e&&("all"===t||"master"===n)){let e="\n *[ !(_id in path('drafts.**')) && _type == 'healthFund']|order(orderRank) {\n title,\n \"logo\": logo { ".concat(s," }\n }\n ");return eG(e)}return null}function e9(e){let{logo:t,bgColor:n,isGrid:r=!0}=e,a=(0,ep.wJ)(n);return(0,l.jsx)("div",{className:(0,ec.Z)("keen-slider__slide aspect-square rounded-lg flex items-center justify-center p-8 flex-shrink-0",r?"":"!w-[72%] md:!w-[25%] lg:!w-[16.7%]",a),children:(0,l.jsx)(et.default,{image:t,className:"max-w-[20rem]",contain:!0,aspect:2.3,imageSizes:"(max-width: ".concat(eh().md,"px) 72vw, (max-width: ").concat(eh().lg,"px) 25vw, ").concat(Math.round(eh()["max-content"]/6),"px")})})}var te=n(9975);function tt(e){let{slice:t}=e;return t?(0,l.jsxs)("section",{className:"flex justify-center items-center h-24 mb-8 relative",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-green animate-pulse"}),(0,l.jsxs)("div",{className:"relative font-heading text-24",children:["The slice ",(0,l.jsx)("strong",{children:t._type})," is missing"]})]}):null}var tn=n(16364),tl=n.n(tn);let tr={AND:" && ",OR:" || "};async function ta(e){let{tags:t,category:n,order:l="publishedDate desc",fromDate:r,toDate:a,exclude:i,filterQuery:s,operator:o="AND"}=e,c=y()(t)?"":function(e,t){let n="";if(!y()(e)){let l=e;"string"==typeof e&&(l=null==e?void 0:e.split(",")),n="(".concat(l.map(e=>'"'.concat(e,'" in ').concat(t,"[]._ref")).join(" || "),")")}return n}(t,"tags"),d=function(e){let t="";if(!y()(e)){let n=e;"string"==typeof e&&(n=null==e?void 0:e.split(",")),t="(".concat(null==n?void 0:n.map(e=>'(category._ref == "'.concat(e,'" || category->.slug.current == "').concat(e,'")')).join(" || "),")")}return t}(n),u=f()([r?"(dateTime(publishedDate) >= dateTime('".concat(r,"'))"):"",a?"(dateTime(publishedDate) < dateTime('".concat(a,"'))"):""]).join(tr.AND);u&&(u="(".concat(u,")"));let m=f()([c,u,d]),h=f()(m).join(" ".concat(tr[o]||tr.AND," "));return"\n *[!(_id in path(\"drafts.**\")) && status != 'hidden' && _type == 'article'\n ".concat(h?"&& (".concat(h,")"):"","\n ").concat(i?" && _id != '".concat(i,"'"):"","\n ").concat(s||"","\n ]| order(").concat(l,")")}async function ti(e){let{index:t=0,limit:n=8,...l}=e,r=parseInt(t)*parseInt(n),a=r+parseInt(n),i=await ta(l),s=await R.ZP.fetch("count(".concat(i,")")),c=await R.ZP.fetch("\n ".concat(i,"\n [").concat(r,"...").concat(a,"]\n { ").concat(o," }\n "));return tl()({index:t,limit:n,...l,total:s,items:c},e=>!e)}var ts=n(15891);function to(e){let{data:t,page:n,site:r}=e,{title:a,copy:i}=null!=t?t:{};return(0,l.jsxs)(en.Z,{children:[(0,l.jsx)(er.Z,{page:n,site:r}),(0,l.jsxs)(en.Z,{grid:!0,className:"mt-14 md:mt-24",bottomMargin:!1,children:[(0,l.jsx)("h1",{className:"mb-4 col-span-full md:col-span-5 md:col-start-1",children:a}),i&&(0,l.jsx)("p",{className:"mb-4 text-18 col-span-full md:col-span-6 md:col-start-7",children:i})]})]})}let tc=async e=>{let t=await ti({index:0,limit:8,tags:e});return t};function td(e){let{data:t,className:n,bgColor:r,contentBlockName:a,menuSelection:i,imageSizes:s}=e,{title:o,featuredImage:c}=null!=t?t:{},d=(0,ep.wJ)(r);return(0,l.jsxs)(eM.default,{link:t,nonLinkTag:"div",showText:!1,
1className:(0,ec.Z)(" overflow-hidden rounded-lg flex flex-col",d,n),contentBlockName:a,menuSelection:i,children:[c&&(0,l.jsx)(et.default,{image:c,aspect:636/397,imageSizes:s}),(0,l.jsxs)("div",{className:"p-5 flex-1 flex flex-col justify-between gap-12",children:[(0,l.jsx)("p",{className:(0,ec.Z)("text-18 font-[500] downMd:text-base downMd:font-body"),children:o}),(0,l.jsx)(ez.Z,{className:"text-primary500"})]})]})}var tu=n(68924),tm=n(67066),th=n.n(tm),tp=n(83705),tx=n.n(tp);async function tf(e,t,n){let l=(t,n)=>(j()(t,t=>{let l=n.find(n=>{let{_id:l}=n;return l==="".concat(e,"-").concat(t._id)});l&&(t.title=l.title||t.title,t.subtitle=l.subtitle||t.subtitle,t.excerpt=(0,$.M)(l.excerpt||t.excerpt),t.seo=l.seo,t.featuredImage=l.featuredImage||t.featuredImage,t.slices=l.slices)}),t);if(!n.filterProp){let t="\n *[ !(_id in path('drafts.**')) && _type == 'pageTemplate' && templateType._ref == $templateTypeId] {\n ".concat(o,"\n }\n ");return eG(t,{templateTypeId:n._id,siteId:e})}if("practice"===t){let t="\n *[!(_i
1d in path('drafts.**')) && _id == $id] {\n \"pageTemplates\": practice.".concat(n.filterProp,"[]->{\n ").concat(o,'\n },\n "pageTemplatesForSite": *[!(_id in path(\'drafts.**\')) && _type == "pageTemplateForSite" && site._ref == $id && templateType._ref == $templateTypeId] {\n ').concat(o,"\n }\n }[0]\n "),r=await eG(t,{id:e,templateTypeId:n._id});return l(r.pageTemplates,r.pageTemplatesForSite)}let r='\n {\n "pageTemplatesForSite": *[!(_id in path(\'drafts.**\')) && _type == "pageTemplateForSite" && site._ref == $id && templateType._ref == $templateTypeId] {\n '.concat(o,"\n },\n \"pageTemplates\": *[!(_id in path('drafts.**')) && _type == 'site' && siteType == 'practice' && parent._ref == $id] {\n \"pageTemplates\": practice.").concat(n.filterProp,"[]->{\n ").concat(o,"\n }\n }\n }\n "),a=await eG(r,{id:e,templateTypeId:n._id});return a.pageTemplates=tx()(th()(a.pageTemplates.map(e=>{let{pageTemplates:t}=e;return t})).filter(e=>!!e),e=>e._id),l(a.pageTemplates,a.pageTemplatesForSite)}let tv=e=>{let{alignment:t,pageTemplates:n,blockTitle:r}=e;return null==n?void 0:n.map((e,n)=>{let{_id:a,title:i,subtitle:s,featuredImage:o,excerpt:c}=e;return(0,l.jsx)(eR,{className:"mb-5 md:mb-10",title:s||i,text:c,link:e,contentBlockName:r,menuSelection:i,image:o,imageLayout:"contain",alignment:t||"left",linkText:"Find Out More",variant:n%2==0?"primary":"secondary"},"".concat(a,"-").concat(n))})},tg=e=>{let{pageTemplates:t,blockTitle:n}=e;return(0,l.jsx)(en.Z,{grid:!0,bottomMargin:!1,className:"mt-8 md:mt-20",children:null==t?void 0:t.map((e,t)=>{let{_id:r,title:a,featuredImage:i,excerpt:s}=e;return(0,l.jsxs)(eM.default,{className:"col-span-full md:col-span-6 bg-backgroundColor text-backgroundColor-foreground overflow-hidden rounded-lg !text-left",link:e,showText:!1,contentBlockName:n,menuSelection:a,children:[(0,l.jsx)(et.default,{image:i,aspect:1.575,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")}),(0,l.jsxs)("div",{className:"p-5 md:aspect-[630/220] flex flex-col",children:[(0,l.jsx)("div",{className:"text-18 md:text-22 mb-4 font-medium",children:a}),(0,l.jsx)($.Z,{className:"flex-grow flex-shrink mb-4",text:s}),(0,l.jsxs)("div",{className:"font-medium flex items-center gap-3 downMd:mt-10",children:[(0,l.jsx)(ez.Z,{className:"text-primary500",width:"!w-3",height:"!h-3"}),"Learn More"]})]})]},"".concat(r,"-").concat(t))})})},tb=e=>{let{alignment:t,pageTemplates:n,blockTitle:r,siteSlug:a}=e,i=null==n?void 0:n.map(e=>({alignment:t||"left",title:e.title,heading:e.subtitle,copy:e.excerpt,image:e.featuredImage,ctaLink:e,ctaLinkText:"Find out more",trackProps:{content_block_name:r,menu_selection:e.title}}));return(0,l.jsx)(ev,{banners:i,siteSlug:a,className:"!mt-0"})};var tj=n(67182);async function tw(e,t){if(!t)return null;let n="\n *[ !(_id in path('drafts.**')) && _id == $siteId][0] {\n \"practitioners\": practice.practitioners[]->{\n ".concat(o,",\n video,\n description,\n treatments[]->{\n _id,\n \"slug\": slug.current,\n title,\n },\n jobTitle,\n jobType->{\n title\n },\n \"practices\": *[!(_id in path('drafts.**')) && _type == 'site' && siteType == 'practice' && ^._id in practice.practitioners[]._ref] {\n title\n }\n }\n }\n "),l=await eG(n,{siteId:e});return null==l?void 0:l.practitioners}var ty=n(55720),tN=n(66926),tk=n.n(tN),tC=n(25727),t_=n.n(tC),tZ=n(12003),tL=n.n(tZ),tT=n(16557);let tM={NSW:"New South Wales",VIC:"Victoria",QLD:"Queensland",WA:"Western Australia",SA:"South Australia",NT:"Northern Territory",ACT:"Australian Capital Territory",TAS:"Tasmania"};var tS=n(29154),tP=n(51268);async function tA(e,t,n){var l;let r=null==t?void 0:t.publishedDate,{category:a}=t,{type:i,manualArticles:s}=e;if("manual"===i)return s;let o="related"===i,c=[n._id,...(null===(l=n.articleTags)||void 0===l?void 0:l.map(e=>e._id))||[]],d={index:0,limit:3,tags:c,exclude:t._id},u=await ti({...d,fromDate:r&&o?r:null,category:a&&o?[a._id]:null});return y()(null==u?void 0:u.items)&&(u=await ti(d)),null==u?void 0:u.items}var tE=n(3403),tR=n(20390),tB=n(63846);function tI(e){let{tile:t,className:n,i:r}
1=e,{title:a,copy:i,number:s,suffix:o}=t,c=(0,ep.mJ)("primary100");return(0,l.jsxs)("div",{style:c,className:(0,ec.Z)("col-span-full md:col-span-6 xl:col-span-3 rounded-lg overflow-hidden aspect-square flex flex-col p-5 justify-between",n),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"font-heading text-22 font-medium mb-2",children:a}),(0,l.jsx)(ek.default,{content:i,className:"text-14"})]}),(0,l.jsxs)("div",{className:"font-heading text-[4.25rem] flex items-baseline tracking-tighter mb-[0.4rem] ml-[-0.2rem]",children:[(0,l.jsx)(tB.default,{animateOnInView:!0,fromCount:Math.max(0,s>20?s-20:s-12),toCount:s,duration:1*(1+.3*r)}),o&&(0,l.jsx)("span",{className:"h-0",children:o})]})]})}let tz=async(e,t)=>{var n,l;if(!e.automatic)return;let{sites:r}=null!=t?t:{},a=null===(n=r[0])||void 0===n?void 0:n._id,i="\n *[ !(_id in path('drafts.**')) && _type == 'site' && _id == '".concat(a,"'][0] {\n practice {\n practitioners[]-> {\n ").concat(o,"\n }\n }\n }\n "),s=await eG(i);return null==s?void 0:null===(l=s.practice)||void 0===l?void 0:l.practitioners};var tD=n(33874),tG=n.n(tD),tF=n(21050);function tH(e){var t,n,r;let{data:a,site:i,className:s,colorData:o,menuSelection:c}=e,{title:d,subtitle:u,description:m,image:h,link:p}=null!=a?a:{},x=d||(null==a?void 0:null===(t=a.link)||void 0===t?void 0:t.title),f=h||(null==a?void 0:null===(n=a.link)||void 0===n?void 0:n.featuredImage),v=null===(r=(0,eA.mg)(i,p))||void 0===r?void 0:r.text,g=(0,ep.wJ)(null==o?void 0:o.bgColor);return(0,l.jsxs)(eM.default,{link:p,nonLinkTag:"div",showText:!1,className:(0,ec.Z)(" overflow-hidden rounded-lg flex flex-col !text-left",g,s),contentBlockName:"Tiles Grid",menuSelection:c,children:[f&&(0,l.jsx)(et.default,{image:f,aspect:636/397,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")}),(0,l.jsxs)("div",{className:"p-5 flex-1 flex flex-col justify-between !text-left",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:(0,ec.Z)("h6 downMd:text-base downMd:font-body",!u&&"mb-4"),children:x}),u&&(0,l.jsx)("p",{className:"md:h6 mb-4 downMd:font-[500] text-secondary400",children:u}),m&&(0,l.jsx)($.Z,{text:m})]}),v&&(0,l.jsxs)("div",{className:"flex gap-2 mt-6 font-[500] items-center",children:[(0,l.jsx)(tF.Z,{className:"text-primary500 !w-4 !h-4"}),v]})]})]})}var tV=n(71793),tO=n(87281);let tW={richTextSlice:function(e){let{data:t,page:n}=e,{text:r,content:a,hideSidebarText:i,automaticSidebarText:s,sidebarCopy:o,sidebarCTA:c}=null!=t?t:{},{title:d}=null!=n?n:{};return(0,l.jsx)(en.Z,{className:"rich-text-slice-wrapper",grid:!0,contain:!0,gutter:"lg",children:(0,l.jsx)(ek.default,{content:r||a,sidebarData:{hideSidebarText:i,automaticSidebarText:s,sidebarCopy:o,sidebarCTA:c},pageTitle:d,mobileCta:!0,jumpTo:!0})})},twoColRichText:function(e){let{data:t}=e,{heading:n,leftColumn:r,rightColumn:a,sticky:i}=null!=t?t:{};return(0,l.jsxs)(en.Z,{grid:!0,contain:!0,gutter:"lg",className:"items-start !gap-y-8",children:[(0,l.jsx)("div",{className:(0,ec.Z)("col-span-full",i&&"md:sticky md:top-[calc(var(--header-height)+2rem)]"),children:n&&(0,l.jsx)(ek.default,{content:n,jumpTo:!1,className:"h4"})}),(0,l.jsx)(ek.default,{content:r,jumpTo:!1,className:(0,ec.Z)("md:!col-span-5 md:!col-start-1 md:text-18",!!n&&"md:row-start-2")}),(0,l.jsx)(ek.default,{content:a,jumpTo:!1,className:(0,ec.Z)("md:!col-span-6 md:!col-start-7 md:text-18",!!n&&"md:row-start-2")})]})},linkListing:e7.default,headlineText:eU.default,headlineBanner:eq.default,headingCta:function(e){let{data:t}=e,{layout:n,title:r,text:a,otherText:i,ctaLink:s,swapColumns:o}=null!=t?t:{};return(0,l.jsxs)(en.Z,{gutter:"lg",contain:!0,grid:!0,children:[r&&(0,l.jsx)("h2",{className:"font-body font-normal text-base col-span-full downMd:h3",children:r}),(0,l.jsx)("div",{className:(0,ec.Z)("col-span-full md:text-18","2col"===n?"lg:col-span-6 lg:pr-6 lg:text-balance":"lg:col-span-7",o&&"md:!col-start-7 md:!row-start-2"),children:a&&(0,l.jsx)("div",{className:(0,ec.Z)("2col"===n&&"h3","md:h4"),children:(0,l.jsx)($.Z,{text:a})})}),(0,l.jsxs)("div",{className:(0,ec.Z)("col-span-full md:text-18 md:col-span-7","2col"===n?"lg:col-span-6":"lg:col-start-9 lg:col-span-4",o&&"md:!col-start-1 md:!row-start-2"),children:[i&&(0,l.jsx)(ek.default,{content:i}),(0,eA.AH)(s)&&(0,l.jsx)(ex.Z,{link:s,className:"mt-8 downMd:w-full",variant:"secondary",contentBlockName:"Heading CTA",menuSelection:r})]})]})},featureCallout:function(e){let{data:t,inRichText:n=!1}=e;return(0,l.jsx)(en.Z,{gutter:"lg",contain:!n,className:(0,ec.Z)(n&&"!p-0 !m-0 !mt-10"),children:(0,l.jsx)(eR,{...t,contentBlockName:"Feature Callout",inRichText:n})})},logoCarousel:function(e){let{data:t,site:n,colorData:r}=e,{title:a,logos:i,layout:s,logoCarouselType:o,healthFundsFilter:c,healthFunds:d}=null!=t?t:{},u="grid"===s,m=eF.Z?null:(0,F.use)(e8(o,c,n.siteType)),h={slides:{perView:6,spacing:24},disabled:u,breakpoints:{["(max-width: ".concat(eh().lg-1,"px)")]:{slides:{perView:4,spacing:18},disabled:!1},["(max-width: ".concat(eh().md-1,"px)")]:{slides:{perView:1.4,spacing:24},disabled:!1}}},p=(0,F.useMemo)(()=>
1{if("healthFund"===o){var e;switch(c){case"all":return m;case"selected":return d}return"master"===n.siteType?m:null===(e=n.practice)||void 0===e?void 0:e.preferredHealthFunds}return null==i?void 0:i.map(e=>({logo:e}))},[t,n]);return(0,l.jsx)("div",{className:"overflow-hidden",children:(0,l.jsxs)(en.Z,{className:"",gutter:"lg",contain:!0,children:[a&&(0,l.jsx)("h2",{className:"font-body font-normal text-base col-span-full downMd:h3",children:a}),(0,l.jsx)(ef.default,{options:h,className:(0,ec.Z)("mt-6",u&&"md:grid md:grid-cols-6 md:gap-6 md:!cursor-auto md:active:!cursor-auto"),pagination:!u,mdPagination:!0,bgColor:null==r?void 0:r.bgColor,children:null==p?void 0:p.map((e,t)=>{let{logo:n}=e;return(0,l.jsx)(e9,{logo:n,bgColor:null==r?void 0:r.bgColor,isGrid:u},t)})})]})})},bento:function(e){var t;let{site:n,data:r}=e,{title:a,text:i,columns:s,automaticColours:o,colour:c}=null!=r?r:{},d={automaticColours:o,colour:c};return(0,l.jsxs)(en.Z,{gutter:"lg",contain:!0,grid:!0,className:"overflow-hidden",children:[a&&(0,l.jsx)("h2",{className:"col-span-full h4 downMd:h3 lg:mb-16 lg:col-span-6 lg:pr-8",children:null==a?void 0:null===(t=a.split("\n"))||void 0===t?void 0:t.map(e=>(0,l.jsxs)("span",{className:"block",children:[e," "]},e))}),(0,l.jsx)(ek.default,{content:i,className:"md:text-18 col-span-full md:!col-start-1 lg:!col-start-[unset] lg:col-span-6 md:mb-16 downMd:mb-4"}),null==s?void 0:s.map(e=>"imageColumn"===e._type?(0,l.jsx)(et.default,{image:e,className:"md:max-h-viewport col-span-full lg:col-span-6 rounded-lg downMd:row-start-3 md:aspect-[1.5] lg:aspect-[unset]",aspect:1,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) ").concat(Math.round(100/s.length),"vw, ").concat(Math.round(eh()["max-content"]/s.length),"px")},e._key):"blocksColumn"===e._type&&1===s.length?(0,l.jsx)(eC,{site:n,column:e,blocks:e.blocks,colours:d},e._key):"blocksColumn"===e._type?(0,l.jsx)(e_,{site:n,column:e,blocks:e.blocks,colours:d,className:"col-span-full lg:col-span-6 md:aspect-[1.5] lg:aspect-[unset]"},e._key):(0,l.jsx)("div",{},e._key))]})},bannerCarousel:function(e){let{data:t}=e,{title:n,banners:r}=null!=t?t:{};return(0,l.jsx)("div",{children:(0,l.jsxs)(en.Z,{className:"",gutter:"lg",contain:!0,children:[n&&(0,l.jsx)("h2",{className:"col-span-full h4 downMd:h3",children:n}),(0,l.jsx)(ev,{banners:r})]})})},teamCarousel:function(e){let{data:t,page:n}=e,r=eF.Z?null:(0,F.use)(tz(t,n)),{team:a,automatic:i}=null!=t?t:{};return(0,l.jsx)(ea.default,{team:i?r:a,data:t})},heroSlice:function(e){let{data:t,page:n,site:r}=e,{variant:a}=t,i=e4[a];return i?(0,l.jsx)(i,{data:t,page:n,site:r}):null},featureTile:function(e){let{data:t}=e,{title:n,heading:r,text:a,links:i,image:s,colour:o,alignment:c}=null!=t?t:{},d="left"===c,u=(0,ep.mJ)(o||"primary100"),m=eB.includes(o),h=m?"primary":"white";return(0,l.jsx)(en.Z,{gutter:"lg",contain:!0,grid:!0,children:(0,l.jsxs)("div",{className:"md:max-h-viewport col-span-full grid grid-cols-2 overflow-hidden rounded-lg downMd:flex downMd:flex-col",style:u,children:[(0,l.jsxs)("div",{className:(0,ec.Z)("p-8 flex flex-col justify-between downMd:order-[2] downMd:gap-[6rem]",d&&"md:order-2"),children:[(0,l.jsxs)("div",{children:[n&&(0,l.jsx)("div",{className:"mb-4",children:n}),r&&(0,l.jsx)("div",{className:"h4 max-w-[15em]",children:r})]}),(0,l.jsxs)("div",{children:[a&&(0,l.jsx)("div",{className:"max-w-[23em]",children:(0,l.jsx)($.Z,{text:a})}),i&&(0,l.jsx)("div",{className:"mt-4 flex items-center gap-6",children:null==i?void 0:i.map((e,t)=>0===t?(0,l.jsx)(ex.Z,{variant:h,link:e,blockContentName:"Feature Tile",menuSection:n},e._key):(0,l.jsx)(eM.default,{link:e,className:"underline text-14",blockContentName:"Feature Tile",menuSection:n},e._key))})]})]}),(0,l.jsx)(et.default,{image:s,className:(0,ec.Z)("downMd:order-1",d&&"md:order-1"),aspect:.88,mobileAspect:353/221,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")})]})})},featuredTreatments:eI.default,textWithImage:function(e){let{data:t}=e,{content:n,title:r,image:a,imageAlignment:i}=null!=t?t:{};return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",grid:!0,className:"downMd:gap-y-6",children:[(0,l.jsxs)("div",{className:(0,ec.Z)("col-span-full md:col-span-5","left"===i&&"md:col-start-7 md:row-start-1"),children:[r&&(0,l.jsx)("h2",{className:"h4 mb-4 md:mb-10",children:r}),(0,l.jsx)(ek.default,{content:n})]}),a&&(0,l.jsx)(et.default,{image:a,className:(0,ec.Z)("col-span-full md:col-span-6 rounded-lg overflow-hidden","left"===i?"md:col-start-1 md:row-start-1":"md:col-start-7"),imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")})]})},faqSlice:function(e){let{data:t}=e,{title:n,questions:r,alignment:a}=null!=t?t:{},i="left"===a;return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",grid:!0,children:[(0,l.jsx)("h2",{className:(0,ec.Z)("h4 col-span-full md:col-span-6 max-w-[10em]",i&&"md:text-right !max-w-none"),children:n}),(0,l.jsx)("div",{className:(0,ec.Z)("col-span-full md:col-span-6",i&&"md:col-start-1 md:row-start-1"),children:null==r?void 0:r.map(e=>(0,l.jsx)(eP.default,{title:e.question,contentBlockName:"FAQs",children:(0,l.jsx)(ek.default,{content:e.answer,className:"text-16 font-[400]"})},e._key))})]})},mediaCarousel:te.default,imageBannerCTA:function(e){let{data:t,page:n}=e,{title:r,text:a,links:i,image:s,variant:o,colour:c}=null!=t?t:{},d="colour"===o,u=d?(0,ep.mJ)(c):{backgroundColor:"black",color:"white"},m=(0,F.useMemo)(()=>
1{let e=e6()(n.slices,t);return e===n.slices.length-1},[t,n]),h=(0,F.useMemo)(()=>{var e;let l=e6()(n.slices,t);return(null===(e=n.slices[l+1])||void 0===e?void 0:e._type)==="colorChanger"},[t,n]);return(0,l.jsxs)("div",{className:"relative",style:u,children:[(0,l.jsx)(en.Z,{gutter:"lg",contain:!0,grid:!0,className:"z-[2] py-10 md:py-14 relative z-index-[2] md:items-center h-full md:justify-center min-h-[80svh] md:min-h-[90svh]",bottomMargin:!m&&!h,children:(0,l.jsxs)("div",{className:"col-span-6 md:col-span-5 flex flex-col gap-6 md:gap-6",children:[(0,l.jsx)("h2",{className:"text-balance",children:r}),a&&(0,l.jsx)(ek.default,{content:a}),i&&(0,l.jsx)("div",{className:"flex gap-6 items-center",children:null==i?void 0:i.map((e,t)=>0===t?(0,l.jsx)(ex.Z,{link:e,variant:"translucent"},e._key):(0,l.jsx)(eM.default,{link:e,className:"underline text-14 whitespace-nowrap",contentBlockName:"Image Banner CTA",menuSelection:r},e._key))})]})}),!d&&(0,l.jsx)(et.default,{image:s,className:"!absolute inset-0 opacity-30",imageSizes:"100vw"})]})},quoteCarousel:tS.default,servicesListing:function(e){let{data:t,site:n}=e,{treatments:r}=null!=n?n:{},{popularServicesLabel:a,popularServices:i,hidePopular:s,category:o}=null!=t?t:{},{groupedTreaments:c,transformedTreatments:d}=(0,F.useMemo)(()=>{let e=tk()(r,e=>e.category.title),t=tL()(k()(e,e=>{let t=e[0].category;return{...t,treatments:tL()(e,["orderRank"])}}),["orderRank"]);return{groupedTreaments:e,transformedTreatments:t}},[r]),u=(0,F.useMemo)(()=>tL()(k()(c,e=>e[0].category),["orderRank"]),[c]);return(0,l.jsx)(tR.default,{treatments:r,transformedTreatments:d,navSections:u,popularServicesLabel:a,popularServices:i,hidePopular:s,category:o})},tileGrid:function(e){let{data:t,site:n,colorData:r}=e,{title:a,copy:i,tiles:s}=null!=t?t:{};return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",grid:!0,className:"downMd:gap-y-6",children:[a&&(0,l.jsx)("h3",{className:(0,ec.Z)("col-span-full h4 md:mb-2",!!i&&"md:!col-span-6"),children:a}),i&&(0,l.jsx)("div",{className:"col-span-full md:col-span-6 md:mb-14",children:(0,l.jsx)($.Z,{text:i})}),null==s?void 0:s.map(e=>(0,l.jsx)(tH,{data:e,site:n,className:"col-span-full md:col-span-6",colorData:r,menuSelection:a},e._key))]})},practicesListing:function(e){var t;let{data:n}=e,r=(t=null==n?void 0:n.practices,(0,F.useMemo)(()=>{let e=tk()(t,e=>e.state),n=k()(e,(e,t)=>{var n;let l=tM[t],r=null==l?void 0:null===(n=l.toLowerCase())||void 0===n?void 0:n.replaceAll(" ","-");
1return{_id:r,state:{title:l,slug:r,key:t},practices:tL()(e,e=>[e.suburb,e.parentTitle])}});return tL()(n,e=>e.state.title)},[t])),a=(0,F.useMemo)(()=>k()(r,e=>e.state),[r]),i={navSections:a,practices:r,data:t_()(n,["practices"])};return(0,l.jsx)(tT.default,{...i})},contactTiles:function(e){var t;let{data:n,site:r}=e,{title:a,tiles:i}=null!=n?n:{},s=(null==r?void 0:null===(t=r.parent)||void 0===t?void 0:t.slug)==="united";return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",grid:!0,className:"downMd:gap-y-6",children:[a&&(0,l.jsx)("h3",{className:"col-span-full h4 md:mb-2",children:a}),null==i?void 0:i.map(e=>(0,l.jsx)(eS,{data:e,className:"col-span-full md:col-span-6",isUnited:s},e._key))]})},pageLinksGrid:function(e){let{data:t,colorData:n}=e,{title:r,link:a,links:i}=null!=t?t:{},s=(0,F.useMemo)(()=>({content_block_name:r,menu_selection:r}),[r]);return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",grid:!0,className:"downMd:gap-y-6 items-center",children:[r&&(0,l.jsx)("h4",{className:(0,ec.Z)("col-span-full h4 md:mb-2",!!a&&"md:col-span-6"),children:r}),a&&(0,l.jsxs)("div",{className:"col-span-full md:col-span-6 md:text-right font-[500]",children:[a.prefix," ",(0,l.jsx)(eM.default,{link:a.link,className:"underline",trackProps:s})]}),null==i?void 0:i.map((e,t)=>(0,l.jsx)(td,{data:e,className:"col-span-full md:col-span-3",bgColor:null==n?void 0:n.bgColor,contentBlockName:"Page Links Grid",menuSelection:r,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 25vw, ").concat(Math.round(eh()["max-content"]/4),"px")},"".concat(e._key,"-").concat(t)))]})},practiceSummary:ty.ZP,filteredPracticesListing:function(e){let{data:t,site:n}=e,r=eF.Z?null:(0,F.use)(eV(t,n)),{manualPractices:a,automatic:i}=null!=t?t:{},s=i?r:a;return(0,l.jsx)(en.Z,{className:"gap-y-20",grid:!0,contain:!0,gutter:"lg",children:null==s?void 0:s.map(e=>(0,l.jsx)(eO,{practice:e},e._id))})},breakoutProfile:function(e){let{data:t}=e,{name:n,role:r,content:a,image:i,alignment:s}=null!=t?t:{};return(0,l.jsxs)(en.Z,{grid:!0,gutter:"lg",contain:!0,children:[(0,l.jsxs)("div",{className:"col-span-6",children:[(0,l.jsx)("h5",{className:"mb-[0.2rem]",children:n}),(0,l.jsx)("p",{className:"mb-6 font-medium",children:r}),(0,l.jsx)("div",{className:"mb-1 md:mb-0 md:w-4/5 whitespace-pre-wrap",children:(0,l.jsx)(ek.default,{content:a})})]}),(0,l.jsx)("div",{className:(0,ec.Z)("col-span-6","left"===s&&"md:col-start-1 md:row-start-1"),children:i&&(0,l.jsx)(et.default,{className:"rounded-lg overflow-hidden",image:i,aspect:1,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 50vw, ").concat(Math.round(eh()["max-content"]/2),"px")})})]})},teamListing:function(e){let{data:t}=e,{heading:n,teamMembers:r,alignment:a}=null!=t?t:{},i="right"===a;return(0,l.jsxs)(en.Z,{className:"gap-y-8 md:gap-y-20",grid:!0,gutter:"lg",contain:!0,children:[(0,l.jsx)("h5",{className:"md:-mb-12 col-span-full",children:n}),r&&r.map(e=>(0,l.jsxs)("div",{className:"grid-layout col-span-full",children:[(0,l.jsx)("div",{className:(0,ec.Z)("col-span-full md:col-span-4",i?"md:col-start-10 md:row-start-1":"md:col-start-1"),children:(null==e?void 0:e.image)&&(0,l.jsx)(et.default,{className:"rounded-lg overflow-hidden",image:null==e?void 0:e.image,aspect:.8,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 33vw, ").concat(Math.round(eh()["max-content"]/3),"px")})}),(0,l.jsxs)("div",{className:(0,ec.Z)("col-span-full md:col-span-6",i?"md:col-start-1 md:row-start-1":"md:col-start-7"),children:[(0,l.jsx)("h6",{className:"mb-[0.2rem]",children:null==e?void 0:e.name}),(0,l.jsx)("p",{className:"mb-8 font-medium",children:null==e?void 0:e.role}),(0,l.jsx)("p",{className:"mb-1 md:mb-0 text-18 whitespace-pre-wrap",children:null==e?void 0:e.content})]})]},null==e?void 0:e._key))]})},termsCitation:function(e){let{data:t}=e,{heading:n,content:r}=null!=t?t:{};return(0,l.jsxs)(en.Z,{className:"mt-14 md:mt-24",gutter:"lg",contain:!0,children:[(0,l.jsx)("p",{className:"mb-3 text-20",children:n}),tG()(r)?(0,l.jsx)("p",{className:"text-12 whitespace-pre-wrap",children:r}):(0,l.jsx)(ek.default,{className:"text-12",content:r})]})},partnerListing:function(e){let{site:t,data:n}=e,{partners:r,allPartners:a}=null!=n?n:{},i=(0,F.use)(tw(null==t?void 0:t._id,a));return(0,l.jsx)(tj.default,{partners:a?i:r})},pageTemplateListing:function(e){var t;let{data:n,site:r,page:a}=e,{layout:i,title:s,copy:o,templateType:c,automatic:d,manualPageTemplates:u,alignment:m}=n,h=eF.Z?null:!1===d?u:(0,F.use)(tf(r._id,r.siteType,c)),p=(0,tu.Z)(n,a),x=(null==p?void 0:p._type)!=="colorChanger"&&!!p;if(y()(h))return null;let f=(null==r?void 0:null===(t=r.parent)||void 0===t?void 0:t.slug)||r.slug;return(0,l.jsx)(en.Z,{className:(0,ec.Z)("tiles"===i&&"bg-neutralGrey100 text-neutralGrey100-foreground py-section md:py-section-md"),bottomMargin:x,children:(0,l.jsxs)(en.Z,{as:"div",contain:!0,gutter:"lg",bottomMargin:!1,children:[s&&(0,l.jsxs)(en.Z,{grid:!0,as:"div",bottomMargin:!1,children:[(0,l.jsx)("h4",{className:"col-span-6 mb-6 md:mb-10",children:s}),(0,l.jsx)(ek.default,{content:o})]}),"featureCallout"===i&&(0,l.jsx)(tv,{alignment:m,pageTemplates:h,blockTitle:s}),"tiles"===i&&(0,l.jsx)(tg,{pageTemplates:h,blockTitle:s}),"carousel"===i&&(0,l.jsx)(tb,{alignment:m,pageTemplates:h,blockTitle:s,siteSlug:f})]})})},formSlice:function(e){let{site:t,data:n}=e,{form:r}=n;return(0,l.jsx)(en.Z,{contain:!0,gutter:"lg",children:(0,l.jsx)(eW.default,{site:t,formSchema:r})})},rolesListing:tE.default,newsListing:function(e){var t;let{data:n,page:r,colorData:a,site:i}=e,s=[i._id,...(null===(t=i.articleTags)||void 0===t?void 0:t.map(e=>e._id))||[]],o=eF.Z?null:(0,F.use)(tc(s));return(0,l.jsxs)(en.Z,{headerPadding:!0,gutter:"lg",contain:!0,children:[(0,l.jsx)(to,{data:n,page:r,site:i}
1),(0,l.jsx)(ts.default,{title:r.title,initialArticles:null==o?void 0:o.items,initialTotal:null==o?void 0:o.total,pageId:(null==n?void 0:n._key)||(null==r?void 0:r._id),tags:s,bgColor:null==a?void 0:a.bgColor})]})},relatedArticles:function(e){let{data:t,page:n,colorData:r,site:a}=e,{smallTitle:i,title:s,ctaLink:o}=t,c=eF.Z?null:(0,F.use)(tA(t,n,a));return(0,l.jsxs)(en.Z,{grid:!0,contain:!0,gutter:"lg",children:[i&&(0,l.jsx)("div",{className:"col-span-full",children:i}),(0,l.jsxs)("div",{className:"col-span-full flex items-center justify-between",children:[(0,l.jsx)("h4",{children:s}),o&&(0,l.jsx)(ex.Z,{link:o,variant:"secondary",className:"downMd:hidden",contentBlockName:"Related Articles",menuSelection:s})]}),null==c?void 0:c.map(e=>(0,l.jsx)(tP.Z,{article:e,className:"col-span-full md:col-span-4",bgColor:null==r?void 0:r.bgColor,contentBlockName:"Related Articles",menuSelection:s,imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, (max-width: ").concat(eh()["max-content"],"px) 33vw, ").concat(Math.round(eh()["max-content"]/3),"px")},e._id)),o&&(0,l.jsx)(ex.Z,{link:o,variant:"secondary",className:"md:hidden col-span-full [&>div]:!w-full",contentBlockName:"Related Articles",menuSelection:s})]})},errorSlice:function(e){let{data:t}=e,{title:n,text:r,link:a}=t;return(0,l.jsx)(en.Z,{headerPadding:!0,className:"h-screen-3/4",children:(0,l.jsxs)(en.Z,{as:"div",grid:!0,contain:!0,gutter:"lg",bottomMargin:!1,className:"mt-[8.3125rem]",children:[(0,l.jsx)("h1",{className:"col-span-6",children:n}),(0,l.jsxs)("div",{className:"col-span-6 flex flex-col gap-10",children:[(0,l.jsx)(ek.default,{content:r}),(0,l.jsx)(ex.Z,{link:a,variant:"secondary"})]})]})})},stats:function(e){let{data:t}=e,{title:n,tiles:r}=null!=t?t:{};return(0,l.jsxs)(en.Z,{contain:!0,gutter:"lg",children:[n&&(0,l.jsx)("h2",{className:"h4 col-span-full mb-8",children:n}),(0,l.jsx)(en.Z,{as:"div",grid:!0,bottomMargin:!1,children:r.map((e,t)=>(0,l.jsx)(tI,{tile:e,i:t,className:3===r.length&&"xl:!col-span-4 xl:aspect-[304/211]"},e._key))})]})},stackedImageSlice:function(e){let{data:t}=e,{heading:n,leftColumn:r,alignment:a,images:i,colour:s}=null!=t?t:{},o="left"===a,c=(0,ep.mJ)(s);return(0,l.jsxs)(en.Z,{grid:!0,contain:!0,gutter:"lg",className:"md:items-center",children:[(0,l.jsxs)("div",{className:(0,ec.Z)("col-span-full md:!col-span-6 md:col-start-1 downMd:row-start-2 downMd:mt-4",o&&"md:!col-start-7 md:!row-start-1"),children:[n&&(0,l.jsx)("h3",{className:"h4 mb-43 mb-8 md:mb-8",children:(0,l.jsx)(ek.default,{content:n,jumpTo:!1})}),(0,l.jsx)(ek.default,{content:r,jumpTo:!1})]}),(0,l.jsx)("div",{className:(0,ec.Z)("col-span-full md:col-start-9 md:col-span-4 h-full relative pt-14",o&&"md:!col-start-1 md:!row-start-1"),children:(0,l.jsxs)("div",{className:"aspect-square w-full relative md:sticky md:top-24",children:[(0,l.jsx)("div",{style:c,className:"absolute aspect-square w-[85%] bottom-0 left-0 rounded-xl overflow-hidden z-[2]",children:i[0]&&(0,l.jsx)(et.default,{image:i[0],aspect:1,className:"!absolute inset-0",imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, 40vw")})}),(0,l.jsx)("div",{style:c,className:"absolute aspect-square w-[85%] top-0 right-0 rounded-xl overflow-hidden",children:i[1]&&(0,l.jsx)(et.default,{image:i[1],aspect:1,className:"!absolute inset-0",imageSizes:"(max-width: ".concat(eh().md,"px) 100vw, 40vw")})})]})})]})},treatmentSummary:tV.default,typeformEmbed:tO.default};function tq(e){let{page:t,site:n}=e,r=null==t?void 0:t.slices;return(0,F.useMemo)(()=>{let e=function(e,t,n,r){let a=[],i={slices:[]};return a.push(i),j()(t,t=>{if("colorChanger"===t._type)i={colorData:t,slices:[]},a.push(i);else{if(!n[t._type]){let e=(0,l.jsx)(tt,{data:t},t._key);i.slices.push({component:e,slice:t})}let a=n[t._type];if(a){let n=(0,l.jsx)(a,{data:t,page:e,site:r,colorData:i.colorData},"slice-".concat(e._id,"-").concat(t._key));i.slices.push({component:n,slice:t})}}}),eu()(a,e=>{let{slices:t}=e;return t.length>0})}(t,r,tW,n);return k()(e,(e,n)=>{let{colorData:r,slices:a}=e,i=null==r?void 0:r.bgColor;return(0,l.jsx)(el.default,{theme:i,className:(0,ec.Z)(n>0&&"pt-section md:pt-section-md"),children:a.map(e=>{let{component:t}=e;return t})},"group-".concat(t._id,"-").concat(n))})},[t,r])}function tU(e){var t,n;let{page:r,site:a,draftEnabled:i}=e,s=function(e){var t,n,l,r;let a=null==e?void 0:null===(n=e.slices)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t._type,i=null==e?void 0:null===(r=e.slices)||void 0===r?void 0:null===(l=r[0])||void 0===l?void 0:l.variant;
1return a&&H.includes(a)&&V.includes(i)}(r),o=function(e){var t,n,l,r;let a=null==e?void 0:null===(n=e.slices)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t._type,i=null==e?void 0:null===(r=e.slices)||void 0===r?void 0:null===(l=r[0])||void 0===l?void 0:l.variant;return!("heroSlice"===a&&"homepage"===i)}(r),c=function(e){var t,n,l,r;let a=[null==e?void 0:null===(n=e.slices)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t._type,null==e?void 0:null===(r=e.slices)||void 0===r?void 0:null===(l=r[1])||void 0===l?void 0:l._type];return a.includes("errorSlice")}(r),d=null==r?void 0:null===(n=r.slices)||void 0===n?void 0:null===(t=n.find(e=>"colorChanger"===e._type))||void 0===t?void 0:t.bgColor,{notification:u,popup:m}=a,h=!!((null==u?void 0:u.title)||!y()(null==u?void 0:u.copy)),p=(null==m?void 0:m.enabled)===!0&&!!(null==m?void 0:m.popupReference),x="practitioner"===r._type;return(0,l.jsxs)(J.default,{page:r,children:[i&&(0,l.jsx)(W,{}),(0,l.jsx)(K.default,{site:a,isErrorPage:c,errorPageColour:d,transparent:s,border:o}),h&&(0,l.jsx)(Q.default,{data:u}),p&&(0,l.jsx)(Y.default,{data:m.popupReference}),(0,l.jsxs)("main",{className:"flex flex-col items-center justify-between",children:[(0,l.jsx)(es.default,{children:(0,l.jsx)(eo.default,{})}),(0,l.jsx)(U.default,{}),(0,l.jsx)(O.default,{}),(0,l.jsx)(tq,{page:r,site:a}),x&&(0,l.jsx)(ei,{page:r,site:a}),(0,l.jsx)(q.default,{page:r,hasNotification:h})]})]})}function tJ(e){var t;let{page:n,site:r,slug:a,previewToken:i}=e,s=u(!0),o=(0,F.useMemo)(()=>{let e=a;return z()(e)===r.slug&&(e=null==e?void 0:e.slice(1)),e},[r,a]),[c]=(0,B.y)(n,s,{siteId:r._id,parentSiteId:(null===(t=r.parent)||void 0===t?void 0:t._id)||null,slug:G()(o)||"home",fullSlug:null==o?void 0:o.join("/")}),[d,m]=(0,F.useState)(null);return((0,F.useEffect)(()=>{let e=async()=>{let e=(0,R.Dc)(i),t=null==c?void 0:c.page;t&&m(await E(t,e))};e()},[c,i]),d)?(0,l.jsx)(tU,{page:d,site:r,draftEnabled:!0}):(0,l.jsx)("div",{className:"px-8 py-16",children:(0,l.jsx)("h2",{children:"Loading Preview Page..."})})}},79185:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var l=n(57437),r=n(87493),a=n(2265),i=n(13900);function s(e){let{children:t,previewToken:n}=e,s=(0,a.useMemo)(()=>(0,i.Dc)(n),[n]);return(0,l.jsx)(r.J,{client:s,children:t})}},15843:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var l=n(57437),r=n(42743),a=n(63099),i=n(57042),s=n(2265),o=n(96533),c=n(50781),d=n(64437),u=n(91835),m=n(34936),h=n(36835);function p(e){var t,n,r,s,c,p;let{hasNotification:f}=e,v=(0,m.W4)(),{aoc:g,businessName:b,abn:j,copyright:w,linkBlocks:y}=(null==v?void 0:null===(t=v.footer)||void 0===t?void 0:t.footerReference)||{},N=(null===(n=v.theme)||void 0===n?void 0:n.footerColor)||(null===(s=v.parent)||void 0===s?void 0:null===(r=s.theme)||void 0===r?void 0:r.footerColor)||(null===(p=v.root)||void 0===p?void 0:null===(c=p.theme)||void 0===c?void 0:c.footerColor),k=(null==y?void 0:y.length)>4;return(0,l.jsx)(h.default,{theme:"footerColor",children:(0,l.jsxs)(u.Z,{as:"footer",className:(0,i.Z)("pt-16 pb-9 footer",f?"pb-20":"pb-9"),contain:!0,grid:!0,gutter:"lg",bottomMargin:!1,children:[(0,l.jsx)("div",{className:"col-span-full md:col-span-6 downMd:mb-4",children:(0,l.jsx)(o.Z,{className:"w-[9rem]",light:(0,a.DP)(N),footer:!0})}),(0,l.jsx)("div",{className:"col-span-full md:col-span-6 md:col-start-7 md:mb-[7rem] downMd:mb-4",children:(0,l.jsx)(d.default,{content:g})}),(0,l.jsx)("div",{className:"col-span-full w-full h-[1px] bg-neutralGrey200 md:hidden"}),null==y?void 0:y.map((e,t)=>{let n=k&&3===t;return(0,l.jsxs)("div",{className:(0,i.Z)("col-span-3 md:mb-[7rem]",n&&"md:hidden",k&&t===y.length-1&&"downMd:hidden"),children:[(0,l.jsx)(x,{block:e}),k&&1===t&&(0,l.jsx)(x,{block:y[3],className:"mt-6 hidden md:flex"})]},e._key)}),(0,l.jsx)("div",{className:"col-span-full w-full h-[1px] bg-neutralGrey200 md:hidden row-start-6 downMd:mt-4"}),k&&(0,l.jsx)("div",{className:"col-span-3 md:hidden downMd:row-start-7",children:(0,l.jsx)(x,{block:y[y.length-1],showTitle:!1})}),(0,l.jsx)("div",{className:"md:col-span-6 col-span-full downMd:!text-14 downMd:row-start-8 downMd:mt-4",children:null==w?void 0:w.replace("{YEAR}",new Date().getFullYear())}),(0,l.jsxs)("div",{className:(0,i.Z)(k&&"col-span-3",!k&&"col-span-full","downMd:!text-14 md:col-span-6 md:text-right flex downMd:flex-col md:justify-end md:gap-4 downMd:row-start-7"),children:[b&&(0,l.jsx)("span",{className:"opacity-60",children:b}),j&&(0,l.jsxs)("span",{children:["ABN: ",j]})]})]})})}function x(e){let{block:t,showTitle:n=!0,className:a}=e,{title:o,links:d}=null!=t?t:{},u=(0,s.useMemo)(()=>({menu_selection:o}),[o]),[m,h]=(0,r.Z)();return(0,l.jsxs)("div",{className:(0,i.Z)("flex flex-col downMd:!text-14",a),children:[n&&(0,l.jsx)("div",{className:"font-[500] mb-6",children:o}),(0,l.jsx)("div",{className:"flex flex-col items-start",children:null==d?void 0:d.map((e,t)=>(0,l.jsx)(c.default,{link:e,eventName:"footer_link_click",location:"Footer Menu",trackProps:u,...h(t),className:(0,i.Z)("transition-opacity duration-300 ease-expo-out pb-1",m(t)?"opacity-100":"opacity-20")},e._key))})]})}},1210:function(e,t,n){"use strict";let l;n.r(t),n.d(t,{FormContext:function(){return A},default:function(){return R}});var r=n(57437),a=n(57042),i=n(96778),s=n.n(i),o=n(45100),c=n.n(o),d=n(2265),u=n(93540),m=n(37327),h=n(64437);let p={full:"col-span-full","1/2":"col-span-full md:col-span-6","1/3":"col-span-full md:col-span-4","1/4":"col-span-6 md:col-span-3"};function x(e){let{children:t,size:n}=e,l=p[n]||p.full;return(0,r.jsx)("div",{className:l,children:t})}var f=e=>{let{text:t,margin:n="mt-2"}=e;return s()(t)?null:(0,r.jsx)(h.default,{content:t,className:(0,a.Z)(n,"opacity-75 text-12")})},v=e=>{let{children:t,required:n}=e,{formState:{state:{modal:l}}}=(0,d.useContext)(A);return(0,r.jsxs)("label",{className:(0,a.Z)(l?"text-14 mb-2":"text-14 md:text-18 mb-6","block"),children:[t,n?"*":""]})},g=n(56265),b=n(41873),j=n.n(b);let w=e=>{let{option:t,selected:n,onClick:l}=e,i=(0,d.useCallback)(e=>{e.preventDefault(),null==l||l(e,t)},[l,t]),{label:s,value:o,image:c}=t;return(0,r.jsxs)("button",{onClick:i,className:(0,a.Z)("border border-neutralGrey200 p-4 transition-colors duration-150",n?"hover:bg-primary200 bg-primary200":"hover:bg-neutralGrey100"),children:[(0,r.jsx)("div",{className:"font-medium mb-2",children:s}),(0,r.jsx)(g.default,{contain:!0,image:c,aspect:560/230,imageSizes:"(max-width: ".concat(j().md,"px) 50vw, (max-width: ").concat(j()["max-content"],"px) 33vw, ").concat(Math.round(j()["max-content"]/3),"px")}
1)]},o)};var y=n(34936),N=e=>{let{className:t,as:n="input",error:l,...i}=e;return(0,r.jsx)(n,{className:(0,a.Z)(t,"bg-neutralGrey100 text-neutralGrey100-foreground w-full px-4 py-2 min-h-[3rem] border border-transparent focus:bg-neutralGrey200 outline-none",l&&"border-error","textarea"===n?"rounded-3xl":"rounded-full "),...i})},k=n(11049),C=e=>{let{id:t,children:n,checked:l,...i}=e;return(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{className:"opacity-0 absolute pointer-events-none",type:"radio",...i,id:t}),(0,r.jsx)("div",{className:"h-5 w-5 absolute left-0 rounded-full border border-current flex justify-center items-center pointer-events-none",children:(0,r.jsx)("div",{className:(0,a.Z)("h-3 w-3 rounded-full bg-current transition-transform duration-100",l?"scale-100":"scale-0")})}),(0,r.jsx)("label",{className:"cursor-pointer inline-block pl-8",htmlFor:t,checked:l,readOnly:!0,children:n})]})};function _(e){let{field:t}=e,{text:n,size:l}=t;return(0,r.jsx)(x,{size:l,children:(0,r.jsx)(h.default,{content:n,className:"text-12"})})}function Z(e){let{field:t,onChange:n}=e,{fieldType:l,helpCopy:a,size:i,required:s,label:o,name:c,placeholder:u,rows:m}=t,{getFieldValue:h}=(0,d.useContext)(A),p=(0,d.useCallback)(e=>{n(c,e.target.value)},[c,n]);return(0,r.jsxs)(x,{size:i,children:[(0,r.jsx)(v,{required:s,children:o}),(0,r.jsx)(N,{type:"email"===l?"email":"number"===l?"number":"phone"===l?"tel":"text",as:"textMultiline"===l?"textarea":"input",name:c,required:s,value:h(c),onChange:p,placeholder:u,rows:m}),(0,r.jsx)(f,{text:a})]})}let L={text:Z,textMultiline:Z,email:Z,phone:Z,radio:function(e){let{field:t,onChange:n}=e,{size:l,name:a,label:i,required:s,options:o,helpCopy:c}=t,{getFieldValue:u}=(0,d.useContext)(A),m=(0,d.useCallback)(e=>{e.target.checked&&n(a,e.target.value)},[a,n]);return(0,r.jsx)(x,{size:l,children:(0,r.jsxs)("div",{className:"col-span-full",children:[(0,r.jsx)(v,{required:s,children:i}),(0,r.jsx)(f,{text:c,margin:"mb-2"}),(0,r.jsx)("div",{className:"flex gap-10",children:null==o?void 0:o.map(e=>(0,r.jsx)(C,{checked:u(a)===e.value,id:"".concat(a,"-").concat(e.value),name:a,value:e.value,onChange:m,children:e.label},e.value))})]})})},radioWithImages:function(e){let{field:t,onChange:n}=e,{size:l,name:a,label:i,required:s,options:o,helpCopy:c}=t,{getFieldValue:u}=(0,d.useContext)(A),m=(0,d.useCallback)((e,t)=>{n(a,t.value)},[a,n]);return(0,r.jsxs)(x,{size:l,children:[(0,r.jsx)(v,{required:s,children:i}),(0,r.jsx)(f,{text:c,margin:"mb-2"}),(0,r.jsx)("div",{className:"h-0 pointer-events-none overflow-hidden",children:null==o?void 0:o.map(e=>{let{value:t}=e;return(0,r.jsx)("input",{required:!0,type:"radio",name:"smile_type",value:t,checked:u(a)===t,readOnly:!0},t)})}),(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 md:gap-4",children:null==o?void 0:o.map(e=>(0,r.jsx)(w,{option:e,onClick:m,selected:u(a)===e.value},e.value))})]})},checkbox:function(e){let{field:t,onChange:n}=e,{size:l,name:i,label:s,required:o,options:c,helpCopy:u}=t,{getFieldValue:m}=(0,d.useContext)(A),h=m(i),p=(0,d.useCallback)(e=>{n(i,{...h||{},[e.target.value]:e.target.checked})},[i,n,h]);return(0,r.jsxs)(x,{size:l,children:[(0,r.jsx)(v,{required:o,children:s}),(0,r.jsx)(f,{text:u,margin:"mb-2"}),(0,r.jsx)("div",{className:"flex gap-10",children:null==c?void 0:c.map(e=>(0,r.jsx)("div",{children:(0,r.jsxs)("label",{className:"cursor-pointer inline-block relative",htmlFor:"".concat(i,"-").concat(e.value),children:[(0,r.jsx)("input",{className:"opacity-0",type:"checkbox",checked:null==h?void 0:h[e.value],value:e.value,name:i,onChange:p,id:"".concat(i,"-").concat(e.value)}),(0,r.jsx)("span",{className:(0,a.Z)("absolute left-0 top-1/2 -translate-y-1/2 h-5 w-5 bg-neutralGrey100 border border-neutralGrey300",(null==h?void 0:h[e.value])&&"bg-primary500 after:scale-150 after:absolute after:top-1/2 after:left-1/2 after:rotate-45 after:-translate-x-1/2 after:-translate-y-1/2 after:w-1 after:h-2 after:border-r-2 after:border-b-2 after:border-backgroundColor-foreground")}),(0,r.jsx)("span",{className:"inline-block ml-6",children:e.label})]})},e.value))})]})},checkboxWithImages:function(e){let{field:t,onChange:n}=e,{size:l,name:a,label:i,required:s,options:o,helpCopy:c}=t,{getFieldValue:u}=(0,d.useContext)(A),m=u(a),h=(0,d.useCallback)((e,t)=>{let{value:l}=t,r=(m||{})[l];n(a,{...m||{},[l]:!r})},[m,a,n]);return(0,r.jsxs)(x,{size:l,children:[(0,r.jsx)(v,{required:s,children:i}),(0,r.jsx)(f,{text:c,margin:"mb-2"}),(0,r.jsx)("div",{className:"h-0 pointer-events-none overflow-hidden",children:null==o?void 0:o.map(e=>{let{value:t}=e;return(0,r.jsx)("input",{required:!0,type:"checkbox",name:"smile_type",value:t,checked:null==m?void 0:m[t],readOnly:!0},t)})}),(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2 md:gap-4",children:null==o?void 0:o.map(e=>(0,r.jsx)(w,{option:e,onClick:h,selected:null==m?void 0:m[e.value]},e.value))})]})},dropdown:function(e){let{field:t,onChange:n,className:l,error:i}=e,{getFieldValue:s}=(0,d.useContext)(A),{name:o,helpCopy:c,label:u,required:m,size:h,options:p,showPlaceholderOption:g,placeholder:b}=t,j=(0,d.useCallback)(e=>{n(t.name,e.target.value)},[t,n]),w=s(o);return(0,r.jsxs)(x,{size:h,children:[(0,r.jsx)(v,{required:m,children:u}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{name:o,onChange:j,value:w,required:m,className:(0,a.Z)(l,"bg-neutralGrey100 text-neutralGrey100-foreground rounded-full w-full pl-4 pr-8 py-2 min-h-[3rem] border border-transparent focus:bg-neutralGrey200 outline-none","appearance-none cursor-pointer",i&&"border-error"),children:[g&&(0,r.jsx)("option",{value:"",children:b||"Please select"}),null==p?void 0:p.map(e=>{let{label:t,value:n}=e;return(0,r.jsx)("option",{value:n,children:t},n)})]}),(0,r.jsx)(k.Z,{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none"})]}),(0,r.jsx)(f,{text:c})]})},number:Z,hidden:function(e){let{field:t}=e,{name:n}=t,{getFieldValue:l}=(0,d.useContext)(A);return(0,r.jsx)("input",{type:"hidden",value:l(n),name:n})},computed:function(e){let{field:t}=e,n=(0,y.W4)(),{size:l,label:a,helpCopy:i,name:s,computedValue:o}=t;return"practice"!==o?null:(0,r.jsxs)(x,{size:l,children:[(0,r.jsx)(v,{children:a}),(0,r.jsx)(N,{name:s,value:n.title,readOnly:!0}),(0,r.jsx)(f,{text:i})]})}};function T(e){let{field:t,onChange:n}=e;if("readonlyText"===t._type)return(0,r.jsx)(_,{field:t});let l=L[t.fieldType];return l?(0,r.jsx)(l,{field:t,onChange:n}):(0,r.jsxs)("div",{className:"col-span-full",children:["Unknown Field Type ",t.fieldType]})}let M=(0,d.forwardRef)((e,t)=>{let{className:n}=e,i=(0,d.useRef)();return(0,d.useLayoutEffect)(()=>{let e=()=>{window.grecaptcha&&i.current&&0===i.current.children.length&&(l=window.grecaptcha.render("inline-badge",{sitekey:"".concat("6LclilopAAAAABfYbVl3ALY1asN5b5vcQhNANalv"),badge:"inl
1ine",size:"invisible"}))};if(document.getElementById("google-recaptcha")){e();return}window.onRecaptchaLoadCallback=()=>{e()};let t=document.createElement("script");t.src="https://www.google.com/recaptcha/api.js?render=explicit&onload=onRecaptchaLoadCallback",t.id="google-recaptcha",document.body.appendChild(t)},[]),(0,d.useImperativeHandle)(t,()=>({getToken:async e=>new Promise((t,n)=>{window.grecaptcha.ready(function(){window.grecaptcha.execute(l,{action:e}).then(e=>{t(e)}).catch(e=>{n(e)})})})}),[]),(0,r.jsx)("div",{className:(0,a.Z)(n),id:"inline-badge",ref:i})}),S=(e,t)=>"computed"===t.fieldType&&"practice"===t.computedValue?e.title:t.initialValue,P=(e,t,n)=>{let l=c()(e.fields,(e,n)=>("field"===n._type&&(e[n.name]={value:S(t,n),dirty:!1,error:null,label:n.label}),e),{});return{fields:l,site:{value:{_id:t._id,title:t.title,siteType:t.siteType,slug:t.slug}},state:{success:!1,error:!1,loading:!1,modal:n}}},A=d.createContext(),E=(0,d.forwardRef)((e,t)=>{var n;let{modal:l,site:i,formSchema:o,dialogCopy:c}=e,p=(0,d.useRef)(),[x,f]=(0,d.useState)(P(o,i,l)),{state:{error:v,success:g,loading:b}}=x,{successPageTile:j,successPageCopy:w,submitButtonLabel:y}=o,N=(0,m.useTracker)();(0,d.useImperativeHandle)(t,()=>({reset:()=>{f(P(o,i,l))}}),[o,i,l]),(0,d.useEffect)(()=>{l||N("form_start",{form_name:o.title})},[l,N,o]);let k=(0,d.useCallback)(()=>{let e=e=>{f(t=>({...t,state:{...t.state,...e}}))},t=async()=>{try{let t=await p.current.getToken("submit"),n=await fetch("/api/form",{method:"POST",body:JSON.stringify({fields:x.fields,site:x.site,formId:o._id,token:t,action:"submit"})});n.ok?(N("form_submit",{form_name:o.title}),e({success:!0,error:!1,loading:!1})):e({success:!1,error:n.statusText,loading:!1})}catch(t){e({success:!1,error:"Error submitting form",loading:!1})}};e({loading:!0}),t()},[o,x.fields,x.site,N]),C=(0,d.useCallback)((e,t)=>{f(n=>{var l;return{...n,fields:{...n.fields,[e]:{...(null===(l=n.fields)||void 0===l?void 0:l[e])||{},value:t,error:null,dirty:!0}}}})},[]),_=(0,d.useMemo)(()=>({formState:x,updateFieldValue:C,getFieldValue:e=>{var t;return null===(t=x.fields[e])||void 0===t?void 0:t.value},getField:e=>x.fields[e]}),[x,C]);return(0,r.jsxs)(A.Provider,{value:_,children:[g&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"mb-4",children:j}),(0,r.jsx)(h.default,{content:w})]}),!g&&(0,r.jsxs)(r.Fragment,{children:[!s()(c)&&(0,r.jsx)(h.default,{content:c,className:"mb-8"}),(0,r.jsxs)("form",{className:"grid grid-cols-6 md:grid-cols-12 w-full gap-10 overflow-hidden relative",action:k,children:[null==o?void 0:null===(n=o.fields)||void 0===n?void 0:n.map((e,t)=>(0,r.jsx)(T,{field:e,onChange:C},"".concat(t,"-").concat(e.name))),(0,r.jsxs)("div",{className:"col-span-full",children:[v&&(0,r.jsx)("div",{className:"mb-4 text-error font-medium text-18 p-2 border border-error bg-neutralGrey100",children:v}),(0,r.jsx)(u.Z,{variant:"primary",type:"submit",disabled:b,button:!0,className:(0,a.Z)(l&&"w-full"),innerClassName:(0,a.Z)(l&&"w-full"),children:b?"Submitting...":y||"Submit Enquiry"})]}),(0,r.jsx)(M,{className:"col-span-full flex justify-end mt-4",ref:p})]})]})]})});var R=E},71223:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var l=n(57437),r=n(23890),a=n(2265),i=n(42089),s=n(34936),o=n(52758),c=n(1210),d=n(94493);function u(){let e=(0,s.W4)(),t=(0,a.useRef)(),[n,u]=(0,r.KO)(d.BN),m=(0,r.Dv)(d.sp),[h,p]=(0,a.useState)(),[x,f]=(0,a.useState)();(0,a.useEffect)(()=>{if(!m)return;let e=new AbortController,t=async()=>{let t=e.signal;try{let e=await fetch("/api/form/".concat(m),{method:"get",signal:t});e.ok&&f(await e.json())}finally{p(!1)}};return p(!0),t(),()=>{e.abort()}},[m]);let v=(0,a.useCallback)(()=>{u(!1)},[u]);(0,a.useEffect)(()=>{var e;null===(e=t.current)||void 0===e||e.reset()},[n]);let g=null==x?void 0:x.dialogTitle;return(0,l.jsxs)(i.Z,{title:h?" ":g,isOpen:n,side:"left",onClose:v,widthClasse
1s:"w-full max-w-[800px]",children:[h&&(0,l.jsxs)("div",{className:"absolute inset-0 flex justify-center items-center flex-col z-50 bg-[rgba(255,255,255,0.5)]",children:[(0,l.jsx)("span",{className:"text-18 font-medium block mb-4",children:"Loading Form..."}),(0,l.jsx)(o.Z,{})]}),!h&&x&&(0,l.jsx)(c.default,{modal:!0,site:e,formSchema:x,ref:t,dialogCopy:x.dialogCopy})]})}},94493:function(e,t,n){"use strict";n.d(t,{BN:function(){return i},sp:function(){return s},u9:function(){return o}});var l=n(77665),r=n(23890),a=n(2265);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};let i=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Forms/formState.js/openAtom",(0,l.cn)(!1)),s=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Forms/formState.js/formIdAtom",(0,l.cn)(null)),o=e=>{let t=(0,r.b9)(i),n=(0,r.b9)(s);return(0,a.useCallback)(()=>{t(!0),n(e)},[e,n,t])}},37327:function(e,t,n){"use strict";n.r(t),n.d(t,{GoogleTagManagerContext:function(){return s},default:function(){return c},useTracker:function(){return o}});var l=n(57437),r=n(10940),a=n(2265),i=n(34936);let s=a.createContext(),o=()=>{let e=(0,a.useContext)(s);return null==e?void 0:e.track};function c(e){let{page:t,children:n}=e,o=(0,i.W4)(),c=(0,r.Z)(),d=(0,a.useCallback)(function(e){var n,l,r,a,i,s,d;let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.dataLayer=window.dataLayer||[];let m=null===(n=c(t))||void 0===n?void 0:n.url,h={parent_group:"master"===o.siteType?o.title:(null==o?void 0:null===(l=o.parent)||void 0===l?void 0:l.title)||(null===(r=o.group)||void 0===r?void 0:r.slug),practice_name:"master"===o.siteType?"Parent Group Page":null==o?void 0:o.title,page_name:null==t?void 0:t.title,page_url:m,practice_suburb:null==o?void 0:null===(i=o.practice)||void 0===i?void 0:null===(a=i.address)||void 0===a?void 0:a.suburb,practice_state:null==o?void 0:null===(d=o.practice)||void 0===d?void 0:null===(s=d.address)||void 0===s?void 0:s.state,event:e,...u};window.dataLayer.push(function(){this.reset()}),window.dataLayer.push(h)},[o,t,c]),u=(0,a.useMemo)(()=>({track:d}),[d]);return(0,a.useEffect)(()=>{(null==t?void 0:t._type)==="error"?d("site_error",{error_code:t.errorCode,error_description:t.errorDescription,button_link:window.location.href}):d("page-view")},[t]),(0,l.jsx)(s.Provider,{value:u,children:n})}},96533:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var l=n(57437),r=n(70779),a=n(57042),i=n(2265),s=n(61088),o=n(50781),c=n(34936);function d(e){var t,n,d;let{className:u,light:m=!1,footer:h}=e,p=(0,c.W4)(),x=(0,r.b5)(p,"headerLogoDark"),f=(0,r.b5)(p,"headerLogoLight"),v=(0,r.b5)(p,"simpleLogo")||x,g=(0,i.useMemo)(()=>({url:p.siteUrl?"/":"/".concat(p.slug)||0}),[p]),b=(null==x?void 0:null===(t=x.asset)||void 0===t?void 0:t.metadata.dimensions.aspectRatio)*2.625,j=(null==p?void 0:p.siteType)==="practice"&&(null==p?void 0:p.parent),w=(null==p?void 0:p.siteType)==="practice"&&(null==p?void 0:null===(n=p.parent)||void 0===n?void 0:n.slug)==="united",y=null==p?void 0:p.title;return(0,l.jsxs)(o.default,{className:"relative block w-fit",to:g.url,"aria-label":p.title,eventName:"nav_bar_click",location:"Top Nav Bar",children:[!j&&x&&(0,l.jsx)("img",{src:x.asset.url,alt:x.asset.altText||y,className:(0,a.Z)("h-10 max-w-full 2xl:max-w-[19rem] transition-[opacity,_transform] duration-250 ease-in-out",u,m?"opacity-0":"opacity-100"),style:{width:"".concat(b,"rem")}}),!j&&f&&(0,l.jsx)("img",{src:f.asset.url,alt:f.asset.altText||y,className:(0,a.Z)("h-10 max-w-full 2xl:max-w-[19rem] transition-[opacity,_transform] duration-250 ease-in-out absolute left-0 top-0",u,m?"opacity-100":"opacity-0"),style:{width:"".concat(b,"rem")}}),j&&(0,l.jsxs)("div",{className:(0,a.Z)("h-9 flex gap-4 items-center",w&&h&&"!h-12"),children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("img",{src:v.asset.url,alt:v.asset.altText||y,className:(0,a.Z)("h-9 max-w-full 2xl:max-w-[19rem] transition-opacity duration-250 ease-in-out",m?"opacity-0":"opacity-100",w&&h&&"!h-12")}),(0,l.jsx)(s.Z,{image:v,className:(0,a.Z)(w&&h?"!h-12":"!h-9","!w-auto max-w-full 2xl:max-w-[19rem] absolute top-0 left-0 transition-opacity duration-250 ease-in-out text-foreground",m?"opacity-100":"opacity-0",w&&h&&"!h-12")})]}),w&&h&&(0,l.jsx)("div",{className:"mt-1 w-px h-[1.8rem] lg:h-[2.2rem] bg-secondary500 opacity-70"}),(0,l.jsxs)("div",{className:"font-heading leading-[1.14em] text-14 downMd:text-[14px]",children:[!w&&(0,l.jsx)("div",{className:(0,a.Z)("hidden md:block transition-colors duration-250 ease-in-out",m?"text-[white]":"text-secondary500"),children:null==p?void 0:null===(d=p.parent)||void 0===d?void 0:d.title}),(0,l.jsx)("div",{className:(0,a.Z)("transition-colors duration-250 ease-in-out",m?"text-[white]":w?"text-secondary500":"text-secondary400",w&&h&&"text-14 lg:text-20"),children:null==p?void 0:p.title}),w&&h&&(0,l.jsx)("p",{className:"text-12 opacity-70",children:"Proudly part of National Dental Care"})]})]})]})}},38594:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ea}});var l=n(57437),r=n(63099),a=n(57042),i=n(42815),s=n(23890),o=n(2265),c=n(91835),d=n(34936),u=n(11049),m=n(41873),h=n.n(m),p=n(50781),x=n(64437),f=n(93569),v=n(61132),g=n(77665);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};let b=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Header/state.js/menuOpenAtom",(0,g.cn)(!1)),j=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Header/state.js/activeMenuIdAtom",(0,g.cn)(null)),w=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Header/state.js/bannerOpenAtom",(0,g.cn)(!1));function y(){let e=(0,s.b9)(j);return(0,o.useCallback)(()=>{e(null)},[e])}let N=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Header/state.js/activeMobileMenuSectionAtom",(0,g.cn)(null)),k=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Header/state.js/activeMobileMenuSubSectionAtom",(0,g.cn)(null));function C(e){let{banner:t,isVisible:n,transparent:r}=e,[d,m]=(0,s.KO)(w),v=(0,o.useRef)(),g=(0,o.useRef)(),b=(0,o.useRef)(),j=(0,o.useRef)(),y=(0,o.useCallback)(()=>{m(e=>!e)},[m]),N=(0,o.useCallback)(()=>{m(!1)},[m]);(0,o.useEffect)(()=>{i.ZP.to(v.current,{y:d?j.current.getBoundingClientRect().height:"-100%",duration:.2}),i.ZP.to(g.current,{y:d?0:"100%",duration:.2})},[d]),(0,f.Be)(d);let k=(0,o.useRef)({}),C=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.6,l=null!==t&&n,r=i.ZP.timeline(),a={duration:e,ease:"expo.out"};return r.to(j.current,{y:l?"0":"-100%",...a}),r.add(function(e){let t=window.innerWidth>h().md;return i.ZP.set(".mobile-nav, .desktop-nav",{"--header-height":t?e?"7.5rem":"5.5rem":e?"5.75rem":"3.75rem"})}(l)),r.to(b.current,{height:l?"2rem":"0",...a},0),k.current=r,r},[t,n]);(0,o.useEffect)(()=>{let e=C();return()=>{e.kill()}},[n,C]);let _=(0,o.useCallback)(()=>{C(0)},[C]);if((0,o.useEffect)(()=>(window.addEventListener("resize",_),()=>{window.removeEventListener("resize",_)}),[_]),!t)return null;let{copy:Z,leftLinks:L,rightLinks:T}=t;return(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsxs)(c.Z,{as:"div",gutter:"default",bottomMargin:!1,className:(0,a.Z)(r&&!d?"text-backgroundColor":"text-neutralGrey100-foreground",r?"border-b-neutralGrey100Opacity50":"border-b-neutralGrey200","absolute inset-0 text-12 z-top-banner w-full border-b h-8 flex items-center justify-end"),ref:j,children:[(0,l.jsx)("div",{className:(0,a.Z)("absolute inset-0 bg-neutralGrey100 z-0 transition-opacity duration-250 ease-in-out pointer-events-none",r&&!d?"opacity-0":"opacity-100")}),(0,l.jsxs)("button",{className:"h-full relative w-full flex items-center justify-between md:justify-end gap-2 z-20",onClick:y,children:[(0,l.jsx)(x.default,{content:Z,className:"relative"}),(0,l.jsx)(u.Z,{className:(0,a.Z)("transition-transform duration-300",d&&"-scale-y-100")})]}),(0,l.jsx)("div",{className:(0,a.Z)("absolute top-0 left-0 right-0 overflow-hidden bg-neutralGrey100 -translate-y-full z-10"),ref:v,children:(0,l.jsxs)(c.Z,{as:"div",gutter:"default",bottomMargin:!1,className:(0,a.Z)(r?"border-b-neutralGrey100Opacity50":"border-b-neutralGrey200","font-medium border-b md:h-header-height-md text-left md:flex items-center justify-between translate-y-full"),ref:g,children:[(0,l.jsx)("ul",{className:"block md:flex items-center gap-6 py-4",children:null==L?void 0:L.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(p.default,{className:"underline hover:no-underline",link:e,target:"_blank",onClick:N,eventName:"endorsement_bar_click",location:"Endorsement Bar"})},t))}),(0,l.jsx)("ul",{className:"block md:flex items-center gap-6 py-4",children:null==T?void 0:T.map((e,t)=>(0,l.jsx)("li",{children:(0,l.jsx)(p.default,{className:"underline hover:no-underline",link:e,target:"_blank",onClick:N,eventName:"endorsement_bar_click",location:"Endorsement Bar"})},t))})]})})]}),(0,l.jsx)("div",{className:"h-8 w-full",ref:b})]})}var _=n(53717);function Z(){return(0,l.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",children:(0,l.jsx)("path",{d:"M2 12V10.6667H14V12H2ZM2 8.66667V7.33333H14V8.66667H2ZM2 5.33333V4H14V5.33333H2Z",fill:"currentColor"})})}var L=n(93540);function T(e){let{className:t}=e,[n,r]=(0,s.KO)(b),a=(0,o.useCallback)(()=>{r(e=>!e)},[r]);return(0,l.jsx)("li",{children:(0,l.jsx)(L.Z,{className:t,onClick:a,iconButton:!0,"aria-label":"Menu",children:n?(0,l.jsx)(_.Z,{}):(0,l.jsx)(Z,{})})})}var M=n(96533),S=n(10940);function P(e){let{item:t,className:n,variant:r}=e,[i,c]=function(e){let[t,n]=(0,s.KO)(j),l=(0,o.useCallback)(()=>{n(t===e?null:e)},[e,t,n]);(0,v.Z)(()=>{n(null)});let r=t===e;return[l,r]}(null==t?void 0:t._key),d=(0,o.useCallback)(()=>{i()},[t,i]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(L.Z,{variant:r,onClick:d,className:(0,a.Z)(n,"flex items-center"),children:[(0,l.jsx)("span",{children:t.title}),(0,l.jsx)(u.Z,{className:(0,a.Z)("inline-block ml-2 transition-transform duration-300",c&&"-scale-y-100")})]})})}let A=e=>{var t;let{item:n,className:r}=e,i=(0,S.Z)(),s=(0,o.useMemo)(()=>{var e;let t=i(n),l={button:n.text||(null===(e=n.page)||void 0===e?void 0:e.title)};return"book"!==n.linkType&&(l.button_link=null==t?void 0:t.url),l},[n,i]);return(0,l.jsx)("li",{className:(0,a.Z)("relative",r),children:"treatmentsLink"===n._type?(0,l.jsx)(P,{item:n,variant:"transparent"}):(0,l.jsx)(L.Z,{transition:!0,variant:"search"===n.linkType||"book"===n.linkType||"form"===n.linkType?"primary":"transparent",link:n,eventName:"nav_bar_click",location:"Top
1Nav Bar",trackProps:s,children:n.text||(null===(t=n.page)||void 0===t?void 0:t.title)})})};function E(e){let{menuItems:t,gap:n,hideExtraMenuItemsOnMobile:r,children:i}=e;return(0,l.jsx)("nav",{children:(0,l.jsxs)("ul",{className:(0,a.Z)("flex text-14 font-medium",n),children:[null==t?void 0:t.map((e,n)=>(0,l.jsx)(A,{item:e,className:(0,a.Z)(r&&n<t.length-1&&"hidden lg:block")},n)),i]})})}var R=n(25901),B=n(53424),I=n(13139),z=n(96778),D=n.n(z),G=n(52727),F=n.n(G),H=n(83705),V=n.n(H),O=n(56265);function W(e){let{sections:t,shrink:n}=e,r=(0,s.Dv)(j),i=null!==r;return(0,f.Be)(i),(0,l.jsx)("div",{className:(0,a.Z)("downMd:hidden fixed top-var-header-height right-0 left-0 z-headerMenuSections transition-[transform,color] duration-250 ease-in-out desktop-nav",n&&"md:-translate-y-6",i?"pointer-events-all":"pointer-events-none"),children:(0,l.jsx)("div",{className:(0,a.Z)("max-h-[35rem] h-[calc(100svh-var(--header-height))] bg-[white] transition-[transform] duration-[0.6s] ease-expo-out overflow-hidden",i?"translate-y-0":"-translate-y-[150%]"),children:(0,l.jsx)("div",{className:(0,a.Z)("absolute inset-0 transition-[transform] duration-[0.6s] ease-expo-out overflow-auto",i?"translate-y-0":"translate-y-[150%]"),children:null==t?void 0:t.map(e=>(0,l.jsx)(U,{isActive:i,section:e,visible:r===e._key},e._key))})})})}function q(e){let{treatments:t}=(0,d.W4)(),n=(0,o.useMemo)(()=>{var n,l;let r=null!=e&&!!e.automatic&&e.automatic,a=null==e?void 0:null===(n=e.subLinks)||void 0===n?void 0:n.map(e=>({...null==e?void 0:e.link,isManual:!0,allLink:e.allLink,subLinks:e.subLinks}));return r?null===(l=V()(null==t?void 0:t.map(e=>e.category),e=>e._id))||void 0===l?void 0:l.map(e=>({...e,subLinks:t.filter(t=>(null==t?void 0:t.category._id)===e._id)})):a},[e,t]);return n}function U(e){var t,n;let{section:r,isActive:s,visible:d}=e,{hideAllLink:u,allTitle:m,allLink:h,isAutomatic:p}=r,x=(0,o.useRef)(),f=q(r),v=D()(null==f?void 0:null===(t=f[0])||void 0===t?void 0:t.subLinks),g=v&&null!==(n=null==f?void 0:f[0])&&void 0!==n?n:null,[b,j]=(0,o.useState)(g),[w,y]=(0,o.useState)(null),[N,k]=(0,o.useState)(null);(0,o.useEffect)(()=>{s||(y(null),k(null),j(g))},[s,g]),(0,o.useEffect)(()=>{let e=i.ZP.to(x.current.children,{y:s?0:-20,opacity:s?1:0,duration:.6,ease:"expo.out",stagger:s?.1:0});return()=>{null==e||e.kill()}},[s]);let C=(0,o.useCallback)(e=>{var t;j(e),y(e),k(D()(e.subLinks)&&null!==(t=null==e?void 0:e.page)&&void 0!==t?t:null)},[j,y,k]),_=(0,o.useCallback)(e=>{k(e)},[k]),Z=(0,S.Z)(),L=(0,o.useMemo)(()=>{let{text:e,url:t}=Z(N)||{};return{menu_selection:e,button:e,button_link:t}},[Z,N]),T=D()(null==b?void 0:b.subLinks)&&!!(null==b?void 0:b.page);return(0,l.jsxs)(c.Z,{bottomMargin:!1,gutter:"lg",contain:!0,grid:!0,className:(0,a.Z)("h-full",d?"":"hidden"),ref:x,children:[(0,l.jsx)("div",{className:"col-span-4 border-r border-neutralGrey200 h-full py-8 flex flex-col",children:(0,l.jsx)($,{title:p?"All services":m,links:f,isLink:!1,allLink:u?null:h,activeLink:w,onMouseEnter:C})}),T?(0,l.jsx)(J,{page:null==b?void 0:b.page,trackProps:L}):(0,l.jsx)(K,{activeSubSection:b,activeLink:N,subLinkHover:_,trackProps:L,allLink:h})]})}function J(e){var t;let{page:n,trackProps:r}=e,{featuredImage:a}=null!=n?n:{},i=(null==n?void 0:n.excerpt)||(null==n?void 0:null===(t=n.page)||void 0===t?void 0:t.excerpt);return(0,l.jsxs)(p.default,{link:n,className:"col-span-8 h-full py-8 grid grid-cols-2 gap-8",showText:!1,eventName:"nav_bar_click",location:"Top Nav Bar",trackProps:r,children:[(0,l.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(0,l.jsx)(I.Z,{text:i}),(0,l.jsx)(Y,{text:"Learn more",className:"pointer-events-none"})]}),a&&(0,l.jsx)(O.default,{image:a,className:"rounded-lg overflow-hidden"})]})}function K(e){let{activeSubSection:t,activeLink:n,subLinkHover:r,trackProps:a,allLink:i}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"col-span-4 border-r border-neutralGrey200 h-full py-8 flex flex-col",children:t&&(0,l.jsx)($,{title:(null==t?void 0:t.title)||(null==t?void 0:t.text),links:t.subLinks,allLink:t.isManual?(null==t?void 0:t.allLink)?null==t?void 0:t.allLink:null:i,activeLink:n,onMouseEnter:r})}),(0,l.jsx)(p.default,{link:n,className:"col-span-4 h-full py-8 flex flex-col",showText:!1,eventName:"nav_bar_click",location:"Top
1Nav Bar",trackProps:a,children:n&&(0,l.jsx)(Q,{page:n})})]})}function Q(e){var t,n,r;let{page:a}=e,i=(null==a?void 0:a.featuredImage)||(null==a?void 0:null===(t=a.page)||void 0===t?void 0:t.featuredImage),s=(null==a?void 0:a.title)||(null==a?void 0:null===(n=a.page)||void 0===n?void 0:n.title),o=(null==a?void 0:a.excerpt)||(null==a?void 0:null===(r=a.page)||void 0===r?void 0:r.excerpt);return s?(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)(O.default,{image:i,aspect:1.6,className:"rounded-lg mb-4",imageSizes:"(max-width: ".concat(h().md,"px) 50vw, (max-width: ").concat(h()["max-content"],"px) 33vw, ").concat(Math.round(h()["max-content"]/3),"px")}),(0,l.jsx)("div",{className:"text-18 mb-2",children:s}),(0,l.jsx)(I.Z,{className:"text-16 flex-1",text:o}),(0,l.jsx)(Y,{text:"Learn more",className:"pointer-events-none"})]}):null}function Y(e){let{link:t,className:n,menuSelection:r,text:i="See all"}=e,s=(0,S.Z)(),c=(0,o.useMemo)(()=>{var e;return{menu_selection:r,button:i,button_link:null===(e=s(t))||void 0===e?void 0:e.url}},[r,i,s,t]),d=y();return(0,l.jsxs)(p.default,{link:t,className:(0,a.Z)("flex gap-2 items-center text-14",n),showText:!1,eventName:"nav_bar_click",location:"Top Nav Bar",trackProps:c,onClick:d,children:[(0,l.jsx)(R.Z,{className:"text-primary500 shrink-0"}),i]})}function $(e){let{title:t,links:n,isLink:r=!0,allLink:a,activeLink:i,onMouseEnter:s}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-14",children:t}),(0,l.jsx)("div",{className:"flex flex-col mt-8 gap-4 items-start flex-1",children:null==n?void 0:n.map((e,n)=>(0,l.jsx)(X,{link:e,onMouseEnter:s,isLink:r,activeLink:i,menuSelection:t},"".concat(e._id,"-").concat(n)))}),a&&(0,l.jsx)(Y,{link:a,menuSelection:t})]})}let X=e=>{var t,n;let{activeLink:r,link:i,isLink:s,onMouseEnter:c,menuSelection:d}=e,u=(0,S.Z)(),m=(0,o.useMemo)(()=>{let{text:e,url:t}=u(i)||{};return{menu_selection:d,button:e,button_link:t}},[d,u,i]),h=(0,o.useCallback)(()=>{null==c||c(i)},[i,c]),x=!F()(r),f=x&&(r===i||!!(null==i?void 0:i._id)&&r._id===i._id||!!(null==i?void 0:null===(t=i.page)||void 0===t?void 0:t._id)&&(null===(n=r.page)||void 0===n?void 0:n._id)===i.page._id),v=y(),g=(0,o.useCallback)(()=>{s&&v()},[v,s]);return(0,l.jsxs)(p.default,{onMouseEnter:h,className:(0,a.Z)("text-left cursor-pointer transition-colors relative",x&&!f&&"!text-secondary300"),link:(null==i?void 0:i.subLinks)&&!s?null:i,nonLinkTag:"button",showText:!1,eventName:"nav_bar_click",location:"Top Nav Bar",trackProps:m,onClick:g,children:[(0,B.Q)(i),(0,l.jsx)("span",{className:(0,a.Z)("absolute bottom-0 left-0 right-0 h-[1px] bg-current","transition-transform duration-300 ease-expo-out ",f?"scale-x-100 origin-left":"scale-x-0 origin-right")})]})};function ee(e){var t,n;let{className:r,menuItems:i,rightMenuItems:c}=e,d=(0,s.Dv)(b),[u,m]=(0,s.KO)(N),[h,p]=(0,s.KO)(k),x=h?"-200%":u?"-100%":"0%",v=(0,o.useMemo)(()=>i.find(e=>e._key===u),[i,u]);(0,f.Be)(d);let g=(0,o.useMemo)(()=>null==c?void 0:c.find(e=>{var t;return null===(t=e.url)||void 0===t?void 0:t.includes("tel:")}),[c]);return(0,l.jsxs)("div",{className:(0,a.Z)("mobile-nav fixed h-screen w-full z-headerMenuSections bg-backgroundColor pt-var-header-height transition-transform duration-300 ease-expo-out",d?"translate-x-0":"translate-x-full",r),children:[(0,l.jsx)("div",{className:"fixed top-var-header-height mt-[-1px] left-0 right-0 bg-neutralGrey200 h-[1px]"}),(0,l.jsxs)("div",{className:"relative overflow-hidden h-full",children:[(0,l.jsx)("ul",{className:"transition-translate overflow-auto duration-300 ease-expo-out translate-x-[calc(0%+var(--x))]",style:{"--x":x},children:null==i?void 0:i.map(e=>(0,l.jsx)(er,{item:e},e._key))}),g&&(0,l.jsx)(L.Z,{link:g,showText:!1,className:"absolute bottom-5 left-4 right-4",innerClassName:"w-full",children:(n=g.text,/^[0-9]*$/.test(n.trim().replaceAll(" ","")))?"Call us on ".concat(g.text):g.text}),(0,l.jsxs)("ul",{className:"absolute inset-0 overflow-auto transition-translate duration-300 ease-expo-out translate-x-[calc(100%+var(--x))]",style:{"--x":x},children:[(0,l.jsx)("li",{children:(0,l.jsx)(et,{onClick:()=>m(null)})}),(0,l.jsx)(en,{activeSection:v})]}),(0,l.jsxs)("ul",{className:"absolute inset-0 overflow-auto transition-translate duration-300 ease-expo-out translate-x-[calc(200%+var(--x))]",style:{"--x":x},children:[(0,l.jsx)("li",{children:(0,l.jsx)(et,{onClick:()=>p(null)})}),null==h?void 0:null===(t=h.subLinks)||void 0===t?void 0:t.map(e=>(0,l.jsx)(el,{item:e,menuSelection:h.title},e._key))]})]})]})}function et(e){let{onClick:t}=e;return(0,l.jsxs)("button",{onClick:t,className:"sticky top-0 bg-backgroundColor z-10 border-b border-neutralGrey200 flex w-full items-center py-4 px-5 gap-10",children:[(0,l.jsx)(u.Z,{className:"rotate-90 -ml-2"}),(0,l.jsx)("span",{children:"Back"})]})}function en(e){let{activeSection:t}=e,n=q(t);return(0,l.jsx)(l.Fragment,{children:null==n?void 0:n.map(e=>(0,l.jsx)(el,{item:e},e._key))})}function el(e){let{item:t,menuSelection:n}=e,r=(0,s.b9)(k),a=function(){let e=(0,s.b9)(N),t=(0,s.b9)(k),n=(0,s.b9)(b);return(0,o.useCallback)(()=>{e(null),t(null),n(null)},[e,t,n])}(),i=!!t.subLinks,c=i?"button":p.default,d=i?{}:{link:t,showText:!1,eventName:"nav_bar_click",location:"Mobile Nav",menuSelection:n};return(0,l.jsx)("li",{className:"relative border-b border-neutralGrey200",children:(0,l.jsxs)(c,{...d,className:"flex w-full items-center justify-between py-4 px-5 pl-[4.52rem]",onClick:()=>
1{if(!i)return a(),null;r(t)},children:[(0,l.jsx)("span",{children:(null==t?void 0:t.title)||(null==t?void 0:t.text)}),!!i&&(0,l.jsx)(u.Z,{className:"-rotate-90"})]})})}let er=e=>{var t;let{item:n,className:r}=e,i=(0,s.b9)(b),c=(0,s.b9)(N),d=(0,o.useCallback)(()=>{i(!1)},[i]),m="block py-4 px-5";return(0,l.jsx)("li",{className:(0,a.Z)("relative border-b border-neutralGrey200",r),children:"treatmentsLink"===n._type?(0,l.jsxs)("button",{onClick:()=>c(n._key),item:n,className:(0,a.Z)(m,"!flex items-center w-full justify-between"),children:[(0,l.jsx)("span",{children:n.title}),(0,l.jsx)(u.Z,{className:"-rotate-90"})]}):(0,l.jsx)(p.default,{showText:!1,link:null==n?void 0:n.page,onClick:d,className:m,eventName:"nav_bar_click",location:"Mobile Nav",children:n.text||(null===(t=n.page)||void 0===t?void 0:t.title)})})};function ea(e){let{transparent:t,isErrorPage:n,errorPageColour:u,border:m=!0}=e,[h,p]=(0,o.useState)(!1),x=(0,d.H9)(),f=(0,d.SK)(),v=(0,s.Dv)(j),g=null!==v,N=(0,o.useRef)(),k=(0,o.useRef)(),[_,Z]=(0,s.KO)(w),L=(0,s.Dv)(b),S=y();(0,o.useEffect)(()=>{let e=i.ZP.timeline({scrollTrigger:{trigger:document.body,scrub:!1,start:25,end:null,onEnter:()=>{p(!0)},onLeaveBack:()=>{p(!1)}}});return()=>{e.kill()}},[]);let P=!h&&t&&!g;(0,o.useEffect)(()=>{let e=()=>{k.current.classList.add("animating")},t=()=>{var e;null===(e=k.current)||void 0===e||e.classList.remove("animating")},n=N.current;return n.addEventListener("transitionstart",e),n.addEventListener("transitionend",t),()=>{n.removeEventListener("transitionstart",e),n.removeEventListener("transitionend",t)}},[]);let A=(0,o.useCallback)(()=>{Z(!1),S()},[S,Z]),R=(0,o.useMemo)(()=>{var e;return[...(null==x?void 0:null===(e=x.menuReference)||void 0===e?void 0:e.menuItems)||[],...(null==x?void 0:x.menuItems)||[]]},[x]),B=(0,o.useMemo)(()=>{var e;return[...(null==x?void 0:x.rightMenuItems)||[],...(null==x?void 0:null===(e=x.menuReference)||void 0===e?void 0:e.rightMenuItems)||[]]},[x]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("header",{className:"fixed top-0 w-full z-header",id:"header",children:[(0,l.jsx)(C,{banner:f,transparent:P,isVisible:!h}),(0,l.jsxs)(c.Z,{as:"div",gutter:!0,gutterAsPadding:!0,bottomMargin:!1,className:(0,a.Z)("relative w-full z-header transition-[transform,color] duration-250 ease-in-out overflow-hidden",P?"text-backgroundColor":"text-secondary500",h?"md:-translate-y-6":"md:-translate-y-0","![&.animating_.button]:duration-0"),ref:k,children:[(0,l.jsx)("div",{className:(0,a.Z)("absolute inset-0 bg-backgroundColor z-0 transition-opacity duration-250 ease-in-out pointer-events-none",P?"opacity-0":"opacity-100",n&&!g&&"bg-[var(--errorColour)]"),style:{"--errorColour":(0,r.o1)(u)},ref:N}),(0,l.jsx)("div",{className:(0,a.Z)("absolute inset-0 pointer-events-none transition-[border-color,opacity] duration-250 ease-in-out",P?"border-b border-b-neutralGrey100Opacity50":"border-b border-b-neutralGrey200",g||m||h?"opacity-100":"opacity-0")}),(0,l.jsxs)(c.Z,{as:"div",grid:!0,bottomMargin:!1,className:(0,a.Z)("items-center h-header-height md:h-header-height-md transition-transform duration-150 ease-in-out",h?"md:translate-y-3":"md:translate-y-0"),children:[(0,l.jsx)("div",{className:"col-span-3 md:col-span-6 2xl:col-span-3 z-10",children:(0,l.jsx)(M.Z,{light:P&&!L,className:(0,a.Z)("scale-[0.8] origin-[left_center]",h?"md:scale-[0.8]":"md:scale-100")})}),(0,l.jsx)("div",{className:"md:col-span-6 justify-self-center z-10 hidden 2xl:block",children:x&&(0,l.jsx)(E,{menuItems:R})}),(0,l.jsx)("div",{className:"col-span-3 md:col-span-6 2xl:col-span-3 justify-self-end z-10",children:x&&(0,l.jsx)(E,{menuItems:B,hideExtraMenuItemsOnMobile:!0,gap:"gap-2",children:(0,l.jsx)(T,{className:"block 2xl:hidden"})})})]})]})]}),x&&(0,l.jsx)(W,{sections:R,shrink:h}),x&&(0,l.jsx)(ee,{menuItems:R,rightMenuItems:B,className:"2xl:hidden"}),(0,l.jsx)("div",{onClick:A,className:(0,a.Z)("cursor-pointer fixed inset-0 bg-[black] z-10 transition-[opacity] duration-[0.6s] ease-expo-out",v||_?"pointer-events-all opacity-20":"pointer-events-none opacity-0")})]})}},61088:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(57437),r=n(57042),a=n(56265);function i(e){var t,n,i,s;let{image:o,altText:c,className:d,...u}=e,m=null==o?void 0:null===(t=o.asset)||void 0===t?void 0:t.mimeType.includes("image/svg");if(m){let e=o.asset.altText,t=null==o?void 0:null===(s=o.asset)||void 0===s?void 0:null===(i=s.metadata)||void 0===i?void 0:null===(n=i.dimensions)||void 0===n?void 0:n.aspectRatio;return(0,l.jsx)("div",{className:(0,r.Z)("block w-full h-auto border bg-current",d),style:{aspectRatio:t,maskImage:"url(".concat(null==o?void 0:o.asset.url,")"),WebkitMaskImage:"url(".concat(null==o?void 0:o.asset.url,")"),maskSize:"cover",WebkitMaskSize:"cover"},"aria-label":c||e})}return(0,l.jsx)(a.default,{image:o,className:d,...u})}},50781:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var l=n(57437),r=n(42687),a=n(57042),i=n(12068),s=n.n(i),o=n(33874),c=n.n(o),d=n(16364),u=n.n(d),m=n(61396),h=n.n(m),p=n(2265),x=n(23890),f=n(41080);let v=(0,p.forwardRef)((e,t)=>{let{healthengineId:n,className:r,...a}=e,i=(0,x.b9)(f.B),s=(0,x.b9)(f.n),o=(0,p.useCallback)(()=>{i(!0),s(n)},[n,s,i]);return(0,l.jsx)("span",{className:r,children:(0,l.jsx)("button",{...a,onClick:()=>{var e;o(),null==a||null===(e=a.onClick)||void 0===e||e.call(a)},ref:t})})});var g=n(37327),b=n(94493);let j=(0,p.forwardRef)((e,t)=>{let{formId:n,formTitle:r,...a}=e,i=(0,b.u9)(n),s=(0,g.useTracker)(),o=(0,p.useCallback)(()=>{i(),s("form_start",{form_name:r})},[i,r,s]);return(0,l.jsx)("button",{...a,onClick:()=>{var e;o(),null==a||null===(e=a.onClick)||void 0===e||e.call(a)},ref:t})});var w=n(54727),y=n(71965),N=n(34936);let k=(0,p.forwardRef)((e,t)=>{var n,i,o;let{openInNewTab:d=!0,nonLinkTag:m="span",link:x,to:f,children:b,showText:k=!0,scroll:C=!0,className:_,onClick:Z,location:L,trackProps:T,eventName:M,contentBlockName:S,menuSelection:P,eventButton:A,logEvent:E=!0,prefetch:R=!1,...B}=e,I=(0,N.W4)(),{url:z,text:D}=(0,p.useMemo)(()=>
1{if(f)return{url:f};let e=s()(x)?null==x?void 0:x[0]:x;return e?(0,r.mg)(I,e):{}},[x,f,I]),G=(null==x?void 0:x.linkType)==="form",F=(null==x?void 0:x.linkType)==="file",H=(null==x?void 0:x.linkType)==="search"||(null==x?void 0:x.linkType)==="book"&&"master"===I.siteType&&!(null==x?void 0:x.healthEngineId),V=!H&&(null==x?void 0:x.linkType)==="book",O=(null==x?void 0:x.healthEngineId)||(null==I?void 0:null===(n=I.practice)||void 0===n?void 0:n.healthEngineId),{bookingUrl:W,bookingType:q}=null!=x?x:{},U=(0,g.useTracker)(),J=B["aria-label"],K=(0,p.useCallback)(e=>{if(E){if(F){var t;let e=null===(t=x.file)||void 0===t?void 0:t.file;if(e){let t=A||D||(null==x?void 0:x.text)||J,n=u()({file_name:e.filename,file_type:e.extension,button:t,button_link:z,content_block_name:S,menu_selection:P||t,...T||{}},e=>!e);U("file_download",n),U(M||"content_block_interaction",n)}}else if(H){let e=A||((null==x?void 0:x.linkType)==="book"?"Find a dentist":D||(null==x?void 0:x.text)||J),t=u()({click_location:L||"Content Block",button:e,button_link:null,content_block_name:S,menu_selection:P||e,...T||{}},e=>!e);U("find_a_practice_click",t),U(M||"content_block_interaction",t)}else if(V){let e=A||D||(null==x?void 0:x.text)||J,t=u()({click_location:L||"Content Block",button:e,button_link:"url"===q?W:"https://healthengine.com.au/webplugin/?id=".concat(O),content_block_name:S,menu_selection:P||e,...T||{}},e=>!e);U("book_now_click",t),U(M||"content_block_interaction",t)}else if(G){let e=A||D||(null==x?void 0:x.text)||J,t=u()({click_location:L||"Content Block",button:e,content_block_name:S,menu_selection:P||e,...T||{}},e=>!e);U(M||"content_block_interaction",t)}else if(null==z?void 0:z.startsWith("tel:")){let e=A||D||z.substring(4)||J,t=u()({phone_number:z.substring(4),click_location:L||"Content Block",button:e,button_link:z,content_block_name:S,menu_selection:P||e,...T||{}},e=>!e);U("call_us",t),U(M||"content_block_interaction",t)}else if(null==z?void 0:z.startsWith("mailto:")){let e=A||D||z.substring(7)||J,t=u()({email_address:z.substring(7),click_location:L||"Content Block",button:e,button_link:z,content_block_name:S,menu_selection:P||e,...T||{}},e=>!e);U("email_us",t),U(M||"content_block_interaction",t)}else if(z){let e=A||D||(null==x?void 0:x.text)||J;U(M||"content_block_interaction",u()({click_location:L||"Content Block",button:e,button_link:z,content_block_name:S,menu_selection:P||e,...T||{}},e=>!e))}}null==Z||Z(e)},[E,A,F,G,H,V,z,Z,x,U,D,J,S,P,T,L,O,M,q,W]),Q=(0,w.uT)(),Y=(0,y.H)();if(H){let e=D,n=(0,l.jsxs)(l.Fragment,{children:[k&&D,b]});if((null==x?void 0:x.linkType)==="book"){let t=p.Children.toArray(b)[0],l=(null==I?void 0:I.findADentistLabel)||"Find a dentist";e=l,n=t&&!c()(t)?p.cloneElement(t,t.props,l):l}return(0,l.jsx)("button",{"aria-label":e,className:(0,a.Z)("cursor-pointer text-left",_),...B,onClick:e=>{Q(),K(e)},onMouseEnter:e=>{var t;null==B||null===(t=B.onMouseEnter)||void 0===t||t.call(B,e),Y(e)},ref:t,children:n})}if((null==x?void 0:x.linkType)==="book"&&(O||W)){let e="url"===q;return(0,l.jsxs)(v,{healthengineId:e?W:O,"aria-label":D,className:(0,a.Z)("cursor-pointer",_),onClick:K,...B,ref:t,children:[k&&D,b]})}return(null==x?void 0:x.linkType)!=="form"&&((null==x?void 0:x.linkType)!=="book"||O)?z&&(z.indexOf("http")>=0||z.indexOf("tel:")>=0||z.indexOf("mailto:")>=0)?(0,l.jsxs)("a",{href:z,className:(0,a.Z)("cursor-pointer",_),target:d?"_blank":"",rel:d?"noreferrer noopener":"",onClick:K,...B,ref:t,children:[k&&D,b]}):z?(0,l.jsxs)(h(),{href:z,"aria-label":D,className:(0,a.Z)("cursor-pointer",_),scroll:C,onClick:K,prefetch:!!R&&void 0,...B,ref:t,children:[k&&D,b]}):(0,l.jsxs)(m,{className:_,onClick:K,...B,ref:t,children:[k&&D,b]}):(0,l.jsxs)(j,{formId:(null==x?void 0:null===(i=x.form)||void 0===i?void 0:i._id)||"aa70427c-7a33-4da7-8713-c2c62419c72a",formTitle:(null==x?void 0:null===(o=x.form)||void 0===o?void 0:o.title)||"Contact Form","aria-label":D,className:(0,a.Z)("cursor-pointer",_),onClick:K,...B,ref:t,children:[k&&D,b]})});k.displayName="Link";var C=k},42089:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var l=n(57437),r=n(61132),a=n(53717),i=n(57042),s=n(42815),o=n(2265),c=n(93540),d=n(93569);function u(e){let{isOpen:t,title:n,footer:u,children:m,onClose:h,side:p="left",className:x,scrollingDown:f=!1,widthClasse
1s:v="w-[30vw]"}=e,{lock:g,unlock:b}=(0,d.gh)(),j=(0,o.useRef)(),w=(0,o.useRef)(),y="left"===p,N=y?"-100%":"100%";return(0,o.useEffect)(()=>{let e=s.ZP.timeline();return e.set(j.current,{visibility:"visible"}),e.to(j.current,{x:t?"0%":N,duration:.6,ease:"expo.out"},0),e.to(w.current,{autoAlpha:t?.5:0,pointerEvents:t?"all":"none",duration:.6,ease:"expo.out"},0),t?g():b(),()=>{null==e||e.kill()}},[N,t,g,b]),(0,r.Z)(h),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,i.Z)("fixed top-0 bottom-0 bg-backgroundColor z-modal overflow-x-hidden overflow-y-auto flex flex-col",v,y?"left-0":"right-0",x),style:{visibility:"hidden",transform:"translateX(".concat(N,")")},ref:j,children:[n&&(0,l.jsxs)("header",{className:(0,i.Z)(f&&"downLg:-translate-y-16","sticky top-0 left-0 right-0 flex justify-between flex-grow-0 w-full px-8 py-2 md:py-4 items-center border-b border-neutralGrey200 bg-backgroundColor z-10 downLg:transition-transform downLg:duration-300"),children:[(0,l.jsx)("span",{className:"flex-grow font-medium text-18 md:text-22",children:n}),(0,l.jsx)(c.Z,{variant:"tertiary",onClick:h,iconButton:!0,className:"flex-grow-0",children:(0,l.jsx)(a.Z,{})})]}),(0,l.jsx)("div",{className:(0,i.Z)(f&&"downLg:-translate-y-16","p-8 relative flex-grow bg-backgroundColor downLg:transition-transform downLg:duration-300"),children:m}),u&&(0,l.jsx)("div",{className:"flex-grow-0 flex-shrink-0 sticky bottom-0 left-0 right-0 px-8 border-t border-neutralGrey200 bg-backgroundColor z-10",children:u})]}),(0,l.jsx)("button",{onClick:h,className:"w-screen h-screen fixed inset-0 bg-[black] opacity-0 z-modalShadow pointer-events-none",ref:w})]})}},93033:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var l=n(57437),r=n(42815),a=n(79116),i=n.n(a),s=n(2265),o=n(37327),c=n(64437),d=n(93569),u=n(91835);let m=e=>{let t=(e||[]).find(e=>"block"===e._type);if(t)return t.children.filter(e=>"span"===e._type).map(e=>e.text).join("")};function h(e){let t="".concat(null==e?void 0:e.title," ").concat(m(null==e?void 0:e.copy));return t}function p(e){let[t,n]=(0,s.useState)(!0);return t?(0,l.jsx)(x,{...e,setMounted:n}):null}function x(e){let{data:t,setMounted:n}=e,a=(0,s.useRef)(),[m,p]=(0,s.useState)(!1),{title:x,copy:f}=null!=t?t:{},v=function(){let e=(0,s.useRef)({}),t=(0,s.useCallback)(()=>{var t,n;let l=(null===(t=document.querySelector(".footer"))||void 0===t?void 0:t.offsetTop)-(null===(n=window)||void 0===n?void 0:n.innerHeight);e.current=l},[e]);return(0,s.useEffect)(()=>(t(),document.addEventListener("resize",t),()=>{document.removeEventListener("resize",t)}),[t]),e}();(0,d.RF)((0,s.useCallback)(e=>{let{y:t}=e,n=v.current;p(t>200&&t<n)},[p,v])),(0,s.useEffect)(()=>{let e=r.ZP.to(a.current,{y:m?0:"100%",duration:.6,ease:"expo.out"});return()=>{e.kill()}},[m]);let g=(0,o.useTracker)(),b=(0,s.useCallback)(()=>{localStorage.setItem("notificationClosed","true"),localStorage.setItem("notificationMsg",h(t)),g("sticky_banner_click",{click_location:"Sticky Footer Banner",button:"Close",sticky_banner_name:x,menu_selection:x,button_link:null}),r.ZP.to(a.current,{y:"100%",duration:.6,ease:"expo.out",onComplete:()=>{n(!1)}})},[t,n,x,g]);(0,s.useEffect)(()=>{let e="true"===localStorage.getItem("notificationClosed"),l=localStorage.getItem("notificationMsg")===h(t);e&&l&&n(!1)},[t,n]);let j=(0,s.useRef)();return(0,s.useEffect)(()=>{if(j.current){let e=j.current.querySelectorAll("a"),t=[];return i()(e,e=>{let n=()=>{g("sticky_banner_click",{click_location:"Sticky Footer Banner",button:e.innerText,sticky_banner_name:x,menu_selection:x,button_link:e.href})};t.push(n),e.addEventListener("click",n)}),()=>{i()(e,(e,n)=>{e.removeEventListener("click",t[n])})}}},[]),(0,l.jsx)("div",{className:"fixed w-full left-0 right-0 bottom-0 bg-highlight z-banner translate-y-full",ref:a,children:(0,l.jsxs)(u.Z,{gutter:"lg",bottomMargin:!1,className:"py-3 flex justify-between items-center",children:[(0,l.jsxs)("div",{className:"flex md:gap-1 downMd:flex-col",ref:j,children:[(0,l.jsx)("div",{className:"font-medium",children:x}),f&&(0,l.jsx)(c.default,{content:f})]}),(0,l.jsx)("button",{"aria-label":"close notification banner",className:"p-1",onClick:b,children:(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1.4 14L0 12.6L5.6 7L0 1.4L1.4 0L7 5.6L12.6 0L14 1.4L8.4 7L14 12.6L12.6 14L7 8.4L1.4 14Z",fill:"#00384A"})})})]})})}},63846:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var l=n(57437),r=n(40469),a=n(57042),i=n(42815),s=n(90555),o=n.n(s),c=n(45262),d=n.n(c),u=n(2265),m=n(4327);let h=[0,1,2,3,4,5,6,7,8,9,0],Number=e=>{let{initialValue:t=0,target:n,animate:r=!0,duration:a=2.5}=e,s=(0,u.useRef)(),o=(0,u.useRef)({animated:!1});return(0,u.useEffect)(()=>
1{if(r&&!o.current.animated){o.current.animated=!0;let e={y:t};i.ZP.to(e,{y:n+t,ease:"power2.out",duration:a,onUpdate:()=>{s.current.style.transform="translate(0, -".concat(100*e.y%1e3,"%)")}})}},[r,t,n,a]),(0,l.jsx)("span",{className:"w-[0.645em] h-[1.1em] flex-shrink-0 flex flex-col mt-[-0.1em] items-center",ref:s,style:{transform:"translate(0, -".concat(100*t,"%")},children:h.map((e,t)=>(0,l.jsx)("span",{className:"block py-[0.1em] h-[1.1em]",children:e},t))})};function p(e){let{className:t,fromCount:n,toCount:i,animateOnInView:s=!1,animate:c=!0,duration:h}=e,p=(0,u.useRef)(),[x,f]=(0,m.YD)({threshold:.4,triggerOnce:!0}),v=(0,r.Z)(p,x),g=(0,u.useMemo)(()=>{let e=d()((i+"").padStart(2,"0")),t=d()((n+"").padStart(2,"0"));return o()(e),o()(t),e=e.map((e,n)=>({placeValue:"1".padEnd(n+1,"0"),targetValue:parseInt(e),initialValue:t[n]?parseInt(t[n]):0,index:n})),o()(e),e},[i,n]),b=s?f:c;return(0,l.jsx)("div",{className:(0,a.Z)(t,"flex h-[1.2em] overflow-hidden flex-shrink-0 mb-[-0.2em]"),ref:v,children:g.map((e,t)=>{let{targetValue:r,placeValue:a,initialValue:s,index:o}=e,c=Math.floor(i/parseInt(a))-Math.floor(n/parseInt(a));return(0,l.jsxs)(u.Fragment,{children:[(0,l.jsx)(Number,{target:c,initialValue:s,animate:b,duration:h}),o>0&&o%3==0&&(0,l.jsx)("span",{className:"block mr-[0.1em]",children:","})]},t+"-"+r)})})}},18095:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var l=n(57437),r=n(61132),a=n(4191),i=n(53717),s=n(42687),o=n(42815),c=n(2265),d=n(93540),u=n(37327),m=n(56265),h=n(64437),p=n(93569);function x(e){let{data:t}=e,[n,r]=(0,c.useState)(!0);return n?(0,l.jsx)(f,{data:t,setMounted:r}):null}function f(e){let{data:t,setMounted:n}=e,x=(0,c.useRef)(),f=(0,c.useRef)(),{_id:v,copy:g,heading:b,image:j,link:w}=null!=t?t:{},y=(0,u.useTracker)(),[N,k]=(0,c.useState)(!1),{lock:C,unlock:_}=(0,p.gh)();(0,c.useEffect)(()=>{let e=o.ZP.timeline();return e.to(x.current,{y:N?0:80,duration:.6,ease:"expo.out"},0),e.to(f.current,{autoAlpha:N?1:0,duration:.6,ease:"expo.out"},0),N?C():_(),()=>{e.kill()}},[N,C,_]);let Z=(0,c.useCallback)(()=>{localStorage.setItem("popupClosed","true"),localStorage.setItem("popup",v),_(),y("popup_click",{click_location:"Popup",button:"Close",popup_name:b,popup_id:v,menu_selection:b,button_link:null}),o.ZP.to(x.current,{y:"-40px",duration:.6,ease:"expo.out"}),o.ZP.to(f.current,{autoAlpha:0,duration:1,ease:"expo.out",onComplete:()=>{n(!1)}})},[v,b,n,y,_]);return(0,c.useEffect)(()=>{let e="true"===localStorage.getItem("popupClosed"),t=localStorage.getItem("popup")===v;if(e&&t){n(!1);return}k(!0)},[v,n]),(0,r.Z)(Z,N),(0,a.Z)(x,Z,N),(0,l.jsxs)("div",{className:"fixed inset-0 bg-[rgba(0,0,0,0.5)] !z-popup p-5 flex items-center justify-center",ref:f,style:{opacity:0,visibility:"hidden"},children:[(0,l.jsxs)("div",{className:"relative ",ref:x,style:{transform:"translate3d(0,80px,0)"},children:[(0,l.jsxs)("div",{className:"w-full max-w-[875px] bg-backgroundColor grid md:grid-cols-2 overflow-hidden rounded-3xl",children:[(0,l.jsx)(m.default,{image:j,aspect:3/4,mobileAspect:4/3}),(0,l.jsxs)("div",{className:"p-4 md:p-6 flex flex-col justify-between",children:[(0,l.jsxs)("div",{className:"mb-4 md:mb-6",children:[(0,l.jsx)("h4",{className:"mb-4 md:mb-6 text-24 md:text-35",children:b}),(0,l.jsx)("div",{children:(0,l.jsx)(h.default,{content:g})})]}),(0,s.AH)(w)&&(0,l.jsx)(d.Z,{link:w,variant:"dark",onClick:Z})]})]}),(0,l.jsx)(d.Z,{onClick:Z,className:"absolute top-full left-1/2 -translate-x-1/2 translate-y-2 lg:top-0 lg:right-0 lg:translate-x-full lg:-translate-y-full",innerClassName:"aspect-square rounded-full",iconButton:!0,variant:"white",children:(0,l.jsx)(i.Z,{})})]}),(0,l.jsx)("div",{className:"fixed inset-0 bg-transparent cursor-pointer z-[-1]"})]})}},85354:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var l=n(57437),r=n(2265);let a=!1;var i=n(96778),s=n.n(i);let o="chatbot-script",c={orgId:"00D8w0000008aKK",deploymentName:"NDC_Websites",deploymentUrl:"https://ndcdental.my.site.com/ESWNDCWebsites1783977125660",scrt2URL:"https://ndcdental.my.salesforce-scrt.com",bootstrapUrl:"https://ndcdental.my.site.com/ESWNDCWebsites1783977125660/assets/js/bootstrap.min.js"},d=e=>{if(document.getElementById(o))null==e||e();else{let t=document.createElement("script");t.id=o,t.src=c.bootstrapUrl,t.async=!0,t.onload=e,document.body.appendChild(t)}};function u(){try{let e=window.embeddedservice_bootstrap;if(!e)throw Error("embeddedservice_bootstrap is unavailable.");e.settings.language="en_US",e.settings.clearSessionOnChannelChange=!0,e.init(c.orgId,c.deploymentName,c.deploymentUrl,{scrt2URL:c.scrt2URL})}catch(e){console.error("[NDC Chat] Error loading Embedded Messaging:",e)}}async function m(){let e=window.embeddedservice_bootstrap;e&&(await e.userVerificationAPI.clearSession(),"function"==typeof e.utilAPI.removeAllComponents&&e.utilAPI.removeAllComponents())}let h=()=>{var e,t,n;let l=null===(n=window.embeddedservice_bootstrap)||void 0===n?void 0:null===(t=n.utilAPI)||void 0===t?void 0:null===(e=t.getEmbeddedMessagingFrame)||void 0===e?void 0:e.call(t);l&&(l.style.display="none")},p=()=>{var e,t,n;let l=null===(n=window.embeddedservice_bootstrap)||void 0===n?void 0:null===(t=n.utilAPI)||void 0===t?void 0:null===(e=t.getEmbeddedMessagingFrame)||void 0===e?void 0:e.call(t);l&&(l.style.display="block")};function x(e){let t=e.trim().match(/^(\d{1,2}):(\d{2})\s*(am|pm)?$/i);if(!t)throw Error("Invalid time format: ".concat(e));let[,n,l,r]=t;return n=Number(n),l=Number(l),r&&("pm"===(r=r.toLowerCase())&&12!==n&&(n+=12),"am"===r&&12===n&&(n=0)),60*n+l}let f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Australia/Sydney";if(s()(e))return!1;try{let n=new Date,l=new Intl.DateTimeFormat("en-US",{timeZone:t,weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(n),r=l.find(e=>"weekday"===e.type).value,a=e.find(e=>e.day===r);if(!a||a.closed)return!1;let i=x("".concat(l.find(e=>"hour"===e.type).value,":").concat(l.find(e=>"minute"===e.type).value)),s=x(a.openingTime),o=x(a.closingTime);if(o<s)return i>=s||i<o;return i>=s&&i<o}catch(e){return console.error("Error parsing opening hours",e),!1}};var v=n(42815),g=n(23890),b=n(93569),j=n(34936);function w(e){let{site:t,children:n}=e;return(0,r.useEffect)(()=>{a||(console.log("%c".concat("\nââââ âââ ââ âââââââ âââ âââ âââââââââ âââ ââââ ââââââââ\nâââââ âââ ââ âââââââââââ âââ âââ âââââââââ âââ âââââ âââââââââ\nâââââââ âââ ââ âââ ââââââââââ ââ âââ âââââââ âââ âââââ\nâââ âââââââ ââ âââ âââââââ ââââââââââ ââ âââ ââââ ââââ ââââââââ\nâââ ââââââ ââ âââ ââââ âââ âââ ââ ââââââââ âââââââââ âââ ââââ\n"),"font-family:monospace;font-size:8px;line-height:10px;"),console.log("%cSite by https://nightjar.co \uD83E\uDD70","color:white;background:black;font-weight:bold;padding:10px"),a=!0)},[]),!function(e){var t;let n=e.slug,l=null===(t=e.practice)||void 0===t?void 0:t.openingHours,{enabled:a,timezone:i}=e.chatbot||{};(0,r.useEffect)(()=>{let e=()=>{!function(e){try{let t=window.embeddedservice_bootstrap;if(!t)throw Error("embeddedservice_bootstrap is unavailable.");let n={SourcePageURL:window.location.origin+window.location.pathname,SourcePagePath:window.location.pathname,PracticeURLSlug:e,PageTitle:document.title};t.prechatAPI.setHiddenPrechatFields(n)}catch(e){console.error("[NDC Chat] Error setting hidden pre-chat fields:",e)}}(n)};return window.addEventListener("onEmbeddedMessagingReady",e),a&&!f(l,i)?(p(),m(),d(u)):h(),()=>{window.removeEventListener("onEmbeddedMessagingReady",e)}},[n,a,i,l])}(t),(0,l.jsx)(j._F,{site:t,children:(0,l.jsx)(b.ZP,{children:(0,l.jsx)(g.zt,{children:n})})})}v.ZP.config({nullTargetWarn:!1})},56265:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E},getObjectPosition:function(){return M}});var l=n(57437),r=n(57042),a=n(98614),i=n.n(a),s=n(2265),o=n(41873),c=n.n(o),d=n(42815),u=n(83574),m=n.n(u),h=n(6662),p=n.n(h),x=n(79116),f=n.n(x),v=n(11873),g=n.n(v),b=n(53530),j=n.n(b);let w=/^image-([a-f\d]+)-(\d+x\d+)-(\w+)$/,y=e=>{try{let[,t,n,l]=w.exec(e),[r,a]=n.split("x").map(e=>parseInt(e,10));return{assetId:t,dimensions:{width:r,height:a},format:l}}catch(t){throw Error('Could not parse image ID "'.concat(e,'"'))}},N=e=>{if(!e)return;let{width:t,height:n}=k(e);return t/n},k=e=>{let{asset:t,crop:n}=e,l=y(t._id||t._ref),r=i()(t,["metadata","dimensions","width"])||l.dimensions.width,a=i()(t,["metadata","dimensions","height"])||l.dimensions.height,s=0,o=0;return n&&(s=Math.round(n.top*a),o=Math.round(n.left*r),r=Math.round(r*(1-(n.right+n.left))),a=Math.round(a*(1-(n.top+n.bottom)))),{top:s,left:o,width:r,height:a}},C=(e,t,n,l)=>{let r=i()(e,["metadata","dimensions","aspectRatio"]),a=l||r;return{width:n,needsCrop:!t&&a&&a!==r,aspect:a}},_=(e,t)=>
1{if(!t)return e;let n=new URL(e);return n.pathname="".concat(n.pathname,"/").concat(t),n.toString()},Z=[320,420,640,1024],L=[320,420,640,1024,1200,1920,2560,3200];function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;if(!e||!e.asset)return;let{asset:l}=e,r=y(l._id||l._ref),a="svg"===r.format,s=i()(l,["metadata","hasAlpha"]),o=i()(l,["metadata","isOpaque"]),c=function(e){let t=j()(e,{_type:"sanity.imagePaletteSwatch"});return g()(t,e=>j()(e,(e,t)=>"_type"!==t))}(i()(e,["metadata","palette"])),d=[],{width:u,height:m,top:h,left:x}=k(e),v=N(e),b={sourceAspect:v,hasAlpha:s,opaque:o,vector:a,palette:c,sizes:d},w=n;n[0]>u&&(w=[u]);let Z=w.map(e=>({...C(l,a,e,t||v)}));if(e.alt&&(b.alt=e.alt),e.caption&&(b.title=e.caption),e.attribution&&(b.credit=e.attribution),e.hotspot){let{_type:t,...n}=e.hotspot;b.hotspot={type:t,...n}}if(e.crop){let{_type:t,...n}=e.crop;b.crop={type:t,...n}}let T=p()(null).projectId("z56dhnka").dataset("production");if(a)d.push({width:u,height:m,url:_(T.image(e.asset).url(),e.asset.originalFilename)});else{let t=T.image(e.asset);f()(Z,n=>{let{needsCrop:l,aspect:r,width:a}=n;if(a<=u){e.crop&&(t=t.rect(x,h,u,m)),l&&(t=e.hotspot?t.fit("crop").crop("focalpoint").focalPoint(e.hotspot.x,e.hotspot.y):t.fit("min"));let n=t.width(a);n=(n=n.height(Math.round(a/r))).auto("format");let i={width:a,height:Math.round(a/r),url:_(n.url(),e.asset.originalFilename)};d.push(i)}})}return b}let M=(e,t)=>e?t?"".concat((e.x-t.left)/(1-(t.left+t.right))*100,"% ").concat((e.y-t.top)/(1-(t.top+t.bottom))*100,"%"):"".concat(100*e.x,"% ").concat(100*e.y,"%"):"50% 50%",S=e=>{let{media:t,srcSet:n,sizes:r}=e;return(0,l.jsx)("source",{media:t,srcSet:n.map(e=>"".concat(e.url," ").concat(e.width,"w")).join(),sizes:r,suppressHydrationWarning:!0})},P=(0,s.forwardRef)((e,t)=>{let{pictureClassName:n,style:a,className:i,alt:s,fallbackAlt:o,srcSet:d,mobileSrcSet:u,preload:h,imageSizes:p,onLoad:x}=e,f=d.map(e=>"".concat(e.url," ").concat(e.width,"w")).join(),v=null==u?void 0:u.map(e=>"".concat(e.url," ").concat(e.width,"w")).join();return(0,l.jsxs)("picture",{className:(0,r.Z)("not-prose",n),children:[u&&d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S,{srcSet:u,sizes:p,media:"(max-width: ".concat(c().md-1,"px)"),lazy:!h}),(0,l.jsx)(S,{srcSet:d,sizes:p,media:"(min-width: ".concat(c().md,"px)"),lazy:!h})]}),!u&&d&&(0,l.jsx)(S,{srcSet:d,lazy:!h,sizes:p}),(0,l.jsx)("img",{ref:t,"data-sizes":"auto",sizes:p,alt:s||o,src:d[0].url,loading:h?"eager":"lazy",onLoad:x,className:i,style:a}),h&&(0,l.jsxs)(m(),{children:[u&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preload",as:"image",href:u[0].url,imageSrcSet:v,imageSizes:p,media:"(max-width: ".concat(c().md-1,"px)")}),(0,l.jsx)("link",{rel:"preload",as:"image",href:d[0].url,imageSrcSet:f,imageSizes:p,media:"(min-width: ".concat(c().md,"px)")})]}),!u&&(0,l.jsx)("link",{rel:"preload",as:"image",href:d[0].url,imageSrcSet:f,imageSizes:p})]})]})});P.displayName="Picture";let A=(0,s.forwardRef)((e,t)=>{let{className:n,imageClassName:a,aspect:o,mobileAspect:c,contain:u,mdContain:m,children:h,image:p,fallbackAlt:x,mobileImage:f,preload:v=!1,showPreview:g=!1,style:b,imageSizes:j,objectPosition:w,position:y="relative"}=e,N=(0,s.useRef)(),k=(0,s.useMemo)(()=>T(p,!u&&o),[p,u,o]),C=(0,s.useRef)({animatingIn:!1}),_=(0,s.useMemo)(()=>f||c?T(f||p,!u&&c,Z):null,[f,c,p,u]),{hotspot:L,crop:S}={hotspot:i()(p,["hotspot"]),crop:i()(p,["crop"])},A=i()(p,["asset","metadata","palette","dominant","background"]),E=i()(k,["sizes"]),R=i()(_,["sizes"]),B=i()(p,["alt"])||i()(p,["asset","altText"]),I=c||i()(_,["sourceAspect"]),z=o||(null==k?void 0:k.sourceAspect),D=(0,s.useMemo)(()=>({...g&&!(null==p?void 0:p.transparentBackground)&&A?{backgroundColor:A}:{},...b||{}}),[b,A,g,null==p?void 0:p.transparentBackground]),G=(0,s.useCallback)(()=>{v||C.current.animatingIn||(C.current.animatingIn=!0,d.ZP.to(N.current,{opacity:1,duration:.5,ease:"power2.inOut"}))},[v]);return((0,s.useEffect)(()=>{var e;(null===(e=N.current)||void 0===e?void 0:e.complete)&&G()},[G]),E)?(0,l.jsxs)("div",{className:(0,r.Z)(n,y,"w-full block overflow-hidden"),ref:t,style:D,children:[!I&&(0,l.jsx)("div",{style:{paddingTop:"".concat(100/z,"%")}}),I&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"hidden md:block",style:{paddingTop:"".concat(100/z,"%")}}),(0,l.jsx)("div",{className:"block md:hidden",style:{paddingTop:"".concat(100/I,"%")}})]}),(0,l.jsx)(P,{className:(0,r.Z)(a,!v&&"opacity-0","absolute w-full h-full inset-0",u?"object-contain":"object-cover",!0===m&&"md:object-contain",!1===m&&"md:object-cover"),ref:N,onLoad:G,alt:B,fallbackAlt:x,srcSet:E,mobileSrcSet:R,preload:v,imageSizes:j,style:{objectPosition:w||M(L,S)}}),h]}):null});A.displayName="ResponsiveImage";var E=A},64437:function(e,t,n){"use strict";n.r(t),n.d(t,{RichTextContext:function(){return el},default:function(){return es},serializers:function(){return ea}});var l=n(57437),r=n(41873),a=n.n(r),i=n(91546),s=n(18043),o=n.n(s),c=n(57042),d=n(96778),u=n.n(d),m=n(54677),h=n.n(m),p=n(98614),x=n.n(p),f=n(27874),v=n.n(f),g=n(2265),b=n(93540),j=n(56265),w=n(50781),y=n(63099),N=n(13139),k=n(42687),C=n(61088);function _(e){var t;let{className:n,colour:r,title:i,text:s,link:o,contentBlockName:d,menuSelection:u,linkText:m,image:h,imageLayout:p,alignment:x,inRichText:f=!0}
1=e,v=o?{link:o,showText:!1,contentBlockName:d,menuSelection:u}:{},g=(0,y.mJ)(r);return(0,l.jsxs)(w.default,{nonLinkTag:"div",className:(0,c.Z)(n,"rounded-lg overflow-hidden flex flex-col md:grid text-left",f&&"md:!grid-cols-1 xl:!grid-cols-5 md:items-center","border border-[var(--background)]"),...v,style:g,children:[(0,l.jsxs)("div",{className:(0,c.Z)("p-8 downMd:order-2 flex flex-col","right"===x&&"md:order-2",f&&"xl:col-span-3"),children:[(0,l.jsx)("h3",{className:(0,c.Z)("h5",f&&"!text-16 !font-body"),children:i}),(0,l.jsxs)("div",{className:(0,c.Z)("md:mt-32 mt-16 flex-grow flex flex-col justify-end lg:max-w-[60%]",f&&"lg:!max-w-none md:!m-0 !m-0"),children:[(0,l.jsx)(N.Z,{text:s}),(0,k.AH)(o)&&(0,l.jsx)(b.Z,{as:"div",variant:"white",className:"mt-4",children:m||(null==o?void 0:o.text)||o.title||(null==o?void 0:null===(t=o.page)||void 0===t?void 0:t.title)})]})]}),(0,l.jsx)("div",{className:(0,c.Z)("!bg-[white] downMd:order-0 md:h-full lg:min-h-[28vw] downMd:aspect-[353/220] flex items-center justify-center",f&&"md:aspect-[353/220] lg:min-h-[unset] xl:aspect-[unset] xl:col-span-2"),children:(0,l.jsx)(C.Z,{image:h,className:(0,c.Z)("contain"===p?"w-[12rem] md:w-[20rem] mx-[2.5rem]":"w-full h-full"),imageSizes:"(max-width: ".concat(a().md,"px) 100vw, (max-width: ").concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")})})]})}function Z(e){let{data:t}=e;return(0,l.jsx)(_,{...t})}function L(e){let{data:t}=e,{text:n,colour:r}=null!=t?t:{};if(!n)return null;let a=(0,y.mJ)(r||"primary100");return(0,l.jsx)("div",{className:"px-8 py-7 rounded-xl mt-10",style:a,children:(0,l.jsx)(es,{content:n})})}let T=["smartrecruiters.com"];function M(e){let{html:t}=e,n=(0,g.useRef)(null);(0,g.useEffect)(()=>{var e;let t;let l=n.current;if(!l)return;let r=()=>{var e;let t=null===(e=l.contentDocument)||void 0===e?void 0:e.body;t&&(l.style.height=t.scrollHeight+"px")},a=()=>{var e;r();let n=null===(e=l.contentDocument)||void 0===e?void 0:e.body;n&&(t=new MutationObserver(r)).observe(n,{childList:!0,subtree:!0,attributes:!0})};return l.addEventListener("load",a),(null===(e=l.contentDocument)||void 0===e?void 0:e.readyState)==="complete"&&a(),()=>{l.removeEventListener("load",a),null==t||t.disconnect()}},[t]);let r='<!DOCTYPE html><html><head><base target="_blank"></head><body style="margin:0;overflow:hidden">'.concat(t||"","</body></html>");return(0,l.jsx)("iframe",{ref:n,srcDoc:r,style:{width:"100%",border:"none",display:"block"}})}function S(e){let{data:t}=e,{items:n,colour:r}=null!=t?t:{};if(!n)return null;let a=(0,y.mJ)(r||"primary100");return(0,l.jsx)("div",{className:"px-8 py-7 rounded-xl mt-10 grid xl:grid-cols-2 gap-12",style:a,children:null==n?void 0:n.map(e=>(0,l.jsx)(P,{item:e},e._key))})}function P(e){let{item:t}=e,{icon:n,title:r}=null!=t?t:{};return(0,l.jsxs)("div",{className:"flex gap-4 items-start",children:[(0,l.jsx)(C.Z,{image:n,className:"!w-12 !h-12 shrink-0"}),(0,l.jsx)(es,{content:r,className:"text-16 lg:max-w-[15em]"})]})}var A=n(34936),E=n(4191),R=n(25901),B=n(11049),I=n(20314),z=n(42815),D=n(99845),G=n.n(D);let F=".rich-text-slice-wrapper";z.ZP.registerPlugin(G());let H=(e,t)=>{let n=(0,I.h)();(0,g.useEffect)(()=>{let l=document.querySelector(F),r=null==l?void 0:l.querySelectorAll("h2, h3, .accordion"),a=[];r.forEach((t,n)=>{let l=G().create({trigger:t,start:"top 80%",end:()=>{var e;return r[n+1]?"+=".concat((null===(e=r[n+1])||void 0===e?void 0:e.offsetTop)-(null==t?void 0:t.offsetTop),"px"):"+=100px"},onUpdate:t=>{t.isActive&&e(n)}});a.push(l)});let i=()=>{var e;t(window.scrollY>(null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.height))};return window.addEventListener("scroll",i),()=>{a.forEach(e=>{e.kill()}),window.removeEventListener("scroll",i)}},[e,t])},V=()=>{let[e,t]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{var e;let n=null===(e=document.querySelector(".rich-text-slice-wrapper"))||void 0===e?void 0:e.getBoundingClientRect().height;n>window.innerHeight&&t(!0)},[]),e},O=e=>{var t;let n=document.querySelector(F),l=null==n?void 0:null===(t=n.querySelectorAll(null==e?void 0:e.element))||void 0===t?void 0:t[null==e?void 0:e.index];window.scrollTo({top:(null==l?void 0:l.getBoundingClientRect().top)+window.scrollY-80,behavior:"smooth"})},W=e=>{let{link:t,active:n,i:r}=e;
1return(0,l.jsxs)("div",{className:(0,c.Z)(r===n?"text-primary100-foreground":"text-secondary400","mb-[0.1rem] flex items-center w-fit hover:text-primary100-foreground transition-colors duration-100 cursor-pointer"),onClick:()=>O(t),children:[(0,l.jsx)(R.Z,{className:(0,c.Z)(r===n?"[&>path]:translate-x-0":"[&>path]:-translate-x-4","text-primary500 [&>path]:transition-transform [&>path]:duration-200 overflow-hidden")}),(0,l.jsx)("span",{className:(0,c.Z)(r===n?"ml-3":"-ml-3","transition-[margin]"),children:null==t?void 0:t.text})]})};function q(e){let{links:t,sidebarData:n,pageTitle:r}=e,[a,i]=(0,g.useState)(!1),[s,o]=(0,g.useState)(),[d,u]=(0,g.useState)(),m=(0,g.useRef)(),h=(0,g.useCallback)(()=>{i(!1)},[i]);(0,E.Z)(m,h),H(u,o);let p=V();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,c.Z)(a&&s?"opacity-50":"opacity-0","fixed md:hidden top-0 left-0 bg-[#000] h-[100vh] w-[100vw] transition-opacity pointer-events-none z-[8] downLg:hidden")}),(0,l.jsxs)("div",{className:(0,c.Z)(a&&s?"translate-y-0":"-translate-y-[100vh]",p?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none","-ml-6 md:-ml-[calc(100%+1.5rem)] fixed transition-[opacity] md:transition-[opacity,transform] will-change-transform md:!translate-y-0 md:sticky top-[3.7rem] md:top-[6.7rem] duration-500 !w-full md:w-fit","bg-backgroundColor md:bg-transparent md:-mb-[calc(100vh-10rem)] flex flex-col justify-between md:h-[calc(100vh-10rem)] z-[9] pointer-events-none downLg:hidden"),children:[(0,l.jsxs)("div",{className:"pb-5 md:pb-0 ml-6 md:ml-0 w-full md:w-1/2",ref:m,children:[(0,l.jsxs)("div",{className:(0,c.Z)(s?"opacity-100 ":"opacity-0 pointer-events-none",a&&s?"translate-y-0":"translate-y-[100vh]","transition-[opacity] md:transition-[transform,opacity] will-change-transform duration-500 md:!translate-y-0 md:!opacity-100","md:! -ml-6 mb-6 md:mb-0 flex flex-col bg-backgroundColor w-full"),onClick:()=>i(!a),children:[(0,l.jsxs)("div",{className:"mx-6 flex items-center justify-between",children:[(0,l.jsx)("div",{className:"pt-[0.6rem] md:pt-0 mb-[0.7rem] md:mb-4 md:text-14 md:font-medium",children:"Jump to section"}),(0,l.jsx)(B.Z,{className:(0,c.Z)(a&&s?"rotate-180":"rotate-0","md:hidden transition-transform will-change-transform duration-200")})]}),(0,l.jsx)("div",{className:"-ml-6 h-px w-[calc(100%+3rem)] bg-neutralGrey200 md:hidden"})]}),t&&t.map((e,t)=>(0,l.jsx)(W,{link:e,active:d,i:t},"".concat(null==e?void 0:e.text,"-").concat(t)))]}),(0,l.jsx)(U,{pageTitle:r,sidebarData:n})]})]})}function U(e){let{sidebarData:t}=e,n=(0,A.W4)(),r="practice"===n.siteType,{hideSidebarText:a,automaticSidebarText:i}=t,s=!1!==i?"If youâre ready to take the next step towards a healthier, happier smile, book your appointment with us today.":null==t?void 0:t.sidebarCopy,o=!i&&(null==t?void 0:t.sidebarCTA)?null==t?void 0:t.sidebarCTA:r?{linkType:"book",text:"Book now"}:{linkType:"search",text:"Find a dentist"};return!0===a?null:(0,l.jsxs)("div",{className:"hidden md:block w-1/2 ",children:[(0,l.jsx)("div",{className:"mb-6 w-full",children:s}),(0,l.jsx)(b.Z,{link:o,className:"w-fit",transition:!1,variant:"secondary"})]})}var J=e=>{let t=[],n={h2:0,h3:0,h5:0};if("string"!=typeof e)return null==e||e.forEach(e=>{let l="";if((null==e?void 0:e.style)==="h2"||(null==e?void 0:e.style)==="h3"){var r;null==e||null===(r=e.children)||void 0===r||r.forEach(e=>{l+=null==e?void 0:e.text}),t.push({text:l,element:null==e?void 0:e.style,index:n[null==e?void 0:e.style]}),n[null==e?void 0:e.style]++}(null==e?void 0:e._type)==="accordion"&&(t.push({text:null==e?void 0:e.title,element:"h5",index:n.h5}),n.h5++)}),t},K=n(93569);function Q(e){let{overrideLink:t,richContentRef:n}=e,[r,a]=(0,g.useState)(!1),i=(0,A.W4)(),s="practice"===i.siteType,o=(0,g.useMemo)(()=>t||(s?{linkType:"book",text:"Book now"}:{linkType:"search",text:"Find a dentist"}),[s,t]),d=(0,g.useMemo)(()=>{var e;let t=(0,k.mg)(o);return{button:o.text||(null===(e=o.page)||void 0===e?void 0:e.title),button_link:null==t?void 0:t.url}},[o]),u=function(e){let[t,n]=(0,g.useState)(!1);return(0,g.useEffect)(()=>{let t=new IntersectionObserver(e=>{n(e[0].isIntersecting)});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e]),t}(n);return(0,K.RF)((0,g.useCallback)(e=>{let{y:t}=e;a(t<200)}
1,[]),{triggerOnMount:!0}),(0,l.jsx)("div",{className:(0,c.Z)(u||r?"translate-y-0":"translate-y-16","px-4 fixed bottom-0 left-0 flex items-center justify-center h-16 w-full md:hidden bg-backgroundColor z-[10] transition-transform duration-300"),children:(0,l.jsx)(b.Z,{transition:!0,variant:"primary",className:"!w-full [&_button]:w-full",innerClassName:"!w-full",link:o,eventName:"rich_text_cta_click",location:"Rich Text CTA",trackProps:d})})}var Y=n(91835),$=n(75103),X=n(88224),ee=n(9975),et=n(55720),en=n(54123);let el=g.createContext(),er=(e,t)=>{if(!e)return;let n=v()(t,e=>{let t=x()(e,"style"),n=x()(e,"_type");return"h2"===t||"h3"===t||"accordion"===n}),l=!v()(t,e=>"fullWidthTitle"===x()(e,"_type"));return e&&n&&l},ea={types:{block:e=>(null==e?void 0:e.children[0])||!((null==e?void 0:e.children.length)<1)?o().defaultSerializers.types.block(e):null,fullWidthTitle:e=>{let{node:t}=e,{dividingLine:n,spacingBelow:r,title:a,text:i}=t||{};return(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)("div",{className:"md:-ml-[calc(100%+1.5rem)] my-[1.9rem] h-px bg-neutralGrey200"}),(0,l.jsxs)(Y.Z,{className:(0,c.Z)("md:gap-y-0",r?"!mb-[2rem] md:!mb-[9rem]":"!mb-0"),grid:!0,children:[(0,l.jsx)("h2",{className:"md:-ml-[calc(100%+1.5rem)] md:h-0 h4 col-span-full",children:a}),(0,l.jsx)("div",{className:"col-span-full",children:h()(null==i?void 0:i.split("\n")).map(e=>(0,l.jsx)("div",{className:"mb-[1.4rem]",children:e},e))})]})]})},ctaButtons:e=>{let{node:t}=e,{links:n=[]}=t||{},{trackProps:r}=(0,g.useContext)(el);return(0,l.jsx)("div",{className:"flex items-center gap-4 my-4 [&:last-child]:mb-0 text-14",children:n.map((e,t)=>"link"===e.variant?(0,l.jsx)(w.default,{link:e,className:"underline hover:no-underline block px-4",...r||{}},t):(0,l.jsx)(b.Z,{link:e,variant:"secondary",...r||{}},t))})},accordion:e=>{let{node:t}=e,{title:n,questions:r=[]}=t||{},{trackProps:a}=(0,g.useContext)(el);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h5",{className:"accordion mb-2 !text-28 font-medium",children:n}),(0,l.jsx)("div",{className:"mb-16",children:null==r?void 0:r.map(e=>(0,l.jsx)($.default,{title:e.question,children:(0,l.jsx)(ei,{content:e.answer,className:"text-18 font-[400] text-secondary400",trackProps:a})},e._key))})]})},heroProfile:e=>{let{node:t}=e,{image:n,name:r,role:i}=t||{};return(0,l.jsxs)("div",{className:"mt-10 pt-6 flex border-t border-neutralGrey200",children:[(0,l.jsx)(j.default,{className:"mr-5 w-[7rem] md:w-[5rem] rounded-lg overflow-hidden",image:n,aspect:86/107,mobileAspect:71/88,imageSizes:"(max-width: ".concat(a().md,"px) 5rem, 7rem")}),(0,l.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,l.jsx)("h6",{className:"text-18",children:r}),(0,l.jsx)("p",{className:"mt-1 text-14 text-secondary400 whitespace-pre-wrap",children:i})]})]})},imageWithPerson:e=>{let{node:t}=e,{image:n,name:r,role:i}=t||{};return(0,l.jsxs)("div",{className:"mt-6 md:mt-8 mb-5 md:mb-6",children:[(0,l.jsx)("div",{className:"rounded-lg overflow-hidden",children:(0,l.jsx)(j.default,{image:n,aspect:1,imageSizes:"(max-width: ".concat(a().md,"px) 100vw, (max-width: ").concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")})}),(0,l.jsx)("h5",{className:"mt-6 md:mt-10",children:r}),(0,l.jsx)("p",{className:"mt-1 text-primary600",children:i})]})},mediaCarousel:e=>{let{node:t}=e;return(0,l.jsx)(ee.default,{data:t,fullWidth:!0,inRichText:!0})},highlightBlock:e=>{let{node:t}=e;return(0,l.jsx)(L,{data:t})},featureCalloutBlock:e=>{let{node:t}=e;return(0,l.jsx)(Z,{data:t})},iconGridBlock:e=>{let{node:t}=e;return(0,l.jsx)(S,{data:t})},imageWithMeta:e=>{let{node:t}=e;return(0,l.jsx)("div",{className:"my-8 rounded-lg overflow-hidden",children:(0,l.jsx)(j.default,{image:t,aspect:636/397,imageSizes:"(max-width: ".concat(a().md,"px) 100vw, (max-width: ").concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")})})},imageGrid:e=>{let{node:t}=e,{images:n,leftImage:r,rightImage:i}=t||{},s=h()([...n||[],r,i]);return(0,l.jsx)(Y.Z,{className:"mt-8",grid:!0,children:s.map((e,t)=>{let{image:n,caption:r,size:i}=e;
1return(0,l.jsxs)("div",{className:(0,c.Z)("full"===i?"col-span-full":"col-span-6"),children:[(0,l.jsx)("div",{className:"rounded-lg overflow-hidden",children:(0,l.jsx)(j.default,{image:n,mobileAspect:636/397,aspect:"full"===i?2:1,imageSizes:"full"===i?"(max-width: ".concat(a()["max-content"],"px) 100vw, ").concat(a()["max-content"],"px"):"(max-width: ".concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")})}),r&&(0,l.jsx)("p",{className:"mt-2 text-14 text-secondary400",children:r})]},t)})})},imageComparison:function(e){let{node:t,data:n=t}=e,{beforeImage:r,afterImage:i,caption:s}=null!=n?n:{},o=(0,g.useRef)(),c=(0,g.useRef)(),d=(0,g.useRef)(),u=(0,g.useCallback)(e=>{var t;o.current.style.setProperty("--percent",(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value)+"%")},[]);return(0,g.useEffect)(()=>{let e=c.current;return e.addEventListener("input",u),()=>{e.removeEventListener("input",u)}},[u]),(0,l.jsxs)("div",{className:"mt-[1.9rem] mb-[2.2rem] md:mt-[2.5rem] md:mb-[4.3rem]",children:[(0,l.jsxs)("div",{className:"relative overflow-hidden rounded-lg",style:{"--percent":"50%"},ref:o,children:[(0,l.jsx)("input",{type:"range",className:"absolute inset-0 w-full h-full z-[4] opacity-0 cursor-col-resize",ref:c,min:"0",max:"100",value:"50"}),(0,l.jsxs)("div",{className:"absolute z-[3] top-0 bottom-0 left-[calc(var(--percent))]",children:[(0,l.jsx)("div",{className:"bg-[white] rounded-full absolute left-0 -translate-x-1/2 top-[calc(50%-1.25rem)] z-[3] w-10 h-10 flex items-center justify-center",children:(0,l.jsx)("svg",{width:"20",height:"11",viewBox:"0 0 20 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4.78633 10.0582L0 5.27473L4.76494 0.491333L5.55128 1.25924L2.13461 4.69558H17.8654L14.4487 1.25924L15.2351 0.491333L20 5.27473L15.2351 10.0582L14.4274 9.29022L17.8654 5.83244H2.11325L5.55128 9.29022L4.78633 10.0582Z",fill:"#00384A"})})}),(0,l.jsx)("div",{className:"absolute bg-[white] w-[1px] h-full top-0 bottom-0 left-1/2 "}),(0,l.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 text-[white] text-14 left-0 translate-x-[calc(-100%-2.5rem)]",children:"Before"}),(0,l.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 text-[white] text-14 left-[2.5rem]",children:"After"})]}),(0,l.jsx)(j.default,{image:r,imageSizes:"(max-width: ".concat(a().md,"px) 100vw, (max-width: ").concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")}),(0,l.jsx)(j.default,{image:i,position:"absolute",className:"inset-0",ref:d,style:{clipPath:"inset(0 0 0 var(--percent))"},imageSizes:"(max-width: ".concat(a().md,"px) 100vw, (max-width: ").concat(a()["max-content"],"px) 50vw, ").concat(Math.round(a()["max-content"]/2),"px")})]}),s&&(0,l.jsx)("p",{className:"mt-2 text-14 text-secondary400",children:s})]})},featureBlock:function(e){let{node:t,data:n=t}=e,{title:r,copy:i,image:s}=null!=n?n:{};return(0,l.jsxs)("div",{className:"bg-neutralGrey100 rounded-lg mb-4 grid grid-cols-2 overflow-hidden downLg:flex downLg:flex-col",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-between h-full p-6 downLg:order-2",children:[(0,l.jsx)("p",{className:"text-18 font-[500] downLg:mb-10",children:r}),(0,l.jsx)("p",{children:i})]}),(0,l.jsx)(j.default,{image:s,aspect:1,mobileAspect:353/220,imageSizes:"(max-width: ".concat(a()["max-content"],"px) 100vw, ").concat(a()["max-content"],"px")})]})},googleMapsBlock:e=>{var t;let{node:n}=e,{width:r}=n||{},{practice:a}=(0,A.W4)(),i={...a,...null==a?void 0:a.practice};return(0,l.jsx)("div",{className:(0,c.Z)("mb-14","full"===r&&"md:-ml-[calc(100%+1.5rem)] col-span-full"),children:(null==a?void 0:null===(t=a.address)||void 0===t?void 0:t.location)&&(0,l.jsx)(X.default,{practice:i})})},openingHoursBlock:()=>{let{practice:e}=(0,A.W4)();return(0,l.jsx)(l.Fragment,{children:!u()(null==e?void 0:e.openingHours)&&(0,l.jsx)("div",{className:"mb-5",children:null==e?void 0:e.openingHours.map((e,t)=>(0,l.jsxs)("div",{className:"grid grid-cols-3",children:[(0,l.jsx)("div",{children:null==e?void 0:e.day}),e.closed&&(0,l.jsx)("div",{className:"col-span-2",children:"Closed"}),!e.closed&&(0,l.jsxs)("div",{className:"col-span-2",children:[(0,et.TD)(null==e?void 0:e.openingTime)," - ",(0,et.TD)(null==e?void 0:e.closingTime)]}),e.notes&&(0,l.jsx)("div",{className:"col-start-2 col-span-2 text-14",children:e.notes})]},t))})})},addressBlock:()=>{let{practice:e}=(0,A.W4)(),t=null==e?void 0:e.address,n={...e,...null==e?void 0:e.practice};return(0,l.jsx)(l.Fragment,{children:(null==e?void 0:e.address)&&(0,l.jsxs)("div",{className:"mb-5",children:[n.businessName&&n.businessName!==n.title?(0,l.jsxs)("div",{children:[n.businessName," ",n.title]}):(0,l.jsx)("div",{children:n.title}),(0,l.jsx)("span",{className:"whitespace-pre-wrap",children:t.streetAddress}),(0,l.jsx)("span",{className:"block",children:h()([t.suburb,t.state,t.postcode]).join(" ")}),(0,l.jsx)("a",{href:(0,i.Z)(n),target:"_blank",rel:"noopener noreferrer",className:"underline hover:no-underline",children:"Get Directions"})]})})},contactDetailsBlock:()=>{let{practice:e}=(0,A.W4)();return(0,l.jsxs)(l.Fragment,{children:[(null==e?void 0:e.email)&&(0,l.jsxs)("div",{className:"mb-5",children:[(0,l.jsx)("div",{className:"font-medium",children:"Email"}),(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)(w.default,{to:"mailto:".concat(null==e?void 0:e.email),showText:!1,
1contentBlockName:"Practice Summary",menuSelection:e.title,className:"break-words underline hover:no-underline",children:null==e?void 0:e.email})}),(0,l.jsx)(w.default,{to:"mailto:".concat(null==e?void 0:e.email),showText:!1,title:null==e?void 0:e.email,contentBlockName:"Practice Summary",menuSelection:e.title,className:"inline md:hidden break-words underline hover:no-underline",children:"Email Us"})]}),(null==e?void 0:e.phone)&&(0,l.jsxs)("div",{className:"mb-5",children:[(0,l.jsx)("div",{className:"font-medium",children:"Phone"}),(0,l.jsx)(w.default,{to:"tel:".concat(null==e?void 0:e.phone),showText:!1,contentBlockName:"Practice Summary",menuSelection:e.title,children:null==e?void 0:e.phone})]})]})},moreInfoBlock:()=>{var e;let{practice:t}=(0,A.W4)();return(0,l.jsx)(l.Fragment,{children:!u()(null==t?void 0:t.access)&&(0,l.jsxs)("div",{className:"mb-5",children:[(0,l.jsx)("div",{className:"font-medium",children:"More Information"}),null==t?void 0:null===(e=t.access)||void 0===e?void 0:e.map((e,t)=>(0,l.jsx)("div",{children:e.title},t))]})})},rawHtml:function(e){let{node:t}=e;return T.some(e=>{var n;return null==t?void 0:null===(n=t.html)||void 0===n?void 0:n.includes(e)})?(0,l.jsx)(M,{html:null==t?void 0:t.html}):(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.html}})},cards:e=>{let{node:t}=e,{trackProps:n}=(0,g.useContext)(el),{cards:r}=t;return(0,l.jsx)("div",{children:null==r?void 0:r.map((e,t)=>{let{title:r,copy:i,image:s,link:o}=e;return(0,l.jsxs)(w.default,{className:"md:grid md:grid-cols-2 block gap-4 bg-neutralGrey100 rounded-lg overflow-hidden [&:not(:last-child)]:mb-4",nonLinkTag:"div",link:null==o?void 0:o[0],showText:!1,...n||{},children:[(0,l.jsxs)("div",{className:"p-4 flex flex-col",children:[(0,l.jsx)("div",{className:"flex-grow font-medium text-20 mb-4",children:r}),(0,l.jsx)("div",{children:i})]}),(0,l.jsx)(j.default,{image:s,mobileAspect:1.5,aspect:1,imageSizes:"(max-width: ".concat(a().md,")px 100vw, 25vw")})]},t)})})},typeformBlock:e=>{let{node:t}=e,{heading:n,typeformId:r}=t||{};if(r)return(0,l.jsxs)("div",{className:"my-8",children:[n&&(0,l.jsx)("h5",{className:"mb-4",children:n}),(0,l.jsx)(en.Z,{id:r})]})}},marks:{link:e=>{let{mark:t,children:n}=e,{trackProps:r}=(0,g.useContext)(el);return(0,l.jsx)(w.default,{link:{...t},showText:!1,className:"underline font-700 hover:no-underline",...r||{},children:n})},"semi-bold":e=>{let{children:t}=e;return(0,l.jsx)("span",{className:"font-[500]",children:t})},sup:e=>{let{children:t}=e;return(0,l.jsx)("sup",{children:t})},sub:e=>{let{children:t}=e;return(0,l.jsx)("sub",{children:t})}}},ei=(0,g.forwardRef)((e,t)=>{let{className:n,content:r,serializer:a=ea,jumpTo:i=!1,mobileCta:s=!1,sidebarData:d,pageTitle:u=null,trackProps:m}=e,h=(0,g.useRef)(),p=(0,g.useMemo)(()=>J(r),[r]),x=er(i,r);return r?(0,l.jsxs)("div",{className:(0,c.Z)("[&>div>h1]:text-h5 [&>div>h1]:mt-14 [&>div>h1]:mb-8 first:[&>div>h1]:mt-0","[&>div>h2]:text-h5 [&>div>h2]:mt-14 [&>div>h2]:mb-8 first:[&>div>h2]:mt-0 [&>div>h2]:pt-8 [&>div>h2]:border-t [&>div>h2]:border-neutralGrey200","[&>div>h3]:text-h6 [&>div>h3]:mt-12 [&>div>h3]:mb-8 first:[&>div>h3]:mt-0","[&>div>h4]:text-h6 [&>div>h4]:mt-12 [&>div>h4]:mb-8 first:[&>div>h4]:mt-0","[&>div>h5]:text-18 [&>div>h5]:mt-12 [&>div>h5]:mb-8 first:[&>div>h5]:mt-0","[&>div>h6]:text-14 [&>div>h6]:mt-12 [&>div>h6]:mb-8 first:[&>div>h6]:mt-0","[&>div>ul]:list-disc [&>div>ul]:pl-6 [&>div>ul]:mb-8","[&>div>ol]:list-disc [&>div>ol]:pl-6","[&>div>li]:mb-5","[&>div>p]:mb-5","col-start-1 md:col-start-7 col-span-full",x&&"h-[calc(100%-(100vh-10rem))]",n),ref:h,children:[x&&(0,l.jsx)(q,{links:p,pageTitle:u,sidebarData:d}),s&&(0,l.jsx)(Q,{richContentRef:h}),(0,l.jsx)(el.Provider,{value:{trackProps:m},children:(0,l.jsx)(o(),{blocks:r,serializers:a,rer:t})})]}):null});ei.displayName="RichContent";var es=ei},93569:function(e,t,n){"use strict";n.d(t,{ZP:function(){return p},RF:function(){return h},gh:function(){return u},Be:function(){return m}});var l=n(57437),r=n(2265);let a=r.useLayoutEffect;var i=n(79116),s=n.n(i),o=n(90569),c=n.n(o);let d=(0,r.createContext)();function u(){return(0,r.useContext)(d)}function m(e){let{lock:t,unlock:n}=u();(0,r.useEffect)(()=>{e?t():n()},[e,t,n])}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,n=u(),{triggerOnMount:l}=t;(0,r.useEffect)(()=>(n.scrollData.current.scrollCallbacks.push(e),()=>{c()(n.scrollData.current.scrollCallbacks,t=>t===e)}),[e,n]),(0,r.useEffect)(()=>{l&&e({y:window.scrollY,lastY:window.scrollY})},[e,l])}function p(e){let{children:t,wrap:n,...i}=e,o=(0,r.useRef)(),c=(0,r.useRef)({y:0,lastY:0,scrollCallbacks:[]}),u=(0,r.useCallback)(()=>{c.current.element.classList.add("lock-scroll"),c.current.element.style.paddingRight="var(--scrollbarWidth)";let e=document.getElementById("header");e&&(e.style.paddingRight="var(--scrollbarWidth)")},[]),m=(0,r.useCallback)(()=>{c.current.element.classList.remove("lock-scroll"),c.current.element.style.paddingRight="";let e=document.getElementById("header");e&&(e.style.paddingRight="")},[]);return(a(()=>{let e;let t=()=>{let{y:n,lastY:l,scrollCallbacks:r,element:a}=c.current;n!==l&&(s()(r,e=>{e({y:n,lastY:l,element:a})}),c.current.lastY=n),e=window.requestAnimationFrame(t)};t();let n=o.current||window;c.current.element=o.current||document.documentElement;let l=()=>{c.current.y=window.scrollY};return n.addEventListener("scroll",l),()=>{window.cancelAnimationFrame(e),n.removeEventListener("scroll",l)}},[]),n)?(0,l.jsx)(d.Provider,{...i,value:{scrollData:c,lock:u,unlock:m},children:(0,l.jsx)("div",{className:"overflow-y-auto",ref:o,children:t})}):(0,l.jsx)(d.Provider,{...i,value:{scrollData:c,lock:u,unlock:m},children:t})}},1993:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var l=n(57437),r=n(11049),a=n(57042),i=n(23890),s=n(48004),o=n.n(s),c=n(2265);function d(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3H19C20.11 3 21 3.9 21 5V19C21 20.1 20.11 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM5 12L10 17L19 8L17.59 6.58L10 14.17L6.41 10.59L5 12Z",fill:"currentColor"})})}function u(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM19 19V5H5V19H19Z",fill:"currentColor"})})}var m=n(92076),h=n.n(m),p=n(37327),x=n(54727);let f=(e,t)=>{let n=h()(e,e=>e._id===t._id);return -1!==n?e.splice(n,1):e.push(t),[...e]};function v(e){let{filter:t,showMore:n,i:r}=e,{value:s}=(0,i.Dv)(x.IG),[o,m]=(0,i.KO)(x.aW),h=(0,p.useTracker)(),v=(0,c.useCallback)(e=>m(t=>f(t,e)),[m]),g=(0,c.useCallback)(()=>{t&&v(t);let{treatments:e,healthFunds:n,offers:l,languages:r}=(0,x.UP)(o);h("find_a_practice_search",{treatments_search_filter:e,location_search_filter:s,health_funds_search_filter:n,offers_search_filter:l,languages_search_filter:r})},[t,o,s,h,v]),b=(0,c.useMemo)(()=>!!o.find(e=>e._id===t._id),[o,t._id]);return(0,l.jsxs)("button",{className:"mb-[0.1rem] downLg:px-0 px-4 flex items-center justify-between w-full downLg:hover:bg-transparent hover:bg-neutralGrey100 transition-background duration-200 downLg:h-8 h-10 rounded",onClick:g,style:{display:r>3&&!n?"none":"flex"},children:[(0,l.jsx)("div",{className:"text-left",children:null==t?void 0:t.title}),(0,l.jsxs)("div",{className:"relative w-[24px] h-[24px]",children:[(0,l.jsx)(u,{className:"absolute"}),(0,l.jsx)("div",{className:(0,a.Z)(b?"checked":"unchecked","w-full h-full scale-0"),children:(0,l.jsx)(d,{className:"absolute"})})]})]})}var g=n(62513);let b=(e,t)=>{var n;return null===(n=o()(e,t,"_id"))||void 0===n?void 0:n.length};function j(e){let{title:t,subtitle:n,showAll:s,filters:o,id:d,k:u}=e,[m,h]=(0,i.KO)(x.aW),p=(0,i.b9)(x.LO),[f,j]=(0,c.useState)(!1),[w,y]=(0,x.ev)(d),N=(0,c.useRef)([]),k=(0,c.useRef)(),C=(0,c.useRef)();(0,c.useEffect)(()=>{s&&p(o)},[s,o,p]);let _=(0,c.useMemo)(()=>b(m,o),[m,o]),Z=(0,c.useCallback)(()=>{y(!w)},[w,y]),L=(0,c.useCallback)(()=>{h(e=>{let t=null==o?void 0:o.map(e=>e._id);return(null==e?void 0:e.filter(e=>!t.includes(e._id)))||[]})},[o,h]),T=(0,c.useCallback)(()=>j(!f),[f]);return(0,g.BZ)(C,k,w),(0,g.P7)(N,m),(0,c.useEffect)(()=>{w||j(!1)},[w,j]),(0,l.jsxs)("div",{className:"flex flex-col relative",children:[(0,l.jsx)("a",{className:"downLg:hidden absolute top-[1.1rem] right-14 text-12 opacity-0 hover:!opacity-80 underline cursor-pointer",onClick:L,ref:k,children:"Clear"}),(0,l.jsxs)("button",{className:(0,a.Z)(0===u&&"downLg:border-0","downLg:pointer-events-none py-4 pr-5 flex transition-opacity duration-300 items-center justify-between border-t border-neutralGrey200"),onClick:Z,children:[(0,l.jsxs)("p",{className:"font-[500]",children:[t,_>0?" (".concat(_,")"):""]}),(0,l.jsx)(r.Z,{className:(0,a.Z)(w?"rotate-180":"rotate-0","downLg:hidden transition-transform duration-300")})]}),(0,l.jsx)("div",{className:"overflow-hidden",style:{height:0},ref:C,children:(0,l.jsxs)("div",{className:(0,a.Z)(n?"downLg:mt-0 mt-[0.05rem]":"mt-1","mb-8 downLg:text-14 text-base"),children:[n&&(0,l.jsx)("p",{className:"downLg:mb-2 mb-4 downLg:px-0 px-4 text-secondary400",children:n}),null==o?void 0:o.map((e,t)=>(0,l.jsx)(v,{filter:e,showMore:f,showAll:s,i:t},e.id)),(null==o?void 0:o.length)>4&&(0,l.jsx)("div",{className:"downLg:pl-0 pl-4 mt-3 underline cursor-pointer font-[500]",onClick:T,children:f?"Less":"More"})]})})]})}var w=[{title:"Treatments",id:"treatment"},{title:"Offers, Benefits & Schemes",id:"pageTemplate"}];function y(e){let{filters:t}=e;return(0,l.jsxs)("div",{className:"pb-52 downLg:pb-20 text-14",children:[(0,l.jsx)("p",{className:"mb-4 downLg:hidden",children:"Filters"}),null==w?void 0:w.map((e,n)=>
1(0,l.jsx)(j,{title:e.title,subtitle:null==e?void 0:e.subtitle,showAll:null==e?void 0:e.showAll,filters:t[e.id],k:n,id:e.id},e.id))]})}},63133:function(e,t,n){"use strict";n.d(t,{A:function(){return f},Z:function(){return Map}});var l=n(57437),r=n(4991),a=n(24748),i=n(57042),s=n(42815),o=n(23890),c=n(2265),d=n(94771),u=n(37327),m=n(50781),h=n(56265);let p="data:image/svg+xml,".concat(encodeURIComponent('<svg width="68" height="68" viewBox="0 0 68 68" fill="none" xmlns="http://www.w3.org/2000/svg">\n <mask id="mask0_1201_30930" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="68" height="68">\n <rect width="68" height="68" fill="#D9D9D9"/>\n </mask>\n <g mask="url(#mask0_1201_30930)">\n <path d="M34.0002 34.0003C35.5585 34.0003 36.8925 33.4455 38.0022 32.3357C39.112 31.226 39.6668 29.892 39.6668 28.3337C39.6668 26.7753 39.112 25.4413 38.0022 24.3316C36.8925 23.2219 35.5585 22.667 34.0002 22.667C32.4418 22.667 31.1078 23.2219 29.9981 24.3316C28.8884 25.4413 28.3335 26.7753 28.3335 28.3337C28.3335 29.892 28.8884 31.226 29.9981 32.3357C31.1078 33.4455 32.4418 34.0003 34.0002 34.0003ZM34.0002 62.3337C26.3974 55.8642 20.7189 49.8552 16.9647 44.3066C13.2106 38.758 11.3335 33.6225 11.3335 28.9003C11.3335 21.817 13.612 16.1739 18.1689 11.9712C22.7259 7.76838 28.0029 5.66699 34.0002 5.66699C39.9974 5.66699 45.2745 7.76838 49.8314 11.9712C54.3884 16.1739 56.6668 21.817 56.6668 28.9003C56.6668 33.6225 54.7897 38.758 51.0356 44.3066C47.2814 49.8552 41.6029 55.8642 34.0002 62.3337Z" fill="#00384A"/>\n </g>\n</svg>'));var x=n(54727);let f=e=>{let{practice:t,hovered:n,addressLink:i,onClick:s,onMouseOver:o,onMouseOut:d,...u}=e,x=(0,c.useRef)(),f=n?60:50,v=new window.google.maps.LatLng(t.address.location.lat,t.address.location.lng),g=(0,c.useCallback)(e=>{null==o||o(e,t)},[o,t]),b=(0,c.useCallback)(e=>{null==d||d(e,t)},[d,t]),j=(0,c.useCallback)(e=>{null==s||s(e,t),y(e=>!e)},[s,t]),[w,y]=(0,c.useState)(!1),N=(0,c.useCallback)(()=>{y(!1)},[]),k=(0,r._)(t),{address:C,distance:_,phone:Z,image:L}=t;return(0,l.jsx)(a.Jx,{position:v,title:k,ref:x,onMouseOver:g,onMouseOut:b,onClick:j,icon:{url:p,scaledSize:new window.google.maps.Size(f,f),labelOrigin:{x:f/2,y:f+8}},...u,children:w&&(0,l.jsx)(a.nx,{onCloseClick:N,anchor:x.marker,children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"w-24 h-24 bg-primary100 rounded overflow-hidden flex-shrink-0 mr-2",children:(0,l.jsx)(h.default,{image:L,aspect:1,imageSizes:"6rem"})}),(0,l.jsxs)("div",{className:"font-normal pr-6",children:[(0,l.jsx)("h6",{className:"text-14 mb-1",children:k}),(0,l.jsxs)("a",{className:"mb-1 text-12 text-secondary400",href:i,target:"_blank",rel:"noopener noreferrer",children:[(0,l.jsx)("p",{children:null==C?void 0:C.streetAddress}),(0,l.jsx)("p",{children:"".concat(null==C?void 0:C.suburb," ").concat(null==C?void 0:C.state," ").concat(null==C?void 0:C.postcode)})]}),(0,l.jsxs)("div",{className:"mb-1 flex text-12 text-secondary400",children:[_&&(0,l.jsx)("p",{className:"mr-4",children:"".concat(_,"km away")}),(0,l.jsx)("p",{children:Z})]}),(0,l.jsx)("div",{children:(0,l.jsx)(m.default,{className:"text-12 text-secondary400 underline hover:no-underline",link:t,showText:!1,target:"_blank",children:"More Info"})})]})]})})})},v={fullscreenControl:!1,streetViewControl:!1,mapTypeControl:!1,gestureHandling:"greedy"},g=e=>{let{practices:t}=e,{ready:n,value:r,setValue:i,suggestions:{data:s},clearSuggestions:m}=(0,d.ZP)({requestOptions:{componentRestrictions:{country:"AU"},types:["postal_code","locality","point_of_interest"]}}),h=(0,o.b9)(x.Wq),p=(0,o.b9)(x.IG),[g,b]=(0,o.KO)(x.Bq),j=(0,o.Dv)(x.p),w=(0,o.Dv)(x.aW),y=(0,o.Dv)(x.cU),N=(0,u.useTracker)(),k=(0,c.useRef)();(0,c.useEffect)(()=>{p({data:s,ready:n,value:r,setValue:i,clearSuggestions:m})},[s,p,n,r,i,m]);let C=(0,c.useCallback)(()=>{k.current&&h(k.current.getBounds())},[h]),_=(0,c.useCallback)(()=>{if(!y)return;let{treatments:e,healthFunds:t,offers:n,languages:l}=(0,x.UP)(w);N("find_a_practice_search",{treatments_search_filter:e,location_search_filter:r,health_funds_search_filter:t,offers_search_filter:n,languages_search_filter:l})},[y,w,N,r]),Z=(0,c.useCallback)(()=>{k.current&&b(k.current.getZoom())},[b]),L=(0,c.useCallback)(e=>{let t=e.getBounds(),n=e.getMap();n.fitBounds(t),n.setZoom(n.getZoom()-1)},[]);return(0,l.jsxs)(a.b6,{zoom:g,center:y,onBoundsChanged:C,onZoomChanged:Z,onDragEnd:_,mapContainerClassName:"google-map-container",id:"d2870337389bb78e",onLoad:e=>{k.current=e},options:v,children:[(0,l.jsx)(a.XL,{averageCenter:!0,enableRetinaIcons:!0,gridSize:10,zoomOnClick:!1,onClick:L,children:e=>null==t?void 0:t.map(t=>(0,l.jsx)(f,{hovered:j===t,practice:t,clusterer:e},t._id))}),y&&(0,l.jsx)(a.Jx,{position:y})]})},b=["places"];function Map(e){let{isOpen:t,initialised:n,practices:r}=e,o=(0,c.useRef)(),{isLoaded:d}=(0,a.Db)({googleMapsApiKey:"AIzaSyBimwEeLsX7o9kZtt_UQAgkczENxOiF3fw",libraries:b});return((0,c.useEffect)(()=>{s.ZP.to(o.current,{x:t&&n?"100vw":0,duration:t&&n?1.2:.6,ease:"expo.out"})},[t,n]),d)?(0,l.jsx)("div",{className:(0,i.Z)(t&&"downLg:!translate-x-0 downLg:left-0 downLg:w-screen","fixed top-0 -left-[34vw] w-[34vw] h-screen z-modalShadow"),ref:o,children:(0,l.jsx)(g,{practices:r})}):(0,l.jsx)("div",{ref:o,className:"fixed",children:"Loading..."})}},62513:function(e,t,n){"use strict";n.d(t,{BZ:function(){return d},It:function(){return m},P7:function(){return u},jp:function(){return c},nR:function(){return o}});var l=n(20314),r=n(41873),a=n.n(r),i=n(42815),s=n(2265);let o=(e,t,n)=>{let r=(0,l.h)();(0,s.useEffect)(()=>
1{if(!e.current)return;let l=r.current.width<=a().lg,s=t||n;i.ZP.to(e.current,{y:s?l?"0rem":"-0.6rem":"0",scale:s?l?0:.75:1,color:s?"rgba(109, 109, 109, 1)":"rgba(0, 0, 0, 1)",duration:.6,ease:"expo.out"})},[e,t,n,r])},c=(e,t,n)=>{(0,s.useEffect)(()=>{e.current&&t.current&&(i.ZP.to(e.current,{scale:n?0:1,x:n?-10:0,opacity:n?0:1,duration:1,ease:"expo.out"}),i.ZP.to(t.current,{rotate:n?"180deg":"0deg",scale:n?1:0,duration:.6,ease:"expo.out"}))},[e,t,n])},d=(e,t,n)=>{let r=(0,l.h)();(0,s.useEffect)(()=>{if(!e.current||!t.current)return;let l=r.current.width<=a().lg,s={duration:.3,ease:"power2.inOut"};i.ZP.to(e.current,{height:n||l?"auto":0,...s}),i.ZP.to(t.current,{opacity:n||l?1:0,pointerEvents:n||l?"auto":"none",...s})},[r,e,t,n])},u=(e,t)=>{(0,s.useEffect)(()=>{if(!e.current)return;let n=document.querySelectorAll(".checked"),l={duration:.3,ease:"expo.out"};if((null==t?void 0:t.length)===0||(null==n?void 0:n.length)===0){i.ZP.to(".unchecked",{scale:0,...l});return}i.ZP.to(".unchecked",{scale:0,...l}),i.ZP.to(".checked",{scale:1,...l})},[e,t])},m=(e,t,n,r,o,c,d)=>{let u=(0,l.h)();(0,s.useEffect)(()=>{let l=i.ZP.timeline({defaults:{duration:.6,ease:"expo.out"}}),s=u.current.width<=a().lg;return l.to(r.current,{marginRight:d?e?s?"1.25rem":"2rem":"1.25rem":"0",x:d?e?s?"100vw":"66vw":s?"100vw":"30vw":"0"},0),l.to(t.current,{autoAlpha:d&&e?1:0,delay:d&&e?.3:0,duration:d&&e?.6:0},0),l.to(n.current,{x:d?e?"0":s?"0":"-36vw":s?"-100vw":"-66vw"},0),l.to(o.current,{x:d?"0":s?"-100vw":"-20vw"},0),l.to(c.current,{x:d?e?"0":s?"0":"-36vw":s?"-100vw":"-66vw"},0),()=>{l.kill()}},[u,e,t,n,r,o,c,d])}},49207:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var l=n(57437),r=n(57042),a=n(23890),i=n(2265),s=n(42089),o=n(34936),c=n(52758);function d(e){let{className:t}=e;return(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M8 18V12H10V14H18V16H10V18H8ZM0 16V14H6V16H0ZM4 12V10H0V8H4V6H6V12H4ZM8 10V8H18V10H8ZM12 6V0H14V2H18V4H14V6H12ZM0 4V2H10V4H0Z",fill:"currentColor"})})}var u=n(54727);function m(){let e=(0,a.Dv)(u.t4),[t,n]=(0,a.KO)(u.QX),s=(0,i.useCallback)(()=>{n(e=>!e)},[n]);return(0,l.jsx)("div",{className:(0,r.Z)(e&&"downLg:opacity-0 downLg:pointer-events-none",t?"bg-neutralGrey100 border-neutralGrey100":"bg-transparent border-neutralGrey200","lg:hidden absolute top-8 right-5 flex justify-center items-center h-10 w-10 transition-background duration-300 border rounded-full"),onClick:s,children:(0,l.jsx)(d,{className:"w-4 h-4"})})}var h=n(1993),p=n(93540);function x(e){let{className:t,children:n}=e,[s,o]=(0,a.KO)(u.aW),[c,d]=(0,a.KO)(u.QX),m=(0,i.useCallback)(()=>{o([])},[o]),h=(0,i.useCallback)(()=>{d(!1)},[d]);return(0,l.jsxs)("div",{className:(0,r.Z)(t,c?"downLg:opacity-100 downLg:pointer-events-auto":"downLg:opacity-0 downLg:pointer-events-none","downLg:absolute downLg:top-[5rem] downLg:w-[calc(100%-2.5rem)] downLg:transition-opacity downLg:duration-300 relative"),children:[(0,l.jsx)("div",{className:"pt-8 downLg:pt-2 downLg:px-4 downLg:h-[60vh] downLg:overflow-y-scroll downLg:overflow-x-hidden downLg:z-modal downLg:bg-backgroundColor downLg:shadow-[0_1px_4px_0px_rgba(0,0,0,0.12)] downLg:border downLg:border-neutralGrey200 downLg:rounded-2xl",children:n}),(0,l.jsxs)("div",{className:"lg:hidden absolute bottom-0 mx-4 py-4 flex justify-between w-[calc(100%-2rem)] z-modal bg-backgroundColor",children:[(0,l.jsx)(p.Z,{innerClassName:"!bg-neutralGrey200 !w-full",className:"!w-[48%]",onClick:m,children:"Clear ".concat((null==s?void 0:s.length)>0?"(".concat(null==s?void 0:s.length,")"):"")}),(0,l.jsx)(p.Z,{innerClassName:"!w-full",className:"!w-[48%]",onClick:h,children:"Apply"})]})]})}var f=n(20314);function v(e){let{className:t}=e;return(0,l.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M4.98421 13.2244L3.85779 11.3272L1.72351 10.8529L1.93101 8.65938L0.478516 6.99939L1.93101 5.3394L1.72351 3.14583L3.85779 2.67155L4.98421 0.774414L6.99992 1.63405L9.01562 0.774414L10.142 2.67155L12.2763 3.14583L12.0688 5.3394L13.5213 6.99939L12.0688 8.65938L12.2763 10.8529L10.142
111.3272L9.01562 13.2244L6.99992 12.3647L4.98421 13.2244ZM5.48814 11.7126L6.99992 11.0604L8.54134 11.7126L9.37134 10.2897L11.0017 9.90438L10.8535 8.24438L11.9503 6.99939L10.8535 5.72475L11.0017 4.06476L9.37134 3.70905L8.5117 2.28619L6.99992 2.93833L5.4585 2.28619L4.6285 3.70905L2.99815 4.06476L3.14636 5.72475L2.04958 6.99939L3.14636 8.24438L2.99815 9.93402L4.6285 10.2897L5.48814 11.7126ZM6.37742 9.10402L9.72705 5.75439L8.89705 4.89475L6.37742 7.41439L5.10278 6.16939L4.27279 6.99939L6.37742 9.10402Z",fill:"#00384A"})})}var g=n(41873),b=n.n(g),j=n(42815),w=n(50781),y=n(64437);function N(e){var t;let{isOpen:n,practices:s}=e,c=(0,a.Dv)(u.QX),[d,m]=(0,a.KO)(u.t4),h=(0,i.useRef)(),x=(0,o.W4)(),{bannerText:f}=null!==(t=null==x?void 0:x.search)&&void 0!==t?t:{};return(0,i.useEffect)(()=>{j.ZP.to(h.current,{x:n?"0%":"-100%",duration:.6,ease:"expo.out"})},[n]),(0,l.jsxs)("div",{className:(0,r.Z)(c?"downLg:z-modalShadow":"downLg:z-videoOverlay","fixed left-0 bottom-0 downLg:px-10 flex items-center justify-center downLg:w-screen w-[30vw] h-20 -translate-x-full border-t border-r border-neutralGrey200 bg-backgroundColor z-modal"),ref:h,children:[(0,l.jsx)("div",{className:(0,r.Z)((null==s?void 0:s.length)>0?"downLg:hidden":"downLg:block","text-12 text-center"),children:f?(0,l.jsx)(y.default,{content:f}):(0,l.jsxs)("p",{children:["With over ",(0,l.jsx)(w.default,{className:"underline cursor-pointer",to:"/practices",children:"90 locations"})," across Australia, you will not have far to travel."]})}),(0,l.jsx)("div",{className:(0,r.Z)((null==s?void 0:s.length)>0?"block":"hidden","lg:hidden"),children:(0,l.jsx)(p.Z,{innerClassName:"!w-full",className:"!w-[calc(100vw-2.5rem)]",onClick:()=>m(e=>!e),children:d?"Close map":"See on map"})})]})}var k=n(4991),C=n(48004),_=n.n(C),Z=n(42077),L=n.n(Z),T=n(37327),M=n(56265);function S(e){var t,n,s;let{data:o}=e,c=(0,a.b9)(u.ir),[d,m]=(0,a.KO)(u.p),h=(0,a.Dv)(u.aW),{address:p,image:x,phone:f}=null!=o?o:{},[g,b]=(0,i.useState)(!1),{value:j}=(0,a.Dv)(u.IG),y=(0,T.useTracker)(),N=(0,k._)(o),C=(0,i.useCallback)(()=>{let{treatments:e,healthFunds:t,offers:n,languages:l}=(0,u.UP)(h);y("practice_selection",{menu_selection:N,treatments_search_filter:e,location_search_filter:j,health_funds_search_filter:t,offers_search_filter:n,languages_search_filter:l})},[N,j,y,h]);(0,i.useEffect)(()=>{var e;let t=(null===(e=_()(h,null==o?void 0:o.preferredHealthFunds,"_id"))||void 0===e?void 0:e.length)>0;b(t),c(t)},[o,h,c]);let Z=(0,i.useCallback)(e=>{m((null==e?void 0:e.type)==="mouseenter"?o:null)},[o,m]);if(!p)return null;let S=(null===(t=o.redirect)||void 0===t?void 0:t.enabled)?null===(n=o.redirect)||void 0===n?void 0:n.url:o.siteUrl;return(0,l.jsxs)(w.default,{className:(0,r.Z)(L()(d,null==o?void 0:null===(s=o.address)||void 0===s?void 0:s.location)?"bg-neutralGrey200":"bg-transparent","flex mb-2 downLg:mb-0 justify-between items-center downLg:p-5 p-3 w-full text-left hover:bg-neutralGrey200 transition-background duration-200 rounded-lg"),onMouseEnter:Z,onMouseLeave:Z,onClick:C,link:S?null:o,to:S,target:"_blank",showText:!1,logEvent:!1,children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("h6",{className:"text-base",children:N}),g&&(0,l.jsx)("div",{className:"ml-2 flex justify-center items-center w-5 h-5 bg-primary500 rounded-full",children:(0,l.jsx)(v,{})})]}),(0,l.jsxs)("div",{className:"text-14 text-secondary400",children:[(0,l.jsx)("p",{children:null==p?void 0:p.streetAddress}),(0,l.jsx)("p",{children:"".concat(null==p?void 0:p.suburb," ").concat(null==p?void 0:p.state," ").concat(null==p?void 0:p.postcode)}),(0,l.jsxs)("div",{className:"mt-1 flex",children:[(0,l.jsx)("p",{className:"mr-4",children:"".concat(o.distance,"km away")}),(0,l.jsx)("p",{children:f})]})]})]}),(0,l.jsx)("div",{className:"w-24 h-24 bg-primary100 rounded overflow-hidden flex-shrink-0",children:(0,l.jsx)(M.default,{image:x,aspect:1,imageSizes:"6rem"})})]})}function P(e){let{practices:t}=e;return null==t?void 0:t.map(e=>(0,l.jsx)(S,{data:e},null==e?void 0:e._id))}var A=n(48911),E=n.n(A),R=n(96778),B=n.n(R),I=n(94771);function z(e){let{isOpen:t}=e,{setValue:n,clearSuggestions:s}=(0,a.Dv)(u.IG),[o,c]=(0,a.KO)(u.cU),d=(0,a.b9)(u.lZ),m=(0,a.Dv)(u.f6),[h,p]=(0,i.useState)([]),[x,f]=(0,i.useState)(!1),v=(0,i.useRef)();(0,i.useEffect)(()=>{t||f(!1),j.ZP.to(v.current,{x:!t||B()(h)||x?"-100%":"0%",duration:.6,ease:"expo.out"})},[t,h,x]),(0,i.useEffect)(()=>{let e=JSON.parse(localStorage.getItem("recentLocations"));localStorage.setItem("recentLocations",JSON.stringify(E()(B()(e)&&B()(m)?[]:e.concat(m)).slice(-2))),p(JSON.parse(localStorage.getItem("recentLocations")))},[m]);let g=(0,i.useCallback)(e=>{let t=async()=>{d(!0),n(e,!1),s();let t=await (0,I.LM)({address:e}),{lat:l,lng:r}=await (0,I.WV)(t[0]);c({lat:l,lng:r})};t()},[n,s,c,d]);return(0,i.useEffect)(()=>{o&&f(!0)},[o]),(0,l.jsxs)("div",{className:(0,r.Z)(!t||B()(h)||x?"border-none":"border-r","hidden md:flex fixed left-0 bottom-20 downLg:px-10 px-8 py-6 flex-col downLg:w-screen w-[30vw] h-fit -translate-x-full border-neutralGrey200 bg-backgroundColor z-modal"),ref:v,children:[(0,l.jsx)("p",{className:"mb-2 text-14",children:"Recent locations"}),h.map(e=>(0,l.jsx)("button",{className:"mb-2 w-fit text-left text-14 font-medium",onClick:()=>g(e),children:e},e))]})}var D=n(62513);function G(e){let{practices:t,isOpen:n,initialised:s,loading:o,scrollingDown:d=!1,setScrollingDown:m=!1}=e,h=(0,a.Dv)(u.QX),p=(0,a.Dv)(u.t4),x=(0,a.Dv)(u.ir),g=(0,a.Dv)(u.U4),j=(0,i.useRef)(),w=(0,i.useRef)(0),y=(0,i.useRef)(),k=(0,i.useRef)(),C=(0,i.useRef)(),_=(0,i.useRef)(),Z=(0,i.useRef)();return(0,D.It)(s,j,k,C,y,_,n),!function(e,t,n){let l=(0,f.h)();(0,i.useEffect)(()=>{let r=l.current.width<=b().lg;if(!r||!t)return;let a=e.current,i=()=>{let e=a.scrollTop;t(e>n.current),n.current=e<=0?0:e};return a.addEventListener("scroll",i),()=>{a.removeEventListener("scroll",i)}},[t,n,e,l])}(Z,m,w),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,r.Z)((h||g||p)&&"downLg:!opacity-0 downLg:!pointer-events-none",(null==t?void 0:t.length)>0&&"downLg:border-t downLg:border-neutralGrey200",(null==t?void 0:t.length)>0&&n?"pointer-events-auto":"pointer-events-none",d&&"downLg:-translate-y-16","fixed downLg:top-[10rem] downLg:transition-all downLg:duration-300 top-[6.5rem] downLg:left-0 left-[31.75vw] downLg:w-full w-[32.5vw] downLg:h-[85vh] h-[calc(100vh_-_8rem)] opacity-0 downLg:z-modal z-modal"),ref:j,children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("p",{className:"downLg:hidden mb-4 text-14",children:"".concat((null==t?void 0:t.length)>0?null==t?void 0:t.length:0," dentists found")}),x&&(0,l.jsxs)("div",{className:"relative flex text-10 md:w-44 mt-2 mx-4 md:mt-0 md:mx-0 items-center md:items-start",children:[(0,l.jsx)("div",{className:"flex justify-center items-center w-5 h-5 bg-primary500 rounded-full mr-2 flex-shrink-0",children:(0,l.jsx)(v,{})}),(0,l.jsx)("p",{children:"The practice is a preferred provider of your selected health fund"})]})]}),(0,l.jsxs)("div",{className:"pb-40 h-full overflow-auto",ref:Z,children:[o&&(0,l.jsx)("div",{className:"absolute z-50 bg-backgroundColor inset-0 flex justify-center items-center",children:(0,l.jsx)(c.Z,{})}),(0,l.jsx)(P,{practices:t})]})]}),(0,l.jsx)("div",{className:(0,r.Z)(p||!n?"downLg:!opacity-0 downLg:!pointer-events-none":"downLg:!opacity-100 downLg:!pointer-events-auto","fixed top-0 left-0 downLg:-translate-x-screen -translate-x-[66vw] downLg:w-screen w-[66vw] h-screen downLg:transition-opacity duration-600 bg-backgroundColor z-modalShadow"),ref:k}),(0,l.jsx)(z,{isOpen:n}),(0,l.jsx)(N,{isOpen:n,practices:t})]})}function F(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47 6.47 2 12 2C17.53 2 22 6.47 22 12C22 17.53 17.53 22 12 22C6.47 22 2 17.53 2 12ZM15.59 17L17 15.59L13.41 12L17 8.41L15.59 7L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17Z",fill:"currentColor"})})}var H=n(70641),V=n(42796),O=n.n(V);function W(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.9 18L7.05 10.95L0 8.1V6.7L18 0L11.3 18H9.9ZM10.55 14.3L14.6 3.4L3.7 7.45L8.6 9.4L10.55 14.3Z",fill:"currentColor"})})}function q(e){let{focused:t,click:n,data:s}=e,{clearSuggestions:o,setValue:c}=(0,a.Dv)(u.IG),[d,m]=(0,a.KO)(u.U4),h=(0,a.b9)(u.lZ),p=(0,a.b9)(u.cU),[x,f]=(0,i.useState)(-1),v=(0,i.useRef)(),g=(0,i.useCallback)(()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(e=>{let{latitude:t,longitude:n}=e.coords;p({lat:t,lng:n});let l=new window.google.maps.Geocoder;if(l){let e=new window.google.maps.LatLng(t,n);l.geocode({latLng:e},function(e,t){var n;if(t!==window.google.maps.GeocoderStatus.OK)return;let l=null===(n=e[0])||void 0===n?void 0:n.address_components;c("".concat(l[2].long_name," ").concat(l[4].short_name," ").concat(l[6].short_name,", ").concat(l[5].long_name))})}h(!0),o()},e=>{console.error("Error getting current location:",e.message)}):console.error("Geolocation is not supported by this browser.")},[p,h,c,o]);return(0,i.useEffect)(()=>{j.ZP.to(v.current,{y:d?"0":"-20%",opacity:d?1:0,duration:.3,ease:"expo.out",onComplete:()=>{m(t)}})},[d,t,m]),!function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,i.useCallback)(t=>{"Enter"===t.key&&e()},[e]);(0,i.useEffect)(()=>
1{if(t)return document.addEventListener("keydown",n,!1),()=>document.removeEventListener("keydown",n,!1)},[e,n,t])}(n,t),(0,l.jsxs)("div",{className:(0,r.Z)(d?"pointer-events-auto":"pointer-events-none","px-5 pb-4 absolute top-16 flex flex-col w-full min-h-14 bg-backgroundColor rounded-2xl origin-bottom downLg:top-12 downLg:z-videoOverlay z-modal shadow-[0_1px_4px_0_rgba(0,0,0,0.12)]"),ref:v,children:[(null==s?void 0:s.length)>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-4",children:[(0,l.jsx)("p",{className:"mb-3 text-14 text-neutralGrey300",children:"Suggested locations"}),(0,l.jsx)("div",{onMouseLeave:()=>f(-1),children:s.map((e,t)=>{let{place_id:a,description:i}=e;return(0,l.jsx)("div",{className:(0,r.Z)(x===t||-1===x?"opacity-100":"opacity-50","mb-2 transition-opacity duration-200 cursor-pointer"),onMouseEnter:()=>f(t),onClick:()=>n(i),children:i},a)})})]}),(0,l.jsx)("div",{className:"-ml-5 w-[calc(100%+2.5rem)] h-px bg-neutralGrey200"})]}),(0,l.jsxs)("button",{className:"mt-4 flex items-center",onClick:g,children:[(0,l.jsx)(W,{}),(0,l.jsx)("div",{className:"ml-[0.6rem] font-[500] downLg:font-[600] downLg:text-[10.69px]",children:"Use my location"})]})]})}function U(e){let{buttonText:t}=e,{data:n,value:s,setValue:o,clearSuggestions:c,ready:d}=(0,a.Dv)(u.IG),m=(0,a.Dv)(u.t4),h=(0,a.b9)(u.f6),x=(0,a.b9)(u.lZ),f=(0,a.b9)(u.cU),v=(0,a.Dv)(u.aW),[g,b]=(0,i.useState)(!1),j=(0,T.useTracker)(),w=(0,i.useRef)(),y=(0,i.useRef)(),N=(0,i.useRef)(),k=(0,i.useRef)(),C=(0,i.useRef)(),_=(0,i.useCallback)(e=>{b("focus"===e.type)},[]),Z=(0,i.useCallback)(e=>{var t;o(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.value)},[o]),L=(0,i.useCallback)(e=>{if((null==n?void 0:n.length)===0)return;let t=async e=>{var t,l;w.current!==(null==n?void 0:null===(t=n[0])||void 0===t?void 0:t.description)&&(w.current=null==n?void 0:null===(l=n[0])||void 0===l?void 0:l.description,f(null));let r=e&&"object"!=typeof e?e:w.current,a=r.indexOf(","),i=-1!==a?r.slice(0,a):r;o(i,!1),h(e=>O()([...e,i],-2)),_({type:"blur"}),c();let s=await (0,I.LM)({address:r}),{lat:d,lng:m}=await (0,I.WV)(s[0]);f({lat:d,lng:m});let{treatments:p,healthFunds:x,offers:g,languages:b}=(0,u.UP)(v);j("find_a_practice_search",{treatments_search_filter:p,location_search_filter:i,health_funds_search_filter:x,offers_search_filter:g,languages_search_filter:b})};t(e),x(!0)},[n,x,o,h,_,c,f,v,j]),M=""!==s||g;(0,D.jp)(y,N,M),(0,D.nR)(k,g,s);let S=(0,u.aV)();return(0,l.jsxs)("div",{className:(0,r.Z)(m&&"downLg:opacity-0 downLg:pointer-events-none","relative downLg:transition-opacity downLg:duration-600"),children:[(0,l.jsx)(H.Z,{className:"absolute top-4 left-4 downLg:top-2 downLg:left-3"}),(0,l.jsxs)("div",{className:"absolute top-4 left-12 downLg:top-[0.8rem] downLg:left-11 origin-left downLg:text-[10.69px] pointer-events-none",ref:k,children:["Suburb ",(0,l.jsx)("span",{className:"lg:hidden 2xl:inline",children:"or postcode"})]}),(0,l.jsx)("input",{className:(0,r.Z)(g?"bg-neutralGrey100 border-neutralGrey100":"bg-backgroundColor border-neutralGrey200","downLg:pt-0 downLg:text-[16px] downLg:pl-[2.66rem] downLg:w-[calc(100%-3rem)] downLg:h-10","pt-4 pl-12 w-full h-14 rounded-full outline-0 border transition-all duration-300"),onFocus:_,onBlur:_,onChange:Z,disabled:!d,value:s,type:"text",autoFocus:!0,ref:C}),(0,l.jsx)("div",{className:"absolute top-2 right-2 downLg:hidden origin-right",ref:y,children:(0,l.jsx)(p.Z,{transition:!1,variant:"primary",onClick:L,children:t||"Find a dentist"})}),(0,l.jsx)("div",{className:"absolute top-4 right-3 downLg:top-2 downLg:right-14 cursor-pointer",ref:N,onClick:S,children:(0,l.jsx)(F,{className:"hover:opacity-80"})}),(0,l.jsx)(q,{focused:g,click:L,data:n})]})}var Map=n(63133),J=n(71965);function K(){var e;let[t,n]=(0,i.useState)(!1),d=(0,a.Dv)(u.t4),p=(0,a.Dv)(u.lZ),f=(0,a.Dv)(u.Zz),v=(0,i.useRef)({hasBeenOpened:!1}),g=(0,o.W4)(),{loading:b,data:j}=(0,J.Z)(f),{practices:w,filters:y}=j,N=(0,u.PA)(w,f),{heading:k,searchButtonText:C}=null!==(e=null==g?void 0:g.search)&&void 0!==e?e:{},_=(0,u.PJ)();return(v.current.hasBeenOpened=f||v.current.hasBeenOpened,v.current.hasBeenOpened)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.Z,{className:(0,r.Z)(d&&"downLg:opacity-0 downLg:pointer-events-none","downLg:w-screen downLg:[&>div]:px-5 bg-transparent overflow-x-hidden border-r border-neutralGrey200"),side:"left",isOpen:f,onClose:_,scrollingDown:t,title:k||"Find your nearest dentist",children:[(0,l.jsx)(U,{buttonText:C}),(0,l.jsx)(m,{}),(0,l.jsxs)(x,{className:"min-h-[8rem]",children:[b&&(0,l.jsx)("div",{className:"flex justify-center items-center",children:(0,l.jsx)(c.Z,{})}),y&&(0,l.jsx)(h.default,{filters:y})]})]}),(0,l.jsx)(Map.Z,{isOpen:f,initialised:p,practices:N}),(0,l.jsx)(G,{isOpen:f,scrollingDown:t,setScrollingDown:n,practices:N,initialised:p,onClose:_,loading:b})]}):null}function Q(){return(0,l.jsx)(K,{})}},54727:function(e,t,n){"use strict";n.d(t,{Bq:function(){return M},IG:function(){return _},LO:function(){return k},PA:function(){return U},PJ:function(){return z},QX:function(){return E},U4:function(){return S},UP:function(){return H},Wq:function(){return L},Zz:function(){return y},aV:function(){return I},aW:function(){return N},cU:function(){return Z},ev:function(){return G},f6:function(){return P},ir:function(){return A},jU:function(){return F},lZ:function(){return C},p:function(){return T},t4:function(){return R},uT:function(){return B}});var l=n(12900),r=n.n(l),a=n(77665),i=n(23890),s=n(48004),o=n.n(s),c=n(96778),d=n.n(c),u=n(66926),m=n.n(u),h=n(44853),p=n.n(h),x=n(68618),f=n.n(x),v=n(51864),g=n.n(v),b=n(48911),j=n.n(b),w=n(2265);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};let y=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/searchOpenAtom",(0,a.cn)(!1)),N=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/searchFiltersAtom",(0,a.cn)([])),k=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/searchHealthFunds",(0,a.cn)(null)),C=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/searchInitialisedAtom",(0,a.cn)(!1));globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/autocompleteResultsAtom",(0,a.cn)([]));let _=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/autocompleteDataAtom",(0,a.cn)({})),Z=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/currentLocationAtom",(0,a.cn)()),L=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/currentBoundsAtom",(0,a.cn)(null)),T=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/hoveredResultAtom",(0,a.cn)(null)),M=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/mapZoomLevelAtom",(0,a.cn)(11)),S=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/suggestionsOpenAtom",(0,a.cn)(!1)),P=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/recentLocationsAtom",(0,a.cn)([])),A=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/activeHealthFundsAtom",(0,a.cn)(!1)),E=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/mobileFilterOpenAtom",(0,a.cn)(!1)),R=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/mobileMapVisibleAtom",(0,a.cn)(!1));function B(){let e=(0,i.b9)(y);return(0,w.useCallback)(()=>{e(!0)},[e])}function I(){let{setValue:e,clearSuggestions:t}
1=(0,i.Dv)(_),n=(0,i.b9)(Z),l=(0,i.b9)(C);return(0,w.useCallback)(()=>{e(""),t(),n(null),l(!1)},[e,t,n,l])}function z(){let e=(0,i.b9)(R),t=(0,i.b9)(y),n=(0,i.b9)(N),l=I(),r=(0,i.b9)(D),a=(0,i.b9)(E);return(0,w.useCallback)(()=>{t(!1),e(!1),n([]),l(),r({}),a(!1)},[t,l,e,n,r,a])}let D=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/state.js/dropdownOpenAtom",(0,a.cn)({}));function G(e){let[t,n]=(0,i.KO)(D),l=t[e]||!1,r=(0,w.useCallback)(l=>n({...t,[e]:l}),[t,e,n]);return[l,r]}function F(e){let t=(0,i.b9)(N),n=(0,i.b9)(D);return(0,w.useCallback)(()=>{if(!e.hideFromSearch&&("treatment"===e._type||"pageTemplate"===e._type&&("offer"===e.templateType.slug||"benefit"===e.templateType.slug))){var l;let r=[{_id:e._id,_type:e._type,title:null==e?void 0:e.title,hideFromSearch:null==e?void 0:e.hideFromSearch}];t(r);let a=null===(l=j()(null==r?void 0:r.map(e=>e._type)))||void 0===l?void 0:l.reduce((e,t)=>(e[t]=!0,e),{});n(a)}},[e,n,t])}function H(e){let{healthFund:t,language:n,pageTemplate:l,treatment:r}=m()(e,"_type"),a=g()(p()(r,"title")).join(",")||"All Treatments",i=g()(p()(t,"title")).join(",")||"All Health Funds",s=g()(p()(l,"title")).join(",")||"All Offers & Benefits",o=g()(p()(n,"title")).join(",")||"All Languages";return{treatments:a,healthFunds:i,offers:s,languages:o}}let V=(e,t)=>{var n;if(!e||!(null==t?void 0:null===(n=t.address)||void 0===n?void 0:n.location))return;let l=r()(e,t.address.location);return f()(l/1e3,1)},O=(e,t)=>{let{treatment:n,healthFund:l,pageTemplate:r}=e,a=n&&o()(n,t,"_id").length>0,i=r&&o()(r,t,"_id").length>0;return!!d()(e)||!!l&&!n&&!r||a&&i||a&&!r||!n&&i},W=(e,t)=>e.distance<=t,q=e=>{let{treatments:t,languages:n,preferredHealthFunds:l,offers:r,benefits:a}=e;return[...null!=t?t:[],...null!=n?n:[],...null!=l?l:[],...null!=r?r:[],...null!=a?a:[]]},U=(e,t)=>{let n=(0,i.Dv)(Z),l=(0,i.Dv)(N),r=(0,w.useMemo)(()=>{let t=m()(l,"_type"),r=null==e?void 0:e.map(e=>({...e,distance:V(n,e)})).filter(e=>W(e,"50")).filter(e=>O(t,q(e)));return g()(r,e=>e.distance)},[e,l,n]);return t?r:[]}},71965:function(e,t,n){"use strict";n.d(t,{H:function(){return o},Z:function(){return c}});var l=n(77665),r=n(23890),a=n(75737),i=n(2265);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};let s=globalThis.jotaiAtomCache.get("/vercel/path0/web/src/components/Search/useSearchData.js/searchAtom",(0,l.cn)({loading:!1,loaded:!1,data:{}}));function o(){let e=(0,r.b9)(s),t=(0,a.lV)((0,i.useCallback)(e=>e(s),[]));return(0,i.useCallback)(async()=>{let{loading:n,loaded:l}=await t();if(n||l)return;let r=async()=>{e(e=>({...e,loading:!0}));let t=await fetch("/api/search",{method:"get",headers:{Accept:"application/json"}});if(t.ok){let n=await t.json();e(e=>({...e,loaded:!0,loading:!1,data:n,error:null}))}else e(e=>({...e,loaded:!0,loading:!1,error:t.statusText}))};r()},[])}function c(e){let t=o(),n=(0,r.Dv)(s);return(0,i.useEffect)(()=>{e&&t()},[t,e]),n}},91835:function(e,t,n){"use strict";var l=n(57437),r=n(57042),a=n(2265);let i={margin:{default:"mx-6 md:mx-8",lg:"mx-6 md:mx-8 lg:mx-18"},padding:{default:"px-6 md:px-8",lg:"px-6 md:px-8 lg:px-18"}},s=(0,a.forwardRef)((e,t)=>{let{as:n="section",grid:a=!1,bottomMargin:s=!0,className:o,headerPadding:c,gutter:d=!1,gutterAsPadding:u=!0,contain:m=!1,...h}=e,p=u||m?i.padding:i.margin,x=(0,r.Z)(s&&"section-gap-b",a&&"grid-layout",c&&"pt-var-header-height",d&&(p[d]||p.default),m&&"max-content");return(0,l.jsx)(n,{ref:t,className:(0,r.Z)(x,o),...h})});t.Z=s},34936:function(e,t,n){"use strict";n.d(t,{H9:function(){return s},SK:function(){return o},W4:function(){return i},_F:function(){return c}});var l=n(57437);n(74171);var r=n(2265);let a=r.createContext(),i=()=>(0,r.useContext)(a),s=()=>{let e=i();return(0,r.useMemo)(()=>e.menu,[e])},o=()=>{let e=i();return null==e?void 0:e.banner};function c(e){let{site:t,...n}=e;return(0,l.jsx)(a.Provider,{value:t,...n})}},75103:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var l=n(57437),r=n(1885),a=n(2265),i=n(42815),s=n(37327);function o(e){let{title:t,contentBlockName:n,children:o}=e,d=(0,a.useRef)(),[u,m]=(0,a.useState)(!1);(0,a.useEffect)(()=>{i.ZP.to(d.current,{height:u?"auto":0,opacity:u?1:0,duration:.6,ease:"power2.inOut"})},[u]);let h=(0,s.useTracker)(),p=(0,a.useCallback)(()=>{m(!u),h("content_block_interaction",{click_location:"Content Block",content_block_name:n||"Accordion",menu_selection:t,button:t})},[u,t,h,n]),[x,f]=function(){let[e,t]=(0,a.useState)(!1),n={onMouseEnter:r.T?null:()=>t(!0),onMouseLeave:r.T?null:()=>t(!1)};return[e,n]}();return(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("button",{className:"py-6 text-18 font-[500] border-t border-neutralGrey200 w-full flex justify-between text-left",onClick:p,...f,children:[(0,l.jsx)("span",{className:"pr-4 text-balance",children:t}),(0,l.jsx)(c,{className:"flex-shrink-0 w-4 md:!w-6 h-auto",isOpen:u,isHovering:x})]}),(0,l.jsx)("div",{className:"overflow-hidden",style:{height:0,opacity:0}
1,ref:d,children:(0,l.jsx)("div",{className:"mb-8",children:o})})]})}function c(e){let{className:t,isHovering:n=!1,isOpen:r}=e,s=(0,a.useRef)(),o=(0,a.useRef)({});(0,a.useEffect)(()=>{i.ZP.to(s.current.children[0],{rotate:r?"270deg":"0deg",transformOrigin:"50% 50%",ease:"power3.inOut",duration:.6}),i.ZP.to(s.current.children[1],{rotate:r?"180deg":"0deg",transformOrigin:"50% 50%",ease:"power3.inOut",duration:.6})},[r]);let c=(0,a.useCallback)(()=>{if(r)return;o.current.timeline&&o.current.timeline.kill();let e=i.ZP.timeline();e.fromTo(s.current,{rotate:0},{rotate:90,duration:.3,ease:"power2.out"}),e.set(s.current,{rotate:0}),o.current.timeline=e},[r]);return(0,a.useEffect)(()=>{n&&c()},[n,c]),(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:s,className:t,children:[(0,l.jsx)("line",{x1:"12",y1:"1.24937e-08",x2:"12",y2:"24",stroke:"currentColor",strokeWidth:"2"}),(0,l.jsx)("line",{y1:"12",x2:"24",y2:"12",stroke:"currentColor",strokeWidth:"2"})]})}},36835:function(e,t,n){"use strict";n.r(t);var l=n(57437),r=n(63099),a=n(57042),i=n(2265);let s=(0,i.forwardRef)((e,t)=>{let{className:n,children:s,as:o="div",theme:c,styles:d,...u}=e,m=(0,i.useRef)(),h=(0,i.useMemo)(()=>(0,r.mJ)(c),[c]);return(0,l.jsx)(o,{className:(0,a.Z)("w-full",n),ref:t||m,style:{...d,...h},...u,children:s})});t.default=s},85921:function(e,t,n){"use strict";n.r(t),n.d(t,{PopularTreatmentsCarousel:function(){return x},TreatmentTile:function(){return f},default:function(){return p}});var l=n(57437),r=n(42743),a=n(41873),i=n.n(a),s=n(57042),o=n(2265),c=n(93540),d=n(89113),u=n(50781),m=n(56265),h=n(91835);function p(e){let{data:t,site:n}=e,{title:a,heading:i,ctaLink:s,featuredTreatments:d,popularTreatmentsTitle:u,automatic:m,popularTreatments:p}=null!=t?t:{},{treatments:f,featured:g}=(0,o.useMemo)(()=>{let e=n.treatments,t=d||[...e.filter(e=>(d||[]).find(t=>t._id===e._id)||e),...e.slice(0,Math.max(0,3-((null==d?void 0:d.length)||0)))];return m?{treatments:e.slice(0,9),featured:t.slice(0,3)}:{treatments:p,featured:t}},[m,d,p,n.treatments]),[b,j]=(0,r.Z)();return(0,l.jsxs)(h.Z,{className:"overflow-hidden",gutter:"lg",contain:!0,children:[(0,l.jsx)("div",{className:"mb-6",children:a}),(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"h4",children:i}),s&&(0,l.jsx)(c.Z,{link:s,variant:"secondary",className:"downMd:hidden"})]}),(0,l.jsx)(x,{treatments:g}),(0,l.jsx)("div",{className:"h5 mt-20",children:u}),(0,l.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 mt-10 gap-x-6 overflow-hidden relative",children:null==f?void 0:f.map((e,t)=>(0,l.jsx)(v,{treatment:e,index:t,menuSelection:u,isActive:b,events:j},e._id))}),s&&(0,l.jsx)(c.Z,{link:s,variant:"secondary",className:"md:hidden [&>div]:w-full mt-6"})]})}function x(e){let{treatments:t,className:n,...r}=e,a={slides:{perView:3,spacing:24},breakpoints:{["(max-width: ".concat(i().md,"px)")]:{slides:{perView:1.1,spacing:24}}}};return(0,l.jsx)(d.default,{options:a,pagination:!1,className:(0,s.Z)("mt-10 md:cursor-auto md:active:cursor-auto",n),...r,children:null==t?void 0:t.map(e=>(0,l.jsx)(f,{treatment:e,menuSelection:"Popular Treatments"},(null==e?void 0:e._id)||(null==e?void 0:e._key)))})}function f(e){var t;let{treatment:n,menuSelection:r}=e,a=(null===(t=n.treatmentPageForSite)||void 0===t?void 0:t.featuredImage)||n.featuredImage;return(0,l.jsxs)(u.default,{link:n,className:"keen-slider__slide block flex-shrink-0 relative aspect-square lg:aspect-[3/2] 2xl:aspect-square rounded-lg overflow-hidden text-[white] bg-[black] p-[1.25rem] bg-secondary500 !w-[90%] md:!w-1/3",showText:!1,contentBlockName:"Featured Treatments",menuSelection:r,children:[(0,l.jsxs)("div",{className:"relative justify-between h-full aspect-square flex flex-col",children:[(0,l.jsx)("h3",{className:"h5 z-[2] text-[white]",children:n.title}),(0,l.jsx)("div",{className:"text-[white] z-[2]",children:(0,l.jsx)("svg",{width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M34.1577 25.6738H10V23.6738H34.1577L22.5731 12.0892L24 10.6738L38 24.6738L24 38.6738L22.5731 37.2584L34.1577 25.6738Z",fill:"currentColor"})})})]}),a&&(0,l.jsx)(m.default,{image:a,className:"!absolute inset-0 opacity-80 bg-primary500",imageSizes:"(max-width: ".concat(i().md,"px) 90vw, (max-width: ").concat(i()["max-content"],"px) 33vw, ").concat(Math.round(i()["max-content"]/3),"px")}
1)]})}function v(e){let{treatment:t,index:n,menuSelection:r,isActive:a,events:i}=e;return(0,l.jsxs)(u.default,{link:t,...i(n),className:(0,s.Z)("flex justify-between py-4 before:absolute before:h-[1px] before:left-0 before:right-0 before:bg-neutralGrey200 before:mt-[-1rem]",n>7&&"downMd:hidden","transition-opacity duration-300 ease-expo-out",a(n)?"opacity-100":"opacity-20"),showText:!1,contentBlockName:"Featured Treatments",menuSelection:r,children:[(0,l.jsx)("div",{children:t.title}),(0,l.jsx)("svg",{className:"text-primary500 downMd:hidden",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M16.175 13.5H4V11.5H16.175L10.575 5.9L12 4.5L20 12.5L12 20.5L10.575 19.1L16.175 13.5Z",fill:"currentColor"})})]})}},35741:function(e,t,n){"use strict";n.r(t),n.d(t,{SplitText:function(){return p},default:function(){return h}});var l=n(57437),r=n(68924),a=n(13139),i=n(57042),s=n(42815),o=n(99845),c=n.n(o),d=n(2265),u=n(56265),m=n(91835);function h(e){let{data:t,page:n}=e,{title:a,text:i,images:o}=null!=t?t:{},c=(0,d.useRef)(),u=(0,d.useRef)(),h=(0,d.useRef)(),x=(0,d.useRef)({tl:null}).current;(0,d.useEffect)(()=>{if(x.tl&&x.tl.kill(),x.imagesTl&&x.imagesTl.kill(),!u.current)return;let e=function(e,t){let n=s.ZP.timeline({scrollTrigger:{trigger:t,scrub:!0,start:"top bottom",end:"bottom top"}});return s.ZP.utils.toArray(e).forEach((e,t)=>{n.fromTo(e,{yPercent:100+50*(t%2.5)},{yPercent:-100-50*(t%2.5)-(3===t?25:0),ease:"linear",duration:2},0)}),n}(u.current.children,c.current),t=function(e,t){let n=s.ZP.timeline({scrollTrigger:{trigger:t,start:"top bottom",end:"bottom top"}}),l=getComputedStyle(document.documentElement),r=l.getPropertyValue("--primary400").trim(),a=l.getPropertyValue("--backgroundColor").trim();return n.fromTo(e,{color:r},{color:a,ease:"steps(1)",duration:.8,stagger:{amount:.8}},0),n}(h.current.children,c.current);return x.tl=t,x.imagesTl=e,()=>{var e,t;null==x||null===(e=x.tl)||void 0===e||e.kill(),null==x||null===(t=x.imagesTl)||void 0===t||t.kill()}},[x]);let v=(0,r.Z)(t,n),g=(null==v?void 0:v._type)!=="colorChanger"&&!!v;return(0,l.jsxs)(m.Z,{className:"bg-secondary500 text-backgroundColor w-full overflow-hidden clip relative",ref:c,bottomMargin:g,children:[(0,l.jsxs)(m.Z,{as:"div",className:"h-[130vh] downMd:h-[80svh] flex items-center flex-col justify-center z-[2] relative",gutter:"lg",contain:!0,grid:!0,bottomMargin:!1,children:[a&&(0,l.jsx)("h2",{className:"text-base !font-normal !font-body",children:a}),i&&(0,l.jsx)("p",{className:"h4 text-center md:max-w-[55%] text-primary400",ref:h,children:(0,l.jsx)(p,{text:i,className:"transition-color duration-200"})})]}),(0,l.jsx)(f,{images:o,innerRef:u})]})}function p(e){let{text:t,className:n}=e,r=(0,d.useMemo)(()=>(0,a.M)(t),[t]),i=null==r?void 0:r.split(/\s/g);return(0,l.jsx)(l.Fragment,{children:i.map((e,t)=>(0,l.jsxs)("span",{className:n,children:[e,t!==i.length-1&&" "]},"".concat(e,"-").concat(t)))})}s.ZP.registerPlugin(c());let x=["top-0 left-1/2 -translate-x-1/2 translate-y-[-30%]","top-[10%] right-0 translate-x-[5rem]","bottom-0 right-[15%] translate-y-[30%] translate-x-[5rem]","bottom-0 left-[8%] translate-y-[45%] translate-x-[5rem]","top-1/2 left-0 translate-x-[-30%] translate-y-[-65%]"];function f(e){let{images:t,innerRef:n}=e;return t?(0,l.jsx)("div",{className:"fixed inset-0 pointer-events-none downMd:hidden h-screen",ref:n,children:t.map((e,t)=>(0,l.jsx)(u.default,{image:e,className:(0,i.Z)("!absolute !w-[18%] rounded-[0.5rem]",x[t]),aspect:275/367,imageSizes:"18vw"},e._key))}):null}},28659:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var l=n(57437),r=n(41873),a=n.n(r),i=n(42815),s=n(2265),o=n(20314),c=n(42687),d=n(57042),u=n(99845),m=n.n(u),h=n(93540),p=n(91835);function x(e){let{data:t}=e,{headingSize:n,text:r,link:u,showLine:m}=null!=t?t:{},x=(0,s.useRef)([]);return!function(e){let t=(0,o.h)();(0,s.useEffect)(()=>{if(0===e.current.length)return;let n=getComputedStyle(document.documentElement),l=n.getPropertyValue("--foregroundPrimary").trim(),r=t.current.width<=a().md,s=e.current[0].parentNode,o=i.ZP.to(e.current,{color:l,duration:1,ease:"expo.out",scrollTrigger:{trigger:s,start:"80% bottom",end:r?"250% bottom":"450% bottom"},stagger:.05});return()=>{o.kill()}},[e,t])}(x),(0,l.jsxs)(p.Z,{gutter:"lg",contain:!0,className:"md:mt-48",children:[(0,l.jsx)("div",{className:(0,d.Z)("mb-10 w-full md:w-4/5 text-secondary300","h4"===n?"h4":"h2"),children:null==r?void 0:r.split(/\s/g).map((e,t)=>(0,l.jsxs)("span",{ref:e=>{x.current[t]=e},children:[e," "]},"".concat(e,"-").concat(t)))}),(0,c.AH)(u)&&(0,l.jsx)(h.Z,{variant:"secondary",link:u,contentBlockName:"Headline Text",menuSelection:r}),m&&(0,l.jsx)("div",{className:"w-full h-[1px] bg-neutralGrey200 md:mt-48 mt-36"})]})}i.ZP.registerPlugin(m())},24082:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var l=n(57437),r=n(50781),a=n(57042),i=n(2265);let s=()=>(0,l.jsx)("svg",{className:"w-3 h-3",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4.0125 11L3.125 10.1125L7.2375 6L3.125 1.8875L4.0125 1L9.0125 6L4.0125 11Z",fill:"currentColor"})});function o(e){let{className:t,page:n,site:o,light:c,margins:d="mt-6 mb-4"}=e,u=c?"text-neutralGrey200":"text-secondary400",m=(0,i.useMemo)(()=>{let e=[],t=n=>{n&&(n.parent&&t(n.parent),e.push((0,l.jsx)(r.default,{className:(0,a.Z)("hover:underline",u),link:n,eventName:"hero_banner_interaction",location:"Breadcrumb"})),e.push((0,l.jsx)(s,{})))},i=o.siteUrl?"/":"/".concat(o.slug)||0;return e.push((0,l.jsx)(r.default,{className:(0,a.Z)("hover:underline",u),to:i,showText:!1,eventName:"hero_banner_interaction",location:"Breadcrumb",children:"Home"})),e.push((0,l.jsx)(s,{})),t(n.parent),e.push((0,l.jsx)("span",{className:"font-medium",children:n.title})),e},[n]);return"home"===n.slug?(0,l.jsx)("div",{}):(0,l.jsx)("div",{className:(0,a.Z)(t,d,"flex flex-wrap items-center gap-2 text-14"),children:m})}},11456:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var l=n(57437),r=n(93540),a=n(50781),i=n(54727),s=n(96778),o=n.n(s);function c(e){let{filterData:t,title:n,footerLinks:s,opaqueVariant:c="white",buttonVariant:d="translucent"}=e,u=(0,i.jU)(t);return o()(s)?null:(0,l.jsx)("div",{className:"flex items-center gap-6 text-14 overflow-auto -mx-6 px-6 md:-mx-8 md:px-8",children:null==s?void 0:s.map((e,t)=>{let{variant:i,link:s}=e,o={eventName:"hero_banner_interaction",location:"Hero Banner",trackProps:{hero_banner_name:n}};return"link"===i?(0,l.jsx)(a.default,{link:s,className:"underline hover:no-underline flex-shrink-0",...o},t):(0,l.jsx)(r.Z,{link:s,onClick:u,variant:"opaque"===e.buttonTheme?c:d,...o},t)})})}},14049:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var l=n(57437),r=n(89113),a=n(56265),i=n(64437),s=n(91835),o=n(57042),c=n(49457),d=n(96778),u=n.n(d),m=n(2265),h=n(11456),p=n(48122),x=n(55100),f=n(64100),v=n(14325);function g(e){var t,n,d;let{data:g,page:b,site:j}=e,{carousel:w,variant:y,mediaTint:N}=g,k="fullWidthPractice"===y,[C,_]=(0,m.useState)(!1),[Z,L]=(0,m.useState)(0),T=null==w?void 0:w[Z],M=(null==T?void 0:T.title)||b.title,{copy:S,label:P,footerLinks:A}=null!=T?T:{}
1,E="h-screen-[56svh] md:min-h-[600px] md:h-screen md:max-h-none",R=(0,m.useMemo)(()=>({eventName:"hero_banner_interaction",location:"Hero Banner",trackProps:{hero_banner_name:M}}),[M]),B=k&&u()(A)&&"article"!==b.pageType?m.Fragment:"div",I=w.length<=1,[z,D]=(0,c.E)({slides:{perView:1,spacing:0},drag:!1,loop:!0,defaultAnimation:{duration:f.SLIDE_TRANSITION_DURATION},enabled:!I,slideChanged(e){L(e.track.details.rel)}},[e=>{let t;function n(){clearTimeout(t),t=setTimeout(()=>{w&&(null==e||e.next())},f.SLIDE_DURATION)}I||(e.on("animationEnded",n),e.on("updated",n),e.on("created",function(){n(),_(!0)}))}]),G=(null==j?void 0:null===(t=j.practice)||void 0===t?void 0:t.showRating)!==!1;return(0,l.jsx)(s.Z,{className:"downMd:grid downMd:min-h-screen downMd:h-full",children:(0,l.jsxs)("div",{className:(0,o.Z)(E,"relative flex justify-start items-end text-backgroundColor downMd:relative downMd:h-screen downMd:grid-rows-mobileHero"),children:[(0,l.jsxs)("div",{className:"absolute top-0 left-0 w-full h-full",children:[(0,l.jsx)("div",{className:"keen-slider h-full",ref:z,children:null==w?void 0:w.map(e=>(0,l.jsx)("div",{className:(0,o.Z)("keen-slider__slide block w-full h-full relative overflow-hidden opacity-0 transition-opacity duration-300",(C||I)&&"opacity-100"),children:(0,l.jsx)(a.default,{aspect:10/6,mobileAspect:3/7,image:null==e?void 0:e.image,className:"w-full h-full pointer-events-none",preload:!0})},e._key))}),!I&&(0,l.jsx)(f.Indicators,{slides:w,activeIndex:Z,className:"downMd:hidden"})]}),(0,l.jsx)("div",{className:(0,o.Z)(E,"bg-[black] absolute left-0 right-0 top-0"),style:{opacity:(N||2)/10}}),(0,l.jsxs)(s.Z,{as:"div",className:"m-5 md:m-10 pt-7 md:pt-10 relative flex flex-col items-start justify-between !w-full md:!w-[40vw] min-h-[35vh] bg-backgroundColor rounded-lg",bottomMargin:!1,gutter:!0,children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 w-full md:hidden",children:!I&&(0,l.jsx)(f.Indicators,{slides:w,activeIndex:Z,className:"mx-0",wide:!0})}),(0,l.jsxs)("div",{className:k&&"mb-6 md:mb-8",children:[G&&(0,l.jsx)(p.default,{className:"-mt-1 mb-3 text-secondary500",address:null==j?void 0:null===(n=j.practice)||void 0===n?void 0:n.address,name:(null==j?void 0:null===(d=j.parent)||void 0===d?void 0:d.title)||(null==j?void 0:j.title)}),P&&(0,l.jsx)("p",{className:"text-secondary400 text-14",children:P}),(0,l.jsx)("h1",{className:"mb-4 md:max-w-[40rem] text-h2 text-secondary500",style:{textWrap:"balance"},children:M}),S&&(0,l.jsx)(i.default,{content:S,className:"text-16 mb-4 text-primary600",trackProps:R})]}),(0,l.jsxs)(B,{className:"flex justify-between items-end w-full",children:[(!u()(A)||"article"===b.pageType)&&(0,l.jsxs)("div",{className:"mb-6 md:mb-8 mt-4",children:[(0,l.jsx)(h.default,{filterData:(0,v.i)(b),footerLinks:A,buttonVariant:"dark",title:b.title}),"article"===b.pageType&&(0,l.jsx)(x.default,{pageId:b._id})]}),w&&!I&&(0,l.jsxs)("div",{className:"mb-6 md:mb-8 flex gap-1",children:[(0,l.jsx)(r.NextPrevButton,{className:"!w-10 !h-10 [&>svg]:!w-2 [&>svg>path]:fill-primary600 bg-neutralGrey100",active:!0,onClick:()=>{var e;return null==D?void 0:null===(e=D.current)||void 0===e?void 0:e.prev()},direction:"prev",children:"prev"}),(0,l.jsx)(r.NextPrevButton,{className:"!w-10 !h-10 [&>svg]:!w-2 [&>svg>path]:fill-primary600 bg-neutralGrey100",active:!0,onClick:()=>{var e;return null==D?void 0:null===(e=D.current)||void 0===e?void 0:e.next()},children:"next"})]})]})]})]})})}},42910:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var l=n(57437),r=n(56265),a=n(20314),i=n(41873),s=n.n(i),o=n(42815),c=n(99845),d=n.n(c),u=n(2265);function m(e){let{image:t,...n}=e,i=(0,u.useRef)(),c=(0,a.h)();return(0,u.useLayoutEffect)(()=>{if(c.current.width<s().md)return;let e=o.ZP.quickSetter(i.current,"y","px"),t=o.ZP.quickSetter(i.current,"force3D"),n=1.1*c.current.width*.1,l=o.ZP.timeline({scrollTrigger:{trigger:i.current,scrub:!0,start:"top",end:"bottom top",refreshPriority:2,onUpdate:l=>{e(l.progress*n),t(l.progress>0&&l.progress<1)}}});return()=>{l.kill()}},[]),(0,l.jsx)(r.default,{ref:i,image:t,...n})}o.ZP.registerPlugin(d())},48122:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var l=n(57437),r=n(50781),a=n(54677),i=n.n(a),s=n(57042),o=n(2265);function c(e){let{name:t,address:n,className:a}=e,[c,u]=(0,o.useState)(null),m=i()([t,n?i()([n.streetAddress,n.suburb,n.state,n.post]).join(" "):""]).join(" ");(0,o.useEffect)(()=>{let e=async()=>{let e=await fetch("/api/google?input=".concat(encodeURIComponent(m),"&place_id=").concat(null==n?void 0:n.googlePlacesId)),t=await e.json();u(t)};e()},[m,null==n?void 0:n.googlePlacesId]);let h=null==c?void 0:c.rating;if(!h)return null;let p=c.place_id?"https://www.google.com/maps/place/?q=place_id:".concat(c.place_id):"https://www.google.com/maps/search/?api=1&query=".concat(c.geometry.location.lat,",").concat(c.geometry.location.lng);return(0,l.jsxs)(r.default,{className:(0,s.Z)("flex items-center gap-3 hover:opacity-75 transition-opacity duration-200",a),to:p,contentBlockName:"Hero",menuSelection:"Google Review",children:[(0,l.jsx)(d,{rating:h}),(0,l.jsxs)("div",{className:"opacity-60",children:[h," Google review"]})]})}let d=e=>{let{rating:t}=e,n=e=>t>=e?"full":t>=e-.5?"half":"empty";return(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)(u,{className:"w-5 h-5",variant:n(1)}),(0,l.jsx)(u,{className:"w-5 h-5",variant:n(2)}),(0,l.jsx)(u,{className:"w-5 h-5",variant:n(3)}),(0,l.jsx)(u,{className:"w-5 h-5",variant:n(4)}),(0,l.jsx)(u,{className:"w-5 h-5",variant:n(5)})]})},u=e=>{let{className:t,variant:n}=e;return(0,l.jsxs)("svg",{viewBox:"0 0 473.486 473.486",className:t,children:["half"===n&&(0,l.jsx)("path",{d:"M473.486,182.028l-162.829-24.121L236.783,11.178l-74.112,147.438L0,184.338L117.584,299.59L91.77,462.308l145.153-76.317 l147.477,74.688l-27.367-162.256L473.486,182.028z M236.793,352.297V77.954l0.011-0.021l54.059,107.37l119.238,17.663 l-85.226,85.181l20.058,118.917L236.793,352.297z",fill:"
1currentColor"}),"full"===n&&(0,l.jsx)("path",{d:"M 473.486,182.028 310.657,157.907 236.783,11.178 162.671,158.616 0,184.338 117.584,299.59 91.77,462.308 236.923,385.991 384.4,460.679 357.033,298.423 Z",fill:"currentColor"}),"empty"===n&&(0,l.jsx)("path",{d:"M 473.486,182.028 310.657,157.907 236.783,11.178 162.671,158.616 0,184.338 117.584,299.59 91.77,462.308 236.923,385.991 384.4,460.679 357.033,298.423 Z M 236.793,352.297 128.58468,413.75331 147.61386,284.5722 59.654688,200.88435 190.93045,178.83833 236.793,77.954 l 0.011,-0.021 54.059,107.37 119.238,17.663 -85.226,85.181 20.058,118.917 z",fill:"currentColor"})]})}},33307:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var l=n(57437),r=n(93540),a=n(37327),i=n(54727),s=n(71965),o=n(70641),c=n(57042),d=n(2265);function u(){let e=(0,i.uT)(),t=(0,s.H)(),n=(0,a.useTracker)(),u=(0,d.useCallback)(()=>{e(),n("find_a_practice_click",{click_location:"Hero Banner",button:"Find a dentist",button_link:null})},[n,e]);return(0,l.jsxs)("button",{onClick:u,onMouseEnter:t,className:(0,c.Z)("mt-10 block md:flex items-center md:bg-backgroundColor text-primary500-foreground md:px-2 md:py-2 rounded-[3.125rem]","md:hover:bg-neutralGrey100 md:transition-colors md:duration-250 md:ease-in-out","w-full md:w-auto"),children:[(0,l.jsxs)("div",{className:"flex bg-neutralGrey100 md:bg-transparent rounded-[3.125rem] px-4 py-3 md:p-0 md:mr-16 mb-2 md:mb-0 w-full md:w-auto",children:[(0,l.jsx)(o.Z,{className:"inline-block mr-2 md:ml-3"}),(0,l.jsx)("span",{className:"inline-block text-neutralGrey300",children:"Suburb or Postcode"})]}),(0,l.jsx)(r.Z,{as:"div",className:"pointer-events-none w-full md:w-auto",innerClassName:"w-full md:w-auto h-11 rounded-full",children:"Find a dentist"})]})}},55100:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var l=n(57437);function r(){return(0,l.jsx)("svg",{className:"w-2 h-4",viewBox:"0 0 8 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M5.16791 15.4999V8.65771H7.51533L7.86677 5.99117H5.16791V4.28868C5.16791 3.51667 5.38706 2.99051 6.51867 2.99051L7.9619 2.98986V0.604958C7.71218 0.572581 6.85553 0.5 5.85888 0.5C3.77806 0.5 2.35349 1.74261 2.35349 4.02473V5.99125H0V8.65777H2.35341V15.5L5.16791 15.4999Z",fill:"currentColor"})})}function a(){return(0,l.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M9.35581 8.03504C8.84387 7.52331 8.14966 7.23584 7.42581 7.23584C6.70197 7.23584 6.00775 7.52331 5.49581 8.03504L3.56519 9.96504C3.05324 10.477 2.76563 11.1713 2.76562 11.8953C2.76563 12.6194 3.05324 13.3137 3.56519 13.8257C4.07714 14.3376 4.77149 14.6252 5.4955 14.6252C6.21951 14.6252 6.91386 14.3376 7.42581 13.8257L8.39081 12.8607",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M7.42969 9.96519C7.94163 10.4769 8.63584 10.7644 9.35969 10.7644C10.0835 10.7644 10.7777 10.4769 11.2897 9.96519L13.2203 8.03519C13.7323 7.52324 14.0199 6.82888 14.0199 6.10487C14.0199 5.38087 13.7323 4.68651 13.2203 4.17456C12.7084 3.66261 12.014 3.375 11.29 3.375C10.566 3.375 9.87164 3.66261 9.35969 4.17456L8.39469 5.13956",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function i(){return(0,l.jsxs)("svg",{className:"w-5 h-5",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M5.1124 5.99725C6.11939 5.99725 6.93573 5.18092 6.93573 4.17392C6.93573 3.16692 6.11939 2.35059 5.1124 2.35059C4.1054 2.35059 3.28906 3.16692 3.28906 4.17392C3.28906 5.18092 4.1054 5.99725 5.1124 5.99725Z",fill:"currentColor"}),(0,l.jsx)("path",{d:"M8.6574 7.37891V17.4947H11.7982V12.4922C11.7982 11.1722 12.0466 9.89391 13.6832 9.89391C15.2974 9.89391 15.3174 11.4031 15.3174 12.5756V17.4956H18.4599V11.9481C18.4599 9.22307 17.8732 7.12891 14.6882 7.12891C13.1591 7.12891 12.1341 7.96807 11.7149 8.76224H11.6724V7.37891H8.6574ZM3.53906 7.37891H6.6849V17.4947H3.53906V7.37891Z",fill:"currentColor"})]})}function s(){return(0,l.jsx)("svg",{className:"w-4 h-3",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M5.67834 12C11.339 12 14.4345 7.38368 14.4345 3.38079C14.4345 3.2496 14.4318 3.11903 14.4257 2.98916C15.0265 2.56159 15.5489 2.02809 15.9609 1.42063C15.4095 1.66171 14.8162 1.82426 14.1936 1.89752C14.829 1.52254 15.3168 0.929094 15.5469 0.221734C14.9521 0.568754 14.2938 0.821149 13.5928 0.957054C13.0312 0.368257 12.2314 0 11.3464 0C9.6467 0 8.26849 1.35666 8.26849 3.02912C8.26849 3.26688 8.29549 3.49804 8.34834 3.71983C5.79068 3.59329 3.52262 2.38774 2.005 0.554805C1.74043 1.00236 1.58819 1.52254 1.588
119 2.07735C1.58819 3.1284 2.13151 4.05617 2.95766 4.59891C2.45289 4.58364 1.97858 4.44711 1.56381 4.21997C1.56311 4.2326 1.56311 4.24536 1.56311 4.25862C1.56311 5.72593 2.62409 6.95077 4.03211 7.22855C3.77366 7.29773 3.50162 7.33511 3.2209 7.33511C3.02264 7.33511 2.82981 7.31576 2.64234 7.28045C3.03413 8.48399 4.17017 9.35981 5.5173 9.3845C4.46385 10.1971 3.13696 10.6813 1.69511 10.6813C1.44675 10.6813 1.20183 10.6673 0.960938 10.6393C2.323 11.4985 3.94013 12 5.67834 12Z",fill:"currentColor"})})}var o=n(2265);let c=e=>{let[t,n]=(0,o.useState)(null);return(0,o.useEffect)(()=>n(window.location.href),[e]),t};function d(e){let{pageId:t}=e,n=c(t),[d,u]=(0,o.useState)(!1),m=(0,o.useCallback)(()=>{navigator.clipboard.writeText(n),u(!0)},[n]);return(0,o.useEffect)(()=>{d&&setTimeout(()=>{u(!1)},1e3)},[d]),(0,l.jsxs)("div",{className:"mt-4 text-14",children:[(0,l.jsx)("div",{className:"mb-1",children:"Share"}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-6 text-14",children:[(0,l.jsx)("a",{className:"transition-opacity duration-200 hover:opacity-50",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(n),"aria-label":"Facebook",children:(0,l.jsx)(r,{})}),(0,l.jsx)("a",{className:"transition-opacity duration-200 hover:opacity-50",href:"https://www.twitter.com/share?url=".concat(n),"aria-label":"Twitter",children:(0,l.jsx)(s,{})}),(0,l.jsx)("a",{className:"transition-opacity duration-200 hover:opacity-50",href:"https://www.linkedin.com/sharing/share-offsite/?url=".concat(n),"aria-label":"LinkedIn",children:(0,l.jsx)(i,{})}),(0,l.jsx)("a",{className:"transition-opacity duration-200 hover:opacity-50 cursor-pointer",onClick:m,"aria-label":"Copy Link",children:d?"COPIED":(0,l.jsx)(a,{})})]})]})}},64100:function(e,t,n){"use strict";n.r(t),n.d(t,{Indicators:function(){return g},SLIDE_DURATION:function(){return x},SLIDE_TRANSITION_DURATION:function(){return f},default:function(){return v}});var l=n(57437),r=n(89113),a=n(56265),i=n(64437),s=n(91835),o=n(41873),c=n.n(o),d=n(57042),u=n(42815),m=n(49457),h=n(2265),p=n(11456);let x=5e3,f=1500;function v(e){var t,n,o,u;let{data:v,page:b}=e,[j,w]=(0,h.useState)(0),[y,N]=(0,h.useState)(!1),{carousel:k,backgroundColor:C,variant:_,mediaTint:Z}=v,L="splitPractice"===_,T=(null==k?void 0:null===(t=k[j])||void 0===t?void 0:t.title)||b.title,M=null==k?void 0:null===(n=k[j])||void 0===n?void 0:n.copy,S=null==k?void 0:null===(o=k[j])||void 0===o?void 0:o.label,P=null==k?void 0:null===(u=k[j])||void 0===u?void 0:u.footerLinks,A="article"===b.pageType,[E,R]=(0,m.E)({slides:{perView:1,spacing:0},drag:!1,loop:!0,defaultAnimation:{duration:f},slideChanged(e){w(e.track.details.rel)}},[e=>{let t;function n(){clearTimeout(t),t=setTimeout(()=>{k&&(null==e||e.next())},x)}e.on("animationEnded",n),e.on("updated",n),e.on("created",function(){n(),N(!0)})}]);return(0,l.jsxs)(s.Z,{className:(0,d.Z)("min-h-[600px] h-screen","grid grid-cols-1 grid-rows-[1.2fr_1fr] md:grid-rows-1 md:grid-cols-2"),headerPadding:!0,style:{backgroundColor:C?"var(--".concat(C,")"):"var(--neutralGrey100)"},children:[(0,l.jsxs)(s.Z,{as:"div",className:"relative h-full flex flex-col items-start justify-between row-start-2 md:row-start-1",bottomMargin:!1,gutter:!0,children:[(0,l.jsx)("div",{}),(0,l.jsxs)("div",{className:(0,d.Z)("flex-grow md:flex-grow-0",L&&"downMd:mt-6"),children:[S&&(0,l.jsx)("p",{className:"mt-6 md:mt-0 mb-5 text-secondary400 text-14",children:S}),(0,l.jsx)("h1",{className:(0,d.Z)(S?"downMd:mt-0":"downMd:mt-6","mb-4 lg:text-[3.4rem] 2xl:text-h1",A?"max-w-full":L?"max-w-[22rem] md:max-w-[40rem] lg:max-w-[28rem] 2xl:max-w-[41rem]":"md:max-w-[40rem]"),style:{textWrap:"balance"},children:T}),M&&(0,l.jsx)(i.default,{content:M,className:"md:max-w-[28rem] text-16"})]}),(0,l.jsxs)("div",{className:"mb-6 md:mb-8 mt-4 flex justify-between items-end w-full",children:[(0,l.jsx)(p.default,{footerLinks:P,filterData:{_id:b._id,_type:b._type,title:null==b?void 0:b.title,hideFromSearch:null==b?void 0:b.hideFromSearch,templateType:null==b?void 0:b.templateType},title:b.title,buttonVariant:"dark"}),k&&(0,l.jsxs)("div",{className:"flex gap-1",children:[(0,l.jsx)(r.NextPrevButton,{className:"!w-10 !h-10 [&>svg]:!w-2",active:!0,onClick:()=>R.current.prev(),direction:"prev",children:"prev"}),(0,l.jsx)(r.NextPrevButton,{className:"!w-10 !h-10 [&>svg]:!w-2",active:!0,onClick:()=>R.current.next(),children:"next"})]})]})]}),(0,l.jsxs)("div",{className:(0,d.Z)("w-full h-full relative row-start-1"),children:[(0,l.jsx)("div",{className:"keen-slider h-full",ref:E,children:null==k?void 0:k.map(e=>(0,l.jsxs)("div",{className:(0,d.Z)("keen-slider__slide block w-full h-full relative overflow-hidden opacity-0 transition-opacity duration-300",y&&"opacity-100"),children:[(0,l.jsx)(a.default,{aspect:670/760,mobileAspect:1,image:null==e?void 0:e.image,imageSizes:"(max-width: ".concat(c().md,")px 100vw, 50vw"),position:"absolute",className:"inset-0 pointer-events-none",preload:!0}),(0,l.jsx)("div",{className:(0,d.Z)("bg-[black] absolute left-0 right-0 top-0"),style:{opacity:(Z||2)/10}})]},e._key))}),(0,l.jsx)(g,{slides:k,activeIndex:j,wide:!0})]})]})}function g(e){let{slides:t,activeIndex:n,className:r,wide:a=!1}=e,i=(0,h.useRef)({tl:null}),s=(0,h.useRef)();return(0,h.useEffect)(()=>{i.current.tl&&i.current.tl.kill();let e={value:0},t=u.ZP.fromTo(e,{value:0},{value:1,duration:(x+f)/1e3,ease:"linear",onUpdate:()=>{let t=u.ZP.utils.toArray(s.current.children);t.forEach((t,l)=>{null==t||t.style.setProperty("--progress",n===l?null==e?void 0:e.value:0)})}});return i.current.tl=t,()=>{t.kill()}},[n]),(0,l.jsx)("div",{className:(0,d.Z)("-mt-5 md:-mt-9 mx-5 md:mx-9 flex md:justify-end",r),children:(0,l.jsx)("div",{className:(0,d.Z)(a?"w-[40%]":"w-[20%]","flex gap-3"),ref:s,children:null==t?void 0:t.map(e=>(0,l.jsx)(b,{},e._key))})})}function b(){return(0,l.jsx)("div",{className:"w-full h-[3px] relative bg-neutralGrey100Opacity50 rounded-full overflow-hidden",style:{"--progress":"0"},children:(0,l.jsx)("div",{className:"bg-[#fff] absolute h-full w-[calc(var(--progress)*100%)]"})})}},14325:function(e,t,n){"use strict";n.d(t,{Z:function(){return x},i:function(){return f}});var l=n(57437),r=n(64437),a=n(91835),i=n(41873),s=n.n(i),o=n(63099),c=n(57042),d=n(24082),u=n(11456),m=n(42910),h=n(48122),p=n(55100);function x(e){var t,n,i;let{data:x,page:v,site:g}=e,{title:b,subtitle:j,image:w,copy:y,footerLinks:N,backgroundColor:k,variant:C,mediaTint:_}=x,Z="splitPractice"===C,L=w||v.featuredImage,T=b||v.title,M=Z&&(null==g?void 0:null===(t=g.practice)||void 0===t?void 0:t.showReview
1)!==!1,S="article"===v.pageType,P=["primary500","primary600","secondary500","secondary600"].includes(k||"neutralGrey100");return(0,l.jsxs)(a.Z,{className:(0,c.Z)("min-h-screen","grid grid-cols-1 grid-rows-[1.2fr_1fr] md:grid-rows-1 md:grid-cols-2"),headerPadding:!0,style:{...(0,o.mJ)(k||"neutralGrey100")},children:[(0,l.jsxs)(a.Z,{as:"div",className:"relative h-full flex flex-col items-start justify-between row-start-2 md:row-start-1",bottomMargin:!1,gutter:!0,children:[Z?(0,l.jsx)("div",{}):(0,l.jsx)(d.Z,{page:v,site:g,margins:"mb-4 mt-0 md:mt-6",light:P}),(0,l.jsxs)("div",{className:(0,c.Z)("flex-grow md:flex-grow-0",Z&&"downMd:mt-6"),children:[(0,l.jsxs)("h1",{className:(0,c.Z)("mb-4 lg:text-[2.58rem] 2xl:text-h1",S?"max-w-full":Z?"max-w-[22rem] md:max-w-[40rem] lg:max-w-[28rem] 2xl:max-w-[41rem]":"md:max-w-[40rem]"),style:{textWrap:"balance"},children:[T,!!j&&" ",j&&(0,l.jsx)("span",{className:"md:block opacity-60",children:j})]}),M&&(0,l.jsx)(h.default,{address:null==g?void 0:null===(n=g.practice)||void 0===n?void 0:n.address,name:null==g?void 0:null===(i=g.parent)||void 0===i?void 0:i.title}),y&&(0,l.jsx)(r.default,{content:y,className:"md:max-w-[28rem] text-16"})]}),(0,l.jsxs)("div",{className:"mb-6 md:mb-8 mt-4",children:[(0,l.jsx)(u.default,{footerLinks:N,filterData:f(v),title:v.title,buttonVariant:"secondary"}),"article"===v.pageType&&(0,l.jsx)(p.default,{pageId:v._id})]})]}),(0,l.jsx)("div",{className:(0,c.Z)("w-full h-full relative row-start-1",!Z&&"py-6 px-5 md:px-8"),children:(0,l.jsxs)("div",{className:(0,c.Z)("w-full h-full relative overflow-hidden",!Z&&"rounded-xl"),children:[(0,l.jsx)(m.default,{aspect:670/760,mobileAspect:1,image:L,imageSizes:"(max-width: ".concat(s().md,")px 100vw, 50vw"),position:"absolute",className:"inset-0",preload:!0}),(0,l.jsx)("div",{className:(0,c.Z)("bg-[black] absolute left-0 right-0 top-0"),style:{opacity:(_||2)/10}})]})})]})}function f(e){return{_id:e._id,_type:e._type,title:null==e?void 0:e.title,hideFromSearch:null==e?void 0:e.hideFromSearch,templateType:null==e?void 0:e.templateType}}},7016:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var l=n(57437),r=n(91835),a=n(93540),i=n(50781),s=n(56265),o=n(2265),c=n(21050),d=n(41873),u=n.n(d),m=n(57042),h=n(20314),p=n(42815);let x={text:"Find a dentist",linkType:"search"};function f(e){let{data:t}=e,{heading:n,links:r,alignment:d}=null!=t?t:{},f="left"===d,[v,g]=function(){let[e,t]=(0,o.useState)(-1),n=(0,o.useCallback)(e=>({onMouseEnter:()=>t(e),onMouseLeave:()=>t(-1)}),[t]);return[e,n]}(),b=(0,o.useRef)({tl:null}).current,j=(0,o.useRef)([]);return!function(e,t,n){let l=(0,h.h)();(0,o.useEffect)(()=>{if(n.tl&&n.tl.kill(),l.current.width<=u().md||!e||(null==e?void 0:e.length)<1)return;let r=p.ZP.timeline(),a=-1===t?0:t;return r.to(e.current,{opacity:0,rotate:"1deg",duration:.2,ease:"power2.inOut"}),r.to(e.current[a],{opacity:1,rotate:"0deg",duration:.2,ease:"power2.inOut"},"-=0.2"),n.tl=r,()=>{var e;null==n||null===(e=n.tl)||void 0===e||e.kill()}},[e,t,n,l])}(j,v,b),(0,l.jsxs)("div",{className:"hidden md:flex w-full gap-4",children:[(0,l.jsxs)("div",{className:(0,m.Z)("w-1/2 flex flex-col justify-between",f&&"order-1"),children:[(0,l.jsxs)("div",{className:(0,m.Z)(f&&"pl-16"),children:[(0,l.jsx)("div",{className:"mb-10",children:n}),(0,l.jsx)("div",{className:(0,m.Z)("flex flex-col text-secondary300",f?"pl-0":"pr-16"),children:(null==r?void 0:r.length)>0&&r.map((e,t)=>{let{link:n}=e;return(0,l.jsx)(i.default,{className:(0,m.Z)("py-[0.6rem] flex items-center justify-between border-t border-neutralGrey200 transition-colors duration-300",(-1===v||v===t)&&"text-primary500-foreground"),...g(t),link:n,contentBlockName:"Link Listing",children:(0,l.jsx)(c.Z,{className:(0,m.Z)("text-primary500 opacity-0 transition-opacity duration-300",v===t&&"opacity-100")})},null==n?void 0:n.text)})})]}),(0,l.jsx)(a.Z,{variant:"secondary",link:x,className:(0,m.Z)(f&&"!self-end")})]}),(0,l.jsx)("div",{className:(0,m.Z)("relative w-1/2 aspect-[636/740] max-h-viewport",f&&"order-0"),children:(null==r?void 0:r.length)>0&&r.map((e,t)=>{var n;let{image:r}=e;return(0,l.jsx)("div",{ref:e=>{j.current[t]=e},className:"absolute top-0 w-full rounded-lg overflow-hidden max-h-viewport",children:(0,l.jsx)(s.default,{aspect:636/740,image:r,imageSizes:"(max-width: ".concat(u().md,"px) 100vw, (max-width: ").concat(u()["max-content"],"px) 50vw, ").concat(Math.round(u()["max-content"]/2),"px")})},null==r?void 0:null===(n=r.asset)||void 0===n?void 0:n._id)})})]})}var v=n(89113);function g(e){let{data:t}=e,{heading:n,links:r}=null!=t?t:{};return(0,l.jsxs)("div",{className:"block md:hidden w-[calc(100%+1.5rem)] overflow-hidden",children:[(0,l.jsx)("div",{className:"mb-4",children:n}),(0,l.jsx)(v.default,{options:{loop:!0,slides:{perView:1.125,spacing:16}},pagination:!1,children:r&&r.map(e=>(0,l.jsx)(b,{item:e},null==e?void 0:e._key))})]})}function b(e){let{item:t}=e,{link:n,image:r}=null!=t?t:{};return(0,l.jsx)(i.default,{className:"keen-slider__slide aspect-square rounded-lg",link:n,showText:!1,
1contentBlockName:"Link Listing",children:(0,l.jsxs)("div",{className:"relative bg-[#1A1A1A]",children:[(0,l.jsx)(s.default,{className:"opacity-70",image:r,aspect:1}),(0,l.jsx)("div",{className:"absolute top-4 left-4 text-secondary500-foreground",children:null==n?void 0:n.text}),(0,l.jsx)(c.Z,{className:"absolute bottom-4 left-4 text-secondary500-foreground"})]})})}function j(e){let{data:t}=e;return(0,l.jsxs)(r.Z,{className:"h4",gutter:"lg",contain:!0,children:[(0,l.jsx)(f,{data:t}),(0,l.jsx)(g,{data:t})]})}},88224:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var l=n(57437),r=n(91546),a=n(24748),i=n(63133);function Map(e){let{practice:t}=e,n=new window.google.maps.LatLng(t.address.location.lat,t.address.location.lng),s=(0,r.Z)(t);return(0,l.jsx)("div",{className:"aspect-[1.78] col-span-full mb-14",children:(0,l.jsx)(a.b6,{zoom:13,mapContainerClassName:"google-map-container",center:n,children:(0,l.jsx)(i.A,{practice:t,addressLink:s})})})}function s(e){let{practice:t}=e,{isLoaded:n}=(0,a.Db)({googleMapsApiKey:"AIzaSyBimwEeLsX7o9kZtt_UQAgkczENxOiF3fw"});return n?(0,l.jsx)(Map,{practice:t}):(0,l.jsx)("div",{className:"aspect-[1.78] col-span-full",children:"Loading..."})}},9975:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var l=n(57437),r=n(41873),a=n.n(r),i=n(57042),s=n(89113),o=n(2265),c=n(56265),d=n(86290);let u=(0,o.forwardRef)((e,t)=>{let{imageOrVideo:n,...r}=e,{type:a}=null!=n?n:{},i="image"===a?null==n?void 0:n.image:n;return(0,l.jsxs)(l.Fragment,{children:[("image"===a||void 0===a)&&(0,l.jsx)(c.default,{image:i,ref:t,...r}),"video"===a&&(0,l.jsx)(d.default,{ref:t,data:null==n?void 0:n.video,...r})]})});u.displayName="ImageOrVideo";var m=n(64437),h=n(91835);function p(e){let{data:t,inRichText:n,fullWidth:r=!1}=e,{slides:a}=null!=t?t:{},o=a.length>1;return(0,l.jsx)(h.Z,{...r?{bottomMargin:!1,className:"mb-6"}:{gutter:"lg",contain:!0},children:(0,l.jsx)("div",{className:"overflow-hidden mx-auto",children:(0,l.jsx)(s.default,{caption:e=>(0,l.jsx)("div",{className:"relative w-full",children:null==a?void 0:a.map((t,n)=>(0,l.jsx)(m.default,{content:null==t?void 0:t.caption,className:(0,i.Z)("absolute transition-opacity duration-200 ease-in-out -translate-y-1/2 w-full",n===e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none")},t._key))}),className:"rounded-lg flex",options:{slides:{perView:1,spacing:24}},overflowVisble:!1,hasCursors:o,pagination:o,children:null==a?void 0:a.map(e=>(0,l.jsx)(x,{slide:e,inRichText:n},e._key))})})})}function x(e){let{slide:t,inRichText:n,className:r}=e,s=(null==t?void 0:t.type)==="video"?{controls:!0}:{};return(0,l.jsx)("div",{className:(0,i.Z)(r,"keen-slider__slide overflow-hidden md:max-h-viewport rounded-lg bg-primary100 w-full flex-shrink-0"),children:(0,l.jsx)(u,{imageOrVideo:t,className:"w-full h-full",rootClassName:"[&_.video-thumb]:h-full [&_.video-thumb]:object-cover",imageSizes:"(max-width: ".concat(a()["max-content"],"px) 100vw, ").concat(a()["max-content"],"px"),containerStyle:n?{height:"100%",aspectRatio:void 0,backgroundColor:"black"}:{},...s})})}},51268:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var l=n(57437),r=n(50781),a=n(56265),i=n(25901),s=n(63099),o=n(57042);function c(e){let{article:t,bgColor:n,className:c,contentBlockName:d,menuSelection:u,imageSizes:m}=e,{title:h,featuredImage:p,category:x}=null!=t?t:{},f=(0,s.wJ)(n),v=!p;return(0,l.jsxs)(r.default,{link:t,showText:!1,className:(0,o.Z)("rounded-lg overflow-hidden transition-colors duration-250 ease-in-out hover:bg-neutralGrey200 min-h-[90vw] md:min-h-[calc((min(100vw,1680px)*0.33)-3rem)]",f,c),contentBlockName:d,menuSelection:u,children:[p&&(0,l.jsx)(a.default,{image:p,aspect:1.6,imageSizes:m}),(0,l.jsxs)("div",{className:(0,o.Z)("p-4 flex flex-col justify-between",v&&"h-full"),children:[(0,l.jsx)("h3",{className:(0,o.Z)("font-body font-500 text-18 md:text-20 min-h-[8.375rem]"),children:(0,l.jsx)("span",{className:(0,o.Z)(p&&"text-ellipsis line-clamp-3"),children:h})}),(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("div",{className:"text-12",children:null==x?void 0:x.title}),(0,l.jsx)("div",{className:"aspect-square w-6 h-6 rounded-full bg-backgroundColor flex items-center justify-center",children:(0,l.jsx)(i.Z,{className:"text-primary400 !w-3 !h-3"})})]})]})]})}},15891:function(e,t,n){"use strict";n.r(t),n.d(t,{NewsGrid:function(){return N},default:function(){return y}});var l=n(57437),r=n(93540),a=n(91835),i=n(41873),s=n.n(i),o=n(57042),c=n(51268),d=n(37327),u=n(70641),m=n(2265);function h(e){let{title:t,changeQuery:n,initialQuery:i}=e,s=(0,m.useRef)(),o=(0,d.useTracker)(),c=(0,m.useCallback)(e=>{e.preventDefault();let l=s.current.value;l&&o("site_search",{search_name:t,search_criteria:null==l?void 0:l.toLowerCase()}),n(l?{...i,filterQuery:'&& (title match "'.concat(l,'" || excerpt match "').concat(l,'")')}:i)},[n,i,t,o]);return(0,l.jsx)(a.Z,{className:"border-t border-neutralGrey200 pt-8",children:(0,l.jsxs)("form",{className:"flex items-center bg-neutralGrey100 rounded-full p-2 px-[0.625rem] relative overflow-hidden",children:[(0,l.jsx)(u.Z,{className:"absolute",onSubmit:c}
1),(0,l.jsx)("input",{ref:s,type:"text",placeholder:"Search blog",className:"flex-1 p-2 pl-8 bg-transparent outline-none"}),(0,l.jsx)(r.Z,{variant:"secondary",onClick:c,type:"submit",children:"Search"})]})})}var p=n(57751),x=n(23890),f=n(77665),v=n(75737),g=n(37220);let b={},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9,{loadingAtom:n,indexAtom:l,articlesAtom:r,orderAtom:a,queryAtom:i,totalAtom:s}=e,[o,c]=(0,x.KO)(n),[d,u]=(0,x.KO)(i),[h,p]=(0,x.KO)(s),f=(0,x.b9)(l),b=(0,x.b9)(a),[j,w]=(0,x.KO)(r),y=(0,v.lV)((0,m.useCallback)(e=>e(n),[n])),N=(0,v.lV)((0,m.useCallback)(e=>e(l),[l])),k=(0,v.lV)((0,m.useCallback)(e=>e(a),[a])),C=(0,v.lV)((0,m.useCallback)(e=>e(i),[i])),_=(0,m.useCallback)(async(e,n)=>{let l=await y();if(!l){c(!0);try{let l=await k(),r=await C(),a=g.Z.stringify(r),i=await fetch("/api/articles?&index=".concat(n,"&limit=").concat(t,"&order=").concat(l,"&").concat(a)),s=await i.json();e(s)}finally{c(!1)}}},[y,c,k,C,t]),Z=(0,m.useCallback)(async e=>{await b(e),await _(e=>{w(e.items),p(e.total),f(0)},0)},[_,w,f,b,p]),L=(0,m.useCallback)(async e=>{await u(e),await _(e=>{w(e.items),p(e.total),f(0)},0)},[_,w,f,u,p]),T=(0,m.useCallback)(async()=>{let e=await N();await _(e=>{w(t=>[...t,...e.items]),p(e.total),f(e=>e+1)},e+1)},[_,N,w,f,p]);return{loading:o,articles:j,query:d,total:h,loadNextCallback:T,changeOrderCallback:Z,changeQueryCallback:L}},w=e=>{let{id:t,initialArticles:n=[],initialQuery:l,initialTotal:r,initialOrderBy:a="publishedDate desc",limit:i=12}=e;if(!p.Z||!b[t]){let e=(0,f.cn)(!1),i=(0,f.cn)(0),s=(0,f.cn)(n),o=(0,f.cn)(a),c=(0,f.cn)(l),d=(0,f.cn)(r);b[t]={loadingAtom:e,indexAtom:i,articlesAtom:s,orderAtom:o,queryAtom:c,totalAtom:d}}let{loading:s,articles:o,query:c,total:d,loadNextCallback:u,changeOrderCallback:m,changeQueryCallback:h}=j(b[t],i);return{articlesAtoms:b[t],articles:o,query:c,loading:s,total:d,loadNext:u,changeOrder:m,changeQuery:h}};function y(e){let{title:t,initialArticles:n,initialTotal:r,pageId:a,tags:i,bgColor:s}=e,o={type:"article",tags:i},{total:c,articles:d,loading:u,loadNext:m,changeQuery:p}=w({id:a,initialArticles:n,initialTotal:r,initialQuery:o,initialOrderBy:"publishedDate desc",limit:9}),x=(null==d?void 0:d.length)<c;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h,{title:t,changeQuery:p,initialQuery:o}),!c&&(0,l.jsx)("p",{children:"No results, try a different search term"}),(0,l.jsx)(N,{articles:d,hasMore:x,loading:u,loadNext:m,bgColor:s})]})}function N(e){let{articles:t,hasMore:n,loading:i,loadNext:d,bgColor:u}=e;return(0,l.jsxs)(a.Z,{grid:!0,children:[null==t?void 0:t.map((e,t)=>(0,l.jsx)(c.Z,{article:e,className:(0,o.Z)("col-span-full",t<2?"md:col-span-6 !aspect-[unset]":"md:col-span-4"),bgColor:u,imageSizes:"(max-width: ".concat(s().md,"px) 100vw, (max-width: ").concat(s()["max-content"],"px) 50vw, ").concat(Math.round(s()["max-content"]/2),"px")},e._id)),n&&(0,l.jsx)("div",{className:"col-span-full flex items-center justify-center mt-14",children:(0,l.jsx)(r.Z,{onClick:d,variant:"tertiary",children:i?"Loading...":"Load more articles"})})]})}},67182:function(e,t,n){"use strict";n.r(t),n.d(t,{PartnerModal:function(){return T},default:function(){return L}});var l=n(57437),r=n(93540),a=n(37327),i=n(34936),s=n(25901),o=n(53717),c=n(41873),d=n.n(c),u=n(13139),m=n(42687),h=n(54677),p=n.n(h),x=n(24033),f=n(2265);function v(e){let{children:t,_id:n,duration:r}=e,a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:600,[l,r]=(0,f.useState)(e?(0,f.cloneElement)(e):null),a=(0,f.useRef)(t);return(0,f.useEffect)(()=>{let l;let i=()=>{r(e?(0,f.cloneElement)(e):null),a.current=t};if(a.current===t||a.current!==t&&(void 0===a.current||null===a.current)){i();return}return t||(l=setTimeout(()=>i(),n)),()=>{clearTimeout(l)}},[e,t,n]),l}(t,n,r);return(0,l.jsx)(l.Fragment,{children:a})}var g=n(42089),b=n(56265),j=n(64437),w=n(91835),y=n(61132),N=n(57042),k=n(42815),C=n(93569),_=n(86290);function Z(e){let{videoData:t,setVideoData:n,className:r}=e,{lock:a,unlock:i}=(0,C.gh)(),s=(0,f.useRef)(),o=(0,f.useRef)(),c=(0,f.useRef)(),[d,u]=(0,f.useState)(!!t);(0,f.useEffect)(()=>{t&&u(!0)},[t]),(0,f.useEffect)(()=>{let e=k.ZP.timeline();return e.to(s.current,{autoAlpha:d?1:0,scale:d?1:.9,duration:.6,ease:"expo.out",pointerEvents:d?"all":"none",onComplete:()=>{d&&c.current.play()}},0),e.to(o.current,{opacity:d?.5:0,pointerEvents:d?"all":"none",duration:.6,ease:"expo.out"},0),d?a():i(),()=>{null==e||e.kill()}},[d,a,i]);let m=(0,f.useCallback)(()=>{u(!1),setTimeout(()=>{n(null)},500)},[u,n]);return(0,y.Z)(m),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,N.Z)("fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-videoOverlay flex gap-2 items-start opacity-0 pointer-events-none",r),ref:s,children:[t&&(0,l.jsx)(_.default,{data:t,controls:!0,rootClassName:"w-[90vw] md:w-[80vw] rounded-lg overflow-hidden bg-[black]",ref:c}),(0,l.jsx)("button",{onClick:m,className:"bg-backgroundColor roun
1ded-full p-2 downMd:hidden",children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M4.26536 12.6668L3.33203 11.7335L7.06536 8.00016L3.33203 4.26683L4.26536 3.3335L7.9987 7.06683L11.732 3.3335L12.6654 4.26683L8.93203 8.00016L12.6654 11.7335L11.732 12.6668L7.9987 8.9335L4.26536 12.6668Z",fill:"currentColor"})})})]}),(0,l.jsx)("button",{onClick:m,className:"w-screen h-screen fixed inset-0 bg-[black] z-videoOverlayShadow opacity-0 pointer-events-none",ref:o})]})}function L(e){var t;let{partners:n}=e,[r,a]=(0,f.useState)(null),[i,s]=(0,f.useState)(null);return(0,l.jsxs)(w.Z,{contain:!0,gutter:"lg",grid:!0,className:"md:gap-y-20 gap-10",children:[null===(t=p()(n))||void 0===t?void 0:t.map((e,t)=>(0,l.jsx)(S,{partner:e,setModalData:a,setVideoData:s},"".concat(e._id,"-").concat(t))),(0,l.jsx)(T,{modalData:r,setModalData:a}),(0,l.jsx)(Z,{videoData:i,setVideoData:s})]})}function T(e){let{modalData:t,setModalData:n}=e,a=null!==t,i=(0,x.usePathname)(),s=(0,f.useCallback)(()=>{window.history.replaceState(null,"",i),n(null)},[i,n]);return(0,l.jsxs)(g.Z,{side:"right",isOpen:a,onClose:s,className:"downMd:pt-0",widthClasse
1s:"w-screen md:w-[65vw] lg:w-[40vw]",children:[(0,l.jsx)("div",{className:"sticky top-0 w-screen ml-[calc(50%-50vw)] h-header-height md:hidden border-b border-neutralGrey200 mb-3 bg-backgroundColor z-10 flex justify-end items-center px-8",children:(0,l.jsx)(r.Z,{variant:"tertiary",onClick:s,iconButton:!0,"aria-label":"Close",children:(0,l.jsx)(o.Z,{})})}),(0,l.jsx)(v,{_id:null==t?void 0:t._id,children:t&&(0,l.jsx)(M,{partner:t})})]})}function M(e){let{partner:t}=e,{name:n,practice:r,jobTitle:a,jobType:i,featuredImage:s,description:o}=null!=t?t:{},c=r||a||(null==i?void 0:i.title);return(0,l.jsxs)("div",{children:[s&&(0,l.jsx)("div",{className:"block mb-4",children:(0,l.jsx)(b.default,{image:s,aspect:656/600,className:"rounded-lg overflow-hidden",imageSizes:"(max-width: ".concat(d().md,"px) 100vw, (max-width: ").concat(d()["max-content"],"px) 65vw, ").concat(Math.round(d()["max-content"]/2),"px")})}),(0,l.jsx)("h3",{className:"h5",children:p()([null==n?void 0:n.salutation,null==n?void 0:n.firstName,null==n?void 0:n.lastName]).join(" ")}),c&&(0,l.jsx)("p",{className:"text-secondary400 mt-1 mb-8",children:c}),(0,l.jsx)(j.default,{content:o,className:"text-18 text-secondary400 mt-4"})]})}function S(e){let{partner:t,setModalData:n,setVideoData:r}=e,{name:o,jobTitle:c,jobType:h,featuredImage:x,excerpt:v,video:g}=null!=t?t:{},j=c||(null==h?void 0:h.title),w=(0,a.useTracker)(),y=(0,i.W4)(),N=p()([null==o?void 0:o.salutation,null==o?void 0:o.firstName,null==o?void 0:o.lastName]).join(" "),k=(0,f.useCallback)(()=>{let e=(0,m.px)(y,t);window.history.replaceState(null,"",e),n(t),w("content_block_interaction",{click_location:"Content Block",content_block_name:"Partners Listing",menu_selection:N,button:"Read more"})},[y,t,N,w,n]),C=(0,f.useCallback)(()=>{r(g)},[r,g]);return(0,l.jsxs)("div",{className:"col-span-full md:col-span-4",children:[x?(0,l.jsx)(b.default,{image:x,aspect:1,className:"rounded-lg overflow-hidden mb-4",imageSizes:"(max-width: ".concat(d().md,"px) 100vw, (max-width: ").concat(d()["max-content"],"px) 33vw, ").concat(Math.round(d()["max-content"]/3),"px")}):(0,l.jsx)("div",{className:"aspect-square bg-neutralGrey100 rounded-lg mb-4"}),(0,l.jsx)("h3",{className:"h6",children:N}),j&&(0,l.jsx)("p",{className:"text-14 text-secondary400 mt-1 mb-8",children:j}),(0,l.jsx)(u.Z,{className:"line-clamp-3",text:v}),(0,l.jsxs)("div",{className:"flex gap-4 items-center mt-8",children:[(0,l.jsxs)("button",{className:"flex gap-2 items-center",onClick:k,children:[(0,l.jsx)(s.Z,{className:"text-primary400"}),(0,l.jsx)("span",{children:"Read more"})]}),!!g&&(0,l.jsxs)("button",{className:"flex gap-2 items-center",onClick:C,children:[(0,l.jsx)(s.Z,{className:"text-primary400"}),(0,l.jsx)("span",{children:"Watch video"})]})]})]})}},55720:function(e,t,n){"use strict";n.d(t,{TD:function(){return f},ZP:function(){return v}});var l=n(57437),r=n(91546),a=n(54677),i=n.n(a),s=n(96778),o=n.n(s),c=n(83705),d=n.n(c),u=n(28811),m=n.n(u),h=n(50781),p=n(91835);let x=m()(()=>Promise.resolve().then(n.bind(n,88224)),{loadableGenerated:{webpack:()=>[88224]},loading:()=>(0,l.jsx)("div",{className:"aspect-[1.78] col-span-full",children:"Loading..."})});function f(e){if(!e||e.includes("PM")||e.includes("AM"))return e;let t=e.split(" ")[0].split(":");return"".concat(Number(t[0])%12||12,":").concat(t[1]," ").concat(Number(t[0])>=12?"PM":"AM")}function v(e){var t,n,a,s;let{data:c}=e,{hideMap:u}=c,m=null==c?void 0:null===(t=c.practice)||void 0===t?void 0:t.practice,v=null==m?void 0:m.address,b=d()(i()((null==m?void 0:m.languages)||[]),e=>e.slug),j=null==m?void 0:m.access,w={...null==c?void 0:c.practice,...null==c?void 0:null===(n=c.practice)||void 0===n?void 0:n.practice};return(0,l.jsxs)(p.Z,{className:"rich-text-slice-wrapper",grid:!0,contain:!0,gutter:"lg",children:[(0,l.jsx)("h2",{className:"h4 col-span-full md:col-span-6",children:"How to reach us"}),(0,l.jsxs)("div",{className:"col-span-full md:col-span-6 flex flex-col gap-10",children:[v&&(0,l.jsxs)(g,{title:"Location",children:[w.businessName&&w.businessName!==w.title?(0,l.jsxs)("div",{children:[w.businessName," ",w.title]}):(0,l.jsx)("div",{children:w.title}),(0,l.jsx)("span",{className:"whitespace-pre-wrap",children:v.streetAddress}),(0,l.jsx)("span",{className:"block",children:i()([v.suburb,v.state,v.postcode]).join(" ")}),(0,l.jsx)("a",{href:(0,r.Z)(w),target:"_blank",rel:"noopener noreferrer",className:"underline hover:no-underline",children:"Get Directions"})]}),(null==m?void 0:m.email)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g,{title:"Email",className:"hidden md:block",children:(0,l.jsx)(h.default,{to:"mailto:".concat(null==m?void 0:m.email),showText:!1,
1contentBlockName:"Practice Summary",menuSelection:m.title,className:"break-words underline hover:no-underline",children:null==m?void 0:m.email})}),(0,l.jsx)(h.default,{to:"mailto:".concat(null==m?void 0:m.email),showText:!1,title:null==m?void 0:m.email,contentBlockName:"Practice Summary",menuSelection:m.title,className:"inline md:hidden break-words underline hover:no-underline",children:"Email Us"})]}),(null==m?void 0:m.phone)&&(0,l.jsx)(g,{title:"Phone",children:(0,l.jsx)(h.default,{to:"tel:".concat(null==m?void 0:m.phone),showText:!1,contentBlockName:"Practice Summary",menuSelection:m.title,children:null==m?void 0:m.phone})}),!o()(null==m?void 0:m.openingHours)&&(0,l.jsx)(g,{title:"Opening hours",children:null==m?void 0:m.openingHours.map((e,t)=>(0,l.jsxs)("div",{className:"grid grid-cols-3",children:[(0,l.jsx)("div",{children:null==e?void 0:e.day}),e.closed&&(0,l.jsx)("div",{className:"col-span-2",children:"Closed"}),!e.closed&&(0,l.jsxs)("div",{className:"col-span-2",children:[f(null==e?void 0:e.openingTime)," - ",f(null==e?void 0:e.closingTime)]}),e.notes&&(0,l.jsx)("div",{className:"col-start-2 col-span-2 text-14",children:e.notes})]},t))}),!o()(b)&&(0,l.jsx)(g,{title:"Languages Spoken",children:b.map((e,t)=>(0,l.jsx)("div",{children:e.title},t))}),!o()(j)&&(0,l.jsx)(g,{title:"More Information",children:null==m?void 0:null===(a=m.access)||void 0===a?void 0:a.map((e,t)=>(0,l.jsx)("div",{children:e.title},t))})]}),(null==m?void 0:null===(s=m.address)||void 0===s?void 0:s.location)&&!u&&(0,l.jsx)(x,{practice:w})]})}function g(e){let{title:t,children:n,className:r,...a}=e;return(0,l.jsxs)("div",{className:r,...a,children:[(0,l.jsx)("div",{className:"font-medium",children:t}),n]})}},16557:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var l=n(57437),r=n(50781),a=n(91835),i=n(21050),s=n(2265),o=n(4327),c=n(20390);function d(e){let{practices:t,navSections:n,data:r}=e,[i,o]=(0,s.useState)(null);return(0,l.jsxs)(a.Z,{contain:!0,gutter:"lg",grid:!0,className:"mt-10 overflow-clip",children:[(0,l.jsx)("div",{className:"col-span-full md:col-start-1 md:col-span-6 downMd:hidden h-full relative self-start",children:(0,l.jsx)("div",{className:"sticky top-[6rem] h-screen",children:(0,l.jsx)(c.JumpToNav,{sections:n,className:"md:mt-24",activeSection:i})})}),(0,l.jsx)("div",{className:"col-span-full md:col-start-7 md:col-span-6 flex flex-col md:gap-20 gap-6 md:mt-24 mt-14",children:null==t?void 0:t.map(e=>(0,l.jsx)(u,{data:e,setActiveSection:o,linkData:r},e._id))})]})}function u(e){var t;let{data:n,setActiveSection:a,linkData:i}=e,{state:s,practices:c}=null!=n?n:{},d=null===(t=i["".concat(s.key,"Link")])||void 0===t?void 0:t[0],{ref:u}=(0,o.YD)({threshold:.4,onChange:e=>{e&&a(n._id)}});return(0,l.jsxs)("div",{id:"".concat(null==s?void 0:s.slug),className:"pt-[6rem] -mt-[6rem]",ref:u,children:[(0,l.jsx)("h4",{children:null==s?void 0:s.title}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between mt-2 items-center",children:[(0,l.jsxs)("p",{className:"text-secondary400",children:[c.length," practices"]}),d&&(0,l.jsx)(r.default,{link:d,className:"text-14 underline hover:no-underline"})]}),(0,l.jsx)("div",{className:"mt-6 md:mt-10 grid lg:grid-cols-2 gap-2 md:gap-4",children:null==c?void 0:c.map(e=>(0,l.jsx)(m,{practice:e},e._id))})]})}function m(e){var t,n;let{practice:a}=e,{parentTitle:s,title:o,suburb:c}=null!=a?a:{},d=("United"===s?o:s)||o,u=s&&"United"!==s?o:c,m=(null===(t=a.redirect)||void 0===t?void 0:t.enabled)?null===(n=a.redirect)||void 0===n?void 0:n.url:a.siteUrl;return(0,l.jsxs)(r.default,{link:m?null:a,to:m,showText:!1,className:"border border-neutralGrey200 hover:border-neutralGrey100 hover:bg-neutralGrey100 rounded-lg p-[1.25rem] md:p-6 !flex items-center gap-10",contentBlockName:"Practices Listing",menuSelection:a.title,children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("p",{className:"text-18 font-[500] leading-none",children:d}),(0,l.jsx)("p",{className:"text-secondary400 mt-2",children:u})]}),(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(i.Z,{className:"text-primary500 w-[1.75rem]"})})]})}},29154:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var l=n(57437),r=n(68924),a=n(42815),i=n(2265),s=n(89113),o=n(91835);function c(e){let{data:t,page:n}=e,{quotes:a}=null!=t?t:{}
1,c=(0,i.useRef)(),d=a.length>1,m=(0,r.Z)(t,n),h=(null==m?void 0:m._type)==="colorChanger";return(0,l.jsx)(o.Z,{className:"bg-secondary500 text-backgroundColor w-full overflow-hidden clip relative",ref:c,bottomMargin:!h,children:(0,l.jsx)(o.Z,{as:"div",className:"h-[65svh] downMd:h-[80svh]",contain:!0,bottomMargin:!1,children:(0,l.jsx)(s.default,{options:{slides:{perView:1}},hasCursors:d,pagination:d,rootClassName:"flex flex-col h-full pb-10",className:"flex-1 h-full",paginationClassName:"!text-secondary500 justify-center",children:null==a?void 0:a.map(e=>(0,l.jsx)(u,{quote:e},e._key))})})})}function d(e){let{text:t,className:n}=e,r=null==t?void 0:t.split(/\s/g);return(0,l.jsx)(l.Fragment,{children:r.map((e,t)=>(0,l.jsxs)("span",{className:n,children:[e,t!==r.length-1&&" "]},"".concat(e,"-").concat(t)))})}function u(e){let{quote:t}=e,{quote:n,attributionName:r,attributionRole:s}=null!=t?t:{},o=(0,i.useRef)(),c=(0,i.useRef)(),u=(0,i.useRef)({tl:null}).current;return(0,i.useEffect)(()=>{u.tl&&u.tl.kill();let e=function(e,t){let n=a.ZP.timeline({scrollTrigger:{trigger:t,scrub:!0,start:"top bottom",end:"bottom top+=50%"}}),l=getComputedStyle(document.documentElement),r=l.getPropertyValue("--primary400").trim(),i=l.getPropertyValue("--backgroundColor").trim();return n.fromTo(e,{color:r},{color:i,ease:"steps(1)",duration:.8,stagger:{amount:.8}},0),n}(c.current.children,o.current);return u.tl=e,()=>{var e;null==u||null===(e=u.tl)||void 0===e||e.kill()}},[u]),(0,l.jsxs)("div",{className:"keen-slider__slide flex items-center flex-col justify-center z-[2] h-full downMd:px-6",ref:o,children:[(0,l.jsx)("p",{className:"h4 text-center md:max-w-[55%] text-primary400",ref:c,children:(0,l.jsx)(d,{text:"â".concat(n,"â"),className:"transition-color duration-200"})}),r&&(0,l.jsx)("p",{className:"leading-[1.5em] font-[500] mt-6",children:r}),s&&(0,l.jsx)("p",{className:"leading-[1.5em] ",children:s})]})}},3403:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var l=n(57437),r=n(42743);function a(e){let{className:t,...n}=e;return(0,l.jsx)("svg",{className:t,width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:(0,l.jsx)("path",{d:"M1.4 13L0 11.6L9.6 2H1V0H13V12H11V3.4L1.4 13Z",fill:"currentColor"})})}var i=n(57042),s=n(74548),o=n.n(s),c=n(50781),d=n(91835);function u(e){let{data:t}=e,{title:n,sections:r}=null!=t?t:{};return(0,l.jsxs)(d.Z,{contain:!0,gutter:"lg",children:[(0,l.jsx)("h4",{className:"mb-10",children:n}),null==r?void 0:r.map(e=>(0,l.jsx)(m,{section:e},e._key))]})}function m(e){let{section:t}=e,{title:n,roles:a}=null!=t?t:{},[i,s]=(0,r.Z)();return(0,l.jsxs)("div",{className:"mb-20",children:[(0,l.jsx)("p",{className:"mb-4",children:n}),null==a?void 0:a.map((e,t)=>(0,l.jsx)(h,{role:e,index:t,isActive:i,events:s},e._key))]})}function h(e){let{role:t,isActive:n,events:r,index:s}=e,{title:u,description:m,location:h,publishDate:p,url:x}=null!=t?t:{};return(0,l.jsx)(c.default,{to:x,"aria-label":u,nonLinkTag:"div",contentBlockName:"Role Listing",...r(s),className:(0,i.Z)("transition-opacity duration-300 ease-expo-out",n(s)?"opacity-100":"opacity-20"),children:(0,l.jsxs)(d.Z,{as:"span",grid:!0,bottomMargin:!1,className:"w-full border-t border-neutralGrey200 py-5 items-center downMd:gap-y-0",children:[(0,l.jsx)("p",{className:"col-span-5 md:col-span-2 truncate font-[500]",children:u}),(0,l.jsx)("p",{className:"col-span-5 md:col-span-7 truncate",children:m}),(0,l.jsx)("p",{className:"col-span-5 md:col-span-1",children:null==h?void 0:h.title}),(0,l.jsx)("p",{className:"col-span-5 md:col-span-1 truncate",children:p?o()(p).format("DD/MM/YYYY"):null}),!!x&&(0,l.jsx)(a,{className:"justify-self-end downMd:row-start-1 downMd:col-start-6"})]})})}},20390:function(e,t,n){"use strict";n.r(t),n.d(t,{JumpToNav:function(){return h},default:function(){return m}});var l=n(57437),r=n(21050),a=n(13139),i=n(57042),s=n(2265),o=n(4327),c=n(50781),d=n(91835),u=n(85921);function m(e){let{treatments:t,transformedTreatments:n,navSections:r,popularServicesLabel:a,popularServices:o,hidePopular:c,category:m}=e,f=!!m,v=(0,s.useMemo)(()=>f?null==n?void 0:n.find(e=>e._id===m._id):null,[n,m,f]),g=(0,s.useMemo)(()=>{let e=(o||[]).map(e=>t.find(t=>t._id===e._id)||e),n=t.filter(t=>!e.find(e=>e._id===t._id));return[...e,...n].slice(0,3)}
1,[t,o]),[b,j]=(0,s.useState)(null);return(0,l.jsxs)(d.Z,{contain:!0,gutter:"lg",grid:!0,className:"mt-10 overflow-clip",children:[!c&&(0,l.jsx)("div",{className:"col-span-full h-[1px] bg-neutralGrey200 mb-2 downMd:w-[100vw] downMd:-mx-[calc(50vw-50%)]"}),g&&!c&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h3",{className:"col-span-full h5 mb-2 mt-4",children:a||"Popular services"}),(0,l.jsx)(u.PopularTreatmentsCarousel,{treatments:g,rootClassName:"col-span-full",className:"!mt-0"})]}),(0,l.jsx)("div",{className:"col-span-full md:col-start-1 md:col-span-6 downMd:hidden h-full relative self-start",children:(0,l.jsxs)("div",{className:"sticky top-[6rem] h-screen",children:[!f&&(0,l.jsx)(h,{sections:r,className:"md:mt-24",activeSection:b}),f&&(0,l.jsx)("div",{children:(0,l.jsx)(p,{treatment:v})})]})}),(0,l.jsxs)("div",{className:(0,i.Z)("col-span-full md:col-start-7 md:col-span-6 flex flex-col md:gap-20 gap-6",!f&&"md:mt-24 mt-14"),children:[!f&&(null==n?void 0:n.map(e=>(0,l.jsx)(x,{data:e,setActiveSection:j},e._id))),f&&(0,l.jsx)(x,{data:v,showTitle:!1})]})]})}function h(e){let{sections:t,activeSection:n,className:r}=e;return(0,l.jsxs)("div",{className:(0,i.Z)("flex flex-col gap-1",r),children:[(0,l.jsx)("div",{className:"text-14 font-[500] mb-4",children:"Jump to section"}),null==t?void 0:t.map(e=>{let t=(n===e._id||n===e.slug)&&void 0!==n;return(0,l.jsxs)("a",{href:"#".concat(null==e?void 0:e.slug),className:(0,i.Z)("text-secondary400 leading-[1.3em] flex overflow-hidden",t&&"text-secondary500"),children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,i.Z)("text-primary500 -ml-[1.875rem] mr-[0.625rem] transition-transform",t&&"translate-x-[1.875rem]"),children:(0,l.jsx)("path",{d:"M13.4798 10.8333H3.33398V9.16658H13.4798L8.81315 4.49992L10.0007 3.33325L16.6673 9.99992L10.0007 16.6666L8.81315 15.4999L13.4798 10.8333Z",fill:"currentColor"})}),(0,l.jsx)("span",{className:(0,i.Z)("block relative transition-transform translate-x-0",t&&"!translate-x-[1.875rem]"),children:null==e?void 0:e.title})]},e._id)})]})}function p(e){let{treatment:t}=e,{title:n,treatments:r}=null!=t?t:{};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h4",{children:n}),(0,l.jsxs)("p",{className:"text-secondary400 mt-2",children:[r.length," Services & Treatments"]})]})}function x(e){let{data:t,setActiveSection:n,showTitle:r=!0}=e,{treatments:a}=null!=t?t:{},{ref:s}=(0,o.YD)({threshold:.4,onChange:e=>{e&&(null==n||n(t._id))}});return(0,l.jsxs)("div",{id:"".concat(t.slug),className:"pt-[6rem] -mt-[6rem]",ref:s,children:[r&&(0,l.jsx)(p,{treatment:t}),(0,l.jsx)("div",{className:(0,i.Z)("flex flex-col gap-2 md:gap-4",r&&"mt-6 md:mt-10"),children:null==a?void 0:a.map(e=>(0,l.jsx)(f,{treatment:e},e._id))})]})}function f(e){let{treatment:t}=e,{title:n,excerpt:i}=t;return(0,l.jsxs)(c.default,{link:t,showText:!1,className:"border border-neutralGrey200 hover:border-neutralGrey100 hover:bg-neutralGrey100 rounded-lg p-[1.25rem] md:p-6 !flex items-center gap-10",contentBlockName:"Service Listing",menuSelection:n,children:[(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("p",{className:"text-18 font-[500] leading-none",children:n}),(0,l.jsx)(a.Z,{className:"text-secondary400 mt-2",text:i})]}),(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(r.Z,{className:"text-primary500 w-[1.75rem]"})})]})}},48869:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var l=n(57437),r=n(93540),a=n(89113),i=n(37327),s=n(56265),o=n(91835),c=n(34936),d=n(41873),u=n.n(d),m=n(42687),h=n(54677),p=n.n(h),x=n(2265),f=n(67182);function v(e){let{team:t,data:n}=e,[i,s]=(0,x.useState)(null),d=(0,c.W4)(),{title:m,ctaLink:h}=null!=n?n:{},p={slides:{perView:6,spacing:24},breakpoints:{["(max-width: ".concat(u().md,"px)")]:{slides:{perView:1.4,spacing:24}}}},v=null==t?void 0:t.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"downMd:overflow-hidden",children:(0,l.jsxs)(o.Z,{className:"",gutter:"lg",contain:!0,children:[(0,l.jsxs)("div",{className:"col-span-full flex justify-between",children:[m&&(0,l.jsx)("h2",{className:"col-span-full h4",children:m}),h&&(0,l.jsx)(r.Z,{link:h,variant:"secondary",className:"downMd:!hidden",contentBlockName:m,menuSelection:m})]}),(0,l.jsx)(a.default,{options:p,className:"mt-7 downMd:!overflow-visible",overflowVisble:!1,pagination:v>6,mdPagination:!1,children:null==t?void 0:t.map((e,t)=>(0,l.jsx)(g,{person:e,site:d,setModalData:s},"".concat(e._key,"-").concat(t)))}),h&&(0,l.jsx)(r.Z,{link:h,variant:"secondary",className:"md:!hidden mt-4 [&>div]:w-full",contentBlockName:m,menuSelection:m})]})}),(0,l.jsx)(f.PartnerModal,{modalData:i,setModalData:s})]})}function g(e){var t,n;let{person:r,site:a,setModalData:o}=e,{name:c,jobType:d,jobTitle:h,featuredImage:f}=null!=r?r:{},{themeImages:v}=a,{emptyTileImage:g}=null!==(n=v||(null==a?void 0:null===(t=a.parent)||void 0===t?void 0:t.themeImages))&&void 0!==n?n:{},b=p()([null==c?void 0:c.salutation,null==c?void 0:c.firstName,null==c?void 0:c.lastName]).join(" "),j=(0,i.useTracker)(),w=(0,x.useCallback)(()=>{let e=(0,m.px)(a,r);window.history.replaceState(null,"",e),o(r),j("content_block_interaction",{click_location:"Content Block",content_block_name:"Team Carousel",menu_selection:b,button:b})},[a,r,b,o,j]);return(0,l.jsxs)("button",{className:"keen-slider__slide text-left",onClick:w,children:[(0,l.jsx)(s.default,{image:f||g,aspect:196/261,className:"rounded-lg mb-4",imageSizes:"(max-width: ".concat(u().md,"px) 60vw, (max-width: ").concat(u()["max-content"],"px) 18vw, ").concat(Math.round(u()["max-content"]/6),"px")}),(0,l.jsx)("div",{className:"font-[500] leading-[1.3em]",children:h||d}),(0,l.jsx)("div",{className:"font-[400] leading-[1.3em]",children:b})]})}},71793:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var l=n(57437),r=n(57042),a=n(66926),i=n.n(a),s=n(2265),o=n(50781),c=n(91835),d=n(34936);let u=[-1,-1];function m(e){let{data:t}
1=e,[n,a]=(0,s.useState)(u),{heading:m}=t||{},{treatments:h}=(0,d.W4)(),p=i()(h,e=>{var t;return null==e?void 0:null===(t=e.category)||void 0===t?void 0:t.title});return(0,l.jsxs)(c.Z,{gutter:"lg",contain:!0,children:[(0,l.jsx)("h4",{className:"mb-12",children:m}),(0,l.jsx)("div",{className:"grid lg:grid-cols-4",children:Object.keys(p).map((e,t)=>{let i=p[e];return(0,l.jsxs)("div",{children:[(0,l.jsx)("h6",{className:"mb-6",children:e}),(0,l.jsx)("ul",{className:"mb-12",onMouseLeave:()=>a(u),children:i.map((e,i)=>(0,l.jsx)(o.default,{to:null==e?void 0:e.slug,className:(0,r.Z)(-1===n[0]||n[0]===t&&n[1]===i?"opacity-100":"opacity-50","mb-1 block w-fit transition-opacity duration-200"),onMouseEnter:()=>a([t,i]),children:null==e?void 0:e.title},i))})]},t)})})]})}},87281:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var l=n(57437),r=n(2265),a=n(91835),i=n(54123);function s(e){let{data:t}=e,{heading:n,typeformId:s}=t||{};return(0,r.useEffect)(()=>{let{typeform:e}=window;e&&e.reload()},[]),(0,l.jsxs)(a.Z,{gutter:"lg",contain:!0,grid:!0,children:[n&&(0,l.jsx)("h3",{className:"col-span-6",children:n}),(0,l.jsx)(i.Z,{id:s})]})}},52758:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(57437),r=n(57042);function a(e){let{className:t}=e;return(0,l.jsx)("span",{className:(0,r.Z)("spinner text-primary500",t)})}},54123:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var l=n(57437),r=n(48475),a=n.n(r),i=n(2265);function s(e){let{id:t}=e;if((0,i.useEffect)(()=>{let{typeform:e}=window;e&&e.reload()},[]),t)return(0,l.jsxs)("div",{className:"col-span-full",children:[(0,l.jsx)("div",{className:"col-span-full","data-tf-live":t}),(0,l.jsx)(a(),{src:"//embed.typeform.com/next/embed.js",strategy:"afterInteractive"})]})}},86290:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var l=n(57437),r=n(40469),a=n(1964),i=n(2265),s=(e,t,l)=>{let r=(0,i.useRef)();return(0,i.useEffect)(()=>{if(t){let i=e.current,s=()=>{null==l||l()};return i.addEventListener("canplay",s),n.e(404).then(n.bind(n,52513)).then(n=>{if(n.default.isSupported()){let l=n.default;r.current=new l({capLevelToPlayerSize:!0,startLevel:"touch"===a.R8?void 0:5}),r.current.loadSource(t),r.current.attachMedia(e.current)}else i.canPlayType("application/vnd.apple.mpegurl")&&(i.src=t)}),()=>{i.removeEventListener("canplay",s),r.current&&r.current.detachMedia()}}},[t]),[r]},o=n(41873),c=n.n(o),d=n(57042),u=n(42815),m=n(56265);let h=(0,i.forwardRef)((e,t)=>{var n,a,o,h,x;let{data:f,className:v,rootClassName:g,controls:b=!1,autoPlay:j=!b,style:w,containerStyle:y={},...N}=e,k=(0,i.useRef)(),C=(0,i.useRef)(),_=null==f?void 0:null===(n=f.vimeoData)||void 0===n?void 0:n.hlsPlayerLink,Z=(null==f?void 0:null===(a=f.vimeoData)||void 0===a?void 0:a.width)/(null==f?void 0:null===(o=f.vimeoData)||void 0===o?void 0:o.height)||16/9,L=(0,i.useRef)();s(L,_);let T=(0,r.Z)(t,C,L),M=b?{controls:!0}:{controls:!1,muted:!0,playsInline:!0},S=null==f?void 0:f.thumbnail,P=null==f?void 0:null===(h=f.vimeoData)||void 0===h?void 0:h.vimeoThumbnail.link,A=!!(null==S?void 0:S.asset),E=(0,i.useCallback)(()=>{C.current.play(),u.ZP.to(k.current.querySelectorAll(".video-thumb, .video-button"),{autoAlpha:0,duration:.6,ease:"expo.out"})},[C]);return(0,i.useImperativeHandle)(t,()=>({play:E})),(0,l.jsxs)("div",{className:(0,d.Z)("relative",g),style:{aspectRatio:Z,...y},ref:k,children:[b&&!j&&(0,l.jsx)(p,{onClick:E}),b&&!j&&A&&(0,l.jsx)(m.default,{onClick:E,image:S,className:"video-thumb !absolute inset-0 cursor-pointer z-[9]",imageSizes:"(max-width: ".concat(c()["max-content"],"px) 100vw, ").concat(c()["max-content"],"px")}),b&&!j&&P&&(0,l.jsx)("img",{onClick:E,src:P,className:"video-thumb !absolute inset-0 cursor-pointer z-[9]",alt:(null==f?void 0:f.caption)||(null==f?void 0:null===(x=f.vimeoData)||void 0===x?void 0:x.title)}),(0,l.jsx)("video",{className:(0,d.Z)("w-full",v),ref:T,style:{aspectRatio:Z,...w},playsInline:!0,...M,...N})]})});function p(e){let{onClick:t}=e;return(0,l.jsx)("button",{onClick:t,className:"video-button absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-14 h-14 bg-primary500 text-[white] z-10 rounded-full flex items-center justify-center","aria-label":"play video",children:(0,l.jsx)("svg",{width:"14",height:"17",viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M0.333252 16.8411V0.507812L13.1666 8.67448L0.333252 16.8411Z",fill:"currentColor"})})})}var x=h},40469:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(2265);function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.useCallback)(e=>{t.forEach(t=>{"function"==typeof t?t(e):t&&(t.current=e)})},t)}},61132:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(2265);function r(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,l.useCallback)(t=>{27===t.keyCode&&e()},[e]);(0,l.useEffect)(()=>
1{if(t)return document.addEventListener("keydown",n,!1),()=>document.removeEventListener("keydown",n,!1)},[e,n,t])}},42743:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(1885),r=n(2265);function a(){let[e,t]=(0,r.useState)(-1),n=(0,r.useCallback)(e=>({onMouseEnter:l.T?null:()=>{t(e)},onMouseLeave:l.T?null:()=>{t(-1)}}),[]),a=(0,r.useCallback)(t=>e===t||-1===e,[e]);return[a,n]}},68924:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(96900),r=n.n(l),a=n(2265);function i(e,t){let{slices:n}=t,l=(0,a.useMemo)(()=>{let t=r()(n,e),l=n[t+1];return l},[n,e]);return l}},4191:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(2265);function r(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=arguments.length>3?arguments[3]:void 0;(0,l.useEffect)(()=>{if(n){let n=n=>{!e.current||e.current.contains(n.target)||r&&n.target.classList.contains(r)||t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}},[e,t,n,r])}},10940:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var l=n(34936),r=n(42687),a=n(2265);function i(){let e=(0,l.W4)();return(0,a.useCallback)(t=>(0,r.mg)(e,t),[e])}},20314:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var l=n(1885),r=n(2265);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,r.useRef)({width:l.j?window.innerWidth:e,height:l.j?window.innerHeight:t});return(0,r.useEffect)(()=>{if(l.j){let e=()=>{n.current.width=window.innerWidth,n.current.height=window.innerHeight};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[]),n}},21050:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(57437),r=n(57042);function a(e){let{className:t,width:n="w-7",height:a="h-7"}=e;return(0,l.jsx)("svg",{className:(0,r.Z)(t,n,a),viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M24.1584 14.9985H0.000732422V12.9985H24.1584L12.5738 1.41393L14.0007 -0.00146484L28.0007 13.9985L14.0007 27.9985L12.5738 26.5831L24.1584 14.9985Z",fill:"currentColor"})})}},25901:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(57437);function r(e){let{className:t}=e;return(0,l.jsx)("svg",{className:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M10.4798 7.83325H0.333984V6.
116658H10.4798L5.81315 1.49992L7.00065 0.333252L13.6673 6.99992L7.00065 13.6666L5.81315 12.4999L10.4798 7.83325Z",fill:"currentColor"})})}},53717:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var l=n(57437);function r(){return(0,l.jsx)("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",children:(0,l.jsx)("path",{d:"M4.26659 12.6663L3.33325 11.733L7.06659 7.99967L3.33325 4.26634L4.26659 3.33301L7.99992 7.06634L11.7333 3.33301L12.6666 4.26634L8.93325 7.99967L12.6666 11.733L11.7333 12.6663L7.99992 8.93301L4.26659 12.6663Z",fill:"currentColor"})})}},11049:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(57437),r=n(57042);function a(e){let{className:t}=e;return(0,l.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,r.Z)(t,"w-5 h-5"),children:(0,l.jsx)("path",{d:"M10.5 12.8122L5.5 7.81217L6.66667 6.64551L10.5 10.4788L14.3333 6.64551L15.5 7.81217L10.5 12.8122Z",fill:"currentColor"})})}},70641:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(57437),r=n(57042);function a(e){let{className:t}=e;return(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,r.Z)(t,"w-6 h-6"),children:(0,l.jsx)("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})})}},33948:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var l=n(57437),r=n(61088),a=n(34936),i=n(70779);function s(e){let t=(0,a.W4)(),n=(0,i.b5)(t,"simpleLogo");return n?(0,l.jsx)(r.Z,{image:n,...e}):null}},13900:function(e,t,n){"use strict";n.d(t,{Dc:function(){return o}});var l=n(57751),r=n(7085),a=n(6662),i=n.n(a);let s=(0,r.eI)({apiVersion:"2021-10-21",dataset:"production",projectId:"z56dhnka",useCdn:l.Z});function o(e){return(0,r.eI)({apiVersion:"2021-10-21",dataset:"production",projectId:"z56dhnka",useCdn:!1,token:e,ignoreBrowserTokenWarning:!0})}i()(s),t.ZP=s},41873:function(e){"use strict";e.exports={xs:420,sm:640,md:768,lg:1024,xl:1280,"2xl":1440,"max-content":1680,"3xl":1980}},60947:function(e){"use strict";e.exports={error:"#AA0000",primary100:"var(--primary100)",primary200:"var(--primary200)",primary300:"var(--primary300)",primary400:"var(--primary400)",primary500:"var(--primary500)",primary600:"var(--primary600)","primary100-foreground":"var(--primary100-foreground)","primary200-foreground":"var(--primary200-foreground)","primary300-foreground":"var(--primary300-foreground)","primary400-foreground":"var(--primary400-foreground)","primary500-foreground":"var(--primary500-foreground)","primary600-foreground":"var(--primary600-foreground)",secondary300:"var(--secondary300)",secondary400:"var(--secondary400)",secondary500:"var(--secondary500)","secondary300-foreground":"var(--secondary300-foreground)","secondary400-foreground":"var(--secondary400-foreground)","secondary500-foreground":"var(--secondary500-foreground)",highlight:"var(--highlight)","highlight-foreground":"var(--highlight-foreground)",backgroundColor:"var(--backgroundColor)","backgroundColor-foreground":"var(--backgroundColor-foreground)",headerBackgroundColor:"var(--headerBackgroundColor)","headerBackgroundColor-foreground":"var(--headerBackgroundColor-foreground)",footerColor:"var(--footerColor)","footerColor-foreground":"var(--footerColor-foreground)",neutralGrey100:"var(--neutralGrey100)",neutralGrey200:"var(--neutralGrey200)",neutralGrey300:"var(--neutralGrey300)","neutralGrey100-foreground":"var(--neutralGrey100-foreground)","neutralGrey300-foreground":"var(--neutralGrey300-foreground)","neutralGrey200-foreground":"var(--neutralGrey200-foreground)",neutralGrey100Opacity50:"var(--neutralGrey100_50)",neutralGrey100Opacity20:"var(--neutralGrey100_20)","neutralGrey100Opacity50-foreground":"var(--neutralGrey100_50-foreground)","neutralGrey100Opacity20-foreground":"var(--neutralGrey100_20-foreground)",current:"currentColor",transparent:"transparent"}},70779:function(e,t,n){"use strict";n.d(t,{b5:function(){return l}}),n(74171),n(79116),n(36905),n(45100),n(63099);let l=(e,t)=>
1{var n,l,r;return(null==e?void 0:null===(n=e.themeImages)||void 0===n?void 0:n[t])||(null==e?void 0:null===(r=e.parent)||void 0===r?void 0:null===(l=r.themeImages)||void 0===l?void 0:l[t])}},63099:function(e,t,n){"use strict";n.d(t,{DP:function(){return i},mJ:function(){return s},o1:function(){return c},wJ:function(){return o}});var l=n(60947),r=n.n(l),a=n(10375);function i(e){return!!e&&(0,a.Z)(e).isDark()}function s(e){let t=r()[e],n=r()["".concat(e,"-foreground")]||null;return{background:t,color:n,"--background":t,"--foreground":n}}function o(e){return"backgroundColor"===e||void 0===e?"bg-neutralGrey100":"bg-backgroundColor"}function c(e){return r()[e]}},1885:function(e,t,n){"use strict";n.d(t,{T:function(){return r},j:function(){return a}});var l=n(1964);let r="touch"===l.R8,a=!0},91546:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(54677),r=n.n(l);function a(e){let{address:t,businessName:n,title:l}=e,a=r()([n,l,null==t?void 0:t.streetAddress,null==t?void 0:t.suburb,null==t?void 0:t.state,null==t?void 0:t.postcode]).join(" ").replaceAll(",","").replaceAll(" ","+"),i=(null==t?void 0:t.googlePlacesId)?"&query_place_id=".concat(t.googlePlacesId):"";return"https://www.google.com/maps/search/?api=1&query=".concat(a).concat(i)}},57751:function(e,t){"use strict";t.Z=!0},53424:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});let l=e=>{var t;return(null==e?void 0:e.text)||(null==e?void 0:e.title)||(null==e?void 0:null===(t=e.page)||void 0===t?void 0:t.title)}},13139:function(e,t,n){"use strict";n.d(t,{M:function(){return s},Z:function(){return a}});var l=n(57437),r=n(64437);function a(e){let{text:t,...n}=e;return"string"==typeof t?(0,l.jsx)("p",{...n,children:t}):(0,l.jsx)(r.default,{content:t,...n})}let i=e=>{let t=(e||[]).find(e=>"block"===e._type);if(t)return t.children.filter(e=>"span"===e._type).map(e=>e.text).join("")};function s(e){return"string"==typeof e?e:i(e)}},4991:function(e,t,n){"use strict";function l(e){var t,n;return e?(null===(t=e.parent)||void 0===t?void 0:t.slug)==="united"?e.title:(null===(n=e.parent)||void 0===n?void 0:n.title)?"".concat(e.parent.title," ").concat(e.title):e.title:null}n.d(t,{_:function(){return l}})},42687:function(e,t,n){"use strict";n.d(t,{AH:function(){return d},mg:function(){return c},px:function(){return o}});var l=n(54677),r=n.n(l);function a(e){let t=(null==e?void 0:e.slug)||(null==e?void 0:e.current)||e;if("home"!==t)return(null==e?void 0:e._type)==="article"?"blog/".concat(t):(null==e?void 0:e._type)==="practitioner"?"about/team/".concat(t):t}function i(e){return(null==e?void 0:e.siteUrl)?null:null==e?void 0:e.slug}function s(e,t){var n;return(null==e?void 0:e.siteUrl)?e.siteUrl:((null==e?void 0:e.parent)&&s(e.parent),(null==t?void 0:t.siteUrl)||(null==e?void 0:null===(n=e.root)||void 0===n?void 0:n.siteUrl))}function o(e,t){let n=r()([function(e,t){var n,l,r;let a=e.root||e,o=(null==t?void 0:t.allSites)||"article"===t._type,c=o?e:(null===(n=t.sites)||void 0===n?void 0:n[0])||e,d=o?[e.slug]:(null===(l=t.sites)||void 0===l?void 0:l.map(e=>{let{slug:t}=e;return t}))||[e.slug],u=(null==d?void 0:d.includes(e.slug))||t.visibleToAllChildSites&&(null==d?void 0:d.includes(null===(r=e.parent)||void 0===r?void 0:r.slug));if(u)return i(e);let m=s(c,a),h=s(e,a),p=i(c);return m===h?p:p?"".concat(m,"/").concat(p):m}(e,t),function e(t){let n=(null==t?void 0:t.parent)?e(t.parent):null;return r()([n,a(t)]).join("/")}(t.parent),a(t)]),l=r()(n).join("/");return l.startsWith("http")?l:"/".concat(l)}function c(e,t){if(!t)return null;if("search"===t.linkType||"book"===t.linkType||"form"===t.linkType)return{text:(null==t?void 0:t.title)||(null==t?void 0:t.text),action:t.linkType};if("link"===t._type){var n,l,r,a,i,s;return"file"===t.linkType?{text:(null==t?void 0:t.text)||(null==t?void 0:null===(l=t.file)||void 0===l?void 0:l.title),url:"".concat(null===(a=t.file)||void 0===a?void 0:null===(r=a.file)||void 0===r?void 0:r.url,"/").concat(null===(s=t.file)||void 0===s?void 0:null===(i=s.file)||void 0===i?void 0:i.filename)}:t.linkType&&"external"!==t.linkType?{text:(null==t?void 0:t.text)||(null==t?void 0:null===(n=t.page)||void 0===n?void 0:n.title),url:t.page?o(e,t.page):""}:t}if("site"===t._type||"practice"===t.siteType){let e=t||t.parent;return{text:null==e?void 0:e.title,url:"ndc"===e.slug||"master"===e.siteType&&e.siteUrl?"/":"/".concat(e.slug)}}
1return{text:null==t?void 0:t.title,url:o(e,t)}}function d(e){return!!e&&(null==e||!e.linkType||((null==e?void 0:e.linkType)==="external"?!!(null==e?void 0:e.url):(null==e?void 0:e.linkType)!=="internal"||!!(null==e?void 0:e.page)))}}}]);
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.