(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{35099:(e,s,a)=>{"use strict";a.d(s,{LandingHeader:()=>p});var t=a(95155),l=a(36489),r=a(52619),i=a.n(r),n=a(15239),d=a(3998),o=a(20508),m=a(84926),c=a(66091),h=a(10774),x=a(85898);function p(){var e;let{data:s}=(0,l.useSession)(),a=async()=>{localStorage.removeItem("installPromptDismissed"),await (0,l.signOut)({callbackUrl:"/"})};return(0,t.jsx)("header",{className:"bg-white/80 backdrop-blur-md border-b border-gray-200 sticky top-0 z-50 transition-all duration-300",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex justify-between items-center h-16 relative",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"md:hidden flex items-center",children:(0,t.jsx)(h.U,{})}),(0,t.jsxs)(i(),{href:"/",className:"hidden md:flex items-center space-x-3 space-x-reverse group",children:[(0,t.jsx)(n.default,{src:"/icon-playmo.png",alt:"پلیمو",width:44,height:44,className:"w-11 h-11 object-contain group-hover:scale-105 transition-transform duration-200",priority:!0}),(0,t.jsxs)("div",{className:"flex flex-col items-start",children:[(0,t.jsxs)("h1",{className:"text-xl font-black text-gray-900 tracking-tight leading-none flex items-center gap-1.5",children:[(0,t.jsx)("span",{children:"پلیمــو"}),(0,t.jsx)("span",{className:"mx-2 text-gray-300 font-light",children:"|"}),(0,t.jsx)("span",{className:"text-lg font-bold tracking-normal",children:"Playmo"})]}),(0,t.jsx)("span",{className:"text-[12px] text-amber-500 font-medium whitespace-nowrap mt-0.5",children:"هر بازی، شروع یک ماجراجویی جدید"})]})]})]}),(0,t.jsx)("div",{className:"md:hidden absolute left-1/2 -translate-x-1/2 flex items-center justify-center",children:(0,t.jsx)(i(),{href:"/",className:"flex items-center justify-center p-1 group",title:"صفحه اصلی پلیمو",children:(0,t.jsx)(n.default,{src:"/icon-playmo.png",alt:"پلیمو",width:38,height:38,className:"w-9 h-9 sm:w-10 sm:h-10 object-contain group-hover:scale-105 active:scale-95 transition-transform duration-200",priority:!0})})}),(0,t.jsxs)("nav",{className:"hidden md:flex space-x-8 space-x-reverse",children:[(0,t.jsx)(i(),{href:"/events",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"رویدادها"}),(0,t.jsx)(i(),{href:"/cafes",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"کافه‌گیم‌ها"}),(0,t.jsx)(i(),{href:"/contact",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"تماس با ما"}),(0,t.jsx)(i(),{href:"/terms",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"قوانین سایت"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,t.jsx)("div",{className:"hidden md:flex items-center space-x-4 space-x-reverse",children:(null==s?void 0:s.user)?(0,t.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,t.jsxs)("span",{className:"text-gray-700",children:["سلام ",s.user.name||(null==(e=s.user.email)?void 0:e.split("@")[0])]}),(0,t.jsx)(d.$,{variant:"ghost",className:"text-playmo-purple-600 hover:text-playmo-purple-700",asChild:!0,children:(0,t.jsxs)(i(),{href:(()=>{var e;if(!(null==s?void 0:s.user))return"/auth/customer/signin";switch(null==(e=s.user)?void 0:e.role){case"ADMIN":case"SUPER_ADMIN":return"/admin-dashboard";case"CAFE_OWNER":return"/business-dashboard";default:return"/dashboard"}})(),children:[(0,t.jsx)(o.A,{className:"mr-1 h-4 w-4"}),"داشبورد"]})}),(0,t.jsxs)(d.$,{variant:"ghost",className:"text-red-600 hover:text-red-700",onClick:a,children:[(0,t.jsx)(m.A,{className:"mr-1 h-4 w-4"}),"خروج"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.$,{variant:"ghost",className:"text-playmo-blue-600 hover:text-playmo-blue-700",asChild:!0,children:(0,t.jsx)(i(),{href:(0,c.kk)(),children:"ورود بازیکن"})}),(0,t.jsx)(d.$,{className:"bg-gradient-to-r from-playmo-purple-600 to-playmo-purple-700 text-white shadow-md hover:shadow-lg transition-all",asChild:!0,children:(0,t.jsx)(i(),{href:(0,c.Ku)(),children:"ثبت‌نام بازیکن"})}),(0,t.jsx)(d.$,{variant:"outline",className:"border-emerald-600 text-emerald-600 hover:bg-emerald-50",asChild:!0,children:(0,t.jsx)(i(),{href:(0,c.aC)(),children:"ورود کسب‌وکار"})})]})}),(0,t.jsx)(x.r,{})]})]})})})}},41408:(e,s,a)=>{"use strict";a.d(s,{default:()=>n});var t=a(95155),l=a(67909),r=a(41466);let i=(0,l.default)(()=>Promise.all([a.e(3403),a.e(9072),a.e(9696),a.e(4300)]).then(a.bind(a,99899)),{loadableGenerated:{webpack:()=>[99899]},ssr:!1,loading:()=>(0,t.jsx)(r.A,{})});function n(){return(0,t.jsx)(i,{})}},41466:(e,s,a)=>{"use strict";a.d(s,{A:()=>i});var t=a(95155);a(12115);var l=a(15239);let r=[{id:1,left:"22%",top:"22%",size:44,delay:"0ms"},{id:2,left:"78%",top:"20%",size:48,delay:"200ms"},{id:3,left:"32%",top:"14%",size:38,delay:"400ms"},{id:4,left:"68%",top:"15%",size:40,delay:"600ms"},{id:5,left:"16%",top:"44%",size:42,delay:"150ms"},{id:6,left:"84%",top:"42%",size:46,delay:"350ms"},{id:7,left:"26%",top:"62%",size:36,delay:"500ms"},{id:8,left:"74%",top:"60%",size:40,delay:"700ms"}];function i(){return(0,t.jsxs)("div",{role:"status","aria-live":"polite","aria-busy":"true","aria-label":"در حال شناسایی آرشین‌های فعال...",className:"relative w-full overflow-hidden bg-gradient-to-b from-slate-100/90 via-slate-50 to-purple-50/30 pt-0 pb-4 sm:pb-8 md:pb-16 select-none",children:[(0,t.jsx)("span",{className:"sr-only",children:"در حال شناسایی آرشین‌های فعال و کاربران حاضر..."}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none opacity-20 select-none -z-0",children:(0,t.jsx)(l.default,{src:"/images/map2.jpg",alt:"Map Background",fill:!0,className:"object-cover object-center",priority:!0})}),(0,t.jsxs)("div",{className:"relative w-full h-[520px] flex items-center justify-center overflow-hidden z-10",children:[(0,t.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none opacity-30","aria-hidden":"true",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("radialGradient",{id:"globeGlow",cx:"50%",cy:"50%",r:"50%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#a855f7",stopOpacity:"0.18"}),(0,t.jsx)("stop",{offset:"60%",stopColor:"#6366f1",stopOpacity:"0.06"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"transparent",stopOpacity:"0"})]})}),(0,t.jsx)("circle",{cx:"50%",cy:"50%",r:"220",fill:"url(#globeGlow)"}),(0,t.jsx)("circle",{cx:"50%",cy:"50%",r:"210",fill:"none",stroke:"#a855f7",strokeWidth:"1",strokeDasharray:"4 6",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"50%",cy:"50%",r:"150",fill:"none",stroke:"#a855f7",strokeWidth:"1",strokeDasharray:"3 5",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"50%",cy:"50%",r:"90",fill:"none",stroke:"#c084fc",strokeWidth:"1.5",strokeDasharray:"2 4",opacity:"0.8"})]}),r.map(e=>(0,t.jsx)("div",{"data-testid":"satellite-node",className:"absolute -translate-x-1/2 -translate-y-1/2 rounded-full flex items-center justify-center p-0.5 shadow-xs motion-safe:animate-pulse pointer-events-none",style:{left:e.left,top:e.top,width:"".concat(e.size,"px"),height:"".concat(e.size,"px"),animationDelay:e.delay,animationDuration:"2s"},"aria-hidden":"true",children:(0,t.jsx)("div",{className:"w-full h-full rounded-full bg-gradient-to-tr from-purple-300/30 via-white/80 to-purple-100/40 dark:from-purple-900/40 dark:to-slate-800/80 backdrop-blur-xs border border-purple-300/40 shadow-xs flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-1/2 h-1/2 rounded-full bg-purple-400/25"})})},e.id)),(0,t.jsxs)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20 pointer-events-none flex items-center justify-center",children:[(0,t.jsx)("div",{className:"absolute w-28 h-28 sm:w-32 sm:h-32 rounded-full border border-amber-400/30 motion-safe:animate-pulse","aria-hidden":"true"}),(0,t.jsx)("div",{className:"absolute w-24 h-24 sm:w-28 sm:h-28 rounded-full bg-[#ffa515]/10 motion-safe:animate-ping opacity-60 duration-1000","aria-hidden":"true"}),(0,t.jsx)("div",{className:"relative w-20 h-20 sm:w-24 sm:h-24 rounded-full bg-gradient-to-tr from-[#ffa515]/20 via-amber-400/15 to-purple-100/30 border-2 border-[#ffa515]/40 shadow-[0_0_30px_rgba(255,165,21,0.3)] backdrop-blur-md flex items-center justify-center",children:(0,t.jsx)("div",{className:"w-11 h-11 sm:w-13 sm:h-13 rounded-full bg-[#ffa515] shadow-md border border-white/30 flex items-center justify-center p-2 motion-safe:animate-pulse",children:(0,t.jsx)(l.default,{src:"/logo.svg",alt:"لوگوی پلیمو",width:28,height:26,className:"w-full h-full object-contain select-none",priority:!0})})})]}),(0,t.jsx)("div",{className:"absolute top-[calc(50%+54px)] sm:top-[calc(50%+64px)] left-1/2 -translate-x-1/2 z-20 pointer-events-none whitespace-nowrap",children:(0,t.jsxs)("div",{className:"px-3.5 py-1.5 sm:px-4 sm:py-1.5 rounded-full bg-white/95 dark:bg-slate-900/95 shadow-md border border-purple-200/70 text-purple-950 dark:text-purple-100 text-[11px] sm:text-xs font-bold flex items-center gap-1.5 motion-safe:animate-pulse whitespace-nowrap",children:[(0,t.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-[#ffa515] animate-ping shrink-0"}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:"در حال شناسایی آرشین‌های فعال..."})]})})]}),(0,t.jsx)("div",{className:"w-full max-w-4xl mx-auto px-3 sm:px-4 -mt-17 sm:-mt-11 md:mt-6 mb-2 sm:mb-4 relative z-20 dir-rtl -translate-y-[25px] pointer-events-none",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:gap-6",children:[(0,t.jsxs)("div",{"data-testid":"card-skeleton-1",className:"rounded-2xl sm:rounded-[28px] md:rounded-[32px] bg-[#391154] p-3.5 sm:p-5 md:p-6 border border-white/10 shadow-[0_8px_20px_rgba(57,17,84,0.35)] flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3.5",children:[(0,t.jsx)("div",{className:"h-5 sm:h-6 w-20 sm:w-28 rounded-full bg-white/20 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"w-7 h-7 sm:w-10 sm:h-10 rounded-full bg-white/15 motion-safe:animate-pulse"})]}),(0,t.jsx)("div",{className:"h-4 sm:h-6 w-24 sm:w-36 rounded-md bg-white/25 motion-safe:animate-pulse mb-2"}),(0,t.jsxs)("div",{className:"hidden md:block space-y-1.5 mt-2",children:[(0,t.jsx)("div",{className:"h-3 w-full rounded-xs bg-white/15 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"h-3 w-3/4 rounded-xs bg-white/15 motion-safe:animate-pulse"})]})]}),(0,t.jsxs)("div",{className:"mt-3 sm:mt-5 pt-2.5 sm:pt-3 border-t border-white/15 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-3 sm:h-3.5 w-24 sm:w-32 rounded-xs bg-white/20 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 rounded-full bg-white/20 motion-safe:animate-pulse"})]})]}),(0,t.jsxs)("div",{"data-testid":"card-skeleton-2",className:"rounded-2xl sm:rounded-[28px] md:rounded-[32px] bg-[#0f4c3a] p-3.5 sm:p-5 md:p-6 border border-white/10 shadow-[0_8px_20px_rgba(15,76,58,0.35)] flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3.5",children:[(0,t.jsx)("div",{className:"h-5 sm:h-6 w-20 sm:w-28 rounded-full bg-white/20 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"w-7 h-7 sm:w-10 sm:h-10 rounded-full bg-white/15 motion-safe:animate-pulse"})]}),(0,t.jsx)("div",{className:"h-4 sm:h-6 w-24 sm:w-36 rounded-md bg-white/25 motion-safe:animate-pulse mb-2"}),(0,t.jsxs)("div",{className:"hidden md:block space-y-1.5 mt-2",children:[(0,t.jsx)("div",{className:"h-3 w-full rounded-xs bg-white/15 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"h-3 w-3/4 rounded-xs bg-white/15 motion-safe:animate-pulse"})]})]}),(0,t.jsxs)("div",{className:"mt-3 sm:mt-5 pt-2.5 sm:pt-3 border-t border-white/15 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"h-3 sm:h-3.5 w-24 sm:w-32 rounded-xs bg-white/20 motion-safe:animate-pulse"}),(0,t.jsx)("div",{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 rounded-full bg-white/20 motion-safe:animate-pulse"})]})]})]})})]})}},67010:(e,s,a)=>{Promise.resolve().then(a.bind(a,41408)),Promise.resolve().then(a.bind(a,98108)),Promise.resolve().then(a.bind(a,35099))},98108:(e,s,a)=>{"use strict";a.d(s,{default:()=>n});var t=a(95155),l=a(67909);let r=(0,l.default)(()=>a.e(668).then(a.bind(a,30668)).then(e=>e.PopularEvents),{loadableGenerated:{webpack:()=>[30668]},ssr:!1}),i=(0,l.default)(()=>a.e(1833).then(a.bind(a,11833)).then(e=>e.LandingFooter),{loadableGenerated:{webpack:()=>[11833]},ssr:!1});function n(){return(0,t.jsxs)("div",{className:"hidden md:block",children:[(0,t.jsx)(r,{}),(0,t.jsx)(i,{})]})}}},e=>{e.O(0,[9268,586,9017,2619,6489,7173,3171,8720,1691,2387,2377,5239,6524,9829,1805,9597,1733,6958,8079,1900,8907,9619,6645,6858,774,8441,1255,7358],()=>e(e.s=67010)),_N_E=e.O()}]);