1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,192199,e=>{"use strict";var t=e.i(940141);function n(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 5 19 12 12 19"},child:[]}]})(e)}function r(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"18"},child:[]},{tag:"line",attr:{x1:"16",y1:"6",x2:"16",y2:"22"},child:[]}]})(e)}function i(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"3 11 22 2 13 21 11 13 3 11"},child:[]}]})(e)}e.s(["FiArrowRight",()=>n,"FiMap",()=>r,"FiNavigation",()=>i])},812927,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(614698),i=e.i(855164),a=e.i(174080);function l({label:e,options:l,selected:s,onChange:o}){let{tPlain:c}=(0,r.default)("common"),[u,d]=(0,n.useState)(!1),[m,h]=(0,n.useState)(""),[f,p]=(0,n.useState)(!1),g=(0,n.useRef)(null),v=(0,n.useRef)(null),E=(0,n.useRef)(null),w=(0,n.useId)(),b=(0,n.useRef)(null),[x,N]=(0,n.useState)({top:0,left:0,maxHeight:360});(0,n.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=()=>{p(e.matches),h("")};return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,n.useEffect)(()=>{if(!u)return;let e=e=>{v.current?.contains(e.target)||b.current?.contains(e.target)||d(!1)},t=()=>{let e=E.current?.getBoundingClientRect();if(e){let t=window.visualViewport,n=t?.offsetTop??0,r=t?.offsetLeft??0,i=t?.height??window.innerHeight,a=t?.width??window.innerWidth,l=Math.min(b.current?.offsetHeight??360,i-16);N({top:Math.max(n+8,Math.min(e.bottom+8,n+i-l-8)),left:Math.max(r+8,Math.min(e.left,r+a-272)),maxHeight:i-16})}};t(),f?g.current?.focus({preventScroll:!0}):b.current?.focus({preventScroll:!0}),document.addEventListener("pointerdown",e),window.addEventListener("resize",t),window.addEventListener("scroll",t,!0),window.visualViewport?.addEventListener("resize",t),window.visualViewport?.addEventListener("scroll",t);let n=new ResizeObserver(t);return b.current&&n.observe(b.current),()=>{document.removeEventListener("pointerdown",e),window.removeEventListener("resize",t),window.removeEventListener("scroll",t,!0),window.visualViewport?.removeEventListener("resize",t),window.visualViewport?.removeEventListener("scroll",t),n.disconnect()}},[u,f]);let A=l.filter(e=>!f||e.label.toLocaleLowerCase().includes(m.toLocaleLowerCase()));return(0,t.jsxs)("div",{ref:v,className:"relative",onKeyDown:e=>{"Escape"===e.key&&(d(!1),E.current?.focus())},children:[(0,t.jsxs)("button",{ref:E,type:"button","aria-expanded":u,"aria-controls":w,onClick:()=>{let e=E.current.getBoundingClientRect();N({top:Math.max(8,Math.min(e.bottom+8,window.innerHeight-360)),left:Math.max(8,Math.min(e.left,window.innerWidth-272)),maxHeight:(window.visualViewport?.height??window.innerHeight)-16}),d(!u),h("")},className:`vt-input flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-full border bg-transparent px-4 py-2 lg:px-3 lg:gap-2 text-sm font-medium transition-colors hover:border-magenta hover:text-magenta ${s.length?"border-magenta text-magenta":"border-darkBlue text-darkBlue"}`,children:[(0,t.jsxs)("span",{children:[e,s.length>0&&(0,t.jsxs)("span",{className:"ml-1",children:["(",s.length,")"]})]}),(0,t.jsx)(i.ChevronDown,{"aria-hidden":"true",className:`ml-auto h-4 w-4 shrink-0 transition-transform ${u?"rotate-180":""}`})]}),u&&(0,a.createPortal)((0,t.jsxs)("div",{ref:b,id:w,tabIndex:-1,style:x,onKeyDown:e=>{"Escape"===e.key&&(d(!1),E.current?.focus())},className:"fixed z-[1100] flex w-64 max-w-[85vw] flex-col overflow-hidden rounded-2xl border border-darkBlue/15 bg-white p-3 shadow-lg outline-none",children:[f&&(0,t.jsx)("input",{ref:g,"aria-label":c("REBRANDING.FILTER_SEARCH"),placeholder:c("REBRANDING.FILTER_SEARCH"),value:m,onChange:e=>h(e.target.value),className:"vt-input mb-2 w-full shrink-0 rounded-lg border border-darkBlue/25 p-2 text-base text-darkBlue outline-none"}),(0,t.jsxs)("fieldset",{className:"min-h-0 max-h-52 overflow-y-auto overscroll-contain",children:[(0,t.jsx)("legend",{className:"sr-only",children:e}),A.map(e=>(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg p-2 text-sm text-darkBlue hover:bg-vtBG",children:[(0,t.jsx)("input",{className:"vt-input mt-1 rounded-sm accent-[#842647]",type:"checkbox",checked:s.includes(e.value),onChange:()=>o(s.includes(e.value)?s.filter(t=>t!==e.value):[...s,e.value])}),e.label]},e.value)),!A.length&&(0,t.jsx)("p",{className:"p-2 text-sm",children:c("REBRANDING.EMPTY")})]}),s.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>o([]),className:"mt-2 shrink-0 cursor-pointer text-left text-sm text-magenta",children:c("REBRANDING.CLEAR")})]}),document.body)]})}function s({options:e,filters:i,onChange:a,white:s=!1,wrapDesktop:o=!0}){let{tPlain:c}=(0,r.default)("common"),{tPlain:u}
1=(0,r.default)("location"),d=(0,n.useRef)(null),[m,h]=(0,n.useState)({left:!1,right:!1}),f=()=>{let e=d.current;e&&h({left:e.scrollLeft>2,right:e.scrollLeft+e.clientWidth<e.scrollWidth-2})};(0,n.useEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(f);return t.observe(e),f(),()=>t.disconnect()},[e,i]);let p={Kleintiermedizin:u("SEARCH_PAGE.SMALL_PETS_MEDICINE"),Pferdemedizin:u("SEARCH_PAGE.HORSE_MEDICINE"),Nutztiermedizin:u("SEARCH_PAGE.LIVESTOCK_MEDICINE")};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsxs)("div",{ref:d,onScroll:f,className:`flex gap-2 overflow-x-auto py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>div]:shrink-0 [&>button]:shrink-0 ${o?"lg:flex-wrap lg:overflow-visible":""}`,children:[Object.entries(e).map(([e,n])=>(0,t.jsx)(l,{label:c(`REBRANDING.${e}`),options:"TREATMENT"===e?n.map(e=>({...e,label:p[e.value]??e.label})):n,selected:i[e]??[],onChange:t=>a({...i,[e]:t})},e)),Object.values(i).some(e=>e.length)&&(0,t.jsx)("button",{type:"button",onClick:()=>a({}),className:"cursor-pointer whitespace-nowrap rounded-full border border-darkBlue px-4 py-2 text-sm text-darkBlue hover:text-magenta",children:c("REBRANDING.CLEAR")})]}),m.left&&(0,t.jsx)("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-y-0 left-0 w-16 bg-gradient-to-r ${s?"from-white":"from-vtBG"} to-transparent ${o?"lg:hidden":""}`}),m.right&&(0,t.jsx)("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-y-0 right-0 w-16 bg-gradient-to-l ${s?"from-white":"from-vtBG"} to-transparent ${o?"lg:hidden":""}`})]})}e.s(["default",()=>s],812927)},905244,e=>{"use strict";let t={SERVICES:"4iJuqTjAhuCdkaeEMO2YZL",PACKAGES:"6XBkxhlHzLds4DD8tgQEDC",SPECIAL:"Mr5FCOW5DAoeHPq2yO9mt",IMAGING:"5tx79SZQnZv3WbSbutZDs6",COMPLEMENTARY:"Vocae1BkfDzSqQKTrK146",THERAPY:"27Bn3jj9kQbgF3JPwlrXcf"};function n(e){return e.map(e=>({id:e.sys.id,label:e.name,lat:e.address.lat,lng:e.address.lon}))}let r=new Set(["tierarzt","tierarzte","tieraerzte","tierarztin","tieraerztin","tierarztpraxis","tierpraxis","tierklinik","tierkliniken","kleintierpraxis","kleintierklinik","praxis","klinik","tiermedizin","veterinar","veterinaer","veterinaire","veterinaires","cabinet","clinique","vet","vets","veterinary","veterinarian","clinic"]);function i(e,t,n){if(t.trim().length<3)return[];let i=e=>e.normalize("NFD").replace(/\p{M}/gu,"").toLowerCase().replace(/Ã/g,"ss"),a=i(t).match(/[\p{L}\p{N}]+/gu)??[];if(!a.length)return[];let l=a.map(e=>({word:e,isVeterinaryTerm:e.length>=3&&[...r].some(t=>t.includes(e))}));return e.filter(e=>{let t=i(`VetTrust ${e.label}`),n=t.split(/\P{L}+/u).some(e=>r.has(e));return l.every(({word:e,isVeterinaryTerm:r})=>r?n:t.includes(e))}).sort((e,t)=>e.label.localeCompare(t.label,n)).slice(0,5)}function a(e,t,n){return e.filter(e=>Object.entries(t).every(([n,r])=>{if(!r.length)return!0;if("CANTON"===n)return r.includes(e.canton.sys.id);if("LANGUAGE"===n)return r.some(t=>e.spokenLanguages?.some(e=>e.sys.id===t));let i=e.servicesProvided??[];return"TREATMENT"===n?r.some(e=>i.some(t=>t.animalType===e)):r.some(e=>i.some(n=>n.relatedService?.sys.id===e&&(!t.TREATMENT?.length||t.TREATMENT.includes(n.animalType??""))))})).map(e=>{var t;let r,i;return{location:e,distance:n?(t={lat:e.address.lat,lng:e.address.lon},r=Math.PI/180,12742*Math.atan2(Math.sqrt(i=Math.sin((t.lat-n.lat)*r/2)**2+Math.cos(n.lat*r)*Math.cos(t.lat*r)*Math.sin((t.lng-n.lng)*r/2)**2),Math.sqrt(Math.max(0,1-i)))):null}}).sort((e,t)=>n&&(e.distance??1/0)-(t.distance??1/0)||e.location.name.localeCompare(t.location.name))}function l(e,t,n){let r=a(e,t,n);n||Object.values(t).some(e=>e.length)||r.sort((e,t)=>(e.location.defaultSearchPriority??Number.MAX_SAFE_INTEGER)-(t.location.defaultSearchPriority??Number.MAX_SAFE_INTEGER));let i=r.filter(({distance:e})=>null!==e&&e<=25),l=i.length;return t.CANTON?.length?{results:r,nearbyCount:l,focusLocations:r.map(({location:e})=>e),scope:"canton",includeOriginInBounds:!1}:n?i.length||!r.length?{results:r,nearbyCount:l,focusLocations:i.map(({location:e})=>e),scope:"nearby",includeOriginInBounds:!0}:{results:r,nearbyCount:l,focusLocations:r.slice(0,3).map(({location:e})=>e),scope:"fallback",includeOriginInBounds:!1}:{results:r,nearbyCount:l,focusLocations:r.map(({location:e})=>e),scope:"all",includeOriginInBounds:!1}}function s(e){if(!e.get("lat")?.trim()||!e.get("lng")?.trim())return null;let t=Number(e.get("lat")),n=Number(e.get("lng"));return Number.isFinite(t)&&Number.isFinite(n)&&90>=Math.abs(t)&&180>=Math.abs(n)?{lat:t,lng:n,label:e.get("address")??""}:null}function o(e,n){let r={CANTON:new Map,TREATMENT:new Map,LANGUAGE:new Map};
1for(let n of(Object.keys(t).forEach(e=>{r[e]=new Map}),e)){for(let e of(r.CANTON.set(n.canton.sys.id,n.canton.name??""),n.spokenLanguages??[]))r.LANGUAGE.set(e.sys.id,e.languageName);for(let e of n.servicesProvided??[]){e.animalType&&r.TREATMENT.set(e.animalType,e.animalType);let n=e.relatedService;if(n)for(let[e,i]of Object.entries(t))n.serviceGroups.some(e=>e.sys.id===i)&&r[e].set(n.sys.id,n.name)}}return Object.fromEntries(Object.entries(r).map(([e,t])=>[e,[...t].map(([e,t])=>({value:e,label:t})).sort((e,t)=>e.label.localeCompare(t.label,n))]))}function c(e){return Object.fromEntries(["CANTON","TREATMENT","LANGUAGE",...Object.keys(t)].map(t=>[t,e.getAll("filter."+t)]))}function u(e,n){["CANTON","TREATMENT","LANGUAGE",...Object.keys(t)].forEach(t=>{e.delete("filter."+t),(n[t]??[]).forEach(n=>e.append("filter."+t,n))})}e.s(["getPracticeSearchOptions",()=>n,"getScopedSearchResults",()=>l,"getSearchOptions",()=>o,"matchPracticeSearchOptions",()=>i,"nearbyRadiusKm",0,25,"readFilters",()=>c,"readOrigin",()=>s,"searchLocations",()=>a,"writeFilters",()=>u])}]);
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.