(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1150:(e,s,t)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return o}});let r=t(95155),a=t(12115),l=t(24437);function n(e){return{default:e&&"default"in e?e.default:e}}t(36552);let i={loader:()=>Promise.resolve(n(()=>null)),loading:null,ssr:!0},o=function(e){let s={...i,...e},t=(0,a.lazy)(()=>s.loader().then(n)),o=s.loading;function d(e){let n=o?(0,r.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,i=!s.ssr||!!s.loading,d=i?a.Suspense:a.Fragment,c=s.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(t,{...e})]}):(0,r.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(t,{...e})});return(0,r.jsx)(d,{...i?{fallback:n}:{},children:c})}return d.displayName="LoadableComponent",d}},4926:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>E});var r=t(95155),a=t(86278),l=t.n(a),n=t(36489),i=t(52619),o=t.n(i),d=t(15239),c=t(3998),m=t(20508),x=t(84926),u=t(66091),p=t(25164),h=t(85898);function f(){var e;let{data:s}=(0,n.useSession)(),t=async()=>{localStorage.removeItem("installPromptDismissed"),await (0,n.signOut)({callbackUrl:"/"})};return(0,r.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,r.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,r.jsxs)(o(),{href:"/",className:"flex items-center space-x-3 space-x-reverse group",children:[(0,r.jsx)(d.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,r.jsxs)("div",{className:"flex flex-col items-start",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsxs)("h1",{className:"text-xl font-black text-gray-900 tracking-tight leading-none flex items-center gap-1.5",children:[(0,r.jsx)("span",{children:"پلیمــو"}),(0,r.jsx)("span",{className:"mx-0 md:mx-2 text-gray-300 font-light",children:"|"}),(0,r.jsx)("span",{className:"text-lg font-bold tracking-normal",children:"Playmo"}),(0,r.jsx)("span",{className:"md:hidden text-[10px] font-bold text-purple-700 bg-purple-100 px-1.5 py-0.5 rounded-md",children:"Beta"})]}),(0,r.jsxs)("span",{className:"hidden md:inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full bg-purple-50 border border-purple-200/90 text-purple-700 text-[11px] font-bold shadow-xs",children:[(0,r.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-purple-600"}),(0,r.jsx)("span",{children:p.cr.stageFa})]})]}),(0,r.jsx)("span",{className:"text-[12px] text-amber-500 font-medium whitespace-nowrap -mt-2 md:mt-0.5",children:"هر بازی، شروع یک ماجراجویی جدید"})]})]}),(0,r.jsxs)("nav",{className:"hidden md:flex space-x-8 space-x-reverse",children:[(0,r.jsx)(o(),{href:"/events",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"رویدادها"}),(0,r.jsx)(o(),{href:"/cafes",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"کافه‌گیم‌ها"}),(0,r.jsx)(o(),{href:"/contact",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"تماس با ما"}),(0,r.jsx)(o(),{href:"/terms",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"قوانین سایت"})]}),(0,r.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,r.jsx)("div",{className:"hidden md:flex items-center space-x-4 space-x-reverse",children:(null==s?void 0:s.user)?(0,r.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,r.jsxs)("span",{className:"text-gray-700",children:["سلام ",s.user.name||(null==(e=s.user.email)?void 0:e.split("@")[0])]}),(0,r.jsx)(c.$,{variant:"ghost",className:"text-playmo-purple-600 hover:text-playmo-purple-700",asChild:!0,children:(0,r.jsxs)(o(),{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,r.jsx)(m.A,{className:"mr-1 h-4 w-4"}),"داشبورد"]})}),(0,r.jsxs)(c.$,{variant:"ghost",className:"text-red-600 hover:text-red-700",onClick:t,children:[(0,r.jsx)(x.A,{className:"mr-1 h-4 w-4"}),"خروج"]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.$,{variant:"ghost",className:"text-playmo-blue-600 hover:text-playmo-blue-700",asChild:!0,children:(0,r.jsx)(o(),{href:(0,u.kk)(),children:"ورود بازیکن"})}),(0,r.jsx)(c.$,{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,r.jsx)(o(),{href:(0,u.Ku)(),children:"ثبت‌نام بازیکن"})}),(0,r.jsx)(c.$,{variant:"outline",className:"border-emerald-600 text-emerald-600 hover:bg-emerald-50",asChild:!0,children:(0,r.jsx)(o(),{href:(0,u.aC)(),children:"ورود کسب‌وکار"})})]})}),(0,r.jsx)(h.r,{})]})]})})})}function b(){return(0,r.jsx)("footer",{className:"bg-gray-900 text-white py-12 border-t border-gray-800",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[(0,r.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,r.jsxs)(o(),{href:"/",className:"inline-flex items-center space-x-3 space-x-reverse mb-4 group",children:[(0,r.jsx)(d.default,{src:"/icon-playmo.png",alt:"پلیمو",width:40,height:40,className:"w-10 h-10 object-contain group-hover:scale-105 transition-transform duration-200"}),(0,r.jsx)("h3",{className:"text-2xl font-bold text-white tracking-tight",children:"Playmo"})]}),(0,r.jsx)("h4",{className:"text-base font-bold text-gray-200 mb-1.5",children:"کلاب تفریح و رشد فردی قبیله آرشین‌ها"}),(0,r.jsx)("p",{className:"text-gray-400 mb-5 text-sm leading-6 max-w-md",children:"پاتوق کسانی که برای ذهن، زمان و کیفیت ارتباطات خود استاندارد بالاتری دارند."}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-4 mt-4",children:[(0,r.jsx)("a",{href:"https://trustseal.enamad.ir/?id=670080&Code=hNN4AQsFOtncJgevE0tXqtkOWeaSQ7ip",target:"_blank",rel:"noopener noreferrer",className:"inline-block hover:opacity-80 transition-opacity shrink-0",children:(0,r.jsx)("img",{src:"/images/enamad.png",alt:"اینماد",style:{cursor:"pointer",width:"80px",height:"80px"},loading:"lazy",className:"bg-white rounded-xl p-1 shadow-sm"})}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 justify-between",children:[(0,r.jsxs)("a",{href:"https://www.instagram.com/app.playmo.ir?igsh=dWJrd3YzYXZrbzFu",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-gradient-to-r from-pink-500/10 via-purple-500/10 to-amber-500/10 hover:from-pink-500/20 hover:via-purple-500/20 hover:to-amber-500/20 text-gray-300 hover:text-white px-3 py-1.5 rounded-xl border border-pink-500/30 hover:border-pink-500/50 transition-all duration-300 text-xs font-semibold backdrop-blur-sm shadow-sm hover:shadow hover:scale-[1.02] group",children:[(0,r.jsx)(v,{className:"w-4 h-4 text-pink-400 group-hover:scale-110 transition-transform"}),(0,r.jsx)("span",{children:"اینستاگرام پلیمو"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("a",{href:"https://t.me/tel_playmobot",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-slate-800/40 hover:bg-slate-700/60 text-gray-300 hover:text-white px-3 py-1.5 rounded-xl border border-slate-700/50 hover:border-sky-500/50 transition-all duration-300 text-xs font-semibold backdrop-blur-sm shadow-sm hover:shadow hover:scale-[1.02] group",children:[(0,r.jsx)(g,{className:"w-4 h-4 text-sky-400 group-hover:scale-110 transition-transform"}),(0,r.jsx)("span",{children:"تلگرام"})]}),(0,r.jsxs)("a",{href:"https://ble.ir/playmobot",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 bg-slate-800/40 hover:bg-slate-700/60 text-gray-300 hover:text-white px-3 py-1.5 rounded-xl border border-slate-700/50 hover:border-emerald-500/50 transition-all duration-300 text-xs font-semibold backdrop-blur-sm shadow-sm hover:shadow hover:scale-[1.02] group",children:[(0,r.jsx)(j,{className:"w-4 h-4 group-hover:scale-110 transition-transform"}),(0,r.jsx)("span",{children:"بله"})]})]})]})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-bold text-lg mb-4 text-purple-400",children:"لینک‌های مفید"}),(0,r.jsxs)("ul",{className:"space-y-3 text-gray-400",children:[(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/events",className:"hover:text-white transition-colors",children:"رویدادها"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/cafes",className:"hover:text-white transition-colors",children:"کافه‌گیم‌ها"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/contact",className:"hover:text-white transition-colors",children:"تماس با ما"})}),(0,r.jsx)("li",{children:(0,r.jsx)(o(),{href:"/terms",className:"hover:text-white transition-colors",children:"قوانین سایت"})})]})]})]}),(0,r.jsx)("div",{className:"border-t border-gray-800 mt-12 pt-8 text-center",children:(0,r.jsx)("p",{className:"text-gray-500 text-sm",children:"\xa9 ۱۴۰۳ Playmo. تمامی حقوق برای تیم توسعه پلیمو محفوظ است."})})]})})}function g(e){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.287 5.906q-1.168.486-4.666 2.01-.567.225-.595.442c-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294q.39.01.868-.32 3.269-2.206 3.374-2.23c.05-.012.12-.026.166.016s.042.12.037.141c-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8 8 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629q.14.092.27.187c.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.4 1.4 0 0 0-.013-.315.34.34 0 0 0-.114-.217.53.53 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09"})})}function v(e){return(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),(0,r.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,r.jsx)("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]})}function j(e){return(0,r.jsxs)("svg",{viewBox:"0 0 1000 999.72",...e,children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"bale-gradient",x1:"800.4",y1:"93.39",x2:"93.57",y2:"800.23",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0",stopColor:"#4cebb4"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2e2e74"})]})}),(0,r.jsxs)("g",{id:"File",transform:"translate(-12 -12.14)",children:[(0,r.jsx)("path",{d:"M1010.36,547.36c-.73,17.77-2.6,36-6.85,53.41-1.54,16.48-6.36,32.54-10.76,48.52-5.14,19.5-12.48,38.33-19.9,57.17-6.77,15.66-14.35,30.91-22.26,46.08C942.92,766,934.93,779.2,926.29,792q-14.32,21-30.5,40.45c-11.18,13.13-22.68,26.09-35.15,37.92a503.68,503.68,0,0,1-51.3,43.55,453.44,453.44,0,0,1-48.44,31.56C742.06,956.74,722.16,966,702,974.6a548,548,0,0,1-65.89,21.86c-19.49,4.32-39,9.21-58.88,10.76-37,5.71-74.86,5.79-112.13,2.2-33.6-2.61-66.87-9.78-99.25-19.32l-.08-.58C210.19,944.18,82.32,816.07,34.94,661.2c-10.36-33.35-17.62-67.93-20.31-102.83-3.83-33.85-2-68-2.2-102q-.37-40.74-.08-81.64-.26-41.83,0-83.83c-.17-24-.08-47.95-.08-71.93s-.17-48.19.16-72.25c-.33-23.82-.08-47.63-.16-71.44-1.64-17.94,4.24-36.7,17.86-48.85C44.48,13.44,65.68,8.55,84,14.91c11.09,3.75,20.71,10.6,30.58,16.72,36,23.4,70.54,48.85,104.71,74.78a86.74,86.74,0,0,0,10.68-6.77A426.86,426.86,0,0,1,272.58,73.3a483.59,483.59,0,0,1,45.75-22.1c16.39-6.85,33.19-12.8,50.15-18.1,18.1-5,36.29-10.11,55-12.72a392.65,392.65,0,0,1,61.82-7.26,451.46,451.46,0,0,1,76.41,1.71A413.36,413.36,0,0,1,619,24c128.53,27,244.08,108.3,314.46,219a493,493,0,0,1,66.47,159.76c4.73,20.95,8.48,42.32,9.7,63.77A411.89,411.89,0,0,1,1010.36,547.36Z",fill:"url(#bale-gradient)"}),(0,r.jsx)("path",{d:"M705.69,273.2a107.59,107.59,0,0,1,62.37,1.3c25.62,9.82,46.29,29.94,57.5,54.9,8.34,22.86,9.31,48.42.91,71.44-6.06,16.2-16.76,30.09-29.4,41.74q-16.7,16.49-33.21,33.14c-11.79,11.79-23.64,23.5-35.33,35.35-11.3,11.28-22.62,22.49-33.85,33.81-12.32,12.34-24.68,24.61-36.95,37-14,14-28.06,27.94-42,42-13.24,13.29-26.55,26.49-39.8,39.78s-26.77,26.71-40.1,40.11c-12.27,11.85-23.51,24.94-37.35,35.06a106.69,106.69,0,0,1-57.95,16C417,753.28,393.79,744,376.87,727.33q-78.53-78.44-157-156.94c-12.82-12.66-21.38-29.07-26-46.38-4.75-23.86-1.94-49.51,10.31-70.75,9.37-16.54,23.79-29.65,40.19-39a107.52,107.52,0,0,1,57.86-9.73c21.38,3.21,42,13,56.91,28.76Q401.7,476,444.37,518.5c8.63-8.18,16.9-16.73,25.19-25.27q18-17.31,35.24-35.35c11.36-10.68,22.33-21.82,33.07-33.12,7.74-6.88,14.75-14.51,22.07-21.8,12-11.68,23.75-23.59,35.49-35.51,11.21-10.83,22.11-21.95,33.07-33,11.79-11.5,23.28-23.28,35-34.87a105.75,105.75,0,0,1,42.21-26.37Z",fill:"#fff"})]})]})}var w=t(1733),y=t(86948),N=t(52987),k=t(39347),_=t(16485),z=t(21873),A=t(99550),C=t(58779),O=t(96093),P=t(86600);function S(){var e;let{data:s,isLoading:t}=(0,P.C)("/api/events",{staleTime:6e4}),a=(null==s?void 0:s.success)&&(null==(e=s.data)?void 0:e.events)?s.data.events.slice(0,3):[];return(0,r.jsx)("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-3 sm:pt-5 pb-16 md:pb-20 relative overflow-hidden bg-gradient-to-b from-purple-50/30 via-slate-50 to-white",children:(0,r.jsxs)("div",{className:"relative z-10",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center mb-16 space-y-6 mt-1",children:[(0,r.jsxs)("div",{className:"inline-flex items-center space-x-2 space-x-reverse bg-purple-50 px-4 py-1.5 rounded-full text-purple-600 font-bold text-sm border border-purple-100 shadow-sm",children:[(0,r.jsx)("span",{className:"w-2 h-2 rounded-full bg-purple-600 animate-pulse"}),(0,r.jsx)("span",{children:"رویدادهای برگزیده"})]}),(0,r.jsxs)("h2",{className:"text-4xl lg:text-5xl font-black text-center leading-tight",children:[(0,r.jsx)("span",{className:"text-gray-900",children:"همین حالا "}),(0,r.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-blue-600",children:"رزرو کن!"})]}),(0,r.jsx)("p",{className:"text-gray-600 text-center max-w-lg text-lg",children:"تجربه هیجان، رقابت و دوستی در بهترین کافه‌گیم‌های شهر"}),(0,r.jsx)(c.$,{asChild:!0,variant:"outline",className:"border-2 border-purple-100 hover:border-purple-200 hover:bg-purple-50 text-purple-700 rounded-xl px-8 h-12",children:(0,r.jsxs)(o(),{href:"/events",className:"flex items-center gap-2",children:["مشاهده همه رویدادها",(0,r.jsx)(N.A,{className:"h-4 w-4"})]})})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 px-6 md:px-0",children:t?[,,,].fill(0).map((e,s)=>(0,r.jsxs)(y.Zp,{className:"border-0 shadow-sm bg-white",children:[(0,r.jsxs)(y.aR,{children:[(0,r.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/3 mb-4 animate-pulse"}),(0,r.jsx)("div",{className:"h-6 bg-gray-100 rounded w-2/3 mb-2 animate-pulse"})]}),(0,r.jsxs)(y.Wu,{children:[(0,r.jsx)("div",{className:"h-32 bg-gray-100 rounded mb-4 animate-pulse"}),(0,r.jsx)("div",{className:"h-10 bg-gray-100 rounded animate-pulse"})]})]},s)):a.length>0?a.map((e,s)=>{var t;let a,l,n=(e=>{let s=[{shadow:"shadow-[0_10px_30px_-5px_rgba(124,58,237,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(124,58,237,0.3)]",border:"border-purple-100",badge:"bg-purple-100 text-purple-800",buttonHover:"hover:bg-purple-600",shapes:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-purple-500/10 rounded-bl-[100px] -mr-8 -mt-8 z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-purple-500/10 rounded-tr-[80px] -ml-6 -mb-6 z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute top-[20%] left-[10%] w-12 h-12 bg-fuchsia-400/10 rounded-full blur-xl z-0 pointer-events-none"})]})},{shadow:"shadow-[0_10px_30px_-5px_rgba(59,130,246,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(59,130,246,0.3)]",border:"border-blue-100",badge:"bg-blue-100 text-blue-800",buttonHover:"hover:bg-blue-600",shapes:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute top-0 left-0 w-40 h-40 bg-blue-500/10 rounded-br-[120px] -ml-10 -mt-10 z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute bottom-[20%] right-[-10%] w-28 h-28 bg-cyan-400/10 rounded-full blur-2xl z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute bottom-0 right-0 w-20 h-20 bg-blue-600/5 rounded-tl-[60px] z-0 pointer-events-none"})]})},{shadow:"shadow-[0_10px_30px_-5px_rgba(244,63,94,0.2)] hover:shadow-[0_20px_40px_-5px_rgba(244,63,94,0.3)]",border:"border-rose-100",badge:"bg-rose-100 text-rose-800",buttonHover:"hover:bg-rose-600",shapes:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"absolute top-[-20px] left-[50%] -translate-x-1/2 w-48 h-24 bg-rose-500/10 rounded-b-[100px] z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-0 w-32 h-32 bg-orange-400/10 rounded-tr-full -ml-10 -mb-10 blur-lg z-0 pointer-events-none"}),(0,r.jsx)("div",{className:"absolute top-1/2 right-0 w-16 h-32 bg-rose-600/5 rounded-l-full z-0 pointer-events-none"})]})}];return s[e%s.length]})(s);return(0,r.jsx)(w.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*s},children:(0,r.jsxs)(y.Zp,{className:"h-full border shadow-sm ".concat(n.shadow," ").concat(n.border," hover:-translate-y-1 transition-all duration-300 group overflow-hidden bg-white/80 backdrop-blur-sm relative z-10"),children:[n.shapes,e.genre&&(0,O.eI)(e.genre)&&(0,r.jsx)("div",{className:"relative h-32 w-full overflow-hidden bg-gray-100",children:(0,r.jsx)(d.default,{src:(0,O.eI)(e.genre),alt:e.genre,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-300",onError:e=>{e.target.style.display="none"}})}),(0,r.jsxs)(y.aR,{className:"pb-3 relative z-20",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsx)("div",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ".concat(n.badge),children:e.game}),(0,r.jsxs)("div",{className:"flex items-center text-yellow-500 bg-yellow-50 px-2 py-0.5 rounded-full border border-yellow-100",children:[(0,r.jsx)(k.A,{className:"h-3.5 w-3.5 fill-current"}),(0,r.jsx)("span",{className:"text-xs text-yellow-700 mr-1 font-bold",children:"4.8"})]})]}),(0,r.jsx)(y.ZB,{className:"text-xl font-bold text-gray-900 group-hover:text-purple-600 transition-colors line-clamp-1",children:e.title}),(0,r.jsx)(y.BT,{className:"line-clamp-2 text-sm mt-1 text-gray-500",children:e.description||"توضیحات رویداد ..."})]}),(0,r.jsxs)(y.Wu,{className:"relative z-20",children:[(0,r.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,r.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,r.jsx)(_.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(a=e.date,(0,C.pJ)(a,{dateFormat:"dddd jYYYY/jMM/jDD",separator:""}))]}),(0,r.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,r.jsx)(z.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(null==(t=e.cafe)?void 0:t.name)||"کافه گیم"]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100/50",children:[(0,r.jsx)("div",{className:"text-lg font-black text-gray-900",children:(l=e.price,new Intl.NumberFormat("fa-IR").format(l)+" تومان")}),(0,r.jsx)(c.$,{asChild:!0,size:"sm",className:"bg-gray-900 text-white ".concat(n.buttonHover," transition-colors rounded-lg shadow-md"),children:(0,r.jsx)(o(),{href:"/events/".concat(e.id),children:"ثبت نام"})})]})]})]})},e.id)}):(0,r.jsxs)("div",{className:"col-span-full py-12 text-center bg-white rounded-2xl shadow-sm border border-dashed border-gray-300",children:[(0,r.jsx)(A.A,{className:"h-12 w-12 text-gray-300 mx-auto mb-3"}),(0,r.jsx)("p",{className:"text-gray-500 font-medium",children:" فعلاً رویدادی موجود نیست."})]})})]})})}var M=t(41466);let D=l()(()=>Promise.all([t.e(3403),t.e(2727),t.e(6334),t.e(4897),t.e(7116),t.e(2223)]).then(t.bind(t,70852)),{loadableGenerated:{webpack:()=>[70852]},ssr:!1,loading:()=>(0,r.jsx)(M.A,{})});function E(){return(0,r.jsxs)("div",{className:"min-h-screen bg-gray-50 font-iranian-sans",children:[(0,r.jsx)(f,{}),(0,r.jsxs)("main",{children:[(0,r.jsx)("section",{className:"w-full overflow-hidden",children:(0,r.jsx)(D,{})}),(0,r.jsx)(S,{})]}),(0,r.jsx)(b,{})]})}},5917:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},8567:(e,s,t)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=t(17828)},17828:(e,s,t)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,t(64054).createAsyncLocalStorage)()},24437:(e,s,t)=>{"use strict";function r(e){let{reason:s,children:t}=e;return t}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),t(24553)},25164:(e,s,t)=>{"use strict";t.d(s,{cr:()=>l});let r="0.9.0-beta",a="نسخه آزمایشی",l={version:r,stage:"beta",stageFa:a,displayVersion:"v".concat(r),fullDisplay:"پلیمو • ".concat(a," (v").concat(r,")"),buildDate:"2026-08-08"}},36552:(e,s,t)=>{"use strict";function r(e){let{moduleIds:s}=e;return null}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"PreloadChunks",{enumerable:!0,get:function(){return r}}),t(95155),t(47650),t(8567),t(77278)},41466:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var r=t(95155);t(12115);var a=t(15239);let l=[{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 n(){return(0,r.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,r.jsx)("span",{className:"sr-only",children:"در حال شناسایی آرشین‌های فعال و کاربران حاضر..."}),(0,r.jsx)("div",{className:"absolute inset-0 pointer-events-none opacity-20 select-none -z-0",children:(0,r.jsx)(a.default,{src:"/images/map2.jpg",alt:"Map Background",fill:!0,className:"object-cover object-center",priority:!0})}),(0,r.jsxs)("div",{className:"relative w-full h-[520px] flex items-center justify-center overflow-hidden z-10",children:[(0,r.jsxs)("svg",{className:"absolute inset-0 w-full h-full pointer-events-none opacity-30","aria-hidden":"true",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("radialGradient",{id:"globeGlow",cx:"50%",cy:"50%",r:"50%",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#a855f7",stopOpacity:"0.18"}),(0,r.jsx)("stop",{offset:"60%",stopColor:"#6366f1",stopOpacity:"0.06"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"transparent",stopOpacity:"0"})]})}),(0,r.jsx)("circle",{cx:"50%",cy:"50%",r:"220",fill:"url(#globeGlow)"}),(0,r.jsx)("circle",{cx:"50%",cy:"50%",r:"210",fill:"none",stroke:"#a855f7",strokeWidth:"1",strokeDasharray:"4 6",opacity:"0.4"}),(0,r.jsx)("circle",{cx:"50%",cy:"50%",r:"150",fill:"none",stroke:"#a855f7",strokeWidth:"1",strokeDasharray:"3 5",opacity:"0.6"}),(0,r.jsx)("circle",{cx:"50%",cy:"50%",r:"90",fill:"none",stroke:"#c084fc",strokeWidth:"1.5",strokeDasharray:"2 4",opacity:"0.8"})]}),l.map(e=>(0,r.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,r.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,r.jsx)("div",{className:"w-1/2 h-1/2 rounded-full bg-purple-400/25"})})},e.id)),(0,r.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,r.jsx)("div",{className:"absolute w-28 h-28 sm:w-32 sm:h-32 rounded-full border border-purple-400/30 motion-safe:animate-pulse","aria-hidden":"true"}),(0,r.jsx)("div",{className:"absolute w-24 h-24 sm:w-28 sm:h-28 rounded-full bg-purple-500/10 motion-safe:animate-ping opacity-60 duration-1000","aria-hidden":"true"}),(0,r.jsx)("div",{className:"relative w-20 h-20 sm:w-24 sm:h-24 rounded-full bg-gradient-to-tr from-purple-600/30 via-purple-400/20 to-purple-100/40 border-2 border-purple-400/60 shadow-[0_0_30px_rgba(168,85,247,0.35)] backdrop-blur-md flex items-center justify-center",children:(0,r.jsx)("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-full bg-purple-500/30 motion-safe:animate-pulse flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-xl sm:text-2xl select-none",children:"\uD83C\uDFAD"})})})]}),(0,r.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,r.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,r.jsx)("span",{className:"inline-block w-2 h-2 rounded-full bg-purple-500 animate-ping shrink-0"}),(0,r.jsx)("span",{className:"whitespace-nowrap",children:"در حال شناسایی آرشین‌های فعال..."})]})})]}),(0,r.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,r.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:gap-6",children:[(0,r.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,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3.5",children:[(0,r.jsx)("div",{className:"h-5 sm:h-6 w-20 sm:w-28 rounded-full bg-white/20 motion-safe:animate-pulse"}),(0,r.jsx)("div",{className:"w-7 h-7 sm:w-10 sm:h-10 rounded-full bg-white/15 motion-safe:animate-pulse"})]}),(0,r.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,r.jsxs)("div",{className:"hidden md:block space-y-1.5 mt-2",children:[(0,r.jsx)("div",{className:"h-3 w-full rounded-xs bg-white/15 motion-safe:animate-pulse"}),(0,r.jsx)("div",{className:"h-3 w-3/4 rounded-xs bg-white/15 motion-safe:animate-pulse"})]})]}),(0,r.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,r.jsx)("div",{className:"h-3 sm:h-3.5 w-24 sm:w-32 rounded-xs bg-white/20 motion-safe:animate-pulse"}),(0,r.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,r.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,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2.5 sm:mb-3.5",children:[(0,r.jsx)("div",{className:"h-5 sm:h-6 w-20 sm:w-28 rounded-full bg-white/20 motion-safe:animate-pulse"}),(0,r.jsx)("div",{className:"w-7 h-7 sm:w-10 sm:h-10 rounded-full bg-white/15 motion-safe:animate-pulse"})]}),(0,r.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,r.jsxs)("div",{className:"hidden md:block space-y-1.5 mt-2",children:[(0,r.jsx)("div",{className:"h-3 w-full rounded-xs bg-white/15 motion-safe:animate-pulse"}),(0,r.jsx)("div",{className:"h-3 w-3/4 rounded-xs bg-white/15 motion-safe:animate-pulse"})]})]}),(0,r.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,r.jsx)("div",{className:"h-3 sm:h-3.5 w-24 sm:w-32 rounded-xs bg-white/20 motion-safe:animate-pulse"}),(0,r.jsx)("div",{className:"w-3.5 h-3.5 sm:w-4 sm:h-4 rounded-full bg-white/20 motion-safe:animate-pulse"})]})]})]})})]})}},52987:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},54356:(e,s,t)=>{Promise.resolve().then(t.bind(t,4926))},64054:(e,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var t in s)Object.defineProperty(e,t,{enumerable:!0,get:s[t]})}(s,{bindSnapshot:function(){return n},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return i}});let t=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class r{disable(){throw t}getStore(){}run(){throw t}exit(){throw t}enterWith(){throw t}static bind(e){return e}}let a="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return a?new a:new r}function n(e){return a?a.bind(e):r.bind(e)}function i(){return a?a.snapshot():function(e,...s){return e(...s)}}},78108:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});var r=t(12115);function a(e){let s=r.useRef({value:e,previous:e});return r.useMemo(()=>(s.current.value!==e&&(s.current.previous=s.current.value,s.current.value=e),s.current.previous),[e])}},84288:(e,s,t)=>{"use strict";t.d(s,{X:()=>l});var r=t(12115),a=t(4129);function l(e){let[s,t]=r.useState(void 0);return(0,a.N)(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});let s=new ResizeObserver(s=>{let r,a;if(!Array.isArray(s)||!s.length)return;let l=s[0];if("borderBoxSize"in l){let e=l.borderBoxSize,s=Array.isArray(e)?e[0]:e;r=s.inlineSize,a=s.blockSize}else r=e.offsetWidth,a=e.offsetHeight;t({width:r,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}t(void 0)},[e]),s}},84926:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(71847).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},86278:(e,s,t)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return a}});let r=t(28140)._(t(1150));function a(e,s){var t;let a={};"function"==typeof e&&(a.loader=e);let l={...a,...s};return(0,r.default)({...l,modules:null==(t=l.loadableGenerated)?void 0:t.modules})}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),e.exports=s.default)},86600:(e,s,t)=>{"use strict";t.d(s,{C:()=>n});var r=t(12115);let a={},l={};function n(e,s){var t,n;let i=null!=(t=null==s?void 0:s.staleTime)?t:6e4,o=null==(n=null==s?void 0:s.revalidateOnFocus)||n,d=null==s?void 0:s.refreshInterval,[c,m]=(0,r.useState)(()=>e&&a[e]?a[e].data:null),[x,u]=(0,r.useState)(null),[p,h]=(0,r.useState)(()=>!!e&&!a[e]),[f,b]=(0,r.useState)(!1),g=(0,r.useCallback)(async function(){let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return;let t=a[e],r=!t||Date.now()-t.timestamp>=i;if(!s&&!r)return t.data!==c&&m(t.data),h(!1),t.data;t||h(!0),b(!0);try{l[e]||(l[e]=fetch(e).then(async e=>{if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));return await e.json()}).finally(()=>{delete l[e]}));let s=await l[e];return a[e]={data:s,timestamp:Date.now()},m(s),u(null),s}catch(s){console.error("Error fetching URL: ".concat(e),s),u(s)}finally{h(!1),b(!1)}},[e,i,c]);(0,r.useEffect)(()=>{e&&(a[e]?(m(a[e].data),h(!1)):(m(null),h(!0)),g())},[e,i]),(0,r.useEffect)(()=>{if(!e||!o)return;let s=()=>{g()};return window.addEventListener("focus",s),()=>{window.removeEventListener("focus",s)}},[e,o,g]),(0,r.useEffect)(()=>{if(!e||!d)return;let s=setInterval(()=>{g(!0)},d);return()=>clearInterval(s)},[e,d,g]);let v=(0,r.useCallback)(function(s){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e){if(void 0!==s){let t="function"==typeof s?s(c):s;a[e]={data:t,timestamp:Date.now()},m(t)}t&&g(!0)}},[e,c,g]);return{data:c,error:x,isLoading:p,isValidating:f,mutate:v}}},99550:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});let r=(0,t(71847).A)("gamepad",[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]])}},e=>{e.O(0,[586,4909,2619,6489,2177,3171,8720,4127,1691,5239,9829,5411,4440,1733,8079,6552,6645,5898,8441,1255,7358],()=>e(e.s=54356)),_N_E=e.O()}]);