(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20924,e=>{"use strict";e.s(["default",()=>d],20924);var t=e.i(43476),s=e.i(57688),l=e.i(31026),r=e.i(87316);let i=(0,e.i(75254).default)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);var a=e.i(22016),n=e.i(40141);function c(e){return(0,n.GenIcon)({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3.1 11.3l3.6 3.3-1 4.6c-.1.6.1 1.2.6 1.5.2.2.5.3.8.3.2 0 .4 0 .6-.1 0 0 .1 0 .1-.1l4.1-2.3 4.1 2.3s.1 0 .1.1c.5.2 1.1.2 1.5-.1.5-.3.7-.9.6-1.5l-1-4.6c.4-.3 1-.9 1.6-1.5l1.9-1.7.1-.1c.4-.4.5-1 .3-1.5s-.6-.9-1.2-1h-.1l-4.7-.5-1.9-4.3s0-.1-.1-.1c-.1-.7-.6-1-1.1-1-.5 0-1 .3-1.3.8 0 0 0 .1-.1.1l-1.9 4.3-4.7.5h-.1c-.5.1-1 .5-1.2 1-.1.6 0 1.2.4 1.6z"},child:[]}]})(e)}let o=e=>{let{value:l,iconSrc:r,isArabic:i}=e;return(0,t.jsx)("span",{className:"inline-flex items-center",children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{src:r,alt:"currency",width:12,height:12,className:"inline-block mr-1"}),(0,t.jsx)("span",{children:l})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:l}),(0,t.jsx)(s.default,{src:r,alt:"currency",width:12,height:12,className:"inline-block ml-1"})]})})},d=e=>{var n,d,x,m,h,u,f,g,p;let{doctor:j,isArabic:b}=e,v=(null==(d=j.booking_prices)||null==(n=d[0])?void 0:n.price)||"0",w=(null==(m=j.booking_prices)||null==(x=m[0])?void 0:x.original_price)||"0",y=(null==(h=j.shop)?void 0:h.name)||(b?"طبيب مستقل":"Independent Doctor"),N=(null==(u=j.specialization)?void 0:u.name)||(b?"غير محدد":"Unknown"),k=(null==(f=j.shop)?void 0:f.average_rating)||"4.5",z=j.profile_image||(null==(g=j.images)?void 0:g.profile)||(null==(p=j.images)?void 0:p.identity)||"/doctor.jpg";return(0,t.jsxs)("div",{className:"w-full h-full border border-gray-200 rounded-2xl p-4 md:p-5 shadow-sm hover:shadow-lg transition-all bg-white flex flex-col justify-between mx-auto",children:[" ",(0,t.jsxs)("div",{className:"flex items-start gap-3 mb-4 ".concat(b?"flex-row-reverse ltr":""),children:[(0,t.jsx)("div",{className:"relative w-16 h-16 flex-shrink-0",children:(0,t.jsx)(s.default,{src:z,alt:j.name||(b?"صورة الطبيب":"Doctor Image"),fill:!0,className:"rounded-xl object-cover border border-gray-200",sizes:"(max-width: 768px) 64px, 64px"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-1 ".concat(b?"flex-row-reverse":""),children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-gray-800 truncate max-w-[160px]",children:j.name}),(0,t.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1",children:[(0,t.jsx)(c,{size:18,fill:"#fbbf24",stroke:"#f59e0b"}),(0,t.jsx)("span",{className:"text-sm text-blue-700 font-medium",children:k})]})]}),(0,t.jsx)("p",{className:"text-sm px-3 py-1.5 rounded-full bg-blue-50 text-[#2F537D] w-fit mb-2 ".concat(b?"ml-auto text-right":""),children:N}),(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-3 truncate ".concat(b?"text-right":""),children:y}),(0,t.jsxs)("p",{className:"text-sm font-medium text-[#2F537D] ".concat(b?"text-right":""),children:[(0,t.jsx)(o,{value:v,iconSrc:"/icons/sar 1.png",isArabic:b})," ",(0,t.jsx)("span",{className:"text-gray-400 line-through text-xs mx-1",children:(0,t.jsx)(o,{value:w,iconSrc:"/icons/sar 2.png",isArabic:b})}),b?": سعر الحجز":"Price:"," "]})]})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2 ".concat(b?"flex-row-reverse ltr":""),children:[(0,t.jsx)("button",{className:"bg-[#2F537D] flex justify-center items-center gap-2 text-white px-4 py-2 rounded-lg text-sm w-[87%] cursor-pointer hover:bg-[#3c659a] transition",children:(0,t.jsxs)(a.default,{href:"/doctors/".concat(j.id),className:"flex items-center gap-2 w-full justify-center",children:[b?"احجز الآن":"Book Now",(0,t.jsx)(r.Calendar,{size:16})]})}),(0,t.jsx)("div",{className:"w-10 h-10 text-[#2F537D] border border-gray-300 rounded-xl flex justify-center items-center cursor-pointer hover:bg-gray-100 transition",children:(0,t.jsx)(a.default,{href:"/doctors/".concat(j.id),children:b?(0,t.jsx)(i,{size:18}):(0,t.jsx)(l.ChevronsRight,{size:18})})})]})]})}}]);