module.exports=[63024,a=>{"use strict";a.s(["default",()=>f]);var b=a.i(87924),c=a.i(32886),d=a.i(38246),e=a.i(46271);let f=({data:a})=>{let f="ar"===(0,c.useLocale)();return(0,b.jsxs)(e.motion.section,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"w-full px-16 py-10 h-[200px] cc bg-gradient-to-r from-[#2F537D] to-[#1d3f83] relative overflow-hidden",children:[(0,b.jsx)(e.motion.div,{className:"absolute inset-0 bg-[radial-gradient(circle_at_30%_30%,rgba(255,255,255,0.1),transparent_60%)]",animate:{backgroundPosition:["0% 0%","100% 100%","0% 0%"]},transition:{duration:10,repeat:1/0,ease:"linear"}}),(0,b.jsxs)(e.motion.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3,duration:.6},className:"relative text-sm md:text-md text-white font-medium",children:[(0,b.jsx)(d.default,{className:"hover:text-blue-200 duration-200",href:"/",children:f?"الرئيسية":"Home Page"})," ","/",a.title]}),(0,b.jsx)(e.motion.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5,duration:.8},className:"relative text-2xl max-md:text-2xl max-md:font-bold md:text-5xl font-[500] text-white mt-3 drop-shadow-md",children:a.title})]})}},46213,a=>{"use strict";a.s(["default",()=>m]);var b=a.i(87924),c=a.i(72131),d=a.i(71987),e=a.i(32886),f=a.i(50944),g=a.i(38246),h=a.i(46964),i=a.i(328),j=a.i(97168),k=a.i(71682);let l={ar:{sidebar:{profile:"الملف الشخصي",cards:"البطاقات والاشتراكات",reservations:"حجوزاتي",wallet:"المحفظة",journey:"رحلة الثراء",chats:"المحادثات",faq:"الأسئلة الشائعة",addresses:"العناوين",privacy:"سياسة الخصوصية",terms:"الشروط والأحكام",contact:"تواصل معنا",settings:"الإعدادات",logout:"تسجيل الخروج",delete:"حذف الحساب",openMenu:"فتح القائمة",closeMenu:"إغلاق القائمة"}},en:{sidebar:{profile:"Personal File",cards:"Cards and Subscriptions",reservations:"My Reservations",wallet:"My Wallet",journey:"The Rich Journey",chats:"Chats",faq:"Frequently Asked Questions",addresses:"Addresses",privacy:"Privacy Policy",terms:"Terms and Conditions",contact:"Contact Us",settings:"Settings",logout:"Logout",delete:"Delete Account",openMenu:"Open Menu",closeMenu:"Close Menu"}}},m=()=>{let a=(0,f.usePathname)(),m="ar"===(0,e.useLocale)(),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1);(0,c.useEffect)(()=>{},[]);let{data:t,isLoading:u}=(0,h.useGetProfile)(),v={image:t?.data?.image_url||"/doctor.jpg",name:t?.data?`${t.data.first_name} ${t.data.last_name}`:""},w=[{id:1,title:m?l.ar.sidebar.profile:l.en.sidebar.profile,icon:(0,b.jsx)(i.MdOutlineStarPurple500,{size:20}),href:"/user/profile"},{id:2,title:m?l.ar.sidebar.cards:l.en.sidebar.cards,icon:(0,b.jsx)(k.FaCreditCard,{size:20}),href:"/user/cards"},{id:3,title:m?l.ar.sidebar.reservations:l.en.sidebar.reservations,icon:(0,b.jsx)(j.FaRegCalendarCheck,{size:20}),href:"/user/reservations"},{id:4,title:m?l.ar.sidebar.wallet:l.en.sidebar.wallet,icon:(0,b.jsx)(k.FaWallet,{size:20}),href:"/user/wallet"},{id:5,title:m?l.ar.sidebar.journey:l.en.sidebar.journey,icon:(0,b.jsx)(k.FaUserShield,{size:20}),href:"/user/journey"},{id:6,title:m?l.ar.sidebar.chats:l.en.sidebar.chats,icon:(0,b.jsx)(k.FaComments,{size:20}),href:"/user/chats"},{id:7,title:m?l.ar.sidebar.faq:l.en.sidebar.faq,icon:(0,b.jsx)(k.FaQuestionCircle,{size:20}),href:"/user/faq"},{id:8,title:m?l.ar.sidebar.addresses:l.en.sidebar.addresses,icon:(0,b.jsx)(k.FaAddressBook,{size:20}),href:"/user/addresses"},{id:9,title:m?l.ar.sidebar.privacy:l.en.sidebar.privacy,icon:(0,b.jsx)(k.FaUserShield,{size:20}),href:"/user/privacy"},{id:10,title:m?l.ar.sidebar.terms:l.en.sidebar.terms,icon:(0,b.jsx)(k.FaUserShield,{size:20}),href:"/user/terms"},{id:11,title:m?l.ar.sidebar.contact:l.en.sidebar.contact,icon:(0,b.jsx)(k.FaPhoneAlt,{size:20}),href:"/user/contact"},{id:12,title:m?l.ar.sidebar.settings:l.en.sidebar.settings,icon:(0,b.jsx)(k.FaCog,{size:20}),href:"/user/settings"},{id:13,title:m?l.ar.sidebar.logout:l.en.sidebar.logout,icon:(0,b.jsx)(k.FaSignOutAlt,{size:20}),href:"/user/logout",danger:!0},{id:14,title:m?l.ar.sidebar.delete:l.en.sidebar.delete,icon:(0,b.jsx)(k.FaTrashAlt,{size:20}),href:"/user/delete",danger:!0}],x=a.replace(/^\/(ar|en)/,""),y=()=>{s(!r)},z=()=>{p&&s(!1)};return(0,b.jsxs)(b.Fragment,{children:[p&&(0,b.jsx)("button",{onClick:y,className:"lg:hidden w-full mb-4 py-3 px-4 rounded-xl bg-[#85A5E0] text-white flex items-center justify-center gap-2 shadow-md hover:bg-[#6a8bc9] transition-colors",children:r?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.FaTimes,{size:18}),(0,b.jsx)("span",{children:m?l.ar.sidebar.closeMenu:l.en.sidebar.closeMenu})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.FaBars,{size:18}),(0,b.jsx)("span",{children:m?l.ar.sidebar.openMenu:l.en.sidebar.openMenu})]})}),(0,b.jsxs)("div",{className:`
        ${p?`fixed inset-0 z-50 transform transition-transform duration-300 ease-in-out bg-white overflow-y-auto ${r?"translate-x-0":m?"translate-x-full":"-translate-x-full"}`:`relative rounded-xl bg-[#EBF0FA] flex flex-col items-center p-5 transition-all duration-500 ease-in-out ${n?"w-full opacity-100":"w-24 opacity-90"}`}
      `,children:[!p&&(0,b.jsx)("button",{onClick:()=>o(!n),className:"absolute top-5 right-5 p-2 rounded-full bg-white shadow-md hover:bg-gray-100 transition-colors",children:m?(0,b.jsx)(j.FaArrowRightLong,{size:16,className:"text-[#85A5E0]"}):(0,b.jsx)(j.FaArrowLeftLong,{size:16,className:"text-[#85A5E0]"})}),p&&(0,b.jsx)("button",{onClick:y,className:"absolute top-4 left-4 p-2 rounded-full bg-gray-100 shadow-md hover:bg-gray-200 transition-colors z-10",children:(0,b.jsx)(k.FaTimes,{size:18,className:"text-gray-600"})}),(0,b.jsx)("div",{className:`relative mb-3 transition-all duration-500 ${p?"w-24 h-24 mt-12":n?"w-24 h-24":"w-16 h-16"}`,children:u?(0,b.jsx)("div",{className:"w-full h-full rounded-full bg-gray-300 animate-pulse"}):(0,b.jsx)(d.default,{src:v.image,alt:v.name,fill:!0,className:"rounded-full object-cover object-center transition-all duration-500",sizes:"(max-width: 768px) 96px, (max-width: 1024px) 96px, 96px"})}),(n||p)&&(0,b.jsx)("p",{className:"text-center text-md font-medium mb-6 transition-opacity duration-300 px-2",children:u?(0,b.jsx)("span",{className:"inline-block w-32 h-6 bg-gray-300 rounded animate-pulse"}):v.name}),(0,b.jsx)("div",{className:"w-full space-y-2 px-1",children:w.map(a=>{let c=x===a.href;return(0,b.jsxs)(g.default,{href:a.href,onClick:z,className:`cursor-pointer gap-2 py-4 px-3 rounded-xl w-full flex items-center transition-all duration-300 ${p||n?"justify-between":"justify-center"} ${c?"bg-[#85A5E0] text-white shadow-lg transform scale-105":"bg-white hover:bg-blue-50"} ${a.danger?"text-red-500 hover:bg-red-50":"text-black"}`,children:[(0,b.jsxs)("div",{className:`flex items-center gap-2 ${p||n?"":"justify-center"}`,children:[(0,b.jsx)("span",{className:a.danger?"text-red-500":c?"text-white":"text-[#85A5E0]",children:a.icon}),(n||p)&&(0,b.jsx)("p",{className:"text-sm font-medium transition-opacity duration-300",children:a.title})]}),(n||p)&&(0,b.jsx)("div",{className:"transition-opacity duration-300",children:m?(0,b.jsx)(j.FaArrowLeftLong,{size:16,className:a.danger?"text-red-500":c?"text-white":"text-gray-400"}):(0,b.jsx)(j.FaArrowRightLong,{size:16,className:a.danger?"text-red-500":c?"text-white":"text-gray-400"})})]},a.id)})})]}),p&&r&&(0,b.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40 lg:hidden",onClick:y})]})}}];

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