1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DWjCgd99.js","./1d5GO-a5.js","./entry.B6UX6uhr.css","./CxWQqcyX.js","./CJZFa7QM.js","./BSjtgMDc.js","./D_kTyyj_.js","./Cv3jhuxO.js","./ChMY2ALO.js","./DI26JROH.js","./H43L1Up5.js","./CddqZ4xA.js","./C-Vt_iC5.js","./DzGoKxq4.js","./CWln4YmY.js","./1ONEWr3k.js"])))=>i.map(i=>d[i]); 2import{ad as rt,u as H,r as d,v as S,J as it,c as M,t as ct,a8 as pt,C as ut,p as mt,q as _t,b as g,o as c,e as j,h as w,f as t,d as s,g as r,j as m,y as C,i as I,N as h,F as $,z as dt,_,K as F}from"./1d5GO-a5.js";import gt from"./CuycuMSp.js";import{_ as ft}from"./Cv3jhuxO.js";import{u as vt}from"./FABqsRvv.js";import{u as xt}from"./DzGoKxq4.js";import{a as ht,b as Dt,u as yt}from"./H43L1Up5.js";import{s as bt}from"./x_rD_Ya3.js";import"./D80qkuYc.js";import"./CWln4YmY.js";import"./DTog4oOK.js";import"./CddqZ4xA.js";import"./C-Vt_iC5.js";const kt=m(()=>_(()=>import("./DWjCgd99.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>o.default||o)),St=m(()=>_(()=>import("./CxWQqcyX.js"),__vite__mapDeps([3,1,2]),import.meta.url).then(o=>o.default||o)),wt=m(()=>_(()=>import("./CJZFa7QM.js"),__vite__mapDeps([4,1,2]),import.meta.url).then(o=>o.default||o)),Ct=m(()=>_(()=>import("./BSjtgMDc.js"),__vite__mapDeps([5,1,2]),import.meta.url).then(o=>o.default||o)),It=m(()=>_(()=>import("./D_kTyyj_.js"),__vite__mapDeps([6,1,2,7]),import.meta.url).then(o=>o.default||o)),Lt=m(()=>_(()=>import("./ChMY2ALO.js"),__vite__mapDeps([8,1,2,7]),import.meta.url).then(o=>o.default||o)),Pt=m(()=>_(()=>import("./DI26JROH.js").then(o=>o.B),__vite__mapDeps([9,1,2,10,11,12,13,14,15]),import.meta.url).then(o=>o.default||o)),zt=["dir"],At={class:"flex flex-col lg:flex-row mb-5 w-full"},Rt={class:"w-full lg:w-[40%] p-2"},Et={class:"flex p-2 w-full lg:w-[60%] items-center gap-2"},Tt={class:"flex w-[100%] lg:w-[65%]"},Nt={class:"text-sm lg:text-[16px] text-black-500"},Bt={class:"hidden lg:flex lg:w-[35%] justify-end"},Ot={class:"w-full flex flex-col lg:flex-row gap-3"},Vt={class:"w-[410px] mx-auto rounded-2xl overflow-hidden bg-green-200 h-[430px] relative group"},Ht=["src"],Mt={key:1,src:ft,alt:"",class:"h-full object-cover"},jt={class:"w-full h-64 bg-gradient-to-t from-[#49604C] to-transparent absolute bottom-[-60px] justify-end z-10 flex flex-col gap-3 items-center p-3 group-hover:bottom-0 transition-all duration-500 ease-in-out"},$t={class:"text-lg lg:text-[20px] text-black-100 font-bold"},Ft={class:"text-sm lg:text-lg text-black-100 font-semibold"},Ut=300,Gt=2e3,Yt={__name:"MainDoctorsSection",setup(o){const{t:l}=H(),L=vt(),v=d(!1),p=d({}),P=d(""),z=d(null),A=d([]),{allDoctorsResults:n,isDoctorsSearching:x,searchText:Wt}=S(L),R=xt(),U=it(),G=M(()=>U.selectedCountry),{currentDoctorsPage:qt}=S(R),{handleBookingSubmit:Y,handleBookingSuccess:W,handleBookingError:q}=ht(P,z),J=Dt(),{isServerDownError:K}=ct(),Q=pt(),{doctorsSectionContent:D}=S(Q);L.searchDoctors({PageSize:6,DoctorName:""});const X=yt(),Z=M(()=>n.value.slice(1)),E=()=>{F(T("doctors"))},T=ut(),{locale:f}=H(),y=i=>{F(T({path:`/doctors/${i}`}))},N=async i=>{p.value={},P.value=i;try{const e=await J.fetchDoctorDetails({DOCTORID:i,CONSULTATIONTYPE:1,COUNTDAYS:7,COUNTRYID:G.value?.id});e&&(X.setDorctorData(e),p.value=e,A.value=[{id:1,icon:"Appointment",title:l("booking.avaAppoint"),subtitle:l("booking.chooseSlot"),componentPath:"Doctors/Tabs/TabsAppointments",componentProps:p.value.Hospitals},{id:2,icon:"PersonalData",title:l("booking.personalData"),subtitle:l("booking.eterData"),componentPath:"Doctors/Tabs/BookingPersonalData"},{id:3,icon:"Confirmation",title:l("booking.confirm"),subtitle:l("booking.succBook"),componentPath:"Doctors/Tabs/BookingResponse",componentProps:z.value}],v.value=!0)}catch(e){console.error("Error fetching doctor details:",e),K(e)&&(e.isServerDown=!0)}},u=d(null);let B=null;const O=()=>{u.value&&(B=bt(()=>{u.value.scrollLeft+u.value.clientWidth>=u.value.scrollWidth?u.value.scrollLeft=0:u.value.scrollLeft+=Ut},Gt))},V=()=>{clearInterval(B)};return mt(()=>{x.value=!0,R.fetchDoctors({PageSize:7,Page:1,DoctorName:"",IsRandom:!0}).then(i=>{Array.isArray(i)&&n.value.push(...i),x.value=!1}).finally(()=>{x.value=!1}),O()}),_t(()=>{V()}),(i,e)=>{const tt=gt,ot=kt,b=St,k=wt,et=Ct,at=It,st=Lt,nt=Pt;return c(),g($,null,[t(x)&&!t(n).length?(c(),j(tt,{key:0,class:"py-8"})):w("",!0),t(n)&&t(n).length?(c(),g("div",{key:1,class:"bg-black-100 flex flex-col justify-center lg:p-20 overflow-hidden p-5 relative w-full lg:pt-0",dir:t(f)==="ar"?"rtl":"ltr"},[s("div",At,[s("div",Rt,[r(ot,{class:"font-extrabold mt-10 lg:mt-0",tag:t(D)?.tag,title:t(D)?.title,tagClass:"line-clamp-1 max-w-[330px] lg:max-w-[410px]",titleClass:"text-[20px] lg:text-[32px] leading-[165%] lg:leading-[150%] line-clamp-1 max-w-[330px] lg:max-w-[410px]"}
2,null,8,["tag","title"])]),s("div",Et,[s("div",Tt,[s("p",Nt,C(t(D)?.short_description),1)]),s("div",Bt,[r(k,{class:"mt-auto !gap-x-0 capitalize !pt-[10px] !pb-[10px] shrink-0",text:t(l)("doctors.viewAll"),onClick:E},{"icon-right":I(()=>[r(b,{class:h(["stroke-0",{"rotate-180":t(f)=="ar"}])},null,8,["class"])]),_:1},8,["text"])])])]),s("div",Ot,[s("div",{class:h(["w-full lg:w-1/3 flex animate__animated",t(f)=="ar"?"animate__slideInRight":"animate__slideInLeft"])},[s("div",Vt,[t(n)[0].Logo?(c(),g("img",{key:0,src:t(n)[0].Logo,alt:"",class:"h-full object-cover"},null,8,Ht)):(c(),g("img",Mt)),s("div",jt,[s("p",$t,C(t(n)[0].DoctorName),1),s("p",Ft,C(t(n)[0].SpecialtyName),1),r(k,{class:"mt-0 !gap-x-0 capitalize !pt-[10px] !pb-[10px] w-full",text:t(l)("doctors.bookAppointment"),onClick:e[0]||(e[0]=a=>N(t(n)[0].DoctorID))},{"icon-right":I(()=>[r(b,{class:h(["stroke-0",{"rotate-180":t(f)=="ar"}])},null,8,["class"])]),_:1},8,["text"]),r(et,{class:"mt-0 !gap-x-0 capitalize !pt-[10px] !pb-[10px] w-full",text:t(l)("doctors.viewProfile"),onClick:e[1]||(e[1]=a=>y(t(n)[0].DoctorID))},null,8,["text"])])])],2),s("div",{class:h(["w-full lg:w-2/3 bg-green-100 rounded-2xl p-3 pb-5 flex animate__animated",t(f)=="ar"?"animate__slideInLeft":"animate__slideInRight"])},[s("div",{ref_key:"scrollContainer",ref:u,class:"overflow-x-auto w-full flex gap-3 no-arrows-scroll pb-5",onMouseenter:V,onMouseleave:O},[(c(!0),g($,null,dt(t(Z),(a,lt)=>(c(),g("div",{class:"group min-w-[300px] h-[367px] overflow-hidden relative",key:lt},[r(at,{name:a.DoctorName,locations:a.Hospitals,image:a.Logo,speciality:a.SpecialtyName,onClick:Jt=>y(a.DoctorID)},null,8,["name","locations","image","speciality","onClick"]),r(st,{class:"!absolute inset-0 transform translate-y-full transition-transform duration-500 ease-in-out group-hover:translate-y-[0px] hidden lg:block",name:a.DoctorName,locations:a.Hospitals,speciality:a.SpecialtyName,image:a.Logo,level:a.SupervisorLevelName,doctorId:a.DoctorID,onBookNow:N,onViewProfile:y},null,8,["name","locations","speciality","image","level","doctorId"])]))),128))],544)],2),t(v)?(c(),j(nt,{key:0,"initial-is-open":t(v),"booking-type":"doctor","has-schedule":"false","modal-data":t(p),image:t(p)?.DefaultImagesModel?.ImagePath,name:t(p)?.Name,"sub-title":t(p)?.Role,"total-wizard-steps":4,"steps-configuration":t(A),onReservationSuccess:t(W),onReservationError:t(q),onCloseModal:e[2]||(e[2]=a=>v.value=!1),onHandleBookingSubmit:t(Y)},null,8,["initial-is-open","modal-data","image","name","sub-title","steps-configuration","onReservationSuccess","onReservationError","onHandleBookingSubmit"])):w("",!0),r(k,{class:"mt-auto !gap-x-0 capitalize !pt-[10px] !pb-[10px] shrink-0 block lg:hidden mx-auto w-full",text:t(l)("doctors.viewAll"),onClick:E},{"icon-right":I(()=>[r(b,{class:"stroke-0"})]),_:1},8,["text"])])],8,zt)):w("",!0)],64)}}},io=rt(Yt,[["__scopeId","data-v-ecf77a25"]]);export{io as default};
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.