(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let s=r(95155),a=r(12115),l=r(24437);function n(e){return{default:e&&"default"in e?e.default:e}}r(36552);let o={loader:()=>Promise.resolve(n(()=>null)),loading:null,ssr:!0},i=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(n)),i=t.loading;function c(e){let n=i?(0,s.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?a.Suspense:a.Fragment,d=t.ssr?(0,s.jsxs)(s.Fragment,{children:[null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(c,{...o?{fallback:n}:{},children:d})}return c.displayName="LoadableComponent",c}},4926:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>S});var s=r(95155),a=r(86278),l=r.n(a),n=r(36489),o=r(52619),i=r.n(o),c=r(15239),d=r(3998),x=r(20508),u=r(84926),h=r(66091),m=r(25164),p=r(85898);function f(){var e;let{data:t}=(0,n.useSession)(),r=async()=>{localStorage.removeItem("installPromptDismissed"),await (0,n.signOut)({callbackUrl:"/"})};return(0,s.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,s.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,s.jsxs)(i(),{href:"/",className:"flex items-center space-x-3 space-x-reverse group",children:[(0,s.jsx)(c.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,s.jsxs)("div",{className:"flex flex-col items-start",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsxs)("h1",{className:"text-xl font-black text-gray-900 tracking-tight leading-none flex items-center gap-1.5",children:[(0,s.jsx)("span",{children:"پلیمــو"}),(0,s.jsx)("span",{className:"mx-0 md:mx-2 text-gray-300 font-light",children:"|"}),(0,s.jsx)("span",{className:"text-lg font-bold tracking-normal",children:"Playmo"}),(0,s.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,s.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,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-purple-600"}),(0,s.jsx)("span",{children:m.cr.stageFa})]})]}),(0,s.jsx)("span",{className:"text-[12px] text-amber-500 font-medium whitespace-nowrap -mt-2 md:mt-0.5",children:"هر بازی، شروع یک ماجراجویی جدید"})]})]}),(0,s.jsxs)("nav",{className:"hidden md:flex space-x-8 space-x-reverse",children:[(0,s.jsx)(i(),{href:"/events",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"رویدادها"}),(0,s.jsx)(i(),{href:"/cafes",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"کافه‌گیم‌ها"}),(0,s.jsx)(i(),{href:"/contact",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"تماس با ما"}),(0,s.jsx)(i(),{href:"/terms",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"قوانین سایت"})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,s.jsx)("div",{className:"hidden md:flex items-center space-x-4 space-x-reverse",children:(null==t?void 0:t.user)?(0,s.jsxs)("div",{className:"flex items-center space-x-3 space-x-reverse",children:[(0,s.jsxs)("span",{className:"text-gray-700",children:["سلام ",t.user.name||(null==(e=t.user.email)?void 0:e.split("@")[0])]}),(0,s.jsx)(d.$,{variant:"ghost",className:"text-playmo-purple-600 hover:text-playmo-purple-700",asChild:!0,children:(0,s.jsxs)(i(),{href:(()=>{var e;if(!(null==t?void 0:t.user))return"/auth/customer/signin";switch(null==(e=t.user)?void 0:e.role){case"ADMIN":case"SUPER_ADMIN":return"/admin-dashboard";case"CAFE_OWNER":return"/business-dashboard";default:return"/dashboard"}})(),children:[(0,s.jsx)(x.A,{className:"mr-1 h-4 w-4"}),"داشبورد"]})}),(0,s.jsxs)(d.$,{variant:"ghost",className:"text-red-600 hover:text-red-700",onClick:r,children:[(0,s.jsx)(u.A,{className:"mr-1 h-4 w-4"}),"خروج"]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.$,{variant:"ghost",className:"text-playmo-blue-600 hover:text-playmo-blue-700",asChild:!0,children:(0,s.jsx)(i(),{href:(0,h.kk)(),children:"ورود بازیکن"})}),(0,s.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,s.jsx)(i(),{href:(0,h.Ku)(),children:"ثبت‌نام بازیکن"})}),(0,s.jsx)(d.$,{variant:"outline",className:"border-emerald-600 text-emerald-600 hover:bg-emerald-50",asChild:!0,children:(0,s.jsx)(i(),{href:(0,h.aC)(),children:"ورود کسب‌وکار"})})]})}),(0,s.jsx)(p.r,{})]})]})})})}function b(){return(0,s.jsx)("footer",{className:"bg-gray-900 text-white py-12 border-t border-gray-800",children:(0,s.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[(0,s.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,s.jsxs)(i(),{href:"/",className:"inline-flex items-center space-x-3 space-x-reverse mb-4 group",children:[(0,s.jsx)(c.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,s.jsx)("h3",{className:"text-2xl font-bold text-white tracking-tight",children:"Playmo"})]}),(0,s.jsx)("h4",{className:"text-base font-bold text-gray-200 mb-1.5",children:"کلاب تفریح و رشد فردی قبیله آرشین‌ها"}),(0,s.jsx)("p",{className:"text-gray-400 mb-5 text-sm leading-6 max-w-md",children:"پاتوق کسانی که برای ذهن، زمان و کیفیت ارتباطات خود استاندارد بالاتری دارند."}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-4 mt-4",children:[(0,s.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,s.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,s.jsxs)("div",{className:"flex flex-col gap-2 justify-between",children:[(0,s.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,s.jsx)(j,{className:"w-4 h-4 text-pink-400 group-hover:scale-110 transition-transform"}),(0,s.jsx)("span",{children:"اینستاگرام پلیمو"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.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,s.jsx)(g,{className:"w-4 h-4 text-sky-400 group-hover:scale-110 transition-transform"}),(0,s.jsx)("span",{children:"تلگرام"})]}),(0,s.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,s.jsx)(v,{className:"w-4 h-4 group-hover:scale-110 transition-transform"}),(0,s.jsx)("span",{children:"بله"})]})]})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-bold text-lg mb-4 text-purple-400",children:"لینک‌های مفید"}),(0,s.jsxs)("ul",{className:"space-y-3 text-gray-400",children:[(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/events",className:"hover:text-white transition-colors",children:"رویدادها"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/cafes",className:"hover:text-white transition-colors",children:"کافه‌گیم‌ها"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/contact",className:"hover:text-white transition-colors",children:"تماس با ما"})}),(0,s.jsx)("li",{children:(0,s.jsx)(i(),{href:"/terms",className:"hover:text-white transition-colors",children:"قوانین سایت"})})]})]})]}),(0,s.jsx)("div",{className:"border-t border-gray-800 mt-12 pt-8 text-center",children:(0,s.jsx)("p",{className:"text-gray-500 text-sm",children:"\xa9 ۱۴۰۳ Playmo. تمامی حقوق برای تیم توسعه پلیمو محفوظ است."})})]})})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:(0,s.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 j(e){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,s.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),(0,s.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,s.jsx)("line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"})]})}function v(e){return(0,s.jsxs)("svg",{viewBox:"0 0 1000 999.72",...e,children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"bale-gradient",x1:"800.4",y1:"93.39",x2:"93.57",y2:"800.23",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0",stopColor:"#4cebb4"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2e2e74"})]})}),(0,s.jsxs)("g",{id:"File",transform:"translate(-12 -12.14)",children:[(0,s.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,s.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 y=r(1733),w=r(86948),N=r(52987),k=r(39347),_=r(16485),A=r(21873),M=r(99550),C=r(58779),O=r(96093),P=r(86600);function z(){var e;let{data:t,isLoading:r}=(0,P.C)("/api/events",{staleTime:6e4}),a=(null==t?void 0:t.success)&&(null==(e=t.data)?void 0:e.events)?t.data.events.slice(0,3):[];return(0,s.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,s.jsxs)("div",{className:"relative z-10",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center mb-16 space-y-6 mt-1",children:[(0,s.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,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-purple-600 animate-pulse"}),(0,s.jsx)("span",{children:"رویدادهای برگزیده"})]}),(0,s.jsxs)("h2",{className:"text-4xl lg:text-5xl font-black text-center leading-tight",children:[(0,s.jsx)("span",{className:"text-gray-900",children:"همین حالا "}),(0,s.jsx)("span",{className:"text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-blue-600",children:"رزرو کن!"})]}),(0,s.jsx)("p",{className:"text-gray-600 text-center max-w-lg text-lg",children:"تجربه هیجان، رقابت و دوستی در بهترین کافه‌گیم‌های شهر"}),(0,s.jsx)(d.$,{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,s.jsxs)(i(),{href:"/events",className:"flex items-center gap-2",children:["مشاهده همه رویدادها",(0,s.jsx)(N.A,{className:"h-4 w-4"})]})})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 px-6 md:px-0",children:r?[,,,].fill(0).map((e,t)=>(0,s.jsxs)(w.Zp,{className:"border-0 shadow-sm bg-white",children:[(0,s.jsxs)(w.aR,{children:[(0,s.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/3 mb-4 animate-pulse"}),(0,s.jsx)("div",{className:"h-6 bg-gray-100 rounded w-2/3 mb-2 animate-pulse"})]}),(0,s.jsxs)(w.Wu,{children:[(0,s.jsx)("div",{className:"h-32 bg-gray-100 rounded mb-4 animate-pulse"}),(0,s.jsx)("div",{className:"h-10 bg-gray-100 rounded animate-pulse"})]})]},t)):a.length>0?a.map((e,t)=>{var r;let a,l,n=(e=>{let t=[{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,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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,s.jsxs)(s.Fragment,{children:[(0,s.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,s.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,s.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 t[e%t.length]})(t);return(0,s.jsx)(y.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*t},children:(0,s.jsxs)(w.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,s.jsx)("div",{className:"relative h-32 w-full overflow-hidden bg-gray-100",children:(0,s.jsx)(c.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,s.jsxs)(w.aR,{className:"pb-3 relative z-20",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.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,s.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,s.jsx)(k.A,{className:"h-3.5 w-3.5 fill-current"}),(0,s.jsx)("span",{className:"text-xs text-yellow-700 mr-1 font-bold",children:"4.8"})]})]}),(0,s.jsx)(w.ZB,{className:"text-xl font-bold text-gray-900 group-hover:text-purple-600 transition-colors line-clamp-1",children:e.title}),(0,s.jsx)(w.BT,{className:"line-clamp-2 text-sm mt-1 text-gray-500",children:e.description||"توضیحات رویداد ..."})]}),(0,s.jsxs)(w.Wu,{className:"relative z-20",children:[(0,s.jsxs)("div",{className:"space-y-3 mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,s.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,s.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,s.jsx)(A.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(null==(r=e.cafe)?void 0:r.name)||"کافه گیم"]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between pt-4 border-t border-gray-100/50",children:[(0,s.jsx)("div",{className:"text-lg font-black text-gray-900",children:(l=e.price,new Intl.NumberFormat("fa-IR").format(l)+" تومان")}),(0,s.jsx)(d.$,{asChild:!0,size:"sm",className:"bg-gray-900 text-white ".concat(n.buttonHover," transition-colors rounded-lg shadow-md"),children:(0,s.jsx)(i(),{href:"/events/".concat(e.id),children:"ثبت نام"})})]})]})]})},e.id)}):(0,s.jsxs)("div",{className:"col-span-full py-12 text-center bg-white rounded-2xl shadow-sm border border-dashed border-gray-300",children:[(0,s.jsx)(M.A,{className:"h-12 w-12 text-gray-300 mx-auto mb-3"}),(0,s.jsx)("p",{className:"text-gray-500 font-medium",children:" فعلاً رویدادی موجود نیست."})]})})]})})}let Y=l()(()=>Promise.all([r.e(3403),r.e(2727),r.e(9072),r.e(1900),r.e(4236),r.e(8036),r.e(9696),r.e(8193)]).then(r.bind(r,10818)),{loadableGenerated:{webpack:()=>[10818]},ssr:!1});function S(){return(0,s.jsxs)("div",{className:"min-h-screen bg-gray-50 font-iranian-sans",children:[(0,s.jsx)(f,{}),(0,s.jsxs)("main",{children:[(0,s.jsx)("section",{className:"w-full overflow-hidden",children:(0,s.jsx)(Y,{})}),(0,s.jsx)(z,{})]}),(0,s.jsx)(b,{})]})}},5917:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},8567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return s.workAsyncStorageInstance}});let s=r(17828)},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return s}});let s=(0,r(64054).createAsyncLocalStorage)()},20508:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},21873:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},24437:(e,t,r)=>{"use strict";function s(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}}),r(24553)},25164:(e,t,r)=>{"use strict";r.d(t,{cr:()=>l});let s="0.9.0-beta",a="نسخه آزمایشی",l={version:s,stage:"beta",stageFa:a,displayVersion:"v".concat(s),fullDisplay:"پلیمو • ".concat(a," (v").concat(s,")"),buildDate:"2026-08-08"}},36552:(e,t,r)=>{"use strict";function s(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return s}}),r(95155),r(47650),r(8567),r(77278)},39347:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},52987:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},54356:(e,t,r)=>{Promise.resolve().then(r.bind(r,4926))},58779:(e,t,r)=>{"use strict";r.d(t,{Fi:()=>x,Mk:()=>i,NP:()=>d,Or:()=>l,WV:()=>o,aR:()=>c,oC:()=>u,pJ:()=>n});var s=r(4368),a=r.n(s);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jYYYY/jMM/jDD";try{let r=a().utc(e).add(3.5,"hours");if(!r.isValid())return"تاریخ نامشخص";return r.format(t)}catch(e){return"تاریخ نامشخص"}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dateFormat:r="jYYYY/jMM/jDD",timeFormat:s="HH:mm",separator:l=" - "}=t;try{let t=a().utc(e).add(3.5,"hours");if(!t.isValid())return"تاریخ نامشخص";let n=t.format(r),o=t.format(s);return"".concat(n).concat(l).concat(o)}catch(e){return"تاریخ نامشخص"}}function o(e){let t=a()(e);return{year:t.jYear(),month:t.jMonth()+1,day:t.jDate()}}function i(e,t,r){return a()("".concat(e,"/").concat(t,"/").concat(r),"jYYYY/jM/jD").toDate()}function c(e){return["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"][e-1]||""}function d(){return["ش","ی","د","س","چ","پ","ج"]}function x(e,t){return a().jDaysInMonth(e,t-1)}function u(e,t){return(a()("".concat(e,"/").concat(t,"/1"),"jYYYY/jM/jD").day()+1)%7}},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return n},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return o}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let a="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return a?new a:new s}function n(e){return a?a.bind(e):s.bind(e)}function o(){return a?a.snapshot():function(e,...t){return e(...t)}}},84926:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(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,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let s=r(28140)._(r(1150));function a(e,t){var r;let a={};"function"==typeof e&&(a.loader=e);let l={...a,...t};return(0,s.default)({...l,modules:null==(r=l.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86600:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});var s=r(12115);let a={},l={};function n(e,t){var r,n;let o=null!=(r=null==t?void 0:t.staleTime)?r:6e4,i=null==(n=null==t?void 0:t.revalidateOnFocus)||n,c=null==t?void 0:t.refreshInterval,[d,x]=(0,s.useState)(()=>e&&a[e]?a[e].data:null),[u,h]=(0,s.useState)(null),[m,p]=(0,s.useState)(()=>!!e&&!a[e]),[f,b]=(0,s.useState)(!1),g=(0,s.useCallback)(async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return;let r=a[e],s=!r||Date.now()-r.timestamp>=o;if(!t&&!s)return r.data!==d&&x(r.data),p(!1),r.data;r||p(!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 t=await l[e];return a[e]={data:t,timestamp:Date.now()},x(t),h(null),t}catch(t){console.error("Error fetching URL: ".concat(e),t),h(t)}finally{p(!1),b(!1)}},[e,o,d]);(0,s.useEffect)(()=>{e&&(a[e]?(x(a[e].data),p(!1)):(x(null),p(!0)),g())},[e,o]),(0,s.useEffect)(()=>{if(!e||!i)return;let t=()=>{g()};return window.addEventListener("focus",t),()=>{window.removeEventListener("focus",t)}},[e,i,g]),(0,s.useEffect)(()=>{if(!e||!c)return;let t=setInterval(()=>{g(!0)},c);return()=>clearInterval(t)},[e,c,g]);let j=(0,s.useCallback)(function(t){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(e){if(void 0!==t){let r="function"==typeof t?t(d):t;a[e]={data:r,timestamp:Date.now()},x(r)}r&&g(!0)}},[e,d,g]);return{data:d,error:u,isLoading:m,isValidating:f,mutate:j}}},99550:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(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,9829,5239,5007,4368,1733,4088,8054,8441,1255,7358],()=>e(e.s=54356)),_N_E=e.O()}]);