uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
web.medimeet.codeskitter.site
/
assets
/
.
/
Doctor-dZkAkCtr.js
/
/
import{a1 as D,d as _,j as e,O as S,E as A,B as i,T as t,F as l,a2 as R,a3 as B,n as w,f as k,a4 as P,r as b,a5 as C,a6 as Q,p as E,e as I,i as M,U as V,R as d,V as $,W as L,X as H,l as N,a7 as O,q as Y,a8 as q,a9 as T,aa as G,ab as U,ac as Z,Y as f,Z as K,_ as X,$ as J,a0 as ee}from"./index-DjKxDI5z.js";import{G as ae,L as se}from"./LoginModal-C6YMlBz0.js";import{R as te}from"./RatingStars-0jzraH7h.js";import{S as ie,a as ne}from"./swiper-react-DsJ3Zilt.js";import{P as re}from"./pagination-CAOWmF-R.js";/* empty css */import"./defaultISD-r1_xB98L.js";import"./firebase.config-ContjBdq.js";const oe=D({d:"M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z",displayName:"StarIcon"}),le={320:{slidesPerView:1,spaceBetween:25},480:{slidesPerView:1,spaceBetween:20},640:{slidesPerView:1,spaceBetween:20},990:{slidesPerView:1,spaceBetween:20}},ce=({id:c})=>{const x=async()=>(await k(`get_doctor_review/doctor/${c}`)).data,{data:m,isLoading:r,isError:u}=_({queryFn:x,queryKey:["doctor-review",c]});return r?e.jsx(S,{}):u?e.jsx(A,{}):e.jsxs(i,{children:[e.jsx(t,{fontSize:24,fontWeight:800,mb:1,children:"Reviews & Ratings"}),e.jsx(i,{mt:1,children:e.jsx(ie,{modules:[re],spaceBetween:50,slidesPerView:5,breakpoints:le,loop:!0,pagination:{clickable:!0},className:"reviewSwiper",children:m==null?void 0:m.map(n=>e.jsx(ne,{style:{padding:"10px 0",paddingBottom:"40px"},children:e.jsx(i,{px:0,minH:"fit-content",children:e.jsxs(i,{borderWidth:1,borderRadius:"lg",p:4,boxShadow:"sm",minH:"100%",children:[e.jsxs(l,{align:"center",mb:3,children:[e.jsx(R,{name:`${n.f_name} ${n.l_name}`,mr:4}),e.jsxs(B,{align:"start",spacing:0,children:[e.jsx(t,{fontWeight:"bold",children:`${n.f_name} ${n.l_name}`}),e.jsx(w,{spacing:1,children:[...Array(5)].map((j,p)=>e.jsx(oe,{color:p<n.points?"yellow.400":"gray.300"},p))})]})]}),n.description&&e.jsx(t,{mt:2,color:"gray.700",children:n.description}),e.jsxs(t,{mt:2,fontSize:"sm",color:"gray.500",children:["Reviewed on"," ",new Date(n.created_at).toLocaleDateString()]})]},n.id)})},n.id))})})]})},de=[{id:1,title:"OPD",fee:400,service_charge:0,created_at:"2024-01-28 12:39:29",updated_at:"2024-08-10 13:29:27"},{id:2,title:"Video Consultant",fee:250,service_charge:20,created_at:"2024-01-28 12:40:11",updated_at:"2024-01-28 12:40:11"},{id:3,title:"Emergency",fee:500,service_charge:30,created_at:"2024-01-28 12:40:11",updated_at:"2024-08-10 13:29:39"}];function ye(){const{id:c}=P(),[x,m]=b.useState(),[r,u]=b.useState(),n=C(),{isOpen:j,onOpen:p,onClose:F}=Q(),{settingsData:y}=E(),g=y==null?void 0:y.find(s=>s.id_name==="stop_booking"),z=async()=>(await k(`get_doctor/${c}`)).data,{isLoading:W,data:a}=_({queryKey:["Doctor",c],queryFn:z}),h=(s,o)=>{switch(s){case 1:return o.video_appointment;case 2:return o.clinic_appointment;case 3:return o.emergency_appointment;default:return"Unknown Step"}},v=(s,o)=>{switch(s){case"OPD":return o.opd_fee;case"Video Consultant":return o.video_fee;case"Emergency":return o.emg_fee;default:return o.emg_fee}};return W?e.jsx(S,{}):e.jsxs(i,{children:[e.jsx(i,{bg:"primary.main",p:0,py:{base:"5",md:"10"},children:e.jsx(i,{className:"container",children:e.jsx(t,{fontFamily:"Quicksand, sans-serif",fontSize:{base:32,md:48},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:"Doctor Profile"})})})," ",e.jsxs(i,{className:"container",mt:10,pb:10,children:[" ",e.jsxs(l,{gap:10,flexDir:{base:"column",md:"row"},children:[e.jsxs(i,{backgroundColor:"#FFF",borderRadius:10,boxShadow:"2px 2px 20px 0 rgb(82 66 47 / 12%)",w:{base:"100%",md:"40%"},p:2,children:[e.jsxs(i,{overflow:"hidden",w:"100%",borderRadius:(a.image,"2%"),children:[" ",e.jsx(I,{src:a.image?`${M}/${a.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:"100%",h:"500",objectFit:"cover",objectPosition:"top"})]}),e.jsxs(i,{px:2,children:[e.jsx(t,{mt:4,fontSize:{base:"16px",md:"16px",lg:"16px"},fontWeight:700,color:"gray.500",fontFamily:"Quicksand, sans-serif",children:a.department_name})," ",e.jsxs(t,{fontSize:18,fontWeight:800,fontFamily:"Quicksand, sans-serif",children:[a.f_name," ",a.l_name]}),e.jsxs(t,{as:"span",display:"flex",gap:1,alignItems:"center",fontSize:14,color:"#000",fontWeight:700,children:[a.ex_year,"+ Years Of Experience"]}),e.jsxs(t,{as:"span",display:"flex",gap:1,alignItems:"center",children:[e.jsx(te,{rating:a.average_rating})," ",e.jsxs(t,{as:"span",mb:0,color:"#000",fontSize:"xs",fontWeight:600,children:[parseFloat(a.average_rating).toFixed(1)," (",a.number_of_reviews,")"]})]}),e.jsx(l,{justify:"space-between",mt:1,children:e.jsxs(t,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",display:"flex",align:"center",gap:2,children:[e.jsx(V,{fontSize:12})," ",e.jsxs(t,{mt:-.5,children:[a.total_appointment_done," Appointments Done"]})]})}),e.jsx(d,{my:2}),e.jsxs(t,{mt:"2px",fontSize:{base:"13px",md:"13px",lg:"13px"},fontWeight:500,m:0,color:"gray.600",display:"flex",align:"center",gap:2,letterSpacing:1,children:[e.jsx(t,{as:"span",m:0,className:"ion-android-call",color:"#000"})," ",a.isd_code," ",a.phone]}),e.jsxs(t,{fontSize:{base:"13px",md:"13px",lg:"13px"},fontWeight:500,m:0,color:"gray.600",display:"flex",align:"center",gap:2,letterSpacing:1,mt:2,children:[e.jsx(t,{as:"span",className:"ion-ios-email",fontSize:16,color:"#000"})," ",a.email]}),(a==null?void 0:a.stop_booking)===1||g.value===!0||g.value==="true"&&e.jsxs($,{status:"error",size:"xs",py:1,px:1,mt:4,children:[e.jsx(L,{}),e.jsxs(H,{fontSize:"xs",children:[" ","Currently Not Accepting Appointments"]})]}),e.jsx(N,{mt:5,colorScheme:"blue",w:"100%",size:"sm",leftIcon:e.jsx(Y,{}),onClick:()=>{O?m(a):p()},isDisabled:(a==null?void 0:a.stop_booking)===1||g.value===!0||g.value==="true",children:"Make Appointment"}),e.jsx(q,{children:x&&e.jsx(T.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:e.jsxs(i,{mt:2,children:[e.jsx(t,{fontSize:14,fontWeight:600,children:"Select Appointment Type"}),e.jsx(l,{gap:3,mt:2,children:de.map(s=>e.jsxs(i,{padding:4,borderRadius:8,minW:100,color:((r==null?void 0:r.id)===s.id||h(s==null?void 0:s.id,a)===1,"#fff"),bg:(r==null?void 0:r.id)===s.id?"primary.text":h(s==null?void 0:s.id,a)===1?"primary.bg":"gray.300",cursor:h(s==null?void 0:s.id,a)===1?"pointer":"not-allowed",onClick:o=>{if(h(s==null?void 0:s.id,a)===0){o.stopPropagation();return}o.stopPropagation(),u((r==null?void 0:r.id)===(s==null?void 0:s.id)?null:s),n(`/book-appointment/${x.user_id}/${s.id}`)},children:[s.id==1?e.jsx(G,{fontSize:28}):s.id==2?e.jsx(U,{fontSize:28}):s.id==3?e.jsx(ae,{fontSize:28}):null,e.jsx(t,{mt:5,fontSize:{base:"12px",md:"13px"},fontWeight:500,m:0,children:s.id===2?"Video Call":s.title}),e.jsxs(t,{mt:5,fontSize:{base:"12px",md:"13px"},fontWeight:500,m:0,children:[v(s.title,a)," ",Z]})]},s.id))})]})})}),e.jsx(d,{my:3}),e.jsxs(w,{spacing:2,children:[e.jsx(f,{as:"a",href:a.insta_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",icon:e.jsx(K,{}),variant:"ghost",colorScheme:"pink"})," ",e.jsx(f,{as:"a",href:a.fb_linik,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",icon:e.jsx(X,{}),variant:"ghost",colorScheme:"facebook"}),e.jsx(f,{as:"a",href:a.twitter_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter",icon:e.jsx(J,{}),variant:"ghost",colorScheme:"twitter"})," ",e.jsx(f,{as:"a",href:a.you_tube_link,target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",icon:e.jsx(ee,{}),variant:"ghost",colorScheme:"red"})]})]})]}),e.jsxs(i,{backgroundColor:"#FFF",borderRadius:10,cursor:"pointer",boxShadow:"2px 2px 20px 0 rgb(82 66 47 / 12%)",w:{base:"100%",md:"60%"},p:4,children:[e.jsxs(t,{fontSize:24,fontWeight:800,fontFamily:"Roboto, sans-serif",children:[a.f_name," ",a.l_name]}),e.jsx(t,{fontSize:14,textAlign:"justify",mt:4,fontFamily:"Quicksand, sans-serif",color:"gray.600",children:a.description?a.description:""}),e.jsx(d,{my:3}),e.jsxs(l,{align:"center",children:[e.jsx(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"primary.text",fontFamily:"Quicksand, sans-serif",w:"50%",children:"Department"}),e.jsx(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"gray.900",fontFamily:"Quicksand, sans-serif",w:"50%",children:a.department_name})]}),e.jsx(d,{my:3}),e.jsxs(l,{align:"center",children:[e.jsx(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"primary.text",fontFamily:"Quicksand, sans-serif",w:"50%",children:"Specialization"}),e.jsx(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"gray.900",fontFamily:"Quicksand, sans-serif",w:"50%",children:a.specialization})]}),e.jsx(d,{my:3}),e.jsxs(l,{align:"center",children:[e.jsx(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"primary.text",fontFamily:"Quicksand, sans-serif",w:"50%",children:"Experience"}),e.jsxs(t,{mt:"2px",fontSize:16,fontWeight:700,m:0,color:"gray.900",fontFamily:"Quicksand, sans-serif",w:"50%",children:[a.ex_year,"+ Years"]})]}),e.jsx(d,{my:3}),e.jsx(ce,{id:c})]})]})]}),j&&e.jsx(se,{isModalOpen:j,onModalClose:F})]})}export{ye as default};
/home/users/unlimited/www/web.medimeet.codeskitter.site/assets/./Doctor-dZkAkCtr.js