module.exports=[70388,a=>{"use strict";a.s(["default",()=>k],70388);var b=a.i(87924),c=a.i(71987),d=a.i(31746),e=a.i(41675);let f=(0,a.i(70106).default)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);var g=a.i(38246),h=a.i(42343);function i(a){return(0,h.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:[]}]})(a)}let j=({value:a,iconSrc:d,isArabic:e})=>(0,b.jsx)("span",{className:"inline-flex items-center",children:e?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c.default,{src:d,alt:"currency",width:12,height:12,className:"inline-block mr-1"}),(0,b.jsx)("span",{children:a})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:a}),(0,b.jsx)(c.default,{src:d,alt:"currency",width:12,height:12,className:"inline-block ml-1"})]})}),k=({doctor:a,isArabic:h})=>{let k=a.booking_prices?.[0]?.price||"0",l=a.booking_prices?.[0]?.original_price||"0",m=a.shop?.name||(h?"طبيب مستقل":"Independent Doctor"),n=a.specialization?.name||(h?"غير محدد":"Unknown"),o=a.shop?.average_rating||"4.5",p=a.profile_image||a.images?.profile||a.images?.identity||"/doctor.jpg";return(0,b.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,b.jsxs)("div",{className:`flex items-start gap-3 mb-4 ${h?"flex-row-reverse ltr":""}`,children:[(0,b.jsx)("div",{className:"relative w-16 h-16 flex-shrink-0",children:(0,b.jsx)(c.default,{src:p,alt:a.name||(h?"صورة الطبيب":"Doctor Image"),fill:!0,className:"rounded-xl object-cover border border-gray-200",sizes:"(max-width: 768px) 64px, 64px"})}),(0,b.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,b.jsxs)("div",{className:`flex justify-between items-start mb-1 ${h?"flex-row-reverse":""}`,children:[(0,b.jsx)("h2",{className:"text-lg font-semibold text-gray-800 truncate max-w-[160px]",children:a.name}),(0,b.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1",children:[(0,b.jsx)(i,{size:18,fill:"#fbbf24",stroke:"#f59e0b"}),(0,b.jsx)("span",{className:"text-sm text-blue-700 font-medium",children:o})]})]}),(0,b.jsx)("p",{className:`text-sm px-3 py-1.5 rounded-full bg-blue-50 text-[#2F537D] w-fit mb-2 ${h?"ml-auto text-right":""}`,children:n}),(0,b.jsx)("p",{className:`text-sm text-gray-600 mb-3 truncate ${h?"text-right":""}`,children:m}),(0,b.jsxs)("p",{className:`text-sm font-medium text-[#2F537D] ${h?"text-right":""}`,children:[(0,b.jsx)(j,{value:k,iconSrc:"/icons/sar 1.png",isArabic:h})," ",(0,b.jsx)("span",{className:"text-gray-400 line-through text-xs mx-1",children:(0,b.jsx)(j,{value:l,iconSrc:"/icons/sar 2.png",isArabic:h})}),h?": سعر الحجز":"Price:"," "]})]})]}),(0,b.jsxs)("div",{className:`flex justify-between items-center gap-2 ${h?"flex-row-reverse ltr":""}`,children:[(0,b.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,b.jsxs)(g.default,{href:`/doctors/${a.id}`,className:"flex items-center gap-2 w-full justify-center",children:[h?"احجز الآن":"Book Now",(0,b.jsx)(e.Calendar,{size:16})]})}),(0,b.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,b.jsx)(g.default,{href:`/doctors/${a.id}`,children:h?(0,b.jsx)(f,{size:18}):(0,b.jsx)(d.ChevronsRight,{size:18})})})]})]})}}];

//# sourceMappingURL=src_components_ui_DoctorCard_tsx_1ffae8db._.js.map