(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{3998:(e,t,a)=>{"use strict";a.d(t,{$:()=>o});var r=a(95155);a(12115);var s=a(32467),l=a(83101),n=a(64269);let i=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:a,size:l,asChild:o=!1,...c}=e,d=o?s.DX:"button";return(0,r.jsx)(d,{"data-slot":"button",className:(0,n.cn)(i({variant:a,size:l,className:t})),...c})}},7420:(e,t,a)=>{"use strict";a.d(t,{W:()=>s});var r=a(95155);function s(e){let{className:t,variant:a="short",...s}=e;return"full"===a?(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 169.26 53.85",className:t,...s,children:(0,r.jsx)("g",{id:"Layer_2","data-name":"Layer 2",children:(0,r.jsxs)("g",{id:"Layer_1-2","data-name":"Layer 1",children:[(0,r.jsx)("path",{d:"M0,26.2V9.62A9.32,9.32,0,0,1,14,1.55L28.34,9.84l14.37,8.29a9.32,9.32,0,0,1,0,16.14l-14.37,8.3L14,50.86A9.32,9.32,0,0,1,0,42.79Z",fill:"currentColor"}),(0,r.jsx)("circle",{cx:"143.34",cy:"27.93",r:"25.92",fill:"currentColor"}),(0,r.jsx)("path",{d:"M111,7.61v37.2a7.6,7.6,0,0,1-7.6,7.6H61.36a7.61,7.61,0,0,1-7.6-7.6V7.66A7.6,7.6,0,0,1,64.86.91l14,7.23a7.59,7.59,0,0,0,7,0L99.94.85A7.6,7.6,0,0,1,111,7.61Z",fill:"currentColor"}),(0,r.jsx)("ellipse",{cx:"72.81",cy:"30.22",rx:"7.44",ry:"2.29",fill:"#ffffff"}),(0,r.jsx)("circle",{cx:"93.25",cy:"30.22",r:"6.18",fill:"#ffffff"})]})})}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 57.26 52.41",className:t,...s,children:(0,r.jsx)("g",{id:"Layer_2","data-name":"Layer 2",children:(0,r.jsxs)("g",{id:"Layer_1-2","data-name":"Layer 1",children:[(0,r.jsx)("path",{d:"M57.26,7.61v37.2a7.6,7.6,0,0,1-7.6,7.6H7.6A7.6,7.6,0,0,1,0,44.81V7.66A7.6,7.6,0,0,1,11.09.91l14,7.23a7.61,7.61,0,0,0,7,0L46.18.85A7.6,7.6,0,0,1,57.26,7.61Z",fill:"currentColor"}),(0,r.jsx)("ellipse",{cx:"19.04",cy:"30.22",rx:"7.44",ry:"2.29",fill:"#ffffff"}),(0,r.jsx)("circle",{cx:"39.48",cy:"30.22",r:"6.18",fill:"#ffffff"})]})})})}a(12115)},20508:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(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,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(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"}]])},39347:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(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,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(71847).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},54356:(e,t,a)=>{Promise.resolve().then(a.bind(a,95329))},58779:(e,t,a)=>{"use strict";a.d(t,{Fi:()=>x,Mk:()=>o,NP:()=>d,Or:()=>l,WV:()=>i,aR:()=>c,oC:()=>h,pJ:()=>n});var r=a(4368),s=a.n(r);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jYYYY/jMM/jDD";try{return s()(e).format(t)}catch(e){return"تاریخ نامشخص"}}function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{dateFormat:a="jYYYY/jMM/jDD",timeFormat:r="HH:mm",separator:l=" - "}=t;try{let t=s()(e),n=t.format(a),i=t.format(r);return"".concat(n).concat(l).concat(i)}catch(e){return"تاریخ نامشخص"}}function i(e){let t=s()(e);return{year:t.jYear(),month:t.jMonth()+1,day:t.jDate()}}function o(e,t,a){let r=s()();return r.jYear(e),r.jMonth(t-1),r.jDate(a),r.toDate()}function c(e){return["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"][e-1]||""}function d(){return["ش","ی","د","س","چ","پ","ج"]}function x(e,t){let a=s()();a.jYear(e),a.jMonth(t-1),a.jDate(1);let r=s()(a);return 12===t?(r.jYear(e+1),r.jMonth(0)):r.jMonth(t),r.jDate(1),r.diff(a,"days")}function h(e,t){let a=s()();return a.jYear(e),a.jMonth(t-1),a.jDate(1),(a.day()+1)%7}},64269:(e,t,a)=>{"use strict";a.d(t,{cn:()=>l});var r=a(2821),s=a(75889);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}},66091:(e,t,a)=>{"use strict";a.d(t,{Ku:()=>n,O$:()=>c,aC:()=>i,al:()=>o,kk:()=>l});var r=a(95704);function s(){return"true"===r.env.NEXT_PUBLIC_FEATURE_OTP_AUTH}function l(){return"/auth/customer/signin"}function n(){return s()?"/auth/customer/signup/phone":"/auth/customer/signup"}function i(){return"/auth/business/signin"}function o(){return s()?"/auth/business/signup/phone":"/auth/business/signup"}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"customer";return"business"===e?"/auth/business/forgot-password":"/auth/customer/forgot-password"}},84926:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(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"}]])},86948:(e,t,a)=>{"use strict";a.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>i,Zp:()=>l,aR:()=>n});var r=a(95155);a(12115);var s=a(64269);function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function n(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",t),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",t),...a})}},95329:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>T});var r=a(95155),s=a(36489),l=a(52619),n=a.n(l),i=a(3998),o=a(20508),c=a(84926),d=a(7420),x=a(66091);function h(){var e;let{data:t}=(0,s.useSession)(),a=async()=>{localStorage.removeItem("installPromptDismissed"),await (0,s.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)("div",{className:"flex items-center space-x-4 space-x-reverse",children:[(0,r.jsx)("div",{className:"p-2 rounded-xl",style:{background:"linear-gradient(135deg, #ffa515 0%, #ff8c00 100%)"},children:(0,r.jsx)(d.W,{variant:"full",className:"h-8 w-auto text-black"})}),(0,r.jsxs)("div",{className:"flex flex-col items-start",children:[(0,r.jsxs)("h1",{className:"text-xl font-black text-gray-900 tracking-tight leading-none flex items-center",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:"text-[12px] text-gray-600 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)(n(),{href:"/events",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"رویدادها"}),(0,r.jsx)(n(),{href:"/cafes",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"کافه‌گیم‌ها"}),(0,r.jsx)(n(),{href:"/contact",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"تماس با ما"}),(0,r.jsx)(n(),{href:"/terms",className:"text-gray-700 hover:text-playmo-purple-600 font-medium transition-colors",children:"قوانین سایت"})]}),(0,r.jsx)("div",{className:"hidden md:flex items-center space-x-4 space-x-reverse",children:(null==t?void 0:t.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:["سلام ",t.user.name||(null==(e=t.user.email)?void 0:e.split("@")[0])]}),(0,r.jsx)(i.$,{variant:"ghost",className:"text-playmo-purple-600 hover:text-playmo-purple-700",asChild:!0,children:(0,r.jsxs)(n(),{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,r.jsx)(o.A,{className:"mr-1 h-4 w-4"}),"داشبورد"]})}),(0,r.jsxs)(i.$,{variant:"ghost",className:"text-red-600 hover:text-red-700",onClick:a,children:[(0,r.jsx)(c.A,{className:"mr-1 h-4 w-4"}),"خروج"]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$,{variant:"ghost",className:"text-playmo-blue-600 hover:text-playmo-blue-700",asChild:!0,children:(0,r.jsx)(n(),{href:(0,x.kk)(),children:"ورود بازیکن"})}),(0,r.jsx)(i.$,{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)(n(),{href:(0,x.Ku)(),children:"ثبت‌نام بازیکن"})}),(0,r.jsx)(i.$,{variant:"outline",className:"border-emerald-600 text-emerald-600 hover:bg-emerald-50",asChild:!0,children:(0,r.jsx)(n(),{href:(0,x.aC)(),children:"ورود کسب‌وکار"})})]})})]})})})}function u(){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)("div",{className:"flex items-center space-x-4 space-x-reverse mb-4",children:[(0,r.jsx)("div",{className:"p-2 rounded-xl",style:{backgroundColor:"#ffa515"},children:(0,r.jsx)(d.W,{variant:"short",className:"h-8 w-auto text-black"})}),(0,r.jsx)("h3",{className:"text-2xl font-bold",children:"Playmo"})]}),(0,r.jsx)("p",{className:"text-gray-400 mb-4 text-sm leading-6 max-w-sm",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",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"})})]}),(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)(n(),{href:"/events",className:"hover:text-white transition-colors",children:"رویدادها"})}),(0,r.jsx)("li",{children:(0,r.jsx)(n(),{href:"/cafes",className:"hover:text-white transition-colors",children:"کافه‌گیم‌ها"})}),(0,r.jsx)("li",{children:(0,r.jsx)(n(),{href:"/contact",className:"hover:text-white transition-colors",children:"تماس با ما"})}),(0,r.jsx)("li",{children:(0,r.jsx)(n(),{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. تمامی حقوق برای تیم توسعه پلی‌مو محفوظ است."})})]})})}var m=a(58415),p=a(39347),g=a(12115),b=a(94416),f=a(86553),v=a(78041),y=a(98763),j=a(55888);function w(e,t){[...t].reverse().forEach(a=>{let r=e.getVariant(a);r&&(0,y.U)(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{w(e,t)})})}function N(){let e=!1,t=new Set,a={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(a,r){(0,v.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let s=[];return t.forEach(e=>{s.push((0,j._)(e,a,{transitionOverride:r}))}),Promise.all(s)},set:a=>((0,v.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=a)?w(t,r):"string"==typeof r?w(t,[r]):(0,y.U)(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,a.stop()})};return a}let k=function(){let e=(0,b.M)(N);return(0,f.E)(e.mount,[]),e};function _(){let[e,t]=(0,g.useState)(!1),a=k(),s=k(),l={1:{x:0,y:0},6:{x:180,y:0},3:{x:0,y:-90},4:{x:0,y:90},2:{x:-90,y:0},5:{x:90,y:0}},[n,i]=(0,g.useState)({x:0,y:0}),o=async()=>{if(e)return;t(!0);let r=l[Math.floor(6*Math.random())+1],o=n.x+3+Math.floor(2*Math.random()),c=n.y+3+Math.floor(2*Math.random()),d=r.x+360*o,x=r.y+360*c;i({x:o,y:c}),s.start({y:[0,-120,0,-80,0,-50,0,-30,0,-15,0,-5,0,-2,0],transition:{duration:3,times:[0,.14,.28,.42,.54,.64,.72,.79,.85,.9,.94,.97,.985,.995,1],ease:["easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn"]}}),await a.start({rotateX:d,rotateY:x,transition:{duration:3,ease:"circOut"}}),t(!1)};return(0,r.jsx)(m.P.div,{className:"w-full h-full flex items-center justify-center cursor-grab active:cursor-grabbing group touch-none",onPanEnd:(e,t)=>{t.offset.y<-20&&t.velocity.y<0&&o()},children:(0,r.jsx)("div",{className:"relative w-12 h-12",style:{perspective:"1000px"},children:(0,r.jsx)(m.P.div,{className:"w-full h-full relative",animate:s,children:(0,r.jsx)("div",{className:"w-full h-full relative",style:{transformStyle:"preserve-3d",transform:"rotateX(-30deg) rotateY(-45deg)"},children:(0,r.jsxs)(m.P.div,{className:"w-full h-full relative",style:{transformStyle:"preserve-3d"},animate:a,initial:{rotateX:0,rotateY:0},children:[(0,r.jsx)(z,{side:"front",number:1}),(0,r.jsx)(z,{side:"back",number:6}),(0,r.jsx)(z,{side:"right",number:3}),(0,r.jsx)(z,{side:"left",number:4}),(0,r.jsx)(z,{side:"top",number:2}),(0,r.jsx)(z,{side:"bottom",number:5})]})})})})})}function z(e){let{side:t,number:a}=e;return(0,r.jsx)("div",{className:"absolute inset-0 w-12 h-12 bg-gradient-to-br from-white/10 to-white/5 backdrop-blur-md border-2 border-emerald-500/90 rounded-xl flex items-center justify-center",style:{transform:{front:"rotateY(0deg) translateZ(24px)",back:"rotateY(180deg) translateZ(24px)",right:"rotateY(90deg) translateZ(24px)",left:"rotateY(-90deg) translateZ(24px)",top:"rotateX(90deg) translateZ(24px)",bottom:"rotateX(-90deg) translateZ(24px)"}[t],boxShadow:"0 0 15px rgba(16, 185, 129, 0.2), inset 0 0 20px rgba(16, 185, 129, 0.1)"},children:(0,r.jsx)("div",{className:"grid grid-cols-3 grid-rows-3 gap-0.5 w-8 h-8 p-0.5",children:(function(e){let t=Array(9).fill(!1);return({1:[4],2:[0,8],3:[0,4,8],4:[0,2,6,8],5:[0,2,4,6,8],6:[0,2,3,5,6,8]})[e].forEach(e=>t[e]=!0),t})(a).map((e,t)=>(0,r.jsx)("div",{className:"rounded-full w-full h-full transition-all duration-300 ".concat(e?"bg-emerald-400 shadow-[0_0_8px_rgba(52,211,153,0.8)] scale-100":"bg-transparent scale-0")},t))})})}function I(){let[e,t]=(0,g.useState)(!1),a=k(),s=k(),[l,n]=(0,g.useState)(0),i=async()=>{if(e)return;t(!0);let r=l+360*(3+Math.floor(3*Math.random()))+180*(.5>Math.random()?0:1);n(r),a.start({y:[0,-150,0,-90,0,-50,0,-25,0,-10,0],transition:{duration:2.5,times:[0,.12,.24,.38,.5,.6,.7,.78,.86,.93,1],ease:["easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn","easeOut","easeIn"]}}),await s.start({rotateX:r,transition:{duration:2.5,ease:[.25,.1,.25,1]}}),t(!1)};return(0,r.jsx)(m.P.div,{className:"w-full h-full flex items-center justify-center cursor-grab active:cursor-grabbing touch-none select-none",onPanEnd:(e,t)=>{t.offset.y<-20&&t.velocity.y<0&&i()},children:(0,r.jsx)("div",{className:"relative",style:{perspective:"800px",width:"100px",height:"100px"},children:(0,r.jsx)(m.P.div,{className:"w-full h-full",animate:a,children:(0,r.jsxs)(m.P.div,{className:"w-full h-full relative",style:{transformStyle:"preserve-3d"},animate:s,initial:{rotateX:0},children:[(0,r.jsx)(M,{side:"heads"}),(0,r.jsx)(M,{side:"tails"}),(0,r.jsx)(A,{})]})})})})}function M(e){let{side:t}=e,a="heads"===t;return(0,r.jsx)("div",{className:"absolute inset-0 w-[100px] h-[100px] rounded-full flex items-center justify-center",style:{transform:a?"translateZ(4px)":"rotateX(180deg) translateZ(4px)",backfaceVisibility:"hidden",background:"linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05))",backdropFilter:"blur(10px)",boxShadow:"\n                    0 0 25px rgba(234,179,8,0.4),\n                    0 0 50px rgba(234,179,8,0.2),\n                    inset 0 0 20px rgba(234,179,8,0.1),\n                    inset 0 2px 10px rgba(255,255,255,0.2)\n                ",border:"2px solid rgba(234,179,8,0.7)"},children:(0,r.jsx)("div",{className:"w-[84px] h-[84px] rounded-full flex items-center justify-center relative",style:{background:"linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02))",border:"1px solid rgba(234,179,8,0.5)",boxShadow:"inset 0 0 15px rgba(234,179,8,0.15)"},children:a?(0,r.jsxs)("svg",{viewBox:"0 0 64 64",className:"w-12 h-12",fill:"none",children:[(0,r.jsx)("path",{d:"M12 44 L52 44 L52 40 L12 40 Z",fill:"rgba(234,179,8,0.3)",stroke:"rgba(234,179,8,0.9)",strokeWidth:"1.5",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.6))"}}),(0,r.jsx)("path",{d:"M14 40 L8 22 L20 30 L32 16 L44 30 L56 22 L50 40 Z",fill:"rgba(234,179,8,0.2)",stroke:"rgba(234,179,8,0.9)",strokeWidth:"1.5",style:{filter:"drop-shadow(0 0 6px rgba(234,179,8,0.5))"}}),(0,r.jsx)("circle",{cx:"32",cy:"26",r:"4",fill:"rgba(220,20,60,0.4)",stroke:"rgba(220,20,60,0.9)",strokeWidth:"1",style:{filter:"drop-shadow(0 0 5px rgba(220,20,60,0.7))"}}),(0,r.jsx)("circle",{cx:"20",cy:"32",r:"2.5",fill:"rgba(30,144,255,0.4)",stroke:"rgba(30,144,255,0.9)",strokeWidth:"0.5",style:{filter:"drop-shadow(0 0 4px rgba(30,144,255,0.7))"}}),(0,r.jsx)("circle",{cx:"44",cy:"32",r:"2.5",fill:"rgba(30,144,255,0.4)",stroke:"rgba(30,144,255,0.9)",strokeWidth:"0.5",style:{filter:"drop-shadow(0 0 4px rgba(30,144,255,0.7))"}}),(0,r.jsx)("circle",{cx:"8",cy:"22",r:"2",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}}),(0,r.jsx)("circle",{cx:"32",cy:"16",r:"2.5",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}}),(0,r.jsx)("circle",{cx:"56",cy:"22",r:"2",fill:"rgba(234,179,8,0.6)",stroke:"rgba(234,179,8,0.9)",style:{filter:"drop-shadow(0 0 4px rgba(234,179,8,0.8))"}})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center text-center mt-2",children:[(0,r.jsx)("span",{className:"font-black text-lg leading-none",style:{color:"rgba(234,179,8,0.95)",textShadow:"0 0 10px rgba(234,179,8,0.7), 0 0 20px rgba(234,179,8,0.4)"},children:"Playmo"}),(0,r.jsx)("span",{className:"text-[6px] font-medium leading-tight mt-0.5",style:{color:"rgba(234,179,8,0.7)",textShadow:"0 0 5px rgba(234,179,8,0.5)"},children:"gaming platform"})]})})})}function A(){let e=[];for(let t=0;t<24;t++){let a=t/24*360;e.push((0,r.jsx)("div",{className:"absolute",style:{width:"8px",height:"4px",background:t%2==0?"linear-gradient(to bottom, rgba(234,179,8,0.6), rgba(234,179,8,0.3))":"linear-gradient(to bottom, rgba(234,179,8,0.3), rgba(234,179,8,0.15))",left:"50%",top:"50%",transformOrigin:"center center",transform:"\n                        translate(-50%, -50%)\n                        rotate(".concat(a,"deg)\n                        translateX(48px)\n                        rotateY(90deg)\n                    "),boxShadow:t%2==0?"0 0 3px rgba(234,179,8,0.2), inset 0 1px 1px rgba(255,255,255,0.1)":"0 0 2px rgba(234,179,8,0.1)"}},t))}return(0,r.jsx)(r.Fragment,{children:e})}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,[t,a]=(0,g.useState)(!1),[r,s]=(0,g.useState)(1),l=(0,g.useCallback)(()=>{let e=Math.floor(4*Math.random())+1,t=0,r=()=>{t<2*e?(s(t%2==0?.3*Math.random()+.2:.3*Math.random()+.7),a(t%2==0),t++,setTimeout(r,70*Math.random()+30)):(a(!1),s(1))};r()},[]);return(0,g.useEffect)(()=>{let t=()=>setTimeout(()=>{Math.random()>.3&&l();let e=t();return()=>clearTimeout(e)},e+5e3*Math.random()),a=t();return()=>clearTimeout(a)},[e,l]),{isFlickering:t,flickerIntensity:r}}let P={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},S={hidden:{y:20,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100,damping:15}}};function C(){let e=F(2500),t=F(4e3);return(0,r.jsxs)("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10 lg:py-16 relative overflow-hidden",children:[(0,r.jsxs)("div",{className:"absolute inset-0 z-0 hidden lg:block",children:[(0,r.jsx)("img",{src:"/images/bento-bg-desktop1.webp",alt:"Bento Background",className:"w-full h-full object-cover opacity-90"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60"})]}),(0,r.jsxs)("div",{className:"absolute inset-0 z-0 lg:hidden",children:[(0,r.jsx)("img",{src:"/images/bento-bg-desktop1.webp",alt:"Board Game Cafe Atmosphere",className:"w-full h-full object-cover opacity-95"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/80 via-black/80 to-black/80"})]}),(0,r.jsx)("div",{className:"w-full lg:max-w-5xl lg:mx-auto",children:(0,r.jsxs)(m.P.div,{className:"grid grid-cols-2 lg:grid-cols-3 auto-rows-min gap-3 lg:gap-4 relative z-10",variants:P,initial:"hidden",animate:"visible",children:[(0,r.jsx)(n(),{href:"/events",children:(0,r.jsxs)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 bg-emerald-600/[0.1] backdrop-blur-[5px] border-2 border-emerald-400/50 rounded-xl p-4 sm:p-6 text-white flex items-center justify-center overflow-hidden relative h-[160px] sm:h-[260px] transition-all duration-75 cursor-pointer hover:scale-[1.02]",variants:S,style:{boxShadow:e.isFlickering?"0 0 ".concat(8*e.flickerIntensity,"px rgba(52,211,153,").concat(.15*e.flickerIntensity,")"):"0 0 25px rgba(52,211,153,0.4), 0 0 50px rgba(52,211,153,0.2), inset 0 0 15px rgba(52,211,153,0.1)",opacity:e.isFlickering?.4+.3*e.flickerIntensity:1},children:[(0,r.jsx)("div",{className:"absolute top-0 left-0 w-32 h-32 bg-emerald-400 rounded-full blur-2xl -ml-10 -mt-10 transition-opacity duration-75",style:{opacity:e.isFlickering?.05*e.flickerIntensity:.15}}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center text-center transition-all duration-75 relative",style:{opacity:e.isFlickering?.3+.4*e.flickerIntensity:1},children:[(0,r.jsx)("span",{className:"relative z-10 text-3xl sm:text-6xl leading-none",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:e.isFlickering?"rgba(180, 255, 220, ".concat(.6+.3*e.flickerIntensity,")"):"#e0fff0",textShadow:e.isFlickering?"0 0 ".concat(2*e.flickerIntensity,"px #34d399, 0 0 ").concat(4*e.flickerIntensity,"px #10b981"):"0 0 1px rgba(255,255,255,0.8),\n                                           0 0 3px rgba(255,255,255,0.5),\n                                           0 0 8px rgba(52,211,153,0.6),\n                                           0 0 15px rgba(52,211,153,0.4),\n                                           0 0 25px rgba(16,185,129,0.3),\n                                           0 0 35px rgba(16,185,129,0.2)",WebkitTextStroke:"0.5px rgba(52, 211, 153, 0.3)"},children:"مشاهده"}),(0,r.jsx)("span",{className:"relative z-10 text-4xl sm:text-5xl leading-none -mt-1 sm:-mt-2",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:e.isFlickering?"rgba(180, 255, 220, ".concat(.6+.3*e.flickerIntensity,")"):"#e0fff0",textShadow:e.isFlickering?"0 0 ".concat(2*e.flickerIntensity,"px #34d399, 0 0 ").concat(4*e.flickerIntensity,"px #10b981"):"0 0 1px rgba(255,255,255,0.8),\n                                           0 0 3px rgba(255,255,255,0.5),\n                                           0 0 8px rgba(52,211,153,0.6),\n                                           0 0 15px rgba(52,211,153,0.4),\n                                           0 0 25px rgba(16,185,129,0.3),\n                                           0 0 35px rgba(16,185,129,0.2)",WebkitTextStroke:"0.5px rgba(52, 211, 153, 0.3)"},children:"رویدادها"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-6 blur-xl rounded-full transition-opacity duration-75",style:{background:"radial-gradient(ellipse, rgba(52, 211, 153, 0.3) 0%, transparent 70%)",opacity:e.isFlickering?.15*e.flickerIntensity:.4}})]})]})}),(0,r.jsx)(m.P.div,{className:"col-span-1 row-span-2 relative rounded-xl overflow-hidden shadow-lg group h-[330px] sm:h-[530px] lg:h-full",variants:S,children:(0,r.jsx)("img",{src:"/images/bento-card2.webp",alt:"Tournament Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,r.jsx)(m.P.div,{className:"col-span-1 lg:hidden lg:row-span-1 h-[160px] sm:h-[260px] relative z-20",variants:S,children:(0,r.jsx)(_,{})}),(0,r.jsx)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 relative rounded-xl overflow-hidden shadow-lg group h-[160px] sm:h-[260px]",variants:S,layoutId:"image-3",children:(0,r.jsx)("img",{src:"/images/bento-card3.webp",alt:"Playmo Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,r.jsx)(n(),{href:"/cafes",children:(0,r.jsxs)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 bg-gray-600/[0.1] backdrop-blur-[5px] border-2 border-red-400/50 rounded-xl p-4 sm:p-6 text-white flex items-center justify-center relative overflow-hidden h-[160px] sm:h-[260px] transition-all duration-75 cursor-pointer hover:scale-[1.02]",variants:S,style:{boxShadow:t.isFlickering?"0 0 ".concat(8*t.flickerIntensity,"px rgba(239,68,68,").concat(.15*t.flickerIntensity,")"):"0 0 25px rgba(239,68,68,0.4), 0 0 50px rgba(239,68,68,0.2), inset 0 0 15px rgba(239,68,68,0.1)",opacity:t.isFlickering?.4+.3*t.flickerIntensity:1},children:[(0,r.jsx)("div",{className:"absolute bottom-[-20%] right-[-20%] w-32 h-32 bg-red-400 rounded-full blur-2xl transition-opacity duration-75",style:{opacity:t.isFlickering?.05*t.flickerIntensity:.15}}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center text-center transition-all duration-75 relative",style:{opacity:t.isFlickering?.3+.4*t.flickerIntensity:1},children:[(0,r.jsx)("span",{className:"relative z-10 text-3xl sm:text-6xl leading-none",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:t.isFlickering?"rgba(255, 220, 220, ".concat(.6+.3*t.flickerIntensity,")"):"#ffe6e6",textShadow:t.isFlickering?"0 0 ".concat(2*t.flickerIntensity,"px #ef4444, 0 0 ").concat(4*t.flickerIntensity,"px #dc2626"):"0 0 1px rgba(255,255,255,0.8),\n                                               0 0 3px rgba(255,255,255,0.5),\n                                               0 0 8px rgba(239,68,68,0.6),\n                                               0 0 15px rgba(239,68,68,0.4),\n                                               0 0 25px rgba(220,38,38,0.3),\n                                               0 0 35px rgba(220,38,38,0.2)",WebkitTextStroke:"0.5px rgba(239, 68, 68, 0.3)"},children:"مشاهده"}),(0,r.jsx)("span",{className:"relative z-10 text-4xl sm:text-5xl leading-none -mt-1 sm:-mt-2",style:{fontFamily:"'Lalezar', 'Vazirmatn', cursive",fontWeight:400,color:t.isFlickering?"rgba(255, 220, 220, ".concat(.6+.3*t.flickerIntensity,")"):"#ffe6e6",textShadow:t.isFlickering?"0 0 ".concat(2*t.flickerIntensity,"px #ef4444, 0 0 ").concat(4*t.flickerIntensity,"px #dc2626"):"0 0 1px rgba(255,255,255,0.8),\n                                               0 0 3px rgba(255,255,255,0.5),\n                                               0 0 8px rgba(239,68,68,0.6),\n                                               0 0 15px rgba(239,68,68,0.4),\n                                               0 0 25px rgba(220,38,38,0.3),\n                                               0 0 35px rgba(220,38,38,0.2)",WebkitTextStroke:"0.5px rgba(239, 68, 68, 0.3)"},children:"کافه‌گیم‌ها"}),(0,r.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-24 h-6 blur-xl rounded-full transition-opacity duration-75",style:{background:"radial-gradient(ellipse, rgba(239, 68, 68, 0.3) 0%, transparent 70%)",opacity:t.isFlickering?.15*t.flickerIntensity:.4}})]})]})}),(0,r.jsx)(m.P.div,{className:"col-span-1 lg:hidden h-[160px] sm:h-[260px] relative z-20 flex items-center justify-center",variants:S,children:(0,r.jsx)(I,{})}),(0,r.jsx)(m.P.div,{className:"col-span-1 lg:col-span-1 lg:row-span-1 relative rounded-xl overflow-hidden shadow-lg group h-[160px] sm:h-[260px]",variants:S,layoutId:"image-1",children:(0,r.jsx)("img",{src:"/images/bento-card1.webp",alt:"Playmo Event",className:"absolute inset-0 w-full h-full object-fill group-hover:scale-105 transition-transform duration-500"})}),(0,r.jsx)(m.P.div,{className:"col-span-2 lg:col-span-3 lg:row-span-1 bg-gray-600/[0.1] backdrop-blur-[5px] border border-emerald-500/30 relative rounded-xl overflow-hidden shadow-2xl h-[120px] sm:h-[140px] group isolate",variants:S,children:(0,r.jsxs)("div",{className:"relative z-10 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8 w-full h-full px-6 py-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-white/10 backdrop-blur-md shadow-[0_0_15px_rgba(255,255,255,0.3)] border border-white/20",children:(0,r.jsx)(p.A,{className:"h-6 w-6 text-yellow-300 fill-yellow-300 drop-shadow-[0_0_8px_rgba(253,224,71,0.5)]"})}),(0,r.jsxs)("div",{className:"flex flex-col relative text-right sm:text-right",children:[(0,r.jsx)("h3",{className:"text-lg sm:text-2xl font-black mb-2 sm:mb-1 bg-gradient-to-r from-white via-blue-100 to-white bg-clip-text text-transparent drop-shadow-sm",children:"شروع یک ماجراجویی جدید!"}),(0,r.jsx)("p",{className:"text-blue-100/90 text-xs sm:text-sm font-medium leading-relaxed max-w-xl",children:"رویدادهای جذاب را پیدا کن، در کافه‌های شهر بازی کن و با جامعه گیمرها همراه شو"})]})]}),(0,r.jsx)(i.$,{variant:"secondary",size:"sm",className:"hidden sm:inline-flex bg-white/90 hover:bg-white text-gray-900 font-bold rounded-xl px-8 shadow-[0_0_20px_rgba(255,255,255,0.3)] border border-white/50 backdrop-blur-md transition-all duration-300 hover:scale-105",children:"ثبت نام رایگان"})]})})]})})]})}var E=a(86948),L=a(52987),Y=a(16485),O=a(21873),W=a(99550),Z=a(58779);function D(){let[e,t]=(0,g.useState)([]),[a,s]=(0,g.useState)(!0);return(0,g.useEffect)(()=>{(async()=>{try{var e;let a=await fetch("/api/events"),r=await a.json();r.success&&(null==(e=r.data)?void 0:e.events)&&t(r.data.events.slice(0,3))}catch(e){console.error("Error fetching events:",e),t([])}finally{s(!1)}})()},[]),(0,r.jsxs)("section",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 relative overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-[url('/images/land-bg2-light.webp')] bg-[length:100%_auto] md:bg-cover bg-top bg-no-repeat z-0 lg:hidden"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(to_bottom,rgba(0,0,0,0.1)_10%,rgba(0,0,0,0.1)_10%,transparent_100%,transparent_100%)] z-0 lg:hidden"}),(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-12",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)(i.$,{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)(n(),{href:"/events",className:"flex items-center gap-2",children:["مشاهده همه رویدادها",(0,r.jsx)(L.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:a?[,,,].fill(0).map((e,t)=>(0,r.jsxs)(E.Zp,{className:"border-0 shadow-sm bg-white",children:[(0,r.jsxs)(E.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)(E.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"})]})]},t)):e.length>0?e.map((e,t)=>{var a;let s,l,o=(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,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 t[e%t.length]})(t);return(0,r.jsx)(m.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*t},children:(0,r.jsxs)(E.Zp,{className:"h-full border shadow-sm ".concat(o.shadow," ").concat(o.border," hover:-translate-y-1 transition-all duration-300 group overflow-hidden bg-white/80 backdrop-blur-sm relative z-10"),children:[o.shapes,(0,r.jsxs)(E.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(o.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)(p.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)(E.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)(E.BT,{className:"line-clamp-2 text-sm mt-1 text-gray-500",children:e.description||"توضیحات رویداد ..."})]}),(0,r.jsxs)(E.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)(Y.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(s=e.date,(0,Z.pJ)(s,{dateFormat:"dddd jYYYY/jMM/jDD",separator:""}))]}),(0,r.jsxs)("div",{className:"flex items-center text-gray-500 text-sm",children:[(0,r.jsx)(O.A,{className:"h-4 w-4 ml-2 text-gray-400"}),(null==(a=e.cafe)?void 0:a.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)(i.$,{asChild:!0,size:"sm",className:"bg-gray-900 text-white ".concat(o.buttonHover," transition-colors rounded-lg shadow-md"),children:(0,r.jsx)(n(),{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)(W.A,{className:"h-12 w-12 text-gray-300 mx-auto mb-3"}),(0,r.jsx)("p",{className:"text-gray-500 font-medium",children:" فعلاً رویدادی موجود نیست."})]})})]})]})}function T(){return(0,r.jsxs)("div",{className:"min-h-screen bg-gray-50 font-iranian-sans",children:[(0,r.jsx)(h,{}),(0,r.jsxs)("main",{children:[(0,r.jsx)(C,{}),(0,r.jsx)(D,{})]}),(0,r.jsx)(u,{})]})}},99550:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=(0,a(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,[7620,8501,6489,6524,8415,4623,7358],()=>e(e.s=54356)),_N_E=e.O()}]);