PageSourceSearch

https://degens-games-f-dev.vercel.app/assets/HomePage-DxsC1XcY.js

js degens-games-f-dev.vercel.app collected 2026-10-03 06:42:13 UTC 32,791 bytes, 45 lines download raw bytes

1import{c as K,r as c,j as e,h as q,C as U,T as J,aE as R,l as H,aR as Q,a as b,Z as ee,S as V,aS as te,aD as i,aT as L,e as se,aU as F,u as ae,aV as re}from"./index-iZnES8A7.js";import{T as le}from"./trending-down-C69J6L6p.js";import{C as oe}from"./chevron-right-AzdNXKx0.js";import{P as Y}from"./pause-Bwa2NRrv.js";import{U as ie}from"./users-Brcmmn3z.js";const ne=K("Bot",[["rect",{width:"18",height:"10",x:"3",y:"11",rx:"2",key:"1ofdy3"}],["circle",{cx:"12",cy:"5",r:"2",key:"f1ur92"}],["path",{d:"M12 7v4",key:"xawao1"}],["line",{x1:"8",x2:"8",y1:"16",y2:"16",key:"h6x27f"}],["line",{x1:"16",x2:"16",y1:"16",y2:"16",key:"5lty7f"}]]),ce=K("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"}]]),de=()=>{const[d,f]=c.useState([]),[g,l]=c.useState(!0),[y,S]=c.useState("all"),w={USDT:{logo:b.USDT,color:"text-green-400",bgColor:"bg-green-400/10",borderColor:"border-green-400/20",glowColor:"shadow-green-400/20"},BTC:{logo:b.BTC,color:"text-orange-400",bgColor:"bg-orange-400/10",borderColor:"border-orange-400/20",glowColor:"shadow-orange-400/20"},ETH:{logo:b.ETH,color:"text-blue-400",bgColor:"bg-blue-400/10",borderColor:"border-blue-400/20",glowColor:"shadow-blue-400/20"},BNB:{logo:b.BNB,color:"text-yellow-500",bgColor:"bg-yellow-500/10",borderColor:"border-yellow-500/20",glowColor:"shadow-yellow-500/20"},USDC:{logo:b.USDC,color:"text-blue-500",bgColor:"bg-blue-500/10",borderColor:"border-blue-500/20",glowColor:"shadow-blue-500/20"},KAS:{logo:b.KAS,color:"text-indigo-400",bgColor:"bg-indigo-400/10",borderColor:"border-indigo-400/20",glowColor:"shadow-indigo-400/20"},HYPE:{logo:b.HYPE,color:"text-pink-400",bgColor:"bg-pink-400/10",borderColor:"border-pink-400/20",glowColor:"shadow-pink-400/20"},PVP:{logo:"/pvp_logo.png",color:"text-red-400",bgColor:"bg-red-400/10",borderColor:"border-red-400/20",glowColor:"shadow-red-400/20"},SOL:{logo:b.SOL,color:"text-purple-500",bgColor:"bg-purple-500/10",borderColor:"border-purple-500/20",glowColor:"shadow-purple-500/20"},XRP:{logo:b.XRP,color:"text-gray-400",bgColor:"bg-gray-400/10",borderColor:"border-gray-400/20",glowColor:"shadow-gray-400/20"},ePvp:{logo:b.PVP,color:"text-purple-400",bgColor:"bg-purple-400/10",borderColor:"border-purple-400/20",glowColor:"shadow-purple-400/20"}};c.useEffect(()=>{(async()=>{try{const n=await Q();f(n)}catch(n){console.error("Failed to load recent games:",n)}finally{l(!1)}})()},[]);const T=y==="all"?d:d.filter(t=>t.currency===y),u=t=>w[t]||w.USDT,$=t=>({US:"🇺🇸",GB:"🇬🇧",FR:"🇫🇷",DE:"🇩🇪",IT:"🇮🇹",ES:"🇪🇸",BR:"🇧🇷",CA:"🇨🇦",AU:"🇦🇺",JP:"🇯🇵",KR:"🇰🇷",CN:"🇨🇳",IN:"🇮🇳",RU:"🇷🇺",CH:"🇨🇭",NL:"🇳🇱",SE:"🇸🇪",NO:"🇳🇴",DK:"🇩🇰",FI:"🇫🇮",PL:"🇵🇱",PT:"🇵🇹",GR:"🇬🇷",TR:"🇹🇷",IL:"🇮🇱",AR:"🇦🇷",MX:"🇲🇽",ZA:"🇿🇦",EG:"🇪🇬",SA:"🇸🇦",AE:"🇦🇪",SG:"🇸🇬",MY:"🇲🇾",TH:"🇹🇭",ID:"🇮🇩",PH:"🇵🇭",VN:"🇻🇳",NZ:"🇳🇿",IE:"🇮🇪",BE:"🇧🇪",AT:"🇦🇹",CZ:"🇨🇿",HU:"🇭🇺",RO:"🇷🇴",UA:"🇺🇦",CL:"🇨🇱",CO:"🇨🇴",PE:"🇵🇪"})[t]||"🌐",P=t=>t.toLowerCase().includes("high")||t.toLowerCase().includes("stake")?e.jsx(ee,{className:"w-3 h-3"}):t.toLowerCase().includes("private")?e.jsx(H,{className:"w-3 h-3"}):e.jsx(V,{className:"w-3 h-3"}),o=(t,n)=>(t*1.8).toFixed(n==="ePvp"?0:2),N=({src:t,alt:n,country:v,className:j="w-6 h-6"})=>{const[E,k]=c.useState(!1);return E||!t?e.jsxs("div",{className:`${j} bg-gradient-to-br from-gray-600 to-gray-800 rounded-full flex items-center justify-center border border-gray-600 relative`,children:[e.jsx(te,{className:"w-3 h-3 text-gray-400"}),v&&e.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 text-sm leading-none",children:$(v)})]}):e.jsxs("div",{className:"relative",children:[e.jsx("img",{src:t,alt:n,className:`${j} rounded-full object-cover border border-gray-600 hover:border-gray-400 transition-colors`,onError:()=>k(!0)}),v&&e.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 text-sm leading-none",children:$(v)})]})};return g?e.jsx("div",{className:"w-full px-2",children:e.jsxs("div",{className:"animate-pulse",children:[e.jsx("div",{className:"h-8 bg-gray-700/50 rounded-lg w-48 mb-4"}),e.jsx("div",{className:"space-y-2",children:[...Array(5)].map((t,n)=>e.jsx("div",{className:"h-16 bg-gray-800/50 rounded-lg"},n))})]})}):e.jsxs("div",{className:"w-full px-2 sm:px-3",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between mb-4 gap-3",children:[e.jsxs("h2",{className:"text-xl sm:text-2xl font-bold text-white flex items-center gap-2",children:[e.jsx("div",{className:"p-1.5 bg-gradient-to-br from-orange-500 to-red-500 rounded-lg shadow shadow-orange-500/25",children:e.jsx(q,{className:"text-white",size:20})}),"Recent Battles"]}),e.jsxs("div",{className:"flex gap-1.5 flex-wrap",children:[e.jsx("button",{onClick:()=>S("all"),className:`px-3 py-1 rounded-lg text-sm font-medium transition-all duration-200 ${y==="all"?"bg-gradient-to-r from-purple-500 to-pink-500 text-white shadow shadow-purple-500/25":"bg-gray-800/50 text-gray-400 hover:bg-gray-700/50"}`,children:"All"}),[...new Set(d.map(t=>t.currency))].map(t=>e.jsxs("button",{onClick:()=>S(t),className:`px-3 py-1 rounded-lg text-sm font-medium transition-all duration-200 flex items-center gap-1.5 ${y===t?`${u(t).bgColor} ${u(t).color} border ${u(t).borderColor} shadow ${u(t).glowColor}`:"bg-gray-800/50 text-gray-400 hover:bg-gray-700/50"}`,children:[e.jsx("img",{src:u(t).logo,alt:t,className:"w-3 h-3"}),t]},t))]})]}),e.jsx("div",{className:"hidden md:block",children:e.jsx("div",{className:"bg-gray-900/40 rounded-lg border border-gray-800/50 overflow-hidden shadow",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-gradient-to-r from-gray-800/50 to-gray-900/50",children:[e.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-gray-300",children:"Time"}),e.jsx("th",{className:"px-3 py-2 text-left text-xs font-semibold text-gray-300",children:"Game Mode"}),e.jsx("th",{className:"px-3 py-2 text-center text-xs font-semibold text-gray-300",children:"Bet Amount"}),e.jsx("th",{className:"px-3 py-2 text-center text-xs font-semibold text-gray-300",children:"Winner"}),e.jsx("th",{className:"px-3 py-2 text-center text-xs font-semibold text-gray-300",children:"Loser"})]})}),e.jsx("tbody",{children:T.map((t,n)=>e.jsxs("tr",{className:`border-t border-gray-800/30 hover:bg-gray-800/20 ${n%2===0?"bg-gray-800/10":"bg-gray-900/10"}`,children:[e.jsx("td",{className:"px-3 py-2",children:e.jsxs("div",{className:"flex items-center gap-1 text-gray-400",children:[e.jsx(U,{size:14,className:"text-gray-500"}),e.jsx("span",{className:"text-xs",children:t.endTime})]})}),e.jsx("td",{className:"px-3 py-2",children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:`p-1 rounded-md ${u(t.currency).bgColor}`,children:P(t.gameType)}),e.jsx("span",{className:"text-white text-sm",children:t.gameType}),t.isPrivate&&e.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-500/20 text-purple-400 rounded-full",children:"Private"})]})}),e.jsx("td",{className:"px-3 py-2",children:e.jsx("div",{className:"flex flex-col items-center gap-1",children:e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:`p-1.5 rounded-md ${u(t.currency).bgColor} ${u(t.currency).borderColor} border`,children:e.jsx("img",{src:u(t.currency).logo,alt:t.currency,className:"w-4 h-4"})}),e.jsxs("span",{className:`font-bold text-sm ${u(t.currency).color}`,children:[t.price," ",t.currency]})]})})}),e.jsx("td",{className:"px-3 py-2",children:e.jsx("div",{className:"flex flex-col items-center gap-1",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{src:t.winner?.avatar,alt:t.winner?.username||"Unknown",country:t.winner?.country}),e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(J,{className:"w-3 h-3 text-green-400"}),e.jsx("span",{className:"text-white text-sm",children:R(t.winner?.username||"Unknown")})]}),e.jsxs("div",{className:"text-xs text-green-400",children:["+",o(t.price,t.currency)]})]})]})})}),e.jsx("td",{className:"px-3 py-2",children:e.jsx("div",{className:"flex flex-col items-center gap-1",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{src:t.loser?.avatar,alt:t.loser?.username||"Unknown",country:t.loser?.country}),e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx(le,{className:"w-3 h-3 text-red-400"}),e.jsx("span",{className:"text-white text-sm",children:R(t.loser?.username||"Unknown")})]}),e.jsxs("div",{className:"text-xs text-red-400",children:["-",t.price]})]})]})})})]},t.id))})]})})}),e.jsx("div",{className:"md:hidden space-y-3",children:T.map(t=>e.jsxs("div",{className:"bg-gradient-to-br from-gray-800/50 to-gray-900/50 rounded-xl p-3 border border-gray-700/30 shadow-md hover:shadow-lg transition-all duration-200",children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[P(t.gameType),e.jsx("span",{className:"text-sm font-medium text-white",children:t.gameType}),t.isPrivate&&e.jsx(H,{className:"w-4 h-4 text-purple-400"})]}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[e.jsx(U,{size:12}),t.endTime]})]}),e.jsxs("div",{className:"flex flex-col items-center gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(N,{src:t.winner?.avatar,alt:t.winner?.username||"Unknown",country:t.winner?.country,className:"w-10 h-10"}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-white",children:R(t.winner?.username||"Unknown")}),e.jsxs("div",{className:"text-xs text-green-400",children:["+",o(t.price,t.currency)]})]})]}),e.jsx("div",{className:"text-2xl font-bold text-gray-300",children:"VS"}),e.jsxs("div",{className:"flex items-center gap-2 justify-end",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-sm font-medium text-white",children:R(t.loser?.username||"Unknown")}),e.jsxs("div",{className:"text-xs text-red-400",children:["-",t.price]})]}),e.jsx(N,{src:t.loser?.avatar,alt:t.loser?.username||"Unknown",country:t.loser?.country,className:"w-10 h-10"})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 text-xs text-gray-400",children:[e.jsx("img",{src:u(t.currency).logo,alt:t.currency,className:"w-5 h-5"}),e.jsxs("span",{className:`font-bold ${u(t.currency).color}`,children:[t.price," ",t.currency]})]})]})]},t.id))})]})},m=[{id:1,title:"1v1 for REAL Stakes",description:"Are you just playing... or playing to win?",highlightWords:["REAL"],highlightStyle:{gradient:"from-cyan-300 to-blue-400"},media:i.banner_1,url:"/game/Sui 2048 Tournament",type:"image",accentColor:"from-cyan-500 to-blue-500",glowColor:"cyan"},{id:2,media:i.play_earn_win,type:"image",title:"PLAY. WIN. EARN.",description:"Experience the thrill of gaming while earning real rewards. Join us now!",highlightWords:["WIN"],highlightStyle:{gradient:"from-orange-400 to-orange-500"},url:"/game/play-win-earn",accentColor:"from-orange-500 to-red-500",glowColor:"orange"},{id:3,media:i.banner_2,type:"image",title:"Climb The Leaderboards. Win Weekly Cash",description:"Top players earn every week. Top 100 flex every month.",highlightWords:["Win","Weekly","Cash"],highlightStyle:{gradient:"from-purple-400 to-pink-400"},url:"/leaderboard",withButton:!0,buttonText:"Leaderboard",accentColor:"from-purple-500 to-pink-500",glowColor:"purple"},{id:4,title:"Weekly Lucky Prizes x6 It’s Getting Crazy!",description:"Spin the wheel, win epic prizes. Don’t miss out!",highlightWords:["Prizes","x6"],highlightStyle:{gradient:"from-yellow-300 to-blue-400"},media:i.x6,url:"/game/Sui 2048 Tournament",type:"image",accentColor:"from-cyan-500 to-blue-500",glowColor:"cyan"},{id:5,title:"The Knife Game That Will Wreck Your Nerves, Degen!",description:"Test your skills in the ultimate knife game. Can you handle the pressure?",highlightWords:["REAL"],highlightStyle:{gradient:"from-red-300 to-orange-400"},media:i.knives,url:"/game/Sui 2048 Tournament",withButton:!0,buttonType:"countdown",buttonText:"Coming Soon",countdownDate:"2025-08-30T15:00:00Z",type:"image",accentColor:"from-cyan-500 to-blue-500",glowColor:"cyan"}],xe=[{id:1,title:"1v1 PvP",subtitle:"Drop in. Duel. Winner takes 90%",image:i.banner_1}
1,{id:2,title:"Play. Win. Earn.",subtitle:"GG members",image:i.play_earn_win},{id:3,title:"Leaderboards",subtitle:"Get on the board. Stay on top.",image:i.banner_2},{id:4,title:"Weekly Lucky Prizes",subtitle:"Spin the wheel",image:i.x6},{id:5,title:"Knife Game",subtitle:"Coming Soon",image:i.knives}],me=()=>{const[d,f]=c.useState(0),[g,l]=c.useState(!0),[y,S]=c.useState(!1),w=c.useRef([]),[T,u]=c.useState(null),[$,P]=c.useState(null),[o,N]=c.useState({}),[t,n]=c.useState(0),v=c.useRef(null),j=c.useRef(null),E=8e3;c.useEffect(()=>{(()=>{m.slice(0,2).filter(x=>x.type==="image").map(x=>x.media).forEach(x=>{const h=document.createElement("link");h.rel="preload",h.as="image",h.href=x.replace("/upload/f_auto,q_auto/","/upload/f_auto,q_auto,w_auto,dpr_auto/"),document.head.appendChild(h)})})()},[]),c.useEffect(()=>{const a=()=>{const x={};m.forEach(h=>{if(h.buttonType==="countdown"&&h.countdownDate){const p=new Date(h.countdownDate)-new Date;if(p>0){const A=Math.floor(p/864e5),z=Math.floor(p%(1e3*60*60*24)/(1e3*60*60)),Z=Math.floor(p%(1e3*60*60)/(1e3*60)),X=Math.floor(p%(1e3*60)/1e3);x[h.id]={days:A,hours:z,minutes:Z,seconds:X,isActive:!1}}else x[h.id]={days:0,hours:0,minutes:0,seconds:0,isActive:!0}}}),N(x)};a();const r=setInterval(a,1e3);return()=>clearInterval(r)},[]),c.useEffect(()=>{if(!g||y){j.current&&clearInterval(j.current);return}return n(0),j.current=setInterval(()=>{n(a=>a>=100?0:a+100/(E/100))},100),v.current=setInterval(()=>{f(a=>(a+1)%m.length),n(0)},E),()=>{v.current&&clearInterval(v.current),j.current&&clearInterval(j.current)}},[g,y,d]),c.useEffect(()=>{w.current.forEach((a,r)=>{a&&(r===d&&m[r].type==="video"?a.play().catch(()=>{}):(a.pause(),a.currentTime=0))})},[d]);const k=(a,r=!1)=>{if(!a)return null;const x=a.split(" "),h=s.highlightWords||[],M=s.highlightStyle||{gradient:"from-purple-300 via-purple-400 to-pink-400"};return x.map((C,p)=>h.some(z=>C.includes(z))?e.jsx("span",{className:"relative inline-block",children:e.jsx("span",{className:`relative font-bold bg-gradient-to-r ${M.gradient} bg-clip-text text-transparent`,children:C})},p):e.jsx("span",{className:"text-white",children:C},p)).reduce((C,p,A)=>A===0?[p]:[...C," ",p],[])},D=a=>{f(a),n(0)},_=()=>{f(a=>(a+1)%m.length),n(0)},G=()=>{f(a=>(a-1+m.length)%m.length),n(0)},W=a=>{P(null),u(a.targetTouches[0].clientX)},O=a=>{P(a.targetTouches[0].clientX)},B=()=>{if(!T||!$)return;const a=T-$,r=a>50,x=a<-50;r&&_(),x&&G()},I=a=>{a.startsWith("http")?window.open(a,"_blank"):window.location.href=a},s=m[d];return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hidden sm:block w-full bg-gradient-to-br from-gray-900 mb-8 via-purple-900/20 to-gray-900 rounded-2xl overflow-hidden shadow-2xl border border-purple-500/10",children:e.jsxs("div",{className:"flex",children:[e.jsxs("div",{className:"relative flex-1 h-[400px] md:h-[500px] lg:h-[600px] overflow-hidden",onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),onTouchStart:W,onTouchMove:O,onTouchEnd:B,children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-600/10 via-purple-600/10 to-pink-600/10 animate-gradient-shift"}),e.jsx("div",{className:"relative h-full",children:m.map((a,r)=>e.jsxs("div",{className:`absolute inset-0 transition-opacity duration-700 ${r===d?"opacity-100":"opacity-0"}`,children:[a.type==="video"?e.jsx("video",{ref:x=>w.current[r]=x,src:a.media,className:"w-full h-full object-cover",loop:!0,playsInline:!0,preload:"metadata"}):e.jsx("img",{src:a.media,alt:a.title,fetchPriority:r<=1?"high":"auto",loading:r===0?"eager":"lazy",decoding:r===0?"sync":"async",className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/70 via-transparent to-transparent"})]},a.id))}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-8 lg:p-12",children:e.jsxs("div",{className:"max-w-3xl",children:[s.category&&e.jsx("div",{className:"inline-block mb-4",children:e.jsxs("div",{className:`px-4 py-2 rounded-lg bg-gradient-to-r ${s.accentColor} text-white text-sm font-bold shadow-lg flex items-center gap-2`,children:[e.jsx(V,{size:16,className:"animate-pulse"}),e.jsx("span",{className:"uppercase tracking-wider",children:s.category})]})}),e.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-black mb-4 leading-tight",children:k(s.title,!0)}),s.description&&e.jsx("p",{className:"text-gray-200 text-lg md:text-xl mb-8 leading-relaxed max-w-2xl",children:k(s.description,!1)}),s.withButton&&s.url&&e.jsx("div",{className:"mt-6",children:e.jsx("button",{onClick:()=>{s.buttonType==="countdown"&&o[s.id]?.isActive?I(s.url):s.buttonType||I(s.url)},"aria-label":`${s.buttonText||"Learn More"} - ${s.title}`,className:`group inline-block ${s.buttonType==="countdown"&&!o[s.id]?.isActive?"cursor-not-allowed":""}`,children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r ${s.accentColor} blur-xl opacity-60 group-hover:opacity-100 transition-opacity`}),e.jsx("div",{className:`relative overflow-hidden px-8 py-4 bg-white text-black rounded-lg font-bold transition-all duration-300 ${s.buttonType==="countdown"&&!o[s.id]?.isActive?"opacity-75":"hover:scale-105"}`,children:s.buttonType==="countdown"&&o[s.id]?e.jsx("div",{className:"flex items-center gap-3",children:o[s.id].isActive?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:s.buttonText||"Learn More"}),e.jsx(L,{size:20,className:"group-hover:translate-x-1 transition-transform"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm",children:"Opens in:"}),e.jsxs("div",{className:"flex items-center gap-1 font-mono",children:[o[s.id].days>0&&e.jsxs("span",{children:[o[s.id].days,"d"]}),e.jsxs("span",{children:[String(o[s.id].hours).padStart(2,"0"),":",String(o[s.id].minutes).padStart(2,"0"),":",String(o[s.id].seconds).padStart(2,"0")]})]})]})}):e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{children:s.buttonText||"Learn More"}),e.jsx(L,{size:20,className:"group-hover:translate-x-1 transition-transform"})]})})]})})})]})}),e.jsx("button",{onClick:G,"aria-label":"Previous announcement",className:"absolute left-4 top-1/2 -translate-y-1/2 p-3 bg-black/30 backdrop-blur-sm text-white rounded-full hover:bg-black/50 transition-all border border-white/10",children:e.jsx(se,{size:24})}),e.jsx("button",{onClick:_,"aria-label":"Next announcement",className:"absolute right-4 top-1/2 -translate-y-1/2 p-3 bg-black/30 backdrop-blur-sm text-white rounded-full hover:bg-black/50 transition-all border border-white/10",children:e.jsx(oe,{size:24})}),e.jsx("div",{className:"absolute bottom-8 right-8 flex items-center gap-2",children:m.map((a,r)=>
1e.jsx("button",{onClick:()=>D(r),"aria-label":`Go to slide ${r+1}: ${a.title}`,className:`h-1 transition-all rounded-full ${r===d?"w-12 bg-gradient-to-r from-cyan-400 to-blue-400":"w-6 bg-white/30 hover:bg-white/50"}`},r))}),e.jsx("button",{onClick:()=>l(!g),"aria-label":g?"Pause slideshow":"Play slideshow",className:"absolute top-4 right-4 p-3 bg-black/30 backdrop-blur-sm text-white rounded-full hover:bg-black/50 transition-all border border-white/10",children:g?e.jsx(Y,{size:20}):e.jsx(F,{size:20})})]}),e.jsx("div",{className:"hidden lg:block w-80 bg-black/40 backdrop-blur-md border-l border-white/10",children:e.jsx("div",{className:"p-4",children:e.jsx("div",{className:"space-y-3",children:xe.map((a,r)=>e.jsxs("button",{onClick:()=>{r<m.length&&D(r)},"aria-label":`View ${a.title}: ${a.subtitle}`,className:`w-full flex items-center gap-4 p-3 rounded-lg transition-all group relative overflow-hidden ${r===d&&r<m.length?"bg-white/20":"bg-white/5 hover:bg-white/10"}`,children:[r===d&&r<m.length&&g&&e.jsx("div",{className:"absolute bottom-0 left-0 h-0.5 bg-gradient-to-r from-cyan-400 to-blue-400 transition-all duration-100",style:{width:`${t}%`}}),e.jsx("div",{className:"w-20 h-20 bg-gradient-to-br from-purple-600/20 to-blue-600/20 rounded-lg overflow-hidden flex-shrink-0",children:e.jsx("img",{src:a.image,alt:a.title,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:`font-medium transition-colors ${r===d&&r<m.length?"text-cyan-400":"text-white group-hover:text-cyan-400"}`,children:a.title}),e.jsx("p",{className:"text-gray-400 text-xs",children:a.subtitle}),a.isLive&&e.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[e.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full animate-pulse"}),e.jsx("span",{className:"text-green-500 text-xs font-medium",children:"LIVE"})]})]})]},a.id))})})})]})}),e.jsx("div",{className:"sm:hidden w-full",children:e.jsxs("div",{className:"relative h-[500px] rounded-2xl overflow-hidden",onTouchStart:W,onTouchMove:O,onTouchEnd:B,children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-600/10 via-purple-600/10 to-pink-600/10 animate-gradient-shift"}),e.jsx("div",{className:"relative h-full",children:m.map((a,r)=>e.jsxs("div",{className:`absolute inset-0 transition-opacity duration-700 ${r===d?"opacity-100":"opacity-0"}`,children:[a.type==="video"?e.jsx("video",{ref:x=>w.current[r]=x,src:a.media,className:"w-full h-full object-cover",loop:!0,playsInline:!0,preload:"metadata"}):e.jsx("img",{src:a.media,alt:a.title,className:"w-full h-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent"})]},a.id))}),e.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h1",{className:"text-3xl font-black mb-2 text-white",children:k(s.title,!0)}),s.description&&e.jsx("p",{className:"text-gray-200 text-base mb-4",children:k(s.description,!1)}),s.withButton&&s.url&&e.jsx("button",{onClick:()=>{s.buttonType==="countdown"&&o[s.id]?.isActive?I(s.url):s.buttonType||I(s.url)},"aria-label":`${s.buttonText||"Learn More"} - ${s.title}`,className:`w-full ${s.buttonType==="countdown"&&!o[s.id]?.isActive?"cursor-not-allowed":""}`,children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-r ${s.accentColor} blur-xl opacity-60`}),e.jsx("div",{className:`relative overflow-hidden px-6 py-3 bg-white text-black rounded-lg font-bold ${s.buttonType==="countdown"&&!o[s.id]?.isActive?"opacity-75":""}`,children:s.buttonType==="countdown"&&o[s.id]?e.jsx("div",{className:"flex items-center justify-center gap-2",children:o[s.id].isActive?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:s.buttonText||"Learn More"}),e.jsx(L,{size:18,className:"inline ml-2"})]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-sm",children:"Opens in:"}),e.jsxs("div",{className:"flex items-center gap-1 font-mono text-sm",children:[o[s.id].days>0&&e.jsxs("span",{children:[o[s.id].days,"d"]}),e.jsxs("span",{children:[String(o[s.id].hours).padStart(2,"0"),":",String(o[s.id].minutes).padStart(2,"0"),":",String(o[s.id].seconds).padStart(2,"0")]})]})]})}):e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("span",{children:s.buttonText||"Learn More"}),e.jsx(L,{size:18})]})})]})})]}),e.jsx("div",{className:"flex items-center justify-center gap-2",children:m.map((a,r)=>
1e.jsx("button",{onClick:()=>D(r),className:`h-1 transition-all rounded-full ${r===d?"w-8 bg-white":"w-4 bg-white/40"}`},r))})]}),e.jsx("button",{onClick:()=>l(!g),className:"absolute top-4 right-4 p-2 bg-black/30 backdrop-blur-sm text-white rounded-full",children:g?e.jsx(Y,{size:16}):e.jsx(F,{size:16})})]})}),e.jsx("style",{jsx:!0,children:`
2        @keyframes gradient-shift {
3          0% {
4            opacity: 0.3;
5          }
6          50% {
7            opacity: 0.6;
8          }
9          100% {
10            opacity: 0.3;
11          }
12        }
13        .animate-gradient-shift {
14          animation: gradient-shift 8s ease-in-out infinite;
15        }
16      `})]})},ue=[{id:101,name:"Chess",currentlyOnline:0,image:i.Chess,status:"full"},{id:102,name:"2048 Crypto",currentlyOnline:0,image:i.Crypto2048,status:"full"},{id:103,name:"Checkers",currentlyOnline:0,image:i.Checkers,status:"full"},{id:104,name:"Connect 4",currentlyOnline:0,image:i.Connect4,status:"full"},{id:105,name:"Snake",currentlyOnline:0,image:i.Snake,status:"coming-soon"},{id:106,name:"Runner",currentlyOnline:0,image:i.Runner,status:"coming-soon"},{id:107,name:"Tetris",currentlyOnline:0,image:i.Tetris,status:"coming-soon"},{id:109,name:"Striken Racing",currentlyOnline:0,image:i.StrikenRacing,status:"coming-soon"},{id:110,name:"Knifes",currentlyOnline:0,image:i.knives,status:"coming-soon"},{id:111,name:"Crypto.io",currentlyOnline:0,image:i.crypto_io,status:"coming-soon"},{id:112,name:"Basketball Rush",currentlyOnline:0,image:i.BasketballRush,status:"coming-soon"},{id:113,name:"Tower Safer",currentlyOnline:0,image:i.TowerSafer,status:"coming-soon"}],ge=()=>{const d=ae(),f=l=>{l.status!=="coming-soon"&&d(`/game/${l.name}`,{state:{roomData:l}})},g=l=>{const y=l.toLowerCase().replace(/\s+/g,"");d(`/play/ai/${y}`)};return e.jsxs("div",{className:"mb-12 sm:mb-16 lg:mb-20 px-2 sm:px-4",children:[e.jsxs("h2",{className:"mb-6 text-2xl sm:text-3xl lg:text-4xl font-bold text-white flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-gradient-to-br from-red-500 to-red-800 rounded-xl shadow-lg shadow-orange-500/25",children:e.jsx(ce,{className:"text-white",size:28})}),"Play PvP"]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6 lg:gap-8",children:ue.map(l=>e.jsxs("div",{className:"group rounded-xl sm:rounded-2xl overflow-hidden shadow-2xl hover:shadow-[0_20px_50px_rgba(0,0,0,0.7)] transition-all duration-300 bg-gradient-to-b from-gray-800 to-gray-900",children:[e.jsxs("div",{onClick:()=>f(l),className:`relative h-48 sm:h-64 lg:h-72 overflow-hidden ${l.status!=="coming-soon"?"cursor-pointer":""}`,children:[e.jsx("img",{src:l.image,alt:l.name,className:`w-full h-full object-cover brightness-90 transition-all duration-500 ${l.status==="coming-soon"?"grayscale-[30%
16] opacity-70":"group-hover:scale-110 group-hover:brightness-110"}`}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent opacity-80 group-hover:opacity-90 transition-opacity duration-300"}),l.status==="coming-soon"?e.jsxs("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-black/80 px-4 py-2 rounded-full backdrop-blur-sm flex items-center gap-2",children:[e.jsx(U,{size:20,className:"text-yellow-400"}),e.jsx("span",{className:"text-yellow-400 text-sm sm:text-base font-bold uppercase",children:"Coming Soon"})]}):e.jsxs("div",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 flex items-center bg-black/80 px-2 sm:px-3 py-1 rounded-full backdrop-blur-sm",children:[e.jsx("div",{className:"w-2 h-2 sm:w-3 sm:h-3 bg-green-500 rounded-full mr-1.5 sm:mr-2 animate-pulse"}),e.jsx("span",{className:"text-green-400 text-xs sm:text-sm font-medium",children:l.currentlyOnline}),e.jsx(ie,{size:12,className:"ml-1 text-green-400"})]}),e.jsx("div",{className:"absolute bottom-0 left-0 w-full bg-gradient-to-t from-black to-transparent p-4 sm:p-6",children:e.jsx("div",{className:"flex flex-col",children:e.jsx("h3",{className:`text-xl sm:text-2xl lg:text-3xl font-bold text-white mb-1 transition-colors duration-200 ${l.status!=="coming-soon"?"group-hover:text-red-400":""}`,children:l.name})})})]}),e.jsx("div",{className:"p-4 bg-gradient-to-b from-gray-900/95 to-black/95",children:e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("button",{onClick:l.status==="full"?()=>f(l):void 0,disabled:l.status!=="full",className:`flex-1 relative overflow-hidden group/btn py-3 px-4 rounded-xl font-medium transition-all duration-300 ${l.status==="full"?"bg-gradient-to-br from-red-600/30 to-red-700/30 border border-red-500/60 hover:border-red-400 text-red-200 hover:scale-[1.02] hover:shadow-lg hover:shadow-red-500/30 cursor-pointer":"bg-gray-800/50 border border-gray-700/50 text-gray-600 cursor-not-allowed opacity-50"}`,children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br from-red-600/0 to-red-600/40 opacity-0 ${l.status==="full"?"group-hover/btn:opacity-100":""} transition-opacity duration-300`}),e.jsxs("div",{className:"relative flex items-center justify-center gap-2",children:[e.jsx(re,{size:18,className:l.status==="full"?"text-red-400":"text-gray-600"}),e.jsx("span",{className:"text-sm sm:text-base font-semibold tracking-wide",children:"PLAY PvP"})]})]}),e.jsxs("button",{onClick:l.status!=="coming-soon"?()=>g(l.name):void 0,disabled:l.status==="coming-soon",className:`flex-1 relative overflow-hidden group/btn py-3 px-4 rounded-xl font-medium transition-all duration-300 ${l.status!=="coming-soon"?"bg-gradient-to-br from-blue-600/30 to-indigo-700/30 border border-blue-500/60 hover:border-blue-400 text-blue-200 hover:scale-[1.02] hover:shadow-lg hover:shadow-blue-500/30 cursor-pointer":"bg-gray-800/50 border border-gray-700/50 text-gray-600 cursor-not-allowed opacity-50"}`,children:[e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br from-blue-600/0 to-blue-600/40 opacity-0 ${l.status!=="coming-soon"?"group-hover/btn:opacity-100":""} transition-opacity duration-300`}),e.jsxs("div",{className:"relative flex items-center justify-center gap-2",children:[e.jsx(ne,{size:18,className:l.status!=="coming-soon"?"text-blue-400":"text-gray-600"}),e.jsx("span",{className:"text-sm sm:text-base font-semibold tracking-wide",children:"Play vs AI"})]})]})]})})]},l.id))}),e.jsx("div",{className:"mt-8 sm:mt-12 lg:mt-16 flex justify-center",children:e.jsx("div",{className:"w-full max-w-xs border-t border-gray-700/50"})})]})},ve=()=>e.jsxs("div",{className:"bg-gradient-to-br from-gray-900 via-gray-900 to-black min-h-screen text-gray-100",children:[e.jsxs("div",{className:"fixed inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute w-96 h-96 rounded-full bg-red-600/10 blur-3xl -top-48 -left-48 animate-pulse"}),e.jsx("div",{className:"absolute w-96 h-96 rounded-full bg-orange-600/10 blur-3xl -bottom-48 -right-48 animate-pulse",style:{animationDelay:"1s"}})]}),e.jsxs("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8 lg:py-12",children:[e.jsx("div",{className:"animate-fadeIn",children:e.jsx(me,{})}),e.jsx("div",{className:"animate-fadeIn",style:{animationDelay:"0.2s"},children:e.jsx(ge,{})}),e.jsx("div",{className:"animate-fadeIn",style:{animationDelay:"0.4s"},children:e.jsx(de,{})})]}),e.jsx("div",{className:"fixed bottom-16 right-8 hidden lg:block pointer-events-none",children:e.jsx("div",{className:"w-32 h-32 rounded-full bg-gradient-to-br from-red-600/20 to-orange-600/20 blur-xl animate-float"})}),e.jsx("div",{className:"fixed top-1/4 left-8 hidden lg:block pointer-events-none",children:e.jsx("div",{className:"w-24 h-24 rounded-full bg-gradient-to-br from-orange-600/20 to-red-600/20 blur-xl animate-float",style:{animationDelay:"2s"}})}),e.jsx("style",{jsx:!0,children:`
17        @keyframes fadeIn {
18          from {
19            opacity: 0;
20            transform: translateY(20px);
21          }
22          to {
23            opacity: 1;
24            transform: translateY(0);
25          }
26        }
27        
28        @keyframes float {
29          0%, 100% {
30            transform: translateY(0px);
31          }
32          50% {
33            transform: translateY(-20px);
34          }
35        }
36        
37        .animate-fadeIn {
38          animation: fadeIn 0.6s ease-out forwards;
39          opacity: 0;
40        }
41        
42        .animate-float {
43          animation: float 6s ease-in-out infinite;
44        }
45      `})]});
45export{ve as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.