(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7492],{4464:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/find-practitioners",function(){return a(2056)}])},8521:function(e,t,a){"use strict";a.d(t,{Z:function(){return h}});var i=a(7294);let s=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.filter((e,t,a)=>!!e&&""!==e.trim()&&a.indexOf(e)===t).join(" ").trim()},n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,a)=>a?a.toUpperCase():t.toLowerCase()),r=e=>{let t=l(e);return t.charAt(0).toUpperCase()+t.slice(1)};var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},d=(0,i.createContext)({}),p=()=>(0,i.useContext)(d),u=(0,i.forwardRef)((e,t)=>{var a,n,l;let{color:r,size:d,strokeWidth:u,absoluteStrokeWidth:h,className:f="",children:m,iconNode:v,...y}=e,{size:x=24,strokeWidth:g=2,absoluteStrokeWidth:k=!1,color:j="currentColor",className:w=""}=null!==(a=p())&&void 0!==a?a:{},N=(null!=h?h:k)?24*Number(null!=u?u:g)/Number(null!=d?d:x):null!=u?u:g;return(0,i.createElement)("svg",{ref:t,...c,width:null!==(n=null!=d?d:x)&&void 0!==n?n:c.width,height:null!==(l=null!=d?d:x)&&void 0!==l?l:c.height,stroke:null!=r?r:j,strokeWidth:N,className:s("lucide",w,f),...!m&&!o(y)&&{"aria-hidden":"true"},...y},[...v.map(e=>{let[t,a]=e;return(0,i.createElement)(t,a)}),...Array.isArray(m)?m:[m]])}),h=(e,t)=>{let a=(0,i.forwardRef)((a,l)=>{let{className:c,...o}=a;return(0,i.createElement)(u,{ref:l,iconNode:t,className:s("lucide-".concat(n(r(e))),"lucide-".concat(e),c),...o})});return a.displayName=r(e),a}},2217:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},7089:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},3346:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},2171:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},39:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]])},2126:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},6127:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},4919:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]])},141:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]])},9176:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},2190:function(e,t,a){"use strict";a.d(t,{Z:function(){return i}});let i=(0,a(8521).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},2056:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return M}});var i=a(5893),s=a(7294),n=a(1163),l=a(7317),r=a(3950),c=a(2194),o=a(141),d=a(2217),p=a(7089);let u=(0,a(8521).Z)("droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);var h=a(3645),f=a(2126),m=a(9176),v=a(2171),y=a(6127),x=a(4919),g=a(2190),k=a(2917),j=a(2984),w=a(5040),N=a(1376);a(3109);let _=["London","Manchester","Birmingham","Leeds","Glasgow","Liverpool","Newcastle","Sheffield","Bristol","Edinburgh"],b=[{label:"GP",keywords:["gp","general practitioner","general medicine","general physician","family medicine","internal medicine","general practice","family practice"],Icon:o.Z},{label:"Dermatology",keywords:["dermatolog","skin"],Icon:d.Z},{label:"Psychiatry",keywords:["psychiatr","mental health"],Icon:p.Z},{label:"Diabetes",keywords:["diabet"],Icon:u}],C=["GPs","Dermatologists","Psychiatrists","Paediatricians","Cardiologists"],Z=["Skin Rash","Anxiety","Acne","Hypertension","Back Pain"],S=(e,t)=>{var a;let i=t.toLowerCase(),s=(e.full_name||e.name||"").toLowerCase(),n=(e.speciality||(null===(a=e.primary_specialty)||void 0===a?void 0:a.description)||"").toLowerCase(),l=(e.subspecialties||[]).map(e=>(e.name||"").toLowerCase()),r=((0,w.q)(e).location||"").toLowerCase();return s.includes(i)||n.includes(i)||l.some(e=>e.includes(i))||r.includes(i)};var M=()=>{var e,t,a,o;let[d,p]=(0,s.useState)([]),[u,M]=(0,s.useState)(!0),[z,P]=(0,s.useState)(!1),[A,L]=(0,s.useState)(""),U=(0,n.useRouter)(),[R,I]=(0,s.useState)({total_count:0,page:1,page_size:12,total_pages:0,has_next:!1,has_previous:!1,offset:0,limit:12}),[,T]=(0,s.useState)(1),[E,G]=(0,s.useState)(!1),[q,B]=(0,s.useState)(null),[F,D]=(0,s.useState)(null),[K,H]=(0,s.useState)(null),[V,O]=(0,s.useState)(!1),[W,X]=(0,s.useState)({specialties:[],languages:[]}),[$,Y]=(0,s.useState)("GPs"),[J,Q]=(0,s.useState)(0),[ee,et]=(0,s.useState)(!1),[ea,ei]=(0,s.useState)("Find Verified"),[es,en]=(0,s.useState)(!0),el=(0,s.useRef)({phase:0,index:0}),[er,ec]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=()=>ec(window.scrollY>40);return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,s.useEffect)(()=>{let e,t;let a=setInterval(()=>{et(!0),e=setTimeout(()=>{let{phase:e,index:a}=el.current,i=0===e?C:Z,s=a+1;if(s>=i.length){let a=(e+1)%2;el.current={phase:a,index:0},en(!1),t=setTimeout(()=>{ei(0===a?"Find Verified":"Helping With"),Y((0===a?C:Z)[0]),Q(e=>e+1),et(!1),en(!0)},380)}else el.current.index=s,Y(i[s]),Q(e=>e+1),et(!1)},320)},2820);return()=>{clearInterval(a),clearTimeout(e),clearTimeout(t)}},[]);let[eo,ed]=(0,s.useState)(!1),[ep,eu]=(0,s.useState)(null),[eh,ef]=(0,s.useState)(!1),[em,ev]=(0,s.useState)(null),[ey,ex]=(0,s.useState)(null),[eg,ek]=(0,s.useState)(!1),ej=(0,s.useRef)(null),ew=e=>({total_count:(null==e?void 0:e.total)||0,page:(null==e?void 0:e.page)||1,page_size:(null==e?void 0:e.page_size)||20,total_pages:(null==e?void 0:e.pages)||0,has_next:((null==e?void 0:e.page)||1)<((null==e?void 0:e.pages)||1),has_previous:((null==e?void 0:e.page)||1)>1,offset:0,limit:(null==e?void 0:e.page_size)||20}),eN=async()=>{P(!0);try{let e=await fetch("".concat(N.sN,"/doctor/directory-profile/public/?page_size=20&page=1")),t=await e.json(),a=(null==t?void 0:t.data)||[];p(a),I(ew(t)),T(1)}catch(e){console.error("API error:",e)}finally{P(!1),M(!1)}};(0,s.useEffect)(()=>{eN()},[]),(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat(N.CT,"/patient/doctor-filter-options/")),t=await e.json();(null==t?void 0:t.status)&&(null==t?void 0:t.data)&&X({specialties:t.data.specialities||[],languages:t.data.languages||[]})}catch(e){console.error("Failed to load filter options:",e)}})()},[]),(0,s.useEffect)(()=>{if(!F&&!q&&!K&&!V){if(ej.current&&clearTimeout(ej.current),!A.trim()){eN();return}return ej.current=setTimeout(()=>{ez(A)},400),()=>{ej.current&&clearTimeout(ej.current)}}},[A,F,q,K,V]);let e_=async function(e){let{append:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new URLSearchParams({page_size:20,page:1,...e}),i="".concat(N.sN,"/doctor/directory-profile/public/?").concat(a),s=await fetch(i),n=await s.json(),l=(null==n?void 0:n.data)||[];return t?p(e=>[...e,...l]):(p(l),T(1)),I(ew(n)),l},eb=async e=>{if(F===e){D(null),eN();return}D(e),B(null),H(null),O(!1),P(!0);try{await e_({speciality:e})}catch(e){p([])}finally{P(!1)}},eC=async e=>{if(F===e.label){D(null),eN();return}D(e.label),B(null),H(null),O(!1),P(!0);try{let t=new URLSearchParams({page_size:100,page:1}),a=await fetch("".concat(N.sN,"/doctor/directory-profile/public/?").concat(t)),i=await a.json(),s=((null==i?void 0:i.data)||[]).filter(t=>{var a;let i=(t.speciality||(null===(a=t.primary_specialty)||void 0===a?void 0:a.description)||"").toLowerCase();return e.keywords.some(e=>i.includes(e))});p(s),I({...ew(i),has_next:!1}),T(1)}catch(e){p([])}finally{P(!1)}},eZ=async e=>{if(q===e){B(null),eN();return}B(e),D(null),H(null),O(!1),P(!0);try{await e_({location:e})}catch(e){p([])}finally{P(!1)}},eS=async e=>{if(K===e){H(null),eN();return}H(e),B(null),D(null),O(!1),P(!0);try{await e_({language:e})}catch(e){p([])}finally{P(!1)}},eM=async()=>{if(V){O(!1),eN();return}O(!0),B(null),D(null),H(null),P(!0);try{let e=new URLSearchParams({page_size:100,page:1}),t=await fetch("".concat(N.sN,"/doctor/directory-profile/public/?").concat(e)),a=await t.json(),i=((null==a?void 0:a.data)||[]).filter(e=>Array.isArray(e.insurers)&&e.insurers.length>0);p(i),I({...ew(a),has_next:!1}),T(1)}catch(e){p([])}finally{P(!1)}},ez=async e=>{P(!0);try{let t=new URLSearchParams({page_size:100,page:1}),a=await fetch("".concat(N.sN,"/doctor/directory-profile/public/?").concat(t)),i=await a.json(),s=((null==i?void 0:i.data)||[]).filter(t=>S(t,e));p(s),I({...ew(i),has_next:!1}),T(1)}catch(e){p([])}finally{P(!1)}},eP=()=>{B(null),D(null),H(null),O(!1),L(""),eN()},eA=q||F||K||V,eL=async()=>{if(eg||!R.has_next)return;ek(!0);let e=(R.page||1)+1;try{let t={page:e,page_size:R.page_size||20};if(F&&(t.speciality=F),q&&(t.location=q),K&&(t.language=K),V){ek(!1);return}await e_(t,{append:!0})}catch(e){console.error("Load more error:",e)}finally{ek(!1)}},eU=async e=>{let t=(null==e?void 0:e.doctor_id)||(null==e?void 0:e._id)||(null==e?void 0:e.id);if(t){ex(t);try{var a;let i=await fetch("".concat(N.CT,"/patient/public/doctor-schedule/?doctor_id=").concat(encodeURIComponent(t))),s=await i.json();(null==s?void 0:s.status)&&Array.isArray(null===(a=s.data)||void 0===a?void 0:a.available_dates)&&s.data.available_dates.length>0?(eu({...e,Health_Professional_Id:t}),ed(!0)):(ev(e),ef(!0))}catch(t){ev(e),ef(!0)}finally{ex(null)}}},eR=e=>{if(!((null==e?void 0:e.username)||(null==e?void 0:e._id)||(null==e?void 0:e.id)))return;let t=e.username?"/profile/".concat(encodeURIComponent(e.username)):"/profile/".concat(encodeURIComponent(e._id||e.id));window.scrollTo(0,0),U.push(t)},eI=d.filter(e=>!eA||!A||S(e,A));return(0,i.jsxs)("div",{className:"fp-container",children:[(0,i.jsxs)("div",{className:"fp-ambient","aria-hidden":"true",children:[(0,i.jsx)("div",{className:"fp-ambient-blob-1"}),(0,i.jsx)("div",{className:"fp-ambient-blob-2"})]}),(0,i.jsx)(r.Z,{title:"Find a Private GP or Specialist UK | Browse & Book Online | Virtual Triage",description:"Search and book private GPs, psychiatrists, dermatologists & specialists across the UK. Filter by specialty, location, experience & availability. GMC-verified, video consultations, same-day appointments.",keywords:"find private gp uk, online doctor uk, book gp appointment online, private gp near me, find gp uk, doctor booking online uk, healthcare practitioners uk, gp appointment booking, private psychiatrist, online dermatologist",canonical:"https://virtualtriage.ai/find-practitioners",structuredData:{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://virtualtriage.ai/find-practitioners",url:"https://virtualtriage.ai/find-practitioners",name:"Find Doctors & GPs in the UK | Book Appointments Online",description:"Search and book appointments with private GPs and online doctors across the UK.",isPartOf:{"@id":"https://virtualtriage.ai/"},inLanguage:"en-GB"},{"@type":"SearchResultsPage","@id":"https://virtualtriage.ai/find-practitioners",url:"https://virtualtriage.ai/find-practitioners",name:"Find Doctors and GPs in the UK",description:"Search for private GPs, online doctors, and healthcare practitioners in the UK.",potentialAction:{"@type":"SearchAction",target:"https://virtualtriage.ai/find-practitioners?search={search_term_string}","query-input":"required name=search_term_string"}},{"@type":"MedicalBusiness","@id":"https://virtualtriage.ai/find-practitioners",name:"Virtual Triage Doctor Search",description:"Find and book appointments with certified healthcare professionals across the UK.",serviceArea:{"@type":"Place",name:"United Kingdom"},provider:{"@id":"https://virtualtriage.ai/"},offers:{"@type":"Offer",priceCurrency:"GBP",url:"https://virtualtriage.ai/find-practitioners"}}]},location:"UK"}),(0,i.jsx)(l.Z,{}),(0,i.jsx)("section",{className:"fp-trust-banner",style:{position:"relative",zIndex:10},children:(0,i.jsxs)("div",{className:"fp-trust-inner",children:[(0,i.jsxs)("p",{className:"fp-trust-item",children:[(0,i.jsx)(h.Z,{size:14})," All Doctors GMC Verified"]}),(0,i.jsxs)("p",{className:"fp-trust-item",children:[(0,i.jsx)(f.Z,{size:14})," DSPT & GDPR Compliant"]}),(0,i.jsxs)("p",{className:"fp-trust-item",children:[(0,i.jsx)(m.Z,{size:14})," 20+ Specialists Across 15 Specialties"]}),(0,i.jsxs)("p",{className:"fp-trust-item",children:[(0,i.jsx)(v.Z,{size:14})," UK Registered Platform"]})]})}),(0,i.jsxs)("main",{className:"fp-main",children:[(0,i.jsxs)("section",{className:"fp-hero",children:[(0,i.jsxs)("h1",{className:"fp-hero-title",children:[(0,i.jsx)("span",{className:"fp-hero-static".concat(es?" fp-hero-visible":""),children:ea}),(0,i.jsx)("span",{className:"fp-hero-word-wrap".concat(ee?" fp-hero-word-exit":" fp-hero-word-enter"),children:(0,i.jsx)("span",{className:"fp-hero-word-text",children:$})},J)]}),(0,i.jsx)("p",{className:"fp-hero-desc",children:"Advanced triage routing connects you with top-tier practitioners instantly. Search by name, specialty, or symptom to begin."})]}),(0,i.jsx)("div",{className:"fp-search-dock".concat(er?" fp-search-dock-stuck":""),children:(0,i.jsxs)("div",{className:"fp-search-dock-inner",children:[(0,i.jsxs)("div",{className:"fp-search-wrapper",children:[(0,i.jsx)("div",{className:"fp-search-glow"}),(0,i.jsxs)("div",{className:"fp-search-bar",children:[(0,i.jsx)("span",{className:"fp-search-icon",children:(0,i.jsx)(y.Z,{size:20})}),(0,i.jsx)("input",{className:"fp-search-input",placeholder:"Search conditions, symptoms, or doctors...",value:A,onChange:e=>L(e.target.value)}),(0,i.jsx)("button",{className:"fp-search-btn",children:"Search"})]})]}),(0,i.jsxs)("div",{className:"fp-filter-chips",children:[b.map(e=>(0,i.jsxs)("button",{className:"fp-chip".concat(F===e.label?" fp-chip-active":""),onClick:()=>eC(e),children:[(0,i.jsx)(e.Icon,{size:14}),e.label]},e.label)),(0,i.jsxs)("button",{className:"fp-chip".concat(eA&&!b.find(e=>e.label===F)?" fp-chip-active":""),onClick:()=>G(!0),children:[(0,i.jsx)(x.Z,{size:14}),"All Filters",eA&&(0,i.jsx)("span",{className:"fp-chip-dot-indicator"})]})]}),eA&&(0,i.jsxs)("div",{className:"fp-active-chips",children:[F&&(0,i.jsxs)("span",{className:"fp-active-chip",children:[F,(0,i.jsx)("button",{onClick:()=>{D(null),eN()},children:(0,i.jsx)(g.Z,{size:11})})]}),q&&(0,i.jsxs)("span",{className:"fp-active-chip",children:[q,(0,i.jsx)("button",{onClick:()=>{B(null),eN()},children:(0,i.jsx)(g.Z,{size:11})})]}),K&&(0,i.jsxs)("span",{className:"fp-active-chip",children:[K,(0,i.jsx)("button",{onClick:()=>{H(null),eN()},children:(0,i.jsx)(g.Z,{size:11})})]}),V&&(0,i.jsxs)("span",{className:"fp-active-chip",children:["Accepts Insurance",(0,i.jsx)("button",{onClick:()=>{O(!1),eN()},children:(0,i.jsx)(g.Z,{size:11})})]}),(0,i.jsx)("button",{className:"fp-clear-all",onClick:eP,children:"Clear all"})]})]})}),(0,i.jsx)("section",{className:"fp-grid",children:u||z?[...Array(6)].map((e,t)=>(0,i.jsxs)("div",{className:"fp-skeleton-card",children:[(0,i.jsx)("div",{className:"fp-skeleton-avatar"}),(0,i.jsxs)("div",{className:"fp-skeleton-lines",children:[(0,i.jsx)("div",{className:"fp-skeleton-line fp-skeleton-line-lg"}),(0,i.jsx)("div",{className:"fp-skeleton-line fp-skeleton-line-sm"}),(0,i.jsx)("div",{className:"fp-skeleton-line fp-skeleton-line-md"})]})]},t)):0===eI.length?(0,i.jsxs)("div",{className:"fp-empty-state",children:[(0,i.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#c8d6e0",strokeWidth:"1.5",children:[(0,i.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,i.jsx)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]}),(0,i.jsx)("p",{className:"fp-empty-title",children:"No practitioners found"}),(0,i.jsx)("p",{className:"fp-empty-sub",children:"Try adjusting your filters or search term"}),(0,i.jsx)("button",{className:"fp-empty-reset",onClick:eP,children:"Reset filters"})]}):eI.map(e=>(0,i.jsx)(w.Z,{doctor:e,onViewProfile:eR,onBookAppointment:eU,isBookingLoading:ey===(e._id||e.id)},e._id||e.id))}),R.has_next&&!u&&!z&&(0,i.jsx)("div",{className:"fp-load-more-wrap",children:(0,i.jsxs)("button",{className:"fp-load-more-btn",onClick:eL,disabled:eg,children:[eg?"Loading...":"Load More Practitioners",!eg&&(0,i.jsx)(v.Z,{size:16})]})})]}),(0,i.jsx)(c.Z,{}),E&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fp-sheet-overlay",onClick:()=>G(!1)}),(0,i.jsxs)("div",{className:"fp-sheet",role:"dialog","aria-modal":"true","aria-label":"Filters",children:[(0,i.jsx)("div",{className:"fp-sheet-handle"}),(0,i.jsxs)("div",{className:"fp-sheet-header",children:[(0,i.jsx)("span",{className:"fp-sheet-title",children:"Filters"}),(0,i.jsx)("button",{className:"fp-sheet-close",onClick:()=>G(!1),children:(0,i.jsx)(g.Z,{size:20})})]}),(0,i.jsxs)("div",{className:"fp-sheet-section",children:[(0,i.jsx)("div",{className:"fp-sheet-section-title",children:"Specialties"}),(0,i.jsx)("div",{className:"fp-sheet-options",children:W.specialties.map(e=>(0,i.jsx)("button",{className:"fp-sheet-option".concat(F===e.name?" fp-sheet-option-active":""),onClick:()=>{eb(e.name),G(!1)},children:e.name},e.id))})]}),(0,i.jsxs)("div",{className:"fp-sheet-section",children:[(0,i.jsx)("div",{className:"fp-sheet-section-title",children:"Location (UK)"}),(0,i.jsx)("div",{className:"fp-sheet-options",children:_.map(e=>(0,i.jsx)("button",{className:"fp-sheet-option".concat(q===e?" fp-sheet-option-active":""),onClick:()=>{eZ(e),G(!1)},children:e},e))})]}),(0,i.jsxs)("div",{className:"fp-sheet-section",children:[(0,i.jsx)("div",{className:"fp-sheet-section-title",children:"Language"}),(0,i.jsx)("div",{className:"fp-sheet-options",children:W.languages.map(e=>(0,i.jsx)("button",{className:"fp-sheet-option".concat(K===e.name?" fp-sheet-option-active":""),onClick:()=>{eS(e.name),G(!1)},children:e.name},e.id))})]}),(0,i.jsxs)("div",{className:"fp-sheet-section",children:[(0,i.jsx)("div",{className:"fp-sheet-section-title",children:"Insurance"}),(0,i.jsx)("div",{className:"fp-sheet-options",children:(0,i.jsx)("button",{className:"fp-sheet-option".concat(V?" fp-sheet-option-active":""),onClick:()=>{eM(),G(!1)},children:"Accepts Insurance"})})]}),(0,i.jsxs)("div",{className:"fp-sheet-footer",children:[(0,i.jsx)("button",{className:"fp-sheet-reset",onClick:()=>{eP(),G(!1)},children:"Clear All"}),(0,i.jsx)("button",{className:"fp-sheet-apply",onClick:()=>G(!1),children:"Show Results"})]})]})]}),eo&&ep&&(0,i.jsx)(k.Z,{practitioner:ep,appointmentFee:null!==(t=null!==(e=null==ep?void 0:ep.initial_appointment_fee)&&void 0!==e?e:null==ep?void 0:ep.new_appointment_fee)&&void 0!==t?t:0,appointmentType:"initial",scheduleData:{initial_appointment_fee:null!==(a=null==ep?void 0:ep.initial_appointment_fee)&&void 0!==a?a:null==ep?void 0:ep.new_appointment_fee,follow_up_appointment_fee:null!==(o=null==ep?void 0:ep.follow_up_fee)&&void 0!==o?o:null==ep?void 0:ep.follow_up_appointment_fee},onClose:()=>{ed(!1),eu(null)}}),eh&&(0,i.jsx)(j.Z,{isOpen:eh,onClose:()=>{ef(!1),ev(null)},doctorId:(null==em?void 0:em._id)||(null==em?void 0:em.id)||(null==em?void 0:em.doctor_id),doctorName:(null==em?void 0:em.full_name)||(null==em?void 0:em.name)})]})}},9008:function(e,t,a){e.exports=a(3867)}},function(e){e.O(0,[1890,8884,7826,2888,9774,179],function(){return e(e.s=4464)}),_N_E=e.O()}]);