1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,108460,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(657688);function a(){let e=sessionStorage.getItem("ep_session_id");return e||(e=Math.random().toString(36).slice(2)+Date.now().toString(36),sessionStorage.setItem("ep_session_id",e)),e}function l(){let e=navigator.userAgent;return/Mobi|Android/i.test(e)?"mobile":/Tablet|iPad/i.test(e)?"tablet":"desktop"}e.s(["default",0,function({sponsorId:e,name:i,logoUrl:n,destinationUrl:o,placement:c,pageUrl:d,label:u="Sponsored"}){let m=(0,s.useRef)(null),h=(0,s.useRef)(!1),x=(0,s.useRef)(null),p=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let t=a(),s=`imp_${e}_${c}`;if(sessionStorage.getItem(s)&&(h.current=!0),h.current)return;function r(){h.current||(h.current=!0,sessionStorage.setItem(s,"1"),fetch("/api/track/impression",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sponsorId:e,placement:c,pageUrl:d,device:l(),sessionId:t})}).catch(()=>{}))}let i=m.current;if(i)return x.current=new IntersectionObserver(e=>{let t=e[0];t.isIntersecting&&t.intersectionRatio>=.5?p.current=setTimeout(r,500):p.current&&(clearTimeout(p.current),p.current=null)},{threshold:.5}),x.current.observe(i),()=>{x.current&&x.current.disconnect(),p.current&&clearTimeout(p.current)}},[e,c,d]),(0,t.jsxs)("div",{ref:m,className:"bg-gray-50 border-2 border-[var(--primary)] rounded-xl shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:[(0,t.jsxs)("button",{onClick:function(){let t=a();fetch("/api/track/click",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sponsorId:e,placement:c,pageUrl:d,device:l(),sessionId:t,referrer:"u">typeof document?document.referrer:void 0})}).catch(()=>{}),window.open(o,"_blank","noopener,noreferrer")},"aria-label":`${i} â ${u}`,className:"flex items-stretch w-full text-left group",type:"button",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-center py-4 pl-5 pr-4 flex-shrink-0 max-w-[45%]",children:[(0,t.jsx)("p",{className:"text-[11px] text-gray-400 uppercase tracking-widest font-semibold mb-1",children:u}),(0,t.jsxs)("span",{className:"text-sm sm:text-base font-semibold text-[var(--primary)] group-hover:text-[var(--accent)] transition-colors leading-snug",children:[i," ",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]})]}),(0,t.jsx)("div",{className:"relative flex-1 min-h-[84px] sm:min-h-[100px] border-l border-gray-100",children:(0,t.jsx)(r.default,{src:n,alt:`${i} logo`,fill:!0,className:"object-contain object-right p-3",sizes:"(max-width: 640px) 55vw, 360px",quality:90})})]}),(0,t.jsx)("a",{href:o,rel:"sponsored nofollow noopener",target:"_blank","aria-hidden":"true",tabIndex:-1,className:"sr-only",children:i})]})}])},241362,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(108460);e.s(["default",0,function({sponsors:e,placement:a,pageUrl:l,label:i}){let[n,o]=(0,s.useState)(null);return((0,s.useEffect)(()=>{var t;o((t=Math.random(),e.length?e[Math.min(e.length-1,Math.floor(t*e.length))]:null))},[e]),n)?(0,t.jsx)(r.default,{sponsorId:n.id,name:n.name,logoUrl:n.logoUrl,destinationUrl:n.destinationUrl,placement:a,pageUrl:l,label:i}):(0,t.jsx)("div",{className:"min-h-[88px] sm:min-h-[104px]","aria-hidden":"true"})}],241362)},871581,e=>{"use strict";e.s(["BLUR_PLACEHOLDER",0,"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHJlY3Qgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiBmaWxsPSIjZTBlOGYwIi8+PC9zdmc+","PDF_DRAG_LABEL",0,"PDFs canât go in a photo gallery","PDF_UPLOAD_WARNING",0,"No PDFs â open the PDF, export or save the page as a JPG or PNG, then add that.","buildBlobPathname",0,function(e,t){let s=(t.split(".").pop()??"jpg").toLowerCase().replace(/[^a-z0-9]/g,"").slice(0,10),r=t.replace(/\.[^.]+$/,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,50);return`${e}/${Date.now()}-${r}.${s}`},"typeRejectionMessage",0,function(e,t={}){let s=e.name||"That file";return!t.acceptsPdf&&("application/pdf"===e.type||/\.pdf$/i.test(e.name??""))?`â${s}â is a PDF â images only here. Open the PDF, export or save the page as a JPG or PNG, then add that.`:`â${s}â is not an allowed type (${e.type||"unknown"}). Allowed: JPG, PNG, WebP, GIF, SVG.`}])},950222,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let r=["AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"],a={name:"",credentials:"",practice:"",city:"",state:"",email:"",ph
1one:"",website:"",asoprs:!1,notes:""};e.s(["default",0,function({variant:e="request",prefill:l,claimProfile:i,triggerLabel:n,triggerClassName:o}={}){let c="claim"===e,d={...a,...l},[u,m]=(0,s.useState)(!1),[h,x]=(0,s.useState)(d),[p,g]=(0,s.useState)(""),[b,f]=(0,s.useState)(!1),[v,y]=(0,s.useState)("idle"),[j,N]=(0,s.useState)(""),w=(0,s.useRef)(null),S=(0,s.useId)();function C(){"sending"!==v&&(m(!1),setTimeout(()=>{x(d),f(!1),y("idle"),N("")},300))}function k(e,t){x(s=>({...s,[e]:t}))}async function P(e){e.preventDefault(),y("sending"),N("");try{let e=await fetch("/api/request-listing",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...h,company:p,...c&&i?{claimProfile:i,attest:b}:{}})}),t=await e.json();e.ok?y("success"):(y("error"),N(t.error??"Something went wrong."))}catch{y("error"),N("Network error. Please try again.")}}(0,s.useEffect)(()=>{let e=w.current;e&&(u?e.showModal():e.close())},[u]);let A="w-full border border-gray-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-[var(--accent)] focus:border-transparent",M="block text-xs font-medium text-gray-700 mb-1",L=!!h.state&&!r.includes(h.state);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>m(!0),className:o??"inline-block bg-[var(--primary)] text-white px-6 py-2 rounded font-medium text-sm hover:bg-[#143050] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]",children:n??(c?"Claim this listing":"Request Listing")}),(0,t.jsxs)("dialog",{ref:w,"aria-labelledby":S,"aria-modal":"true",onClick:function(e){let t=w.current?.getBoundingClientRect();t&&(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&C()},onKeyDown:e=>"Escape"===e.key&&C(),className:"w-full max-w-lg rounded-xl shadow-2xl p-0 border-0 backdrop:bg-black/50 open:animate-none",style:{maxHeight:"90vh",overflowY:"auto"},children:[(0,t.jsxs)("div",{className:"bg-[var(--primary)] px-6 py-4 flex items-center justify-between sticky top-0 z-10",children:[(0,t.jsx)("h2",{id:S,className:"text-white font-bold text-base",children:c?"Claim This Listing":"Request Directory Listing"}),(0,t.jsx)("button",{onClick:C,"aria-label":"Close",className:"text-blue-200 hover:text-white text-xl leading-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-white rounded",children:"â"})]}),"success"===v?(0,t.jsxs)("div",{className:"p-8 text-center",children:[(0,t.jsx)("div",{className:"w-14 h-14 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)("svg",{className:"w-7 h-7 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("h3",{className:"font-bold text-[var(--primary)] text-lg mb-2",children:"Request Received"}),(0,t.jsxs)("p",{className:"text-sm text-gray-600 mb-2",children:["Thank you, ",(0,t.jsx)("strong",{children:h.name}),". Weâve sent a confirmation to"," ",(0,t.jsx)("strong",{children:h.email}),"."]}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:c?"Weâll verify the listing is yours and be in touch about upgrading it to a full profile.":"Weâll review your listing and be in touch shortly."}),(0,t.jsx)("button",{onClick:C,className:"mt-6 bg-[var(--primary)] text-white px-6 py-2 rounded-lg text-sm font-medium hover:bg-[#143050] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]",children:"Close"})]}):(0,t.jsxs)("form",{onSubmit:P,noValidate:!0,className:"p-6 space-y-4",children:[c&&(0,t.jsxs)("div",{role:"note",className:"rounded-lg border border-amber-300 bg-amber-50 px-3 py-2.5 text-sm text-amber-900",children:[(0,t.jsx)("strong",{children:"For surgeons and practice staff only."})," Are you a patient? This form does not reach ",h.name||"the surgeon"," and cannot be used to ask a medical question or book a visit. Please contact the practice directly, or"," ",(0,t.jsx)("a",{href:"/find-a-doctor",className:"underline font-medium",children:"find a surgeon whose contact details are listed"}),". If this is an emergency, call your local emergency number."]}),(0,t.jsx)("p",{className:"text-sm text-gray-500",children:c?"Confirm the details below and weâll be in touch about a full profile â phone, website and appointment details shown to every patient who finds this page.":"Complete the form below. We verify ASOPRS fellowship training before adding listings."}),(0,t.jsx)("input",{type:"text",name:"company",value:p,onChange:e=>g(e.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,t.jsxs)("div",{className:"col-span-2",children:[(0,t.jsxs)("label",{htmlFor:"rl-name",className:M,children:["Full name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{id:"rl-name",type:"text",required:!0,value:h.name,onChange:e=>k("name",e.target.value),placeholder:"Dr. Jane Smith",className:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"rl-creds",className:M,children:"Credentials"}),(0,t.jsx)("input",{id:"rl-creds",type:"text",value:h.credentials,onChange:e=>k("credentials",e.target.value),placeholder:"MD, FACS",className:A})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"rl-practice",className:M,children:["Practice name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{id:"rl-practice",type:"text",required:!0,value:h.practice,onChange:e=>k("practice",e.target.value),placeholder:"Southern Eye Specialists",className:A})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"rl-city",className:M,children:["City ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{id:"rl-city",type:"text",required:!0,value:h.city,onChange:e=>k("city",e.target.value),className:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"rl-state",className:M,children:["State ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),L?(0,t.jsx)("input",{id:"rl-state",type:"text",required:!0,value:h.state,onChange:e=>k("state",e.target.value),className:A}):(0,t.jsxs)("select",{id:"rl-state",required:!0,value:h.state,onChange:e=>k("state",e.target.value),className:`${A} bg-white`,children:[(0,t.jsx)("option",{value:"",children:"Selectâ¦"}),r.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"rl-email",className:M,children:["Email ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{id:"rl-email",type:"email",required:!0,value:h.email,onChange:e=>k("email",e.target.value),placeholder:"[email protected]",className:A})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"rl-phone",className:M,children:"Phone"}),(0,t.jsx)("input",{id:"rl-phone",type:"tel",value:h.phone,onChange:e=>k("phone",e.target.value),placeholder:"(555) 000-0000",className:A})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"rl-website",className:M,children:"Practice website"}),(0,t.jsx)("input",{id:"rl-website",type:"url",value:h.website,onChange:e=>k("website",e.target.value),placeholder:"https://www.yourpractice.com",className:A})]}),(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:h.asoprs,onChange:e=>k("asoprs",e.target.checked),className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-[var(--primary)] focus:ring-[var(--accent)]"}),(0,t.jsxs)("span",{className:"text-sm text-gray-700",children:["I have completed an ",(0,t.jsx)("strong",{children:"ASOPRS-approved fellowship"})," in ophthalmic plastic and reconstructive surgery"]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"rl-notes",className:M,children:"Additional information"}),(0,t.jsx)("textarea",{id:"rl-notes",value:h.notes,onChange:e=>k("notes",e.target.value),rows:3,placeholder:"Subspecialties, hospital affiliations, anything else we should knowâ¦",className:`${A} resize-none`})]}),c&&(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer rounded-lg border border-gray-200 px-3 py-2.5",children:[(0,t.jsx)("input",{type:"checkbox",checked:b,required:!0,onChange:e=>f(e.target.checked),className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-[var(--primary)] focus:ring-[var(--accent)]"}),(0,t.jsxs)("span",{className:"text-sm text-gray-700",children:["I am ",(0,t.jsx)("strong",{children:h.name||"this surgeon"}),", or I work for this practice and am authorised to manage its listing."]})]}),"error"===v&&(0,t.jsx)("p",{role:"alert",className:"text-sm text-red-600 bg-red-50 border border-red-200 rounded-lg px-4 py-2",children:j}),(0,t.jsxs)("div",{className:"flex gap-3 pt-2",children:[(0,t.jsx)("button",{type:"button",onClick:C,className:"flex-1 border border-gray-300 text-gray-700 py-2.5 rounded-lg text-sm font-medium hover:bg-gray-50 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]",children:"Cancel"}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===v||c&&!b,className:"flex-2 flex-1 bg-[var(--primary)] text-white py-2.5 rounded-lg text-sm font-medium hover:bg-[#143050] transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]",children:"sending"===v?"Sendingâ¦":c?"Claim Listing":"Submit Request"})]})]})]})]})}])},755037,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016),a=e.i(657688),l=e.i(770703),i=e.i(618566);function n(e){return`/find-a-doctor/${e.stateSlug}/${e.citySlug}/${e.slug}`}e.i(247167);var o=e.i(871581),c=e.i(950222);function d(e,t={}){return e.replace(/\{(\w+)\}/g,(e,s)=>s in t?String(t[s]):e)}function u(e,t,s){let r=1===s?`${t}_one`:`${t}_other`;return e.plural[r]??e.plural[`${t}_other`]??t}["en","es","fr","pt","he"].filter(e=>"en"!==e);let m=(0,l.default)(()=>e.A(959573),{loadableGenerated:{modules:[161217]},ssr:!1}),h=["AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","DC","PR"],x=[25,50,100,200,500],p={doctor:"ð¤",city:"ð",practice:"ð¥"};
1e.s(["default",0,function({doctors:e,enrichments:l={},initialQuery:g="",initialState:b="",initialSociety:f="",initialZip:v="",initialRadius:y=100,lang:j,dict:N,sponsorSlot:w}){let S=(0,i.useRouter)(),C=(0,i.usePathname)(),k=N.hub,[P,A]=(0,s.useState)(b),[M,L]=(0,s.useState)(g),[R,O]=(0,s.useState)(f),[$,I]=(0,s.useState)(null),[D,F]=(0,s.useState)(null),[T,E]=(0,s.useState)(48),[z,q]=(0,s.useState)(v),[W,U]=(0,s.useState)(y),[_,G]=(0,s.useState)(null),[B,H]=(0,s.useState)(!1),[K,V]=(0,s.useState)(null),[Y,Z]=(0,s.useState)(!1),[J,X]=(0,s.useState)(-1),Q=(0,s.useRef)(null),ee=(0,s.useMemo)(()=>{let t=[],s=new Set,r=new Set;for(let a of e){if(a.name){let e=a.city?`${a.city}${a.stateCode?", "+a.stateCode:""}${a.countryCode&&"US"!==a.countryCode&&"PR"!==a.countryCode?" · "+(a.country??a.countryCode):""}`:a.country??"";t.push({kind:"doctor",value:a.name,label:a.name,sub:e})}a.city&&!s.has(a.city)&&(s.add(a.city),t.push({kind:"city",value:a.city,label:a.city}));let e=a.name?.trim().split(/\s+/).pop()?.toLowerCase()??"",l=e.length>2&&a.practice?.toLowerCase().includes(e);!a.practice||r.has(a.practice)||l||(r.add(a.practice),t.push({kind:"practice",value:a.practice,label:a.practice}))}return t},[e]),et=(0,s.useMemo)(()=>{let e=M.trim().toLowerCase();if(!e)return[];function t(t){let s=t.label.toLowerCase();return s===e?0:s.startsWith(e)?1:2}function s(s,r){return ee.filter(t=>t.kind===s&&t.label.toLowerCase().includes(e)).sort((e,s)=>t(e)-t(s)||e.label.localeCompare(s.label)).slice(0,r)}return[...s("doctor",4),...s("city",3),...s("practice",2)]},[ee,M]);function es(e){L(e.value),Z(!1),X(-1)}(0,s.useEffect)(()=>{let e=e=>{Q.current&&!Q.current.contains(e.target)&&(Z(!1),X(-1))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,s.useEffect)(()=>{X(-1)},[et]),(0,s.useEffect)(()=>{if(!z||!/^\d{5}$/.test(z)){G(null),V(null);return}let e=new AbortController,t=setTimeout(async()=>{H(!0),V(null);try{let t=await fetch(`https://api.zippopotam.us/us/${z}`,{signal:e.signal});if(!t.ok){G(null),V(k.zipNotFound);return}let s=(await t.json()).places[0];if(!s){G(null),V(k.zipNotFound);return}G({lat:parseFloat(s.latitude),lng:parseFloat(s.longitude),label:`${s["place name"]}, ${s["state abbreviation"]}`})}catch(e){"AbortError"!==e.name&&(G(null),V(k.zipLookupFailed))}finally{H(!1)}},600);return()=>{clearTimeout(t),e.abort()}},[z,k.zipNotFound,k.zipLookupFailed]);let er=(0,s.useMemo)(()=>{let t=new Map;for(let s of e)"US"!==s.countryCode&&"PR"!==s.countryCode&&s.countryCode&&s.country&&t.set(s.countryCode,s.country);return Array.from(t.entries()).map(([e,t])=>({code:e,name:t})).sort((e,t)=>e.name.localeCompare(t.name))},[e]),ea=(0,s.useCallback)((e,t,s,r,a)=>{let l=new URLSearchParams;e&&l.set("q",e),t&&l.set("state",t),s&&l.set("society",s),r&&l.set("zip",r),r&&100!==a&&l.set("radius",String(a));let i=l.toString();S.replace(i?`${C}?${i}`:C,{scroll:!1})},[S,C]);(0,s.useEffect)(()=>{let e=setTimeout(()=>ea(M,P,R,z,W),400);return()=>clearTimeout(e)},[M,P,R,z,W,ea]);let el=(0,s.useMemo)(()=>e.filter(e=>{if(R&&!(e.memberships??("both"===e.society?["ASOPRS","ESOPRS"]:[e.society??"ASOPRS"])).includes(R))return!1;if(P){if(h.includes(P)){if("US"!==e.countryCode&&"PR"!==e.countryCode||e.stateCode!==P)return!1}else if(e.countryCode!==P)return!1}let t=M.toLowerCase();if(t&&!(e.name.toLowerCase().includes(t)||e.city.toLowerCase().includes(t)||e.practice.toLowerCase().includes(t)||e.state.toLowerCase().includes(t)||(e.country||"").toLowerCase().includes(t)))return!1;if(_){var s,r,a,l;let t,i,n;if(!e.lat||!e.lng||(s=_.lat,r=_.lng,a=e.lat,l=e.lng,i=(t=e=>e*Math.PI/180)(a-s),n=t(l-r),7917.6*Math.asin(Math.sqrt(Math.sin(i/2)**2+Math.cos(t(s))*Math.cos(t(a))*Math.sin(n/2)**2))>W))return!1}return!0}),[P,R,M,_,W,e]);(0,s.useEffect)(()=>{F(null),E(48)},[el]);let ei=(0,s.useMemo)(()=>{if(!D)return el;let e=new Set(D);return el.filter(t=>!t.lat||e.has(t.id))},[el,D]),en=(0,s.useMemo)(()=>ei.slice(0,T),[ei,T]),eo=(0,s.useMemo)(()=>el.map(e=>({id:e.id,name:e.name,practice:e.practice,city:e.city,state:e.state,phone:e.phone,website:e.website,lat:e.lat,lng:e.lng,stateSlug:e.stateSlug,citySlug:e.citySlug,slug:e.slug,society:e.society||"ASOPRS",memberships:e.memberships,countryCode:e.countryCode,tier:e.tier,secondaryLocations:e.secondaryLocations})),[el]);function ec({value:e,label:s,color:r}){let a=R===e;return(0,t.jsx)("button",{onClick:()=>O(a?"":e),"aria-pressed":a,className:`px-3 py-1.5 text-xs font-semibold rounded-full border transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] ${a?`${r} text-white border-transparent shadow-sm`:"bg-white text-gray-600 border-gray-200 hover:border-gray-400"}`,children:s})}return(0,t.jsxs)("div",{className:"max-w-6xl mx-auto px-4 py-8 md:py-12",children:[(0,t.jsx)("nav",{"aria-label":N.common.breadcrumb,className:"text-sm text-gray-500 mb-6",children:(0,t.jsxs)("ol",{role:"list",className:"flex items-center gap-0",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"en"===j?"/":`/${j}`,className:"hover:text-[var(--link)]",children:N.common.home})}),(0,t.jsx)("li",{"aria-hidden":"true",className:"mx-2",children:"âº"}),(0,t.jsx)("li",{children:(0,t.jsx)("span",{className:"text-gray-700","aria-current":"page",children:N.common.findADoctor})}),"en"!==j&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{"aria-hidden":"true",className:"mx-2",children:"·"}),(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:"/find-a-doctor",className:"text-blue-500 hover:underline text-xs",children:N.common.english})})]})]})}),(0,t.jsx)("h1",{className:"text-3xl font-bold text-[var(--primary)] mb-2",children:k.h1}),(0,t.jsx)("div",{className:"w-12 h-0.5 bg-[var(--accent)] mb-4","aria-hidden":"true"}),(0,t.jsx)("p",{className:"text-gray-600 mb-8 max-w-2xl",children:k.intro}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-6",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-gray-500 mr-1",children:k.filterBySociety}),(0,t.jsx)(ec,{value:"ASOPRS",label:"ASOPRS",color:"bg-[#1d4ed8]"}),(0,t.jsx)(ec,{value:"ESOPRS",label:"ESOPRS",color:"bg-[#15803d]"}),(0,t.jsx)(ec,{value:"ANZSOPS",label:"ANZSOPS",color:"bg-[#ea580c]"}),(0,t.jsx)(ec,{value:"CSOPS",label:"CSOPS",color:"bg-[#7c3aed]"}),R&&(0,t.jsx)("button",{onClick:()=>O(""),className:"text-xs text-gray-400 hover:text-gray-600 ml-1",children:k.clear})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 mb-4",children:[(0,t.jsxs)("div",{className:"flex-1 relative",ref:Q,children:[(0,t.jsx)("label",{htmlFor:"search-query",className:"block text-sm font-medium text-gray-700 mb-1",children:k.searchLabel}),(0,t.jsx)("div",{role:"combobox","aria-expanded":Y&&et.length>0,"aria-haspopup":"listbox","aria-owns":"search-suggestions",children:(0,t.jsx)("input",{id:"search-query",type:"text",autoComplete:"off",value:M,onChange:e=>{L(e.target.value),Z(!0)},onFocus:()=>Z(!0),onKeyDown:function(e){Y&&0!==et.length&&("ArrowDown"===e.key?(e.preventDefault(),X(e=>Math.min(e+1,et.length-1))):"ArrowUp"===e.key?(e.preventDefault(),X(e=>Math.max(e-1,-1))):"Enter"===e.key&&J>=0?(e.preventDefault(),es(et[J])):"Escape"===e.key&&(Z(!1),X(-1)))},placeholder:k.searchPlaceholder,"aria-autocomplete":"list","aria-controls":"search-suggestions","aria-activedescendant":J>=0?`suggestion-${J}`:void 0,className:"w-full border border-gray-300 rounded px-3 py-2 text-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]"})}),Y&&et.length>0&&(0,t.jsx)("ul",{id:"search-suggestions",role:"listbox","aria-label":k.suggestionsLabel,className:"absolute z-50 w-full mt-1 bg-white border border-gray-200 rounded-lg shadow-lg overflow-hidden",children:et.map((e,s)=>{let r=s===J;return(0,t.jsxs)("li",{id:`suggestion-${s}`,role:"option","aria-selected":r,onMouseDown:t=>{t.preventDefault(),es(e)},onMouseEnter:()=>X(s),className:`flex items-center gap-2 px-3 py-2 cursor-pointer text-sm transition-colors ${r?"bg-blue-50 text-[var(--primary)]":"text-gray-700 hover:bg-gray-50"}`,children:[(0,t.jsx)("span",{className:"text-base flex-shrink-0","aria-hidden":"true",children:p[e.kind]}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"font-medium",children:e.label}),e.sub&&(0,t.jsx)("span",{className:"text-gray-400 ml-1.5 text-xs truncate",children:e.sub})]}),(0,t.jsx)("span",{className:"ml-auto text-[10px] text-gray-300 capitalize flex-shrink-0",children:"doctor"===e.kind?k.kindDoctor:"
1city"===e.kind?k.kindCity:k.kindPractice})]},`${e.kind}-${e.value}`)})})]}),(0,t.jsxs)("div",{className:"sm:w-56",children:[(0,t.jsx)("label",{htmlFor:"state-filter",className:"block text-sm font-medium text-gray-700 mb-1",children:k.stateLabel}),(0,t.jsxs)("select",{id:"state-filter",value:P,onChange:e=>A(e.target.value),className:"w-full border border-gray-300 rounded px-3 py-2 text-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] bg-white",children:[(0,t.jsx)("option",{value:"",children:k.allLocations}),(0,t.jsx)("optgroup",{label:k.usGroup,children:h.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),er.length>0&&(0,t.jsx)("optgroup",{label:k.intlGroup,children:er.map(({code:e,name:s})=>(0,t.jsx)("option",{value:e,children:s},e))})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 mb-8 items-end",children:[(0,t.jsxs)("div",{className:"sm:w-44",children:[(0,t.jsx)("label",{htmlFor:"zip-code",className:"block text-sm font-medium text-gray-700 mb-1",children:k.zipLabel}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"zip-code",type:"text",inputMode:"numeric",maxLength:5,value:z,onChange:e=>q(e.target.value.replace(/\D/g,"").slice(0,5)),placeholder:k.zipPlaceholder,className:"w-full border border-gray-300 rounded px-3 py-2 text-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] pr-8"}),B&&(0,t.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2","aria-hidden":"true",children:(0,t.jsxs)("svg",{className:"animate-spin w-4 h-4 text-gray-400",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.4 0 0 5.4 0 12h4z"})]})})]}),K&&(0,t.jsx)("p",{className:"text-xs text-red-500 mt-1",children:K})]}),(0,t.jsxs)("div",{className:"sm:w-40",children:[(0,t.jsx)("label",{htmlFor:"radius",className:"block text-sm font-medium text-gray-700 mb-1",children:k.within}),(0,t.jsx)("select",{id:"radius",value:W,onChange:e=>U(Number(e.target.value)),disabled:!_&&!B,className:"w-full border border-gray-300 rounded px-3 py-2 text-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] bg-white disabled:opacity-40 disabled:cursor-not-allowed",children:x.map(e=>(0,t.jsx)("option",{value:e,children:d(k.miles,{n:e})},e))})]}),_&&(0,t.jsx)("div",{className:"flex items-center pb-px",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-medium text-green-800 bg-green-50 border border-green-200 rounded-full px-3 py-1.5",children:["ð ",_.label," · ",W," ",k.mi,(0,t.jsx)("button",{type:"button",onClick:()=>{q(""),G(null),V(null)},className:"text-green-600 hover:text-green-900 font-bold leading-none ml-0.5","aria-label":k.clearZip,children:"â"})]})})]}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)(m,{doctors:eo,selectedId:$,onSelect:I,navigateOnClick:!0,onBoundsChange:F})}),w,(0,t.jsxs)("section",{"aria-labelledby":"results-heading",children:[(0,t.jsx)("h2",{id:"results-heading",className:"text-lg font-bold text-[var(--primary)] mb-4",children:ei.length===e.length?d(k.listed,{n:ei.length,surgeons:u(N,"surgeon",ei.length)}):ei.length===el.length?d(k.results,{n:ei.length,results:u(N,"result",ei.length)}):d(k.visibleOnMap,{visible:ei.length,total:el.length})}),0===ei.length?(0,t.jsxs)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-8 text-center text-gray-500",children:[(0,t.jsx)("p",{className:"font-medium mb-2",children:k.noResults}),(0,t.jsxs)("p",{className:"text-sm",children:[k.tryAdjusting," ",(0,t.jsx)(r.default,{href:"/contact",className:"text-[var(--link)] underline",children:k.contactUs})," ",k.toSuggest]})]}):(0,t.jsx)("ul",{role:"list",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-5",children:en.map(e=>{var s;let i=e.society||"ASOPRS",c="US"!==e.countryCode&&"PR"!==e.countryCode,u=e.city?`${e.city}, ${c?e.country:e.state}`:e.country||e.state,m=(s=e.website)?s.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"").toLowerCase():"",h=m?l[m]:void 0,x="premium"===e.tier||!!h,p=
1h?.photo??e.photo??null,g=h?h.phone??e.phone:null,b=h?.website??e.website??null,f=h?.credentials??e.credentials??null,v=e.name+(f?`, ${f}`:""),y=e.memberships??("both"===i?["ASOPRS","ESOPRS"]:[i]),j={ASOPRS:"#1d4ed8",ESOPRS:"#15803d",ANZSOPS:"#ea580c",CSOPS:"#7c3aed"};return(0,t.jsxs)("li",{children:[(0,t.jsxs)("button",{onClick:()=>I(e.id===$?null:e.id),className:`w-full text-left bg-white border rounded-lg p-5 hover:shadow-md transition-all focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] ${$===e.id?"border-[var(--accent)] shadow-md":"border-gray-200"}`,"aria-pressed":$===e.id,children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[p?(0,t.jsx)("div",{className:"relative w-14 h-14 rounded-full overflow-hidden border border-gray-200 flex-shrink-0","aria-hidden":"true",children:(0,t.jsx)(a.default,{src:p,alt:"",fill:!0,className:"object-cover",sizes:"56px",quality:75,placeholder:"blur",blurDataURL:o.BLUR_PLACEHOLDER})}):(0,t.jsx)("div",{className:"w-14 h-14 rounded-full bg-[var(--primary)] flex items-center justify-center flex-shrink-0","aria-hidden":"true",children:(0,t.jsx)("span",{className:"text-white text-xl font-bold",children:e.name.charAt(0)})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[x?(0,t.jsx)(r.default,{href:n(e),onClick:e=>e.stopPropagation(),className:"font-semibold text-[var(--primary)] text-sm leading-snug hover:text-[var(--link)] hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)] rounded","aria-label":d(k.viewProfileFor,{name:v}),children:v}):(0,t.jsx)("span",{className:"font-semibold text-[var(--primary)] text-sm leading-snug",children:v}),(0,t.jsx)("p",{className:"text-xs text-gray-600 mt-0.5",children:e.practice})]})]}),(0,t.jsxs)("div",{className:"text-xs text-gray-600 space-y-1",children:[(0,t.jsxs)("p",{children:["ð ",u]}),x?g&&(0,t.jsxs)("p",{children:["ð ",(0,t.jsx)("a",{href:`tel:${g}`,className:"text-[var(--link)] hover:underline",onClick:e=>e.stopPropagation(),children:g})]}):(0,t.jsxs)("p",{className:"flex items-center gap-1",children:[(0,t.jsx)("span",{children:"ð"}),(0,t.jsx)("span",{className:"tracking-widest text-gray-300 select-none","aria-label":k.phoneHidden,children:"â¢â¢â¢ â¢â¢â¢â¢ â¢â¢â¢â¢"})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1 mt-1.5",children:y.map(e=>(0,t.jsx)("span",{className:"text-white text-[10px] font-semibold px-2 py-0.5 rounded-full",style:{background:j[e]??"#64748b"},children:e},e))})]})]}),(0,t.jsxs)("div",{className:"mt-2 flex gap-2",children:[x?(0,t.jsx)(r.default,{href:n(e),className:"flex-1 bg-[var(--primary)] text-white text-xs text-center py-2 rounded font-medium hover:bg-[#143050] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]","aria-label":d(k.viewProfileFor,{name:v}),children:N.common.viewProfile}):(0,t.jsx)("span",{className:"flex-1 bg-gray-100 text-gray-400 text-xs text-center py-2 rounded font-medium border border-gray-200 cursor-not-allowed select-none","aria-disabled":"true",title:k.premiumOnlyTitle,children:k.viewProfilePlain}),b&&x&&(0,t.jsx)("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"px-3 bg-white border border-gray-200 text-[var(--primary)] text-xs text-center py-2 rounded font-medium hover:border-[var(--accent)] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]","aria-label":d(k.visitWebsite,{name:v}),onClick:e=>e.stopPropagation(),children:k.website})]})]},e.id)})}),en.length<ei.length&&(0,t.jsxs)("div",{className:"mt-8 text-center",children:[(0,t.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:d(k.showing,{shown:en.length,total:ei.length})}),(0,t.jsx)("button",{type:"button",onClick:()=>E(e=>e+48),className:"inline-flex items-center gap-2 bg-[var(--primary)] text-white text-sm font-medium px-6 py-2.5 rounded hover:bg-[#143050] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--primary)]",children:k.showMore})]})]}),(0,t.jsxs)("div",{className:"mt-12 bg-blue-50 border border-blue-100 rounded-lg p-6 text-center",children:[(0,t.jsx)("h2",{className:"font-bold text-[var(--primary)] mb-2",children:k.ctaHeading}),(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:k.ctaBody}),(0,t.jsx)(c.default,{triggerLabel:k.ctaButton})]})]})}],755037)},959573,e=>{e.v(t=>Promise.all(["static/chunks/0_tq2zgfw3mtt.js"].map(t=>e.l(t))).then(()=>t(161217)))}]);
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.