Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/
Upload File :
Current File : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/Doctors-C-g8NhI4.js

import{d as g,r as m,j as e,O as j,E as u,B as n,T as s,F as o,P as b,Q as y,G as S,L as k,e as w,i as _,R as d,U as F,V as v,W,X as z,n as A,Y as i,Z as C,_ as T,$ as I,a0 as R,S as E,f as L}from"./index-CDlA-3aM.js";/* empty css               *//* empty css                   */import{R as D}from"./RatingStars-Xxs9oeQM.js";import{I as Q}from"./input-element-Bbt7yrud.js";import{S as G}from"./Search-DD7xJH3Y.js";import{G as M}from"./grid-item-abo2V3UN.js";function U(){const p=async()=>(await L("get_active_doctor")).data,{isLoading:x,data:t,error:f}=g({queryKey:["Doctors"],queryFn:p}),[l,h]=m.useState(""),c=t==null?void 0:t.filter(r=>r.f_name.toLowerCase().includes(l.toLowerCase())||r.l_name.toLowerCase().includes(l.toLowerCase()));return x?e.jsx(j,{}):f?e.jsx(u,{}):e.jsxs(n,{children:[e.jsx(n,{bg:"primary.main",p:4,py:{base:"4",md:"20"},children:e.jsxs(n,{className:"container",children:[e.jsx(s,{fontFamily:"Quicksand, sans-serif",fontSize:{base:32,md:48},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:"Our Doctors"}),e.jsxs(s,{fontFamily:"Quicksand, sans-serif",fontSize:{base:22,md:32},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:["Explore a Multifaceted Team of ",e.jsx("br",{}),e.jsx(s,{as:"span",color:"green.text",fontWeight:800,children:"Healthcare Specialists"})]})]})})," ",e.jsxs(n,{mt:{base:0,md:0},className:"container",pt:5,position:"relative",children:[t?e.jsxs(e.Fragment,{children:[" ",e.jsxs(s,{fontSize:16,textAlign:"center",mt:2,color:"gray.500",fontWeight:500,children:["Experience the ease of finding the right medical ",e.jsx("br",{})," expert for your needs with our comprehensive selection of doctors."]}),e.jsxs(n,{children:[e.jsxs(o,{justifyContent:"center",w:"100%",children:[" ",e.jsxs(b,{mb:4,mt:3,maxW:"fit-content",children:[e.jsx(Q,{pointerEvents:"none",children:e.jsx(G,{})}),e.jsx(y,{placeholder:"Search doctors...",value:l,onChange:r=>h(r.target.value),variant:"outline",w:500,maxW:"95vw",bg:"#fff"})]})]}),e.jsx(n,{mt:4,children:e.jsx(S,{templateColumns:{base:"repeat(1, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:c==null?void 0:c.map(r=>e.jsx(M,{backgroundColor:"#FFF",borderRadius:10,cursor:"pointer",boxShadow:"2px 2px 20px 0 rgb(82 66 47 / 12%)",_hover:{border:"1px solid #0032ff"},transition:"border 0.1s ease",border:"1px solid #fff",as:k,to:`/doctor/${r.user_id}`,children:e.jsxs(n,{cursor:"pointer",padding:5,children:[" ",e.jsxs(o,{gap:5,align:"center",children:[e.jsxs(n,{overflow:"hidden",h:"90px",w:"90px",borderRadius:r.image?"10%":"0",borderTopRadius:"50%",border:"8px solid #fff",children:[" ",e.jsx(w,{src:r.image?`${_}/${r.image}`:"https://plus.unsplash.com/premium_photo-1661764878654-3d0fc2eefcca?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTd8fGRvY3RvcnxlbnwwfHwwfHx8MA%3D%3D",w:{base:"80px",md:"80px"}})]}),e.jsxs(n,{children:[" ",e.jsxs(s,{mt:5,fontSize:15,fontWeight:500,m:0,children:[r.f_name," ",r.l_name]}),e.jsx(s,{mt:"2px",fontSize:{base:"14px",md:"14px",lg:"14px"},fontWeight:600,m:0,color:"primary.text",fontFamily:"Quicksand, sans-serif",children:r.department_name}),e.jsx(s,{mt:"2px",fontSize:{base:"12px",md:"13px",lg:"13px"},m:0,color:"primary.text",fontWeight:600,fontFamily:"Quicksand, sans-serif",children:r.specialization})]})]}),e.jsx(d,{my:2}),e.jsxs(o,{justify:"space-between",children:[e.jsxs(s,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",children:["Total Rating",e.jsxs(s,{as:"span",display:"flex",gap:1,alignItems:"center",children:[e.jsx(D,{rating:r.average_rating})," ",e.jsxs(s,{as:"span",mb:0,color:"#000",children:[parseFloat(r.average_rating).toFixed(1)," (",r.number_of_reviews,")"]})]})]}),e.jsxs(s,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",children:["Total Experience",e.jsxs(s,{as:"span",display:"flex",gap:1,alignItems:"center",fontSize:14,color:"#000",fontWeight:700,children:[r.ex_year,"+ Years"]})]})]}),e.jsx(o,{justify:"space-between",mt:1,children:e.jsxs(s,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",display:"flex",align:"center",gap:2,children:[e.jsx(F,{fontSize:12})," ",e.jsxs(s,{mt:-.5,children:[r.total_appointment_done," Appointments Done"]})]})}),(r==null?void 0:r.stop_booking)===1&&e.jsxs(v,{status:"error",size:"xs",py:1,px:1,mt:4,children:[e.jsx(W,{}),e.jsxs(z,{fontSize:"xs",children:[" ","Currently Not Accepting Appointments"]})]}),e.jsx(d,{my:2}),e.jsxs(A,{spacing:2,children:[e.jsx(i,{as:"a",href:r.insta_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",icon:e.jsx(C,{}),variant:"ghost",colorScheme:"pink",onClick:a=>a.stopPropagation()})," ",e.jsx(i,{as:"a",href:r.fb_linik,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",icon:e.jsx(T,{}),variant:"ghost",colorScheme:"facebook",onClick:a=>a.stopPropagation()}),e.jsx(i,{as:"a",href:r.twitter_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter",icon:e.jsx(I,{}),variant:"ghost",colorScheme:"twitter",onClick:a=>a.stopPropagation()})," ",e.jsx(i,{as:"a",href:r.you_tube_link,target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",icon:e.jsx(R,{}),variant:"ghost",colorScheme:"red",onClick:a=>a.stopPropagation()})]})]})},r.id))})})]})]}):null,x?e.jsxs(e.Fragment,{children:[" ",e.jsx(E,{h:"100px",w:"100%",mt:5})]}):null,f?e.jsxs(e.Fragment,{children:[" ",e.jsx(s,{fontSize:{base:12,md:14},fontWeight:400,color:"red",textAlign:"center",children:"Something Went wrong!"}),e.jsx(s,{fontSize:{base:12,md:14},fontWeight:400,color:"red",textAlign:"center",children:"Cant Fetch Doctors!"})]}):null]})]})}export{U as default};