PageSourceSearch

https://royalehayat.com/assets/Doctors-BolBr0jo.js

js royalehayat.com collected 2026-10-05 01:21:55 UTC 24,433 bytes, 1 lines download raw bytes

1import{r as t,j as e,m as J}from"./vendor-motion-BmwQ0O-B.js";import{e as _,q as X,K as ee,k as re,r as te,Z as ae,_ as oe,u as ne,b as se,$ as ie,a0 as ce,a1 as le,a2 as de,a3 as me,a4 as ue,a5 as pe,a6 as ge,a7 as fe,H as he,L as xe,p as ye,F as ve,S as be,s as we}from"./index-BfPszimO.js";import{f as je,m as Ne,c as Se,M as Ce}from"./mapApiDepartment-B8GaRT61.js";import{I as De}from"./input-CrJ5bJsg.js";import{g as Ae,s as ke,a as Te,b as Re}from"./doctorCarousel-DHFD7VsL.js";import{f as Ee}from"./doctorSearch-Di1v7fdc.js";import"./vendor-query-vtQSYRk7.js";import"./i18n-en-B-p5tc60.js";const q={"Obstetrics & Gynecology":{en:"Complete maternity care from prenatal through postpartum recovery. Our team provides expert guidance for high-risk pregnancies, minimally invasive gynecological procedures, and comprehensive family planning services.",ar:"رعاية شاملة للأم خلال جميع مراحل الحمل، من المتابعة قبل الولادة وحتى التعافي بعد الولادة. يقدم فريقنا الطبي رعاية متخصصة للحمل عالي الخطورة، وإجراءات أمراض النساء طفيفة التوغل، بالإضافة إلى خدمات شاملة لتنظيم الأسرة."},Neonatal:{en:"Dedicated care for newborns requiring specialized medical attention. Our neonatal unit provides advanced life support, developmental care, and family-centered services for premature and critically ill infants.",ar:"رعاية متخصصة ومتكاملة لحديثي الولادة الذين يحتاجون إلى عناية طبية دقيقة. يوفر قسم حديثي الولادة لدينا دعمًا متقدمًا لإنقاذ الحياة، ورعاية لنمو وتطور الطفل، إلى جانب خدمات تركز على الأسرة لضمان أفضل رعاية للرضع الخدّج والحالات الحرجة."},Pediatrics:{en:"World-class pediatric care with warmth and a child-centered approach. From routine wellness visits to specialized treatments, our pediatricians ensure every child receives compassionate, evidence-based medical attention.",ar:"رعاية أطفال على مستوى عالمي تجمع بين الدفء الإنساني والنهج المتمحورة حول الطفل. من الزيارات الدورية والفحوصات الوقائية إلى العلاجات التخصصية، يحرص أطباؤنا على تقديم رعاية طبية شاملة ومبنية على الأدلة، تضمن حصول كل طفل على اهتمام طبي متعاطف وعالي الجودة في بيئة آمنة وداعمة."},"General & Laparoscopic Surgery":{en:"Exceptional surgical care combining precision, safety, and rapid recovery. Our surgeons perform a wide range of minimally invasive and laparoscopic procedures, including bariatric surgery, hernia repair, and oncological operations.",ar:"رعاية جراحية متميزة تجمع بين الدقة العالية، ومعايير الأمان، وسرعة التعافي. يقدم جراحونا مجموعة واسعة من الإجراءات الجراحية طفيفة التوغل وجراحات المنظار، بما في ذلك جراحات السمنة، وإصلاح الفتق، وجراحات الأورام، وذلك باستخدام أحدث التقنيات الطبية لضمان أفضل النتائج للمرضى."},"Internal Medicine":{en:"Comprehensive diagnosis and treatment of complex adult diseases. Our internists specialize in managing chronic conditions, preventive health screenings, and coordinating multidisciplinary care for optimal patient outcomes.",ar:"تشخيص وعلاج شامل لأمراض البالغين المعقدة. يتخصص أطباؤنا في إدارة الحالات المزمنة والفحوصات الوقائية وتنسيق الرعاية متعددة التخصصات لتحقيق أفضل النتائج."},Nutricare:{en:"Personalized clinical nutrition and dietetic services for all ages. Our registered dietitians provide medical nutrition therapy for chronic diseases, weight management, pre/post bariatric surgery diets, and pregnancy nutrition.",ar:"خدمات تغذية علاجية وحمية مخصصة لجميع الفئات العمرية. يقدم أخصائيو التغذية المعتمدون لدينا علاجًا غذائيًا طبيًا للحالات المزمنة، وإدارة الوزن، وخططًا غذائية قبل وبعد جراحات السمنة، بالإضافة إلى التغذية خلال فترة الحمل، وذلك وفق أعلى المعايير الطبية لدعم الصحة العامة وتحسين جودة الحياة."}
1,"Family Medicine":{en:"Continuous, personalized care for individuals and families of all ages. Our family physicians build lasting relationships with patients, managing everything from routine check-ups to chronic disease management.",ar:"رعاية مستمرة ومخصصة للأفراد والعائلات من جميع الأعمار. يبني أطباء الأسرة لدينا علاقات دائمة مع المرضى ويديرون كل شيء من الفحوصات الروتينية إلى إدارة الأمراض المزمنة."},"ENT (Ear, Nose & Throat)":{en:"Expert care for conditions affecting the ear, nose, throat, head, and neck. Our ENT specialists provide surgical and non-surgical treatments for hearing disorders, sinus conditions, voice disorders, and head & neck tumors.",ar:"رعاية طبية متخصصة لحالات الأذن والأنف والحنجرة والرأس والرقبة. يقدم أخصائيو الأنف والأذن والحنجرة لدينا علاجات جراحية وغير جراحية لمشكلات السمع، واضطرابات الجيوب الأنفية، واضطرابات الصوت، وأورام الرأس والرقبة، باستخدام أحدث التقنيات الطبية لضمان أفضل النتائج للمرضى."},"Plastic Surgery & Cosmetology":{en:"Advanced cosmetic and reconstructive surgery in a luxurious clinical setting. Our board-certified surgeons combine artistry with precision for body contouring, facial rejuvenation, rhinoplasty, and non-surgical aesthetic treatments.",ar:"جراحة تجميلية وترميمية متقدمة في بيئة سريرية فاخرة. يجمع جراحونا المعتمدون بين الفن والدقة لنحت الجسم وتجديد الوجه وتجميل الأنف والعلاجات التجميلية غير الجراحية."},"Reproductive Medicine & IVF":{en:"At Royale Hayat Hospital, we blend expertise with cutting-edge technology to offer the most advanced infertility treatments. Our dedicated team of physicians, counselors, and specialists ensures high-quality, compassionate care in a luxurious setting.",ar:"في مستشفى رويال حياة، نجمع بين الخبرة الطبية والتقنيات الحديثة المتقدمة لتقديم أحدث علاجات تأخر الإنجاب، ضمن بيئة علاجية راقية وفريق متخصص من الأطباء والاستشاريين والمرشدين لضمان رعاية طبية وإنسانية عالية الجودة."},Dermatology:{en:"Expert care for all dermatological needs for adults and children. Our dermatologists offer advanced treatments for skin conditions, cosmetic procedures, and laser therapies using the latest diagnostic technologies.",ar:"رعاية متخصصة لجميع احتياجات الأمراض الجلدية للبالغين والأطفال. يقدم أطباء الجلدية لدينا علاجات متقدمة للأمراض الجلدية والإجراءات التجميلية والعلاج بالليزر باستخدام أحدث التقنيات."},"Dental Clinic":{en:"Exceptional dental care in a luxurious setting using advanced technology. From pediatric dentistry and endodontics to prosthodontics, cosmetic smile makeovers, and periodontal treatments.",ar:"رعاية متقدمة لصحة الفم والأسنان ضمن بيئة فاخرة وباستخدام أحدث التقنيات الطبية. نقدم مجموعة شاملة من خدمات طب الأسنان، تشمل طب أسنان الأطفال، وعلاج جذور الأسنان، وتركيبات الأسنان، وتجميل الابتسامة، وعلاج أمراض اللثة، لضمان ابتسامة صحية وجميلة بأعلى معايير الجودة والرعاية."},Anesthesia:{en:"Top-tier anesthesia services ensuring patient safety and comfort. Our anesthesiologists provide pre-operative assessments, pain-free surgical experiences, and post-operative pain management using modern monitoring equipment.",ar:"نقدّم خدمات تخدير متقدمة على أعلى مستوى لضمان سلامة المريض وراحته قبل وأثناء وبعد العمليات الجراحية. يقوم أطباء التخدير لدينا بإجراء تقييمات ما قبل العملية، وتوفير تجربة جراحية خالية من الألم، بالإضافة إلى إدارة فعّالة للألم بعد العمليات باستخدام أحدث تقنيات وأجهزة المراقبة الطبية."},"Laboratory Services":{en:"Comprehensive clinical laboratory and pathology services with rapid, accurate diagnostic testing. Our team includes histopathologists, microbiologists, and hematologists performing specialized analyses.",ar:"خدمات متكاملة للمختبرات الطبية وعلم الأمراض، مع فحوصات تشخيصية دقيقة وسريعة وفق أعلى المعايير الطبية. يضم فريقنا نخبة من اخصائيي علم الأمراض النسيجية، والأحياء الدقيقة، وأمراض الدم، لتقديم تحاليل متخصصة تدعم التشخيص الدقيق وخطط العلاج الفعّالة."},"Center for Diagnostic Imaging":{en:"State-of-the-art diagnostic imaging services including MRI, CT, ultrasound, and interventional radiology. Our radiologists provide accurate, timely interpretations to support clinical decision-making across all departments.",ar:"خدمات متقدمة للتصوير التشخيصي باستخدام أحدث التقنيات الطبية، تشمل التصوير بالرنين المغناطيسي (MRI)، والأشعة المقطعية (CT)، والموجات فوق الصوتية، والأشعة التداخلية. يقدّم أخصائيو الأشعة لدينا تقارير دقيقة وسريعة لدعم التشخيص واتخاذ القرارات العلاجية في مختلف التخصصات الطبية."},"Royale Hayat Pharmacy":{en:"Full-service hospital pharmacy offering prescription medications, patient counseling, and medication safety. Our pharmacists ensure accurate dispensing and provide expert guidance on medication use and interactions.",ar:"صيدلية متكاملة داخل المستشفى توفر الأدوية الموصوفة، والاستشارات الدوائية، وخدمات تعزيز سلامة اØ
1³ØªØ®Ø¯Ø§Ù… الأدوية. يحرص فريق الصيادلة لدينا على صرف الأدوية بدقة عالية، مع تقديم إرشادات متخصصة حول طريقة الاستخدام والتداخلات الدوائية لضمان أفضل النتائج العلاجية للمرضى."},"Clinical Pharmacy":{en:"Patient-focused pharmaceutical care ensuring safe and effective medication use. Our clinical pharmacists collaborate with medical teams to optimize drug therapy, prevent interactions, and provide medication counseling.",ar:"رعاية دوائية متخصصة تتمحور حول سلامة المريض وفعالية العلاج. يعمل الصيادلة الإكلينيكيون لدينا بالتعاون مع الفرق الطبية لتحسين الخطط الدوائية، والحد من التداخلات والمضاعفات الدوائية، إلى جانب تقديم التوعية والإرشادات اللازمة لضمان الاستخدام الآمن والفعّال للأدوية."}},Oe={Pediatric:"Pediatrics","General Surgery":"General & Laparoscopic Surgery","La Cosmetique":"Plastic Surgery & Cosmetology",Dental:"Dental Clinic",Pharmacy:"Royale Hayat Pharmacy",Radiology:"Center for Diagnostic Imaging",Laboratory:"Laboratory Services",Nutricare:"Nutricare"};function H(o){const f=o.trim();if(!f)return null;if(q[f])return q[f];const l=Oe[f];return l&&q[l]?q[l]:null}const M=t.memo(({doc:o,onDoctorClick:f})=>{const{lang:l}=_(),i=l==="ar",u=X(o,l);return e.jsx(ee,{to:`/doctors/${o.id}`,"data-doctor-carousel-card":!0,"data-doctor-id":o.id,dir:i?"rtl":"ltr",className:"relative z-0 block w-[280px] min-h-[430px] flex-shrink-0 snap-center hover:z-10 md:snap-start",onClick:A=>{A.preventDefault(),f(o)},children:e.jsxs(J.div,{whileHover:{y:-6,boxShadow:"0 20px 40px -12px hsl(var(--primary) / 0.12)"},className:"bg-popover rounded-2xl border border-border/50 group cursor-pointer w-full h-full flex flex-col transition-all duration-300",children:[e.jsxs("div",{className:"bg-white h-64 flex items-center justify-center relative overflow-hidden shrink-0 rounded-t-2xl",children:[o.image?e.jsx("img",{src:o.image,alt:u,className:"w-full h-full object-cover object-top"}):e.jsx("div",{className:"w-20 h-20 rounded-full bg-popover/20 backdrop-blur-sm flex items-center justify-center border-2 border-popover/30",children:e.jsx("span",{className:"text-2xl font-serif text-primary-foreground",children:o.initials})}),e.jsx("div",{className:`absolute top-3 w-7 h-7 rounded-full bg-popover/20 backdrop-blur-sm flex items-center justify-center ${i?"left-3":"right-3"}`,children:e.jsx(re,{className:"w-3.5 h-3.5 text-primary-foreground"})})]}),e.jsxs("div",{className:"p-5 flex flex-col flex-grow text-start items-start",children:[e.jsx("p",{className:`text-accent text-[10px] tracking-[0.2em] font-body mb-1.5 w-full ${i?"":"uppercase"}`,children:i?o.departmentAr||o.specialtyAr:o.department||o.specialty}),e.jsx("h3",{className:"text-[1.2rem] font-serif font-bold text-foreground mb-1 w-full",children:u}),e.jsx("p",{className:"text-muted-foreground font-body text-xs mb-3 w-full",children:i?o.titleAr:o.title}),te(o)&&e.jsxs("div",{className:"flex items-center gap-1.5 mb-2 w-full text-green-600",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-green-500"}),e.jsx("span",{className:"font-body text-[10px]",children:o.availableOnline!==!1?i?"للحجز أونلاين":"Book Online":i?"طلب موعد":"Appointment Request"})]}),e.jsx("span",{className:"inline-flex items-center gap-1.5 text-primary font-body text-xs tracking-wide group-hover:text-accent transition-colors",children:i?"عرض الملف الشخصي ←":"View Profile →"})]})]})})});M.displayName="DoctorCard";const U=t.memo(({department:o,departmentAr:f,docs:l,deptMeta:i,restoreDoctorId:u,onDoctorClick:A})=>{const{lang:g}=_(),k=t.useRef(null),j=t.useRef(!1),L=t.useRef(null);t.useEffect(()=>{if(u&&l.some(n=>n.id===u)){L.current=u,j.current=!1;return}u||(L.current=null)},[u,l]);const[N,B]=t.useState(!1),[T,G]=t.useState(!1),p=t.useCallback(()=>{const n=k.current;if(!n)return;const{canScrollLeft:c,canScrollRight:x}
1=Ae(n);B(c),G(x)},[]);t.useEffect(()=>{const n=k.current;if(!n)return;const c=()=>{window.requestAnimationFrame(p)},x=()=>{const y=L.current;if(y&&l.some($=>$.id===y)){Te(n,y),j.current=!0;return}j.current||(Re(n),j.current=!0)};c(),requestAnimationFrame(()=>{x(),c()});const F=[window.setTimeout(()=>{x(),c()},150),window.setTimeout(()=>{x(),c()},500),window.setTimeout(()=>{x(),c()},900),window.setTimeout(c,1200)],w=new ResizeObserver(c);return w.observe(n),Array.from(n.children).forEach(y=>w.observe(y)),n.addEventListener("scroll",p,{passive:!0}),n.addEventListener("load",c,!0),window.addEventListener("resize",c),()=>{F.forEach(y=>window.clearTimeout(y)),w.disconnect(),n.removeEventListener("scroll",p),n.removeEventListener("load",c,!0),window.removeEventListener("resize",c)}},[l,g,p,u]);const z=t.useCallback(n=>{const c=k.current;c&&ke(c,n).finally(()=>{p(),window.requestAnimationFrame(p)})},[p]),h=H(o),S={en:(i==null?void 0:i.doctorTagline)||(h==null?void 0:h.en)||"",ar:(i==null?void 0:i.doctorTaglineArabic)||(h==null?void 0:h.ar)||""},m=S.en||S.ar?S:void 0,I=g==="ar";return e.jsxs("div",{className:"mb-14",children:[e.jsxs("div",{className:"max-w-[1192px] mx-auto mb-6",children:[e.jsx("h3",{className:`text-2xl font-serif font-bold text-foreground mb-3 ${I?"text-right":""}`,children:I&&(f||(i==null?void 0:i.nameAr))||o}),m&&e.jsx("div",{className:"bg-popover border border-border/50 rounded-2xl p-4 md:p-5 shadow-sm",children:e.jsx("p",{dir:g==="ar"?"rtl":"ltr",className:`text-muted-foreground font-body text-base leading-relaxed ${g==="ar"?"text-right":""}`,children:g==="ar"?m.ar:m.en})})]}),e.jsxs("div",{className:"relative isolate",dir:"ltr",children:[e.jsx("button",{type:"button","aria-label":g==="ar"?"التمرير لليسار":"Scroll left","aria-hidden":!N,tabIndex:N?0:-1,onClick:()=>z("left"),className:`absolute left-0 sm:-left-4 top-1/2 -translate-y-1/2 z-50 w-10 h-10 rounded-full border border-border bg-background/90 backdrop-blur-sm flex items-center justify-center text-foreground transition-opacity shadow-md ltr-icon touch-manipulation ${N?"opacity-100 pointer-events-auto hover:bg-primary hover:text-primary-foreground hover:border-primary":"opacity-0 pointer-events-none"}`,children:e.jsx(ae,{className:"w-5 h-5 pointer-events-none"})}),e.jsx("button",{type:"button","aria-label":g==="ar"?"التمرير لليمين":"Scroll right","aria-hidden":!T,tabIndex:T?0:-1,onClick:()=>z("right"),className:`absolute right-0 sm:-right-4 top-1/2 -translate-y-1/2 z-50 w-10 h-10 rounded-full border border-border bg-background/90 backdrop-blur-sm flex items-center justify-center text-foreground transition-opacity shadow-md ltr-icon touch-manipulation ${T?"opacity-100 pointer-events-auto hover:bg-primary hover:text-primary-foreground hover:border-primary":"opacity-0 pointer-events-none"}`,children:e.jsx(oe,{className:"w-5 h-5 pointer-events-none"})}),e.jsx("div",{className:"relative z-0 max-w-[1192px] mx-auto overflow-hidden",children:e.jsx("div",{ref:k,dir:I?"rtl":"ltr",className:"doctors-carousel-track flex w-full items-stretch gap-4 overflow-x-auto pb-8 snap-x snap-mandatory max-md:scroll-px-[calc(50%-140px)] max-md:px-[calc(50%-140px)] md:gap-6 md:px-0 md:scroll-px-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden [-webkit-overflow-scrolling:touch]",children:l.map(n=>e.jsx(M,{doc:n,onDoctorClick:A},`${o}-${n.id}`))},g)})]})]})});U.displayName="DepartmentRow";const Ge=()=>{const o=ne(),f=se(),[l,i]=t.useState(""),[u,A]=t.useState([]),[g,k]=t.useState(!0),[j,L]=t.useState(""),[N,B]=t.useState({}),[T,G]=t.useState({}),[p,z]=t.useState(null),h=t.useRef(null),S=t.useRef(!1),{lang:m,t:I}=_();t.useEffect(()=>{const r=ie(f.state);r!=null&&r.doctorId&&(h.current=r.scrollY,z(r.doctorId),S.current=!1,r.searchQuery&&i(r.searchQuery),ce())},[f.key,f.state]);const n=t.useCallback(r=>{const a=le(r,l);de(a),o(`/doctors/${r.id}`,{state:a})},[o,l]);t.useEffect(()=>{if(!p||g||S.current)return;const r=p,a=h.current??0,s=()=>{const d=document.querySelector(`[data-doctor-id="${r}"]`);if(d){d.scrollIntoView({block:"center",behavior:"auto"});return}a>0&&window.scrollTo({top:a,left:0,behavior:"auto"})};s();const C=window.requestAnimationFrame(s),v=[150,500,900].map(d=>window.setTimeout(s,d)),R=window.setTimeout(()=>{S.current=!0},950);return()=>{window.cancelAnimationFrame(C),v.forEach(d=>window.clearTimeout(d)),window.clearTimeout(R)}},[p,g]),t.useEffect(()=>{let r=!1;return(async()=>{try{const[a,s]=await Promise.all([me(),je({isActive:!0})]);if(r)return;A(a);const C=Ne(s),v={},R={};
1C.forEach((d,Y)=>{const b=s.find(D=>String(D.name??"").trim()===d.name),Q=String((b==null?void 0:b._id)??"").trim();Q&&(R[Q]={name:d.name,nameAr:d.nameAr});const W=String((b==null?void 0:b.doctorTagline)??"").trim(),K=String((b==null?void 0:b.doctorTaglineArabic)??"").trim(),E=H(d.name),P={nameAr:d.nameAr,doctorTagline:W||(E==null?void 0:E.en)||"",doctorTaglineArabic:K||(E==null?void 0:E.ar)||"",mainCategory:d.mainCategory,order:d.order??Y};v[d.name]=P;const Z=ue[d.name]??[];for(const D of Z){if(v[D])continue;const O=H(D);v[D]={...P,nameAr:D===d.name?P.nameAr:pe[D]??"",doctorTagline:(O==null?void 0:O.en)||P.doctorTagline,doctorTaglineArabic:(O==null?void 0:O.ar)||P.doctorTaglineArabic}}}),B(v),G(R)}catch{r||(A([]),L("Failed to load doctors."))}finally{r||k(!1)}})(),()=>{r=!0}},[]);const c=t.useMemo(()=>{const r={};return Object.entries(N).forEach(([a,s])=>{s.mainCategory&&(r[a]=s.mainCategory)}),r},[N]),x=t.useCallback(r=>c[r]?c[r]:"Clinical Speciality",[c]),F=t.useMemo(()=>ge(u,T),[u,T]),w=t.useMemo(()=>{const r=l.trim();return r?fe(Ee(u,r),m):[]},[u,l,m]),y=l.trim().length>0,$=t.useMemo(()=>{const r=(a,s)=>we(s,a,m);return Object.entries(F).filter(([,a])=>Array.isArray(a)&&a.length>0).map(([a,s])=>[a,r(a,s)]).sort(([a],[s])=>Se(a,s,m))},[F,m]),V=t.useMemo(()=>{const r={"Clinical Speciality":[],"Clinical Support Service":[],"Home Care Service":[]};return $.forEach(a=>{const s=x(a[0]);r[s].push(a)}),r},[$,x]);return e.jsxs("div",{className:"min-h-screen bg-background pt-[var(--header-height,56px)]",children:[e.jsx(he,{}),e.jsx("section",{className:"py-16 md:py-24",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[j&&!g&&e.jsx("p",{className:"text-center text-muted-foreground font-body mb-8",children:j}),g&&e.jsxs("div",{className:"flex min-h-[30vh] items-center justify-center text-muted-foreground mb-8",children:[e.jsx(xe,{className:"h-8 w-8 animate-spin text-primary","aria-hidden":!0}),e.jsx("span",{className:"sr-only",children:"Loading doctors..."})]}),e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("p",{className:"text-accent text-xs tracking-[0.3em] uppercase font-body mb-4",children:m==="ar"?"فريقنا الطبي":"Our Medical Team"}),e.jsx("h1",{className:"text-3xl md:text-5xl font-serif text-foreground mb-4",children:m==="ar"?"تعرف على أطبائنا":"Meet Our Doctors"}),e.jsx("p",{className:"text-muted-foreground font-body max-w-lg mx-auto text-sm md:text-base",children:m==="ar"?"ابحث عن الطبيب المناسب حسب الأعراض أو التخصص الطبي الذي تحتاجه":"Find the right doctor by symptom or specialty"})]}),e.jsx("div",{className:"max-w-2xl mx-auto mb-14",children:e.jsxs("div",{className:"relative",children:[e.jsx(ye,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),e.jsx(De,{value:l,onChange:r=>i(r.target.value),placeholder:I("searchDoctorDepartment"),className:"pl-12 pr-4 py-6 text-base rounded-2xl border-border/60 bg-popover shadow-sm focus:ring-primary"})]})}),y?e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-serif text-foreground mb-6",children:m==="ar"?`نتائج البحث (${w.length})`:`Search Results (${w.length})`}),w.length>0?e.jsx("div",{dir:m==="ar"?"rtl":"ltr",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
15",children:w.map(r=>e.jsx("div",{className:"min-w-0 max-w-none",children:e.jsx(M,{doc:r,onDoctorClick:n})},r.id))}):e.jsx("p",{className:"text-muted-foreground text-center py-12 font-body",children:m==="ar"?"لم يتم العثور على نتائج. حاول بكلمات مختلفة.":"No results found. Try different keywords."})]}):e.jsx("div",{className:"space-y-16",children:Ce.map(r=>{const a=V[r.key];return!a||a.length===0?null:e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[e.jsx("div",{className:"h-px flex-1 bg-border/50"}),e.jsx("h2",{className:"text-base md:text-lg font-body font-bold tracking-[0.2em] md:tracking-[0.25em] uppercase text-accent whitespace-nowrap px-1",children:m==="ar"?r.labelAr:r.label}),e.jsx("div",{className:"h-px flex-1 bg-border/50"})]}),a.map(([s,C])=>{var v;return e.jsx(U,{department:s,departmentAr:((v=C[0])==null?void 0:v.departmentAr)||s,docs:C,deptMeta:N[s],restoreDoctorId:p&&C.some(R=>R.id===p)?p:null,onDoctorClick:n},s)})]},r.key)})})]})}),e.jsx(ve,{}),e.jsx(be,{})]})};export{Ge 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.