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-lg md:text-5xl font-[500] text-white mt-3 drop-shadow-md",children:a.title})]})}},13835,a=>{"use strict";a.s(["default",()=>e]);var b=a.i(87924),c=a.i(32886),d=a.i(46271);let e=({text:a,iconAr:e,iconEn:f})=>{let g="ar"===(0,c.useLocale)();return(0,b.jsxs)(d.motion.p,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.5,ease:"easeOut"},whileTap:{scale:.9},className:"flex items-center gap-2 text-xl font-medium text-gray-800 cursor-default select-none",children:[(0,b.jsx)(d.motion.span,{initial:{rotate:-10,opacity:0},animate:{rotate:0,opacity:1},transition:{duration:.4},className:"text-[#2F537D]",children:g?e:f}),(0,b.jsx)(d.motion.span,{initial:{opacity:0,x:g?10:-10},animate:{opacity:1,x:0},transition:{delay:.1,duration:.4},children:a})]})}},86991,a=>{"use strict";a.s(["default",()=>o],86991);var b=a.i(87924),c=a.i(72131),d=a.i(46271),e=a.i(62036),f=a.i(32886);let g=({title:a,onClick:c,active:d})=>((0,f.useLocale)(),(0,b.jsx)("button",{onClick:c,className:`w-52 h-10 text-lg rounded-xl flex justify-center items-center transition-colors 
        ${d?"bg-blue-200 text-gray-700 border-1 border-blue-600":"bg-gray-200 hover:bg-gray-300"}`,children:a}));var h=a.i(13835),i=a.i(71987);let j=({image:a,title:c})=>{let e="ar"===(0,f.useLocale)();return(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:30,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.6,ease:"easeOut"},whileHover:{scale:1.03},whileTap:{scale:.97},className:"relative flex max-h-[200px] flex-col overflow-hidden items-center rounded-2xl shadow-md aspect-square w-full cursor-pointer",children:[(0,b.jsx)(d.motion.div,{className:"absolute inset-0",whileHover:{scale:1.1},transition:{duration:.6,ease:"easeOut"},children:(0,b.jsx)(i.default,{src:a,alt:c,fill:!0,className:"object-cover"})}),(0,b.jsx)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent py-2 px-3",children:(0,b.jsx)(d.motion.p,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2,duration:.4},className:`text-white font-medium text-lg ${e?"text-right":"text-left"}`,children:c})})]})};var k=a.i(97168),l=a.i(28337),m=a.i(9610),n=a.i(50944);let o=({data:a})=>{let i=(0,m.useTranslations)("regions"),o=(0,f.useLocale)(),p=(0,n.useRouter)(),[q,r]=(0,c.useState)(a[0]),[s,t]=(0,c.useState)([]),[u,v]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{q&&(async()=>{v(!0);try{let a=(0,l.createApiClient)(),b=await a.get(`/states?country_id=${q.id}`);t(b.data.data)}catch(a){console.log(a),t([])}finally{v(!1)}})()},[q,o]),(0,b.jsxs)(d.motion.div,{className:"w-full",initial:{opacity:0},animate:{opacity:1},transition:{duration:.6},children:[(0,b.jsx)(d.motion.div,{className:"flex items-center gap-3 py-5 overflow-x-auto justify-center scrollbar-hide px-4",style:{scrollBehavior:"smooth"},initial:{y:10,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2,duration:.5},children:a.map(a=>(0,b.jsx)(d.motion.div,{className:"flex-shrink-0",whileTap:{scale:.95},children:(0,b.jsx)(g,{title:a.name,onClick:()=>r(a),active:q.id===a.id})},a.id))}),(0,b.jsx)("div",{className:"mt-5",children:(0,b.jsx)(h.default,{text:i("allRegionsFor",{country:q.name}),iconAr:(0,b.jsx)(k.FaEarthAsia,{color:"#85A5E0",size:24}),iconEn:(0,b.jsx)(k.FaEarthAsia,{color:"#85A5E0",size:24})})}),(0,b.jsx)("div",{className:"   grid    grid-cols-1 sm:grid-cols-2 md:grid-cols-3    lg:grid-cols-4 xl:grid-cols-5    gap-6 mt-8 w-full px-4   ",children:u?Array.from({length:10}).map((a,c)=>(0,b.jsx)(d.motion.div,{className:"rounded-2xl overflow-hidden aspect-square bg-gray-200 animate-pulse",initial:{opacity:0},animate:{opacity:1},children:(0,b.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-300 via-gray-200 to-gray-300 blur-sm"})},c)):0===s.length?(0,b.jsx)(d.motion.div,{className:"col-span-full text-center py-10 text-gray-500 text-lg",initial:{opacity:0},animate:{opacity:1},children:i("noCities")}):(0,b.jsx)(e.AnimatePresence,{children:s.map((a,c)=>(0,b.jsx)(d.motion.div,{onClick:()=>{var b;return b=a.id,void p.push(`/hospital?country_id=${q.id}&state_id=${b}`)},className:"cursor-pointer",whileHover:{scale:1.05},initial:{opacity:0,y:15},animate:{opacity:1,y:0},exit:{opacity:0},transition:{delay:.05*c,duration:.4},children:(0,b.jsx)(j,{image:a.image,title:a.name})},a.id))})})]})}}];

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