| Current Path : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/ |
| Current File : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/Department-DOIWnHjE.js |
import{d as p,j as e,O as h,B as t,G as u,L as b,F as d,e as g,i as m,T as n,R as f,n as y,Y as c,Z as w,_ as k,$ as S,a0 as F,S as _,f as j,a4 as W,a5 as v}from"./index-DjKxDI5z.js";/* empty css *//* empty css */import{R as z}from"./RatingStars-0jzraH7h.js";import{G as D}from"./grid-item-Mhehj2ZM.js";function R({deptID:i,deptName:s}){const x=async()=>(await j(`get_doctor_dep_id/${i}`)).data,{isLoading:o,data:a,error:l}=p({queryKey:["Doctors",i],queryFn:x});return o?e.jsx(h,{}):l?e.jsx(ErrorPage,{}):e.jsx(t,{children:e.jsxs(t,{mt:{base:0,md:0},className:"container",position:"relative",children:[a?e.jsxs(e.Fragment,{children:[" ",e.jsx(t,{children:e.jsx(t,{children:e.jsx(u,{templateColumns:{base:"repeat(1, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(2, 1fr)"},gap:6,children:a==null?void 0:a.map(r=>e.jsx(D,{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:b,to:`/doctor/${r.user_id}`,children:e.jsxs(t,{cursor:"pointer",padding:5,children:[" ",e.jsxs(d,{gap:5,align:"center",children:[e.jsxs(t,{overflow:"hidden",h:"90px",w:"90px",borderRadius:r.image?"10%":"0",borderTopRadius:"50%",border:"8px solid #fff",children:[" ",e.jsx(g,{src:r.image?`${m}/${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(t,{children:[" ",e.jsxs(n,{mt:5,fontSize:15,fontWeight:500,m:0,children:[r.f_name," ",r.l_name]}),e.jsx(n,{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(n,{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(f,{my:2}),e.jsxs(d,{justify:"space-between",children:[e.jsxs(n,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",children:["Total Rating",e.jsxs(n,{as:"span",display:"flex",gap:1,alignItems:"center",children:[e.jsx(z,{rating:4.5})," ",e.jsx(n,{as:"span",mb:0,color:"#000",children:"4.5 (867)"})]})]}),e.jsxs(n,{fontSize:12,fontFamily:"Quicksand, sans-serif",fontWeight:600,color:"gray.500",children:["Total Experience",e.jsxs(n,{as:"span",display:"flex",gap:1,alignItems:"center",fontSize:14,color:"#000",fontWeight:700,children:[r.ex_year,"+ Years"]})]})]}),e.jsx(f,{my:2}),e.jsxs(y,{spacing:2,children:[e.jsx(c,{as:"a",href:r.insta_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",icon:e.jsx(w,{}),variant:"ghost",colorScheme:"pink"})," ",e.jsx(c,{as:"a",href:r.fb_linik,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",icon:e.jsx(k,{}),variant:"ghost",colorScheme:"facebook"}),e.jsx(c,{as:"a",href:r.twitter_link,target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter",icon:e.jsx(S,{}),variant:"ghost",colorScheme:"twitter"})," ",e.jsx(c,{as:"a",href:r.you_tube_link,target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",icon:e.jsx(F,{}),variant:"ghost",colorScheme:"red"})]})]})},r.id))})})})]}):null,o?e.jsxs(e.Fragment,{children:[" ",e.jsx(_,{h:"100px",w:"100%",mt:5})]}):null,a.length?null:e.jsxs(e.Fragment,{children:[" ",e.jsxs(n,{fontSize:16,textAlign:"justify",mt:22,color:"gray.800",fontWeight:500,display:"inline-block",children:["We apologize for the inconvenience, but there are no doctors currently available in the"," ",e.jsx(n,{display:"inline-block",fontWeight:600,color:"primary.text",children:s})," department. Please check back later or consider a different department. If you require immediate assistance, our support team is here to help you with any urgent concerns. Thank you for your understanding and patience."]})]}),l?e.jsxs(e.Fragment,{children:[" ",e.jsx(n,{fontSize:{base:12,md:14},fontWeight:400,color:"red",textAlign:"center",children:"Something Went wrong!"}),e.jsx(n,{fontSize:{base:12,md:14},fontWeight:400,color:"red",textAlign:"center",children:"Cant Fetch Doctors!"})]}):null]})})}function L(){const{id:i,name:s}=W(),x=v(),o=async()=>(await j("get_department_active")).data,{isLoading:a,data:l}=p({queryKey:["departments"],queryFn:o});return a?e.jsx(h,{}):e.jsxs(t,{children:[e.jsx(t,{bg:"primary.main",p:4,py:{base:"4",md:"20"},children:e.jsxs(t,{className:"container",children:[e.jsxs(n,{fontSize:{base:28,md:40},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:[s," Department"]}),e.jsxs(n,{fontSize:{base:14,md:22},fontWeight:700,textAlign:"center",mt:0,color:"#fff",children:["Explore a Multifaceted Team of ",e.jsx("br",{}),e.jsxs(n,{as:"span",color:"green.text",fontWeight:800,children:[s," Department"]})]})]})})," ",e.jsx("div",{className:"container",children:e.jsxs(t,{children:[e.jsxs(n,{fontSize:16,textAlign:"center",mt:4,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(d,{mt:5,gap:5,flexDir:{base:"column",md:"row"},children:[e.jsx(t,{w:{base:"100%",md:"70%"},children:e.jsx(R,{deptID:i,deptName:s})}),e.jsxs(t,{w:{base:"100%",md:"30%"},bg:"#fff",borderRadius:8,h:"fit-content",p:4,boxShadow:"2px 2px 20px 0 rgb(82 66 47 / 12%)",children:[e.jsx(n,{fontSize:20,textAlign:"center",fontWeight:500,children:"Explore Other Departments"}),e.jsx(t,{mt:10,children:l.map(r=>e.jsx(t,{w:"100%",mb:5,_hover:{border:"1px solid #0032ff"},transition:"border 0.1s ease",border:"1px solid",borderColor:"gray.200",p:2,borderRadius:4,cursor:"pointer",onClick:()=>{x(`/department/${r.title}/${r.id}`)},children:e.jsxs(d,{gap:5,align:"center",children:[e.jsx(g,{src:`${m}/${r.image}`,w:"50px"}),e.jsx(n,{fontSize:18,textAlign:"center",fontWeight:500,textTransform:"capitalize",children:r.title})]})},r.id))})]})]})]})})]})}export{L as default};