PageSourceSearch

https://www.4pawsvet.com.au/_next/static/chunks/249nhp9x5yo9k.js

js 4pawsvet.com.au collected 2026-10-09 22:42:27 UTC 27,242 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,322641,e=>{"use strict";var t=e.i(659223);e.s(["AboutPageScroll",0,function(){return(0,t.useEffect)(()=>{document.documentElement.style.scrollBehavior="smooth";let e=e=>{if(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target?.closest("a");if(!t)return;let a=t.hash;if(!a||"#"===a||t.host!==window.location.host||t.pathname!==window.location.pathname||window.location.hash!==a)return;let l=document.getElementById(decodeURIComponent(a.slice(1)));l?.scrollIntoView()};return document.addEventListener("click",e),()=>{document.documentElement.style.scrollBehavior="",document.removeEventListener("click",e)}},[]),null}])},48745,e=>{"use strict";var t=e.i(331802),a=e.i(659223);function l(){let[e,t]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let e=document.querySelector("header");if(!e)return;let a=()=>t(e.getBoundingClientRect().height);a();let l=new ResizeObserver(a);return l.observe(e),()=>l.disconnect()},[]),e}var s=e.i(84824),r=e.i(54767),i=e.i(145781);function n({clinics:e,selectedSlug:l,onSelectClinic:o}){let c,d,m=(0,i.usePanToWithOffset)(),u=(0,a.useMemo)(()=>e.reduce((e,t)=>{let{latitude:a,longitude:l}=t.clinicAddress??{};return"number"!=typeof a||"number"!=typeof l?e:[...e,{clinic:t,position:{lat:a,lng:l}}]},[]),[e]);if((0,a.useEffect)(function(){let e=u.find(e=>e.clinic.slug===l);e&&m(e.position,{zoom:14})},[u,l,m]),0===u.length)return null;let x=u.map(e=>e.position),p=x.length>1?{defaultBounds:{...(c=x.map(e=>e.lat),{north:Math.max(...c),south:Math.min(...c),east:Math.max(...d=x.map(e=>e.lng)),west:Math.min(...d)}),padding:64}}:{defaultCenter:x[0],defaultZoom:14};return(0,t.jsx)(s.Map,{mapId:"c809d4fe0163fa20195d7382",...p,gestureHandling:"greedy",disableDefaultUI:!0,zoomControl:!0,className:"h-full w-full",children:u.map(({clinic:e,position:a})=>(0,t.jsx)(s.AdvancedMarker,{position:a,onClick:()=>o(e.slug),children:(0,t.jsx)(r.ClinicMarker,{active:l===e.slug})},e.slug))})}function o(e){return(0,t.jsx)(s.APIProvider,{apiKey:"AIzaSyC-P7RG9E1KrCFTFQRl1g4n5Xw_kliRvWY",children:(0,t.jsx)(n,{...e})})}var c=e.i(408607),d=e.i(635138),m=e.i(110430);let u=(0,m.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var x=e.i(329666),p=e.i(782450),g=e.i(819679),h=e.i(875028),f=e.i(439361),v=e.i(430124);let j=(0,m.default)("clock-3",[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),w=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],b={Monday:"Mon",Tuesday:"Tue",Wednesday:"Wed",Thursday:"Thu",Friday:"Fri",Saturday:"Sat",Sunday:"Sun"};function y(e){return e.replace(/\s*([AaPp])\.?\s*[Mm]\.?/g,(e,t)=>`${t.toLowerCase()}m`)}function N({group:e}){let a=e.note?` ${e.note}`:"";return e.is24Hours?(0,t.jsx)("span",{children:`24 hours${a}`}):e.isClosed?(0,t.jsx)("span",{children:`CLOSED${a}`}):(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:"whitespace-nowrap",children:[(0,t.jsx)("span",{children:y(e.openTime)})," -"]})," ",(0,t.jsx)("span",{className:"whitespace-nowrap",children:y(e.closeTime)}),a]})}let S={"template-a":"md:gap-6 lg:gap-0","template-b":"gap-2 lg:gap-[17px]","template-c":"gap-2 lg:gap-[17px]"},T={"template-a":void 0,"template-b":"text-foreground","template-c":"text-foreground lg:text-quarternary-foreground"};function E({consultationHours:e,publicHolidayHours:a,heading:l,showClockIcon:s,textColor:r="text-primary-foreground",narrowLabelAtMd:i=!1,template:n="template-a"}){if(!e.length)return null;let o=T[n]??r,c=function(e){if(!e.length)return[];let t=[...e].sort((e,t)=>w.indexOf(e.dayOfWeek)-w.indexOf(t.dayOfWeek)),a=[],l=null;for(let e of t){var s,r;let t=function(e){if(e.is24Hours)return!1;if(e.isClosed)return!0;let t=e.openTime?.trim(),a=e.closeTime?.trim();return!t||!a||"0"===t||/^0+:?0*$/.test(t)}(e),i=!!e.is24Hours,n=e.note?.trim()||null;null!==l&&l.is24Hours===i&&l.isClosed===t&&l.note===n&&(l.isClosed||l.openTime===e.openTime&&l.closeTime===e.closeTime)&&null!==l&&(s=l.days[l.days.length-1],r=e.dayOfWeek,w.indexOf(r)-w.indexOf(s)==1)&&l?l.days.push(e.dayOfWeek):(l={days:[e.dayOfWeek],openTime:e.openTime,closeTime:e.closeTime,is24Hours:i,isClosed:t,note:n},a.push(l))}return a}(e),d={days:[],openTime:a?.openTime??"",closeTime:a?.closeTime??"",is24Hours:!!a?.is24Hours,isClosed:a?.isClosed!==!1,note:a?.note??null};return(0,t.jsxs)("div",{className:(0,f.cn)("flex flex-col mt-4",S[n]),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[s&&(0,t.jsx)(j,{className:"hidden size-6 lg:block","aria-hidden":"true"}),(0,t.jsx)(h.H6,{className:`!font-semibold ${o}`,children:l||"Consultation hours"})]}),(0,t.jsxs)("dl",{className:`flex flex-col text-base ${r}`,children:[c.map((e,a)=>{var l;return(0,t.jsx)(A,{label:1===(l=e.days).length?l[0]:`${b[l[0]]}-${b[l[l.length-1]]}`,group:e,textColor:r,narrowLabelAtMd:i},a)}),(0,t.jsx)(A,{label:a?.label??"Public Holidays",group:d,textColor:r,narrowLabelAtMd:i})]})]})}function A({label:e,group:a,textColor:l,narrowLabelAtMd:s}){return(0,t.jsxs)("div",{className:"flex gap-4 py-2",children:[(0,t.jsx)("dt",{className:(0,f.cn)("shrink-0 grow-0 basis-[140px]",s&&"md:basis-[100px] lg:basis-[140px]"),children:(0,t.jsx)(h.Text,{variant:"body2",as:"span",className:l,children:e})}),(0,t.jsx)("dd",{className:(0,f.cn)("min-w-0",s&&"md:text-right lg:text-left"),children:(0,t.jsx)(h.Text,{variant:"body2",as:"span",className:`${l} break-words`,children:(0,t.jsx)(N,{group:a})})})]})}function C({clinic:e,parentClinicSlug:a,isSelected:l,onSelect:s}){let r,{address:i,email:n,phoneNumber:o,consultationHours:m,publicHolidayHours:j}=e.contactInfo,w=m?.hours,b=!!w&&w.length>0,y=(0,v.resolveBookingHref)({ctaUrl:"/book-online",pathPrefixSlug:a,bookingSlug:e.slug});return(0,t.jsxs)("div",{onClick:s,"aria-current":l?"true":void 0,"aria-label":e.name,className:"flex w-full cursor-pointer flex-col items-start gap-4",children:[(0,t.jsx)(h.H6,{as:"h3",className:(0,f.cn)("text-foreground",l&&"text-button-link"),children:e.name}),i&&(0,t.jsxs)("div",{className:"flex w-full min-w-0 items-start gap-2",children:[(0,t.jsx)(d.MapPin,{className:"size-6 shrink-0 text-foreground","aria-hidden":"true"}),(0,t.jsx)("a",{href:`https://maps.google.com/?q=${encodeURIComponent(i)}`,target:"_blank",rel:"noopener noreferrer",className:"min-w-0 break-words",children:(0,t.jsx)(h.Text,{variant:"body2",as:"span",className:"text-foreground",children:i})})]}),n&&(0,t.jsxs)("div",{className:"flex w-full min-w-0 items-start gap-2",children:[(0,t.jsx)(u,{className:"size-6 shrink-0 text-foreground","aria-hidden":"true"}),(0,t.jsx)("a",{href:`mailto:${n}`,className:"min-w-0",children:(0,t.jsx)(h.Text,{variant:"body2",as:"span",className:"text-foreground",children:-1===(r=n.indexOf("@"))?n:(0,t.jsxs)(t.Fragment,{children:[n.slice(0,r+1),(0,t.jsx)("wbr",{}),n.slice(r+1)]})})})]}),o&&(0,t.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,t.jsx)(x.Phone,{className:"size-6 shrink-0 text-foreground","aria-hidden":"true"}),(0,t.jsx)("a",{href:`tel:${(0,v.phoneToDigits)(o)}`,children:(0,t.jsx)(h.Text,{variant:"body2",as:"span",className:"text-foreground",children:(0,v.formatPhoneNumber)(o)})})]}),b?(0,t.jsx)(g.Accordion,{type:"single",collapsible:!0,className:"w-full",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(g.AccordionItem,{value:"hours",className:"w-full border-none",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Button,{asChild:!0,size:"lg",children:(0,t.jsx)(c.default,{href:y,onClick:e=>e.stopPropagation(),children:"Book online"})}),(0,t.jsx)(g.AccordionTrigger,{className:(0,f.cn)((0,p.buttonVariants)({variant:"link",size:"lg"}),"flex-none gap-0 py-0 hover:no-underline [&>svg]:hidden"),children:"View consult hours"})]}),(0,t.jsx)(g.AccordionContent,{children:(0,t.jsx)(E,{consultationHours:w,publicHolidayHours:j,heading:m?.heading})})]})}):(0,t.jsx)(p.Button,{asChild:!0,size:"lg",children:(0,t.jsx)(c.default,{href:y,onClick:e=>e.stopPropagation(),children:"Book online"})})]})}function k({clinics:e,parentClinicSlug:a,selectedSlug:l,onSelectClinic:s}){return(0,t.jsx)("div",{className:"flex md:min-w-[400px] shrink basis-0 grow-[999] flex-col gap-10",children:e.map(e=>(0,t.jsx)(C,{clinic:e,parentClinicSlug:a,isSelected:l===e.slug,onSelect:()=>s(e.slug)},e.slug))})}var M=e.i(792293),P=e.i(338130);let _="Filter by clinic";function F({clinics:e,introTemplate:s,parentClinicSlug:r,selectedSlug:i,onSelectClinic:n}){var o;let[c,d]=(0,a.useState)("all"),[m,u]=(0,a.useState)("all"),[x,p]=(0,a.useState)(!0),g=(0,a.useRef)(null),v=l(),j=(0,a.useMemo)(()=>"all"===m?e:e.filter(e=>e.slug===m),[e,m]);return(0,t.jsxs)("div",{ref:g,className:"flex md:min-w-[400px] shrink basis-0 grow-[999] flex-col gap-4 pl-px",children:[(0,t.jsx)(h.Text,{as:"p",className:"text-foreground text-xl leading-8 font-medium",children:(o=e.length,(s||"With {{clinicCount}} clinics in the area, expert vet care is always close to home").replaceAll("{{clinicCount}}",String(o)))}),(0,t.jsx)("div",{"data-testid":"filter-dropdown-wrapper",className:"bg-background z-10 flex flex-col pt-4 pb-0 lg:@min-[984px]:sticky",style:{to
1p:v},children:(0,t.jsxs)(M.Select,{value:c,onValueChange:function(e){if(d(e),"desktop"!==(0,P.resolveBreakpoint)())return void u(e);let t=()=>{u(e),p(!1),requestAnimationFrame(()=>p(!0))};g.current?function(e,t=800,a){let l=window.scrollY,s=e.getBoundingClientRect().top+window.scrollY-(parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)-32-l;if(0===s)return a?.();let r=performance.now();requestAnimationFrame(function e(i){let n=Math.min((i-r)/t,1);window.scrollTo(0,l+s*(n<.5?2*n*n:1-(-2*n+2)**2/2)),n<1?requestAnimationFrame(e):a?.()})}(g.current,void 0,t):t()},children:[(0,t.jsx)(M.SelectTrigger,{"aria-label":_,className:"w-full max-w-[334px]",children:(0,t.jsx)(M.SelectValue,{placeholder:_})}),(0,t.jsxs)(M.SelectContent,{children:[(0,t.jsx)(M.SelectItem,{value:"all",children:"All clinics"}),e.map(e=>(0,t.jsx)(M.SelectItem,{value:e.slug,children:e.name},e.slug))]})]})}),(0,t.jsx)("div",{className:(0,f.cn)("mt-5 flex flex-col gap-10 transition-opacity duration-200",x?"opacity-100":"opacity-0"),children:j.map(e=>(0,t.jsx)(C,{clinic:e,parentClinicSlug:r,isSelected:i===e.slug,onSelect:()=>n(e.slug)},e.slug))})]})}e.s(["GroupClinicsInteractive",0,function({clinics:e,parentClinicSlug:s,groupContactIntro:r}){let[i,n]=(0,a.useState)(null),c=l();return(0,t.jsxs)("div",{className:"@container flex flex-wrap gap-10",children:[(0,t.jsx)("div",{className:"h-[400px] basis-[544px] grow overflow-hidden rounded-primary lg:h-[563px] lg:@min-[984px]:sticky lg:@min-[984px]:self-start",style:{top:c+16},children:(0,t.jsx)(o,{clinics:e,selectedSlug:i,onSelectClinic:n})}),e.length>=3?(0,t.jsx)(F,{clinics:e,parentClinicSlug:s,introTemplate:r,selectedSlug:i,onSelectClinic:n}):(0,t.jsx)(k,{clinics:e,parentClinicSlug:s,selectedSlug:i,onSelectClinic:n})]})}],48745)},154115,e=>{"use strict";var t=e.i(331802),a=e.i(659223),l=e.i(404803),s=e.i(164486),r=e.i(449846),i=e.i(875028),n=e.i(782450),o=e.i(441365),c=e.i(341691),d=e.i(737792);let m=(0,d.createServerReference)("405e51e9a2f8bc4d9ba39c182e1eab4707193f5c2a",d.callServer,void 0,d.findSourceMapURL,"submitMedicationRequest");var u=e.i(686189),x=e.i(220366);let p=["medication2Name","medication2Dose","medication2Amount"];e.s(["default",0,function({form:e,clinicSlug:d}){let[g,h]=(0,a.useState)(!1),[f,v]=(0,a.useState)(!1),{register:j,handleSubmit:w,reset:b,control:y,getValues:N,trigger:S,formState:{errors:T,isSubmitting:E}}=(0,r.useForm)({mode:"onBlur"}),{medication2Required:A,revalidateMedication2Group:C}={medication2Required:e=>t=>{let a=N();return!p.some(e=>a[e]?.trim())||t.trim().length>0||e},revalidateMedication2Group:()=>{S(p)}},k=async e=>{v(!1);try{let t=p.some(t=>e[t]?.trim()),{medication2Name:a,medication2Dose:l,medication2Amount:s,...r}=e,i=t?{...e,clinicSlug:d}:{...r,clinicSlug:d};if(!(await m(i)).success)return void v(!0);b(),h(!0),(0,x.pushDataLayer)(u.AnalyticsEvent.FormSubmitted,{form_type:"Medication Request"}),setTimeout(()=>h(!1),5e3)}catch{v(!0)}};return(0,t.jsx)("div",{className:"flex w-full flex-col items-center justify-center bg-background md:p-8 md:pb-12",children:(0,t.jsxs)("div",{className:"flex w-full max-w-[806px] flex-col items-center justify-center rounded-none bg-navigation/10 px-4 py-12 md:rounded-primary md:px-16",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-9 items-start justify-center",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(i.H3,{as:"h2",className:"text-4xl md:text-4xl text-quarternary-foreground leading-none tracking-3",children:e?.formTitle??"Request details"}),e?.formDescription&&(0,t.jsx)(i.Text,{variant:"body2",className:"text-foreground",children:e.formDescription})]}),(0,t.jsx)("form",{onSubmit:w(k),className:"flex w-full flex-col gap-9",noValidate:!0,children:(0,t.jsxs)("fieldset",{disabled:E,className:"contents",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(i.H4,{as:"h3",className:"text-2xl md:text-2xl font-semibold text-quarternary-foreground",children:"Your details"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex gap-2 items-start flex-wrap",children:[(0,t.jsx)("div",{className:"flex-1 min-w-63.5",children:(0,t.jsx)(o.InputField,{label:"First name",error:T.firstName?.message,...j("firstName",{required:"Please enter your first name",validate:e=>e.trim().length>0||"Please enter your first name",maxLength:{value:100,message:"First name must be 100 characters or fewer"},pattern:{value:c.NAME_CHARS_REGEX,message:c.NAME_CHARS_MESSAGE}})})}),(0,t.jsx)("div",{className:"flex-1 min-w-63.5",children:(0,t.jsx)(o.InputField,{label:"Last name",error:T.lastName?.message,...j("lastName",{required:"Please enter your last name",validate:e=>e.trim().length>0||"Please enter your last name",maxLength:{value:100,message:"Last name must be 100 characters or fewer"},pattern:{value:c.NAME_CHARS_REGEX,message:c.NAME_CHARS_MESSAGE}})})})]}),(0,t.jsxs)("div",{className:"flex gap-2 items-start flex-wrap",children:[(0,t.jsx)("div",{className:"flex-1 min-w-63.5",children:(0,t.jsx)(o.InputField,{label:"Email address",type:"email",error:T.email?.message,...j("email",{required:"Please enter your email",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Please enter a valid email address"},maxLength:{value:254,message:"Email must be 254 characters or fewer"}})})}),(0,t.jsx)("div",{className:"flex-1 min-w-63.5",children:(0,t.jsx)(o.InputField,{label:"Phone number",type:"tel",error:T.phone?.message,...j("phone",{required:"Please enter your phone number",maxLength:{value:20,message:"Phone number must be 20 characters or fewer"}})})})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(i.H4,{as:"h3",className:"text-2xl md:text-2xl font-semibold text-quarternary-foreground",children:"Pet details"}),(0,t.jsx)("div",{className:"w-full max-w-[331px]",children:(0,t.jsx)(o.InputField,{label:"Your pet's name",error:T.petName?.message,...j("petName",{required:"Please enter your pet's name",validate:e=>e.trim().length>0||"Please enter your pet's name",maxLength:{value:100,message:"Pet's name must be 100 characters or fewer"},pattern:{value:c.NAME_CHARS_REGEX,message:c.NAME_CHARS_MESSAGE}})})}),(0,t.jsx)(r.Controller,{name:"lastCheckupDate",control:y,rules:{required:"Please enter previous check up date"},render:({field:{name:e,value:a,onChange:l,onBlur:s,ref:r}})=>(0,t.jsx)(o.DateField,{ref:r,name:e,label:"Approximate date of your pet's last veterinary check up?",value:a,onChange:l,onBlur:s,error:T.lastCheckupDate?.message,disabled:e=>e>new Date,className:"max-w-[189px]"})}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,t.jsx)(i.Text,{variant:"body3",className:"font-medium text-primary-foreground",children:"How has your pet been since they were last seen?"}),(0,t.jsx)(o.TextareaField,{label:"How has your pet been since they were last seen?",labelClassName:"sr-only",rows:3,error:T.petConditionSince?.message,...j("petConditionSince",{required:"Please enter a message",maxLength:{value:2e3,message:"This must be 2000 characters or fewer"},pattern:{value:c.SAFE_MULTILINE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE}})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)(i.H4,{as:"h3",className:"text-2xl md:text-2xl font-semibold text-quarternary-foreground",children:"Medication details"}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(i.Text,{variant:"body3",className:"font-medium text-primary-foreground",children:"Medication 1"}),(0,t.jsxs)("div",{className:"flex gap-2 items-start flex-wrap",children:[(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Medication 1 name",error:T.medication1Name?.message,...j("medication1Name",{required:"Please enter medication",maxLength:{value:200,message:"Medication name must be 200 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE}})})}),(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Current dose",error:T.medication1Dose?.message,...j("medication1Dose",{required:"Please enter dose",maxLength:{value:100,message:"Current dose must be 100 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE}})})}),(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Amount required",error:T.medication1Amount?.message,...j("medication1Amount",{required:"Please enter amount",maxLength:{value:100,message:"Amount required must be 100 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE}})})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(i.Text,{variant:"body3",className:"font-medium text-primary-foreground",children:"Medication 2 (optional)"}),(0,t.jsxs)("div",{className:"flex gap-2 items-start flex-wrap",children:[(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Medication 2 name",error:T.medication2Name?.message,...j("medication2Name",{validate:A("Please enter medication"),maxLength:{value:200,message:"Medication name must be 200 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE},onBlur:C})})}),(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Current dose",error:T.medication2Dose?.message,...j("medication2Dose",{validate:A("Please enter dose"),maxLength:{value:100,message:"Current dose must be 100 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE},onBlur:C})})}),(0,t.jsx)("div",{className:"flex-1 min-w-40",children:(0,t.jsx)(o.InputField,{label:"Amount required",error:T.medication2Amou
1nt?.message,...j("medication2Amount",{validate:A("Please enter amount"),maxLength:{value:100,message:"Amount required must be 100 characters or fewer"},pattern:{value:c.SAFE_TEXT_REGEX,message:c.SAFE_TEXT_MESSAGE},onBlur:C})})})]})]})]}),(0,t.jsx)(i.Text,{variant:"body1",className:"text-foreground",children:"We will process this request within 48-72 hours."}),(0,t.jsx)(n.Button,{type:"submit",variant:"outline",className:"h-12 text-base self-start",disabled:E,children:E?"Submitting...":"Submit request"})]})})]}),f&&(0,t.jsx)("div",{className:"mt-3 w-full rounded-tertiary border border-destructive bg-background",children:(0,t.jsxs)("div",{className:"flex bg-destructive/10 p-4 items-center gap-3",children:[(0,t.jsx)(s.TriangleAlert,{className:"size-5 shrink-0 text-destructive","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-sm text-primary-foreground",children:"Oops! Something went wrong while submitting the form. Please try again."})]})}),g&&(0,t.jsxs)("div",{className:"flex mt-3 w-full items-center gap-3 rounded-tertiary border border-success bg-success/10 p-4",children:[(0,t.jsx)(l.CircleCheck,{className:"size-5 shrink-0 text-success","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-sm text-primary-foreground",children:"Your request has been sent! A member of our team will be in touch soon."})]})]})})}],154115)},982857,e=>{"use strict";var t=e.i(331802),a=e.i(659223),l=e.i(203502),s=e.i(439361),r=e.i(843830),i=e.i(12244),n=e.i(338130),o=e.i(656418),c=e.i(875028),d=e.i(688371),m=e.i(408607);let u={"template-a":null,"template-b":"h-full rounded-primary p-3.5 pb-0 md:pb-1.5 lg:pb-3.5 bg-accent","template-c":"h-full p-3.5 md:pb-1.5 lg:px-6 lg:pt-6 lg:pb-4 bg-accent"},x={"template-a":"rounded-secondary lg:rounded-primary","template-b":"rounded-secondary md:rounded-primary lg:rounded-secondary","template-c":"rounded-none"};function p(){return(0,t.jsxs)("article",{className:"animate-pulse animate-fade-in",children:[(0,t.jsx)("div",{className:"relative w-full aspect-[3/2] bg-accent rounded-secondary lg:rounded-primary overflow-hidden"}),(0,t.jsxs)("div",{className:"py-3.5 space-y-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,t.jsx)("div",{className:"h-4 w-20 bg-muted-foreground/20 rounded-full"}),(0,t.jsx)("div",{className:"h-4 w-16 bg-muted-foreground/20 rounded-full"})]}),(0,t.jsx)("div",{className:"h-5 w-3/4 bg-muted-foreground/20 rounded-full mt-3"}),(0,t.jsx)("div",{className:"h-4 w-full bg-muted-foreground/20 rounded-full"})]})]})}function g({article:e,clinicSlug:a,fromTab:l,frameBackgroundClass:r,imageWrapperClassName:i,variant:n="vertical",template:p="template-a"}){let h="horizontal"===n,f=u[p],v=x[p],j=e.blocksLayout?.[0],w=j?.blockType==="hero-secondary"?j.cardImage:null,b=function(e){if("NEWSFEED"===e.contentType)return"Latest news";let t=e.species??[],a=t.includes("DOG"),l=t.includes("CAT"),s=t.includes("OTHER");if(a&&l)return"Dog & Cat";if(a)return"Dog advice";if(l)return"Cat advice";if(s){if(e.otherSpecies){let t=e.otherSpecies.charAt(0).toUpperCase()+e.otherSpecies.slice(1);return`${t} advice`}return"Other"}return null}(e),y=(0,o.buildClinicPath)(a,`/pet-advice/${e.slug}`),N=l?`${y}?from=${l}`:y,S=(0,t.jsx)("article",{className:h?"lg:h-full":void 0,children:(0,t.jsxs)(m.default,{href:N,className:(0,s.cn)("block",h&&"lg:flex lg:h-full lg:gap-4"),children:[w?.url&&(0,t.jsx)("div",{className:(0,s.cn)("relative w-full aspect-[3/2] overflow-hidden",v,h&&"lg:h-full lg:w-1/3 lg:shrink-0 lg:!aspect-auto lg:!rounded-secondary",i),children:(0,t.jsx)(d.default,{src:w.url,alt:w.alt??e.title,fill:!0,sizes:"(min-width: 768px) 33vw, 100vw",className:"object-cover"})}),(0,t.jsxs)("div",{className:(0,s.cn)("py-3.5",h&&"lg:w-2/3 lg:py-0 lg:flex lg:flex-col lg:justify-center"),children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between",children:[b&&(0,t.jsx)(c.Text,{className:"text-sm font-medium leading-5 text-brand-dark",children:b}),(0,t.jsxs)(c.Text,{className:"text-sm font-normal leading-5 text-muted-foreground ml-auto",children:[e.estimatedReadTime," min read"]})]}),(0,t.jsx)(c.Text,{variant:"body1-semibold",className:"mt-3 line-clamp-2",children:e.title}),(0,t.jsx)(c.Text,{className:"text-sm font-normal leading-5 text-muted-foreground mt-1 line-clamp-2",children:e.summary})]})]})});return r||f?(0,t.jsx)("div",{className:(0,s.cn)(f??"h-full rounded-primary",r),children:S}):S}var h=e.i(737792);let f=(0,h.createServerReference)("40e9a0d7ea34db2a98a8edfedbaa53a27ce47c5d3e",h.callServer,void 0,h.findSourceMapURL,"revalidateClinicArticles");var v=e.i(782450);function j({clinicSlug:e}){let s=(0,l.useRouter)(),[r,i]=(0,a.useTransition)();return(0,t.jsxs)("div",{role:"status",className:"flex w-full flex-col items-center justify-center py-9 text-center",children:[(0,t.jsx)(d.default,{src:"/images/pet-advice-error.png",alt:"",width:238,height:186,className:"w-[185px] h-[144px] lg:w-[238px] lg:h-[186px]"}),(0,t.jsx)(c.H3,{as:"h2",className:"text-primary-foreground mt-6 md:text-3xl lg:text-4xl",children:"Could not load articles"}),(0,t.jsx)(c.Text,{className:"max-w-md text-base text-primary-foreground mt-4 lg:text-lg",children:"Something has gone wrong on our end. Please refresh the page and try again."}),(0,t.jsx)(v.Button,{variant:"outline",size:"lg",className:"mt-4",onClick:()=>{i(async()=>{await f(e),s.refresh()})},disabled:r,children:"Refresh page"})]})}let w={mobile:1,tablet:3,desktop:3};
1function b({articles:e,clinicSlug:a,error:l,fromTab:s,className:r,template:i}){return l?(0,t.jsx)(j,{clinicSlug:a}):(0,t.jsx)(n.RevealGrid,{items:e,columns:w,emptyMessage:"No Pet Advice articles yet.",contentClassName:r,renderItem:e=>(0,t.jsx)(g,{article:e,clinicSlug:a,fromTab:s,template:i},e.id),renderSkeleton:()=>(0,t.jsx)(p,{})})}var y=e.i(794506);let N={"template-a":"pt-6 md:pt-[38px]","template-b":"pt-10","template-c":""},S={"template-a":"","template-b":"py-2.5 lg:py-3.5","template-c":"py-7"},T={"template-a":"","template-b":"md:justify-center","template-c":"md:justify-center"},E={"template-a":"pt-6 md:pt-[38px]","template-b":"pt-5 lg:pt-0","template-c":"pt-0"},A={"template-a":"","template-b":"gap-4 md:gap-x-[14px] md:gap-y-5 lg:gap-x-9","template-c":"gap-5 md:gap-x-[14px] md:gap-y-6 lg:gap-x-9"};e.s(["PetAdviceSection",0,function({articles:e,clinicSlug:n,hasError:o}){let c=(0,l.useSearchParams)(),d=(0,r.useTemplate)()??"template-a",[m,u]=(0,a.useState)(()=>c.get("tab")),x=(0,a.useMemo)(()=>o?y.PET_ADVICE_TABS:y.PET_ADVICE_TABS.filter(t=>(0,y.filterArticlesByTab)(e,t.slug).length>0),[e,o]),p=(0,a.useMemo)(()=>x.some(e=>e.slug===m)?m:null,[x,m]),g=(0,a.useCallback)(e=>{u(e);let t=new URL(window.location.href);e?t.searchParams.set("tab",e):t.searchParams.delete("tab"),window.history.replaceState(null,"",t.toString())},[]),h=(0,a.useMemo)(()=>(0,y.filterArticlesByTab)(e,p),[e,p]);return(0,t.jsxs)("section",{className:(0,s.cn)("pb-11",N[d]),children:[(0,t.jsx)(i.FilterTabs,{tabs:x,activeSlug:p,onChange:g,ariaLabel:"Pet advice categories",className:S[d],listClassName:T[d]}),(0,t.jsx)("div",{className:(0,s.cn)("flex justify-center",E[d]),children:(0,t.jsx)(b,{articles:h,clinicSlug:n,error:o,fromTab:p??void 0,className:A[d],template:d})})]})}],982857)},515890,e=>{"use strict";var t=e.i(659223);let a=!1;window.addEventListener("popstate",()=>{a=!0}),e.s(["ScrollRestoration",0,function({scrollKey:e}){return(0,t.useEffect)(()=>{let t=`scroll-restore:${e}`,l=window.history.scrollRestoration;window.history.scrollRestoration="manual";let s=a;a=!1;let r=window.sessionStorage.getItem(t);if(s&&null!==r){let e=Number(r);if(Number.isFinite(e)){let t=a=>{document.documentElement.scrollHeight-window.innerHeight>=e||a<=0?window.scrollTo(0,e):requestAnimationFrame(()=>t(a-1))};setTimeout(()=>t(30),0)}}window.sessionStorage.removeItem(t);let i=()=>{let e=window.scrollY;e>0&&window.sessionStorage.setItem(t,String(e))},n=null,o=()=>{null!==n&&window.clearTimeout(n),n=window.setTimeout(i,150)};return window.addEventListener("scroll",o,{passive:!0}),window.addEventListener("pagehide",i),()=>{window.history.scrollRestoration=l,null!==n&&window.clearTimeout(n),window.removeEventListener("scroll",o),window.removeEventListener("pagehide",i),i()}},[e]),null}],515890)}]);

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.