PageSourceSearch

https://adatewithdeath.app/_next/static/chunks/633.761afb67d28b3530.js

js adatewithdeath.app collected 2026-10-07 23:04:13 UTC 8,954 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[633],{633:function(e,t,r){r.r(t),r.d(t,{default:function(){return j}});var a=r(9533),s=r(1229),o=r(8197),l=r(3689),n=r(9309),i=r(8605),d=r(9886),c=r(6075),m=r(5146),u=r(650),x=r(2383),f=r(2284);let h=(0,s.memo)(function(e){let{game:t}=e;return t.isHot?(0,a.jsxs)("div",{className:"absolute top-2 left-2 px-2 py-1 text-xs font-bold uppercase text-white rounded flex items-center gap-1 z-10 bg-red-500",children:[(0,a.jsx)(i.Z,{className:"w-3.5 h-3.5"}),"HOT"]}):t.isNew?(0,a.jsxs)("div",{className:"absolute top-2 left-2 px-2 py-1 text-xs font-bold uppercase text-white rounded flex items-center gap-1 z-10 bg-emerald-500",children:[(0,a.jsx)(d.Z,{className:"w-3.5 h-3.5"}),"NEW"]}):t.isUpdated?(0,a.jsxs)("div",{className:"absolute top-2 left-2 px-2 py-1 text-xs font-bold uppercase text-white rounded flex items-center gap-1 z-10 bg-amber-500",children:[(0,a.jsx)(c.Z,{className:"w-3.5 h-3.5"}),"UPDATED"]}):null}),b=(0,s.memo)(function(e){let{score:t,large:r=!1}=e;return(0,a.jsxs)("div",{className:(0,f.cn)("absolute flex items-center gap-1 bg-white/95 backdrop-blur-sm rounded shadow-sm z-10",r?"top-2 right-2 px-2 py-1 text-xs":"top-1.5 right-1.5 px-1.5 py-0.5 text-[10px]"),children:[(0,a.jsx)(m.Z,{className:(0,f.cn)("fill-amber-400 text-amber-400",r?"w-3 h-3":"w-2.5 h-2.5")}),(0,a.jsx)("span",{className:(0,f.cn)("font-semibold text-[#171717]",r?"text-sm":"text-[10px]"),children:t.toFixed(1)})]})});function g(){return(0,a.jsx)("div",{className:"w-full flex items-center justify-center py-20",children:(0,a.jsxs)("div",{className:"flex items-end justify-center gap-2",children:[(0,a.jsx)("div",{className:"w-2 h-12 bg-[#3f3f46] dark:bg-zinc-400 rounded-sm animate-bar-bounce-1",style:{transformOrigin:"bottom"}}),(0,a.jsx)("div",{className:"w-2 h-12 bg-[#3f3f46] dark:bg-zinc-400 rounded-sm animate-bar-bounce-2",style:{transformOrigin:"bottom"}}),(0,a.jsx)("div",{className:"w-2 h-12 bg-[#3f3f46] dark:bg-zinc-400 rounded-sm animate-bar-bounce-3",style:{transformOrigin:"bottom"}})]})})}function p(e){let{currentPage:t,totalPages:r,onPageChange:o}=e,l=(0,s.useMemo)(()=>{if(r<=7)return Array.from({length:r},(e,t)=>t+1);let e=[],a=t>3,s=t<r-2;return a?s?e.push(1,"...",t-1,t,t+1,"...",r):e.push(1,"...",r-4,r-3,r-2,r-1,r):e.push(1,2,3,4,5,"...",r),e},[t,r]);return(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1 py-6 select-none",children:[(0,a.jsx)("button",{onClick:()=>t>1&&o(t-1),disabled:1===t,className:"w-9 h-9 flex items-center justify-center rounded text-sm font-medium border border-[#dfdfdf] dark:border-[#3f3f46] bg-white dark:bg-[#27272a] hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-40 disabled:cursor-not-allowed transition-colors text-[#333] dark:text-white",children:(0,a.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),l.map((e,r)=>"..."===e?(0,a.jsx)("span",{className:"w-9 h-9 flex items-center justify-center text-sm text-zinc-400 dark:text-zinc-500",children:"…"},"ellipsis-".concat(r)):(0,a.jsx)("button",{onClick:()=>o(e),className:"w-9 h-9 flex items-center justify-center rounded text-sm font-medium border transition-colors ".concat(t===e?"bg-red-600 text-white border-red-600 shadow-sm":"bg-white dark:bg-[#27272a] border-[#dfdfdf] dark:border-[#3f3f46] text-[#333] dark:text-white hover:bg-zinc-100 dark:hover:bg-zinc-700"),children:e},e)),(0,a.jsx)("button",{onClick:()=>t<r&&o(t+1),disabled:t===r,className:"w-9 h-9 flex items-center justify-center rounded text-sm font-medium border border-[#dfdfdf] dark:border-[#3f3f46] bg-white dark:bg-[#27272a] hover:bg-zinc-100 dark:hover:bg-zinc-700 disabled:opacity-40 disabled:cursor-not-allowed transition-colors text-[#333] dark:text-white",children:(0,a.jsx)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor",children:(0,a.jsx)("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]})}let v=(0,s.memo)(function(e){var t,r,s;let{game:l,localePrefix:n,baseImg:i}=e;return(0,a.jsxs)("a",{href:"".concat(n).concat(l.link),className:"group block bg-white dark:bg-[#27272a] hover:bg-amber-500 dark:hover:bg-amber-500 border border-[#dfdfdf] dark:border-[#3f3f46] hover:border-amber-400 dark:hover:border-amber-400 rounded-lg overflow-hidden transition-all duration-200 hover:shadow-lg hover:shadow-amber-500/20",children:[(0,a.jsxs)("div",{className:"relative aspect-[16/9] w-full overflow-hidden bg-[#f5f5f5] dark:bg-[#1c1c1e]",children:[(0,a.jsx)(o.default,{src:"".concat(i).c
1oncat(l.image),alt:(null===(t=l.gameInfos)||void 0===t?void 0:t.name)||l.title,fill:!0,loading:"lazy",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 66vw, 800px",className:"object-cover transition-transform duration-300 group-hover:scale-105"}),(0,a.jsx)(h,{game:l}),(0,a.jsx)(b,{score:l.star||0,large:!0})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-bold text-[#171717] dark:text-white group-hover:text-white line-clamp-1 transition-colors",children:(null===(r=l.gameInfos)||void 0===r?void 0:r.name)||l.title}),(null===(s=l.gameInfos)||void 0===s?void 0:s.description)&&(0,a.jsx)("p",{className:"mt-2 text-sm text-[#666] dark:text-zinc-400 group-hover:text-white/80 line-clamp-2 transition-colors",children:l.gameInfos.description})]})]})}),w=(0,s.memo)(function(e){var t,r;let{game:s,localePrefix:l,baseImg:n}=e;return(0,a.jsxs)("a",{href:"".concat(l).concat(s.link),className:"group block bg-white dark:bg-[#27272a] hover:bg-amber-500 dark:hover:bg-amber-500 border border-[#dfdfdf] dark:border-[#3f3f46] hover:border-amber-400 dark:hover:border-amber-400 rounded-lg overflow-hidden transition-all duration-200 hover:shadow-lg hover:shadow-amber-500/20",children:[(0,a.jsxs)("div",{className:"relative aspect-[3/2] w-full overflow-hidden bg-[#f5f5f5] dark:bg-[#1c1c1e]",children:[(0,a.jsx)(o.default,{src:"".concat(n).concat(s.image),alt:(null===(t=s.gameInfos)||void 0===t?void 0:t.name)||s.title,fill:!0,loading:"lazy",sizes:"(max-width: 640px) 50vw, (max-width: 768px) 33vw, (max-width: 1024px) 22vw, 200px",className:"object-cover transition-transform duration-300 group-hover:scale-105"}),(0,a.jsx)(h,{game:s}),(0,a.jsx)(b,{score:s.star||0})]}),(0,a.jsx)("div",{className:"p-2 flex items-center justify-center",children:(0,a.jsx)("h3",{className:"text-xs font-semibold text-[#171717] dark:text-white group-hover:text-white line-clamp-1 transition-colors text-center",children:(null===(r=s.gameInfos)||void 0===r?void 0:r.name)||s.title})})]})});function j(e){let{sortBy:t="sort",sortOrder:r="desc",seriesCount:o=2,loadMoreText:i="Load More Games",itemsPerPage:d=30,boostFlags:c=!1}=e,m=(0,u.B)(),[f,h]=(0,s.useState)(1),[b,j]=(0,s.useState)(!1),N=(0,s.useMemo)(()=>(0,x.Jc)(n.CF),[]),k=(0,l.useLocale)(),_=k===n.al?"":"/".concat(k),y=(0,s.useRef)(null),z=(0,s.useRef)(null),M=(0,s.useMemo)(()=>{let e=Number(d);return Number.isFinite(e)?Math.min(60,Math.max(1,Math.floor(e))):30},[d]),T=(0,s.useMemo)(()=>{let e=[];for(let t in m){var a;if(t===n.Yr||!Object.prototype.hasOwnProperty.call(m,t))continue;let r=m[t],s=r.created_at?Date.parse(r.created_at):0,o=r.updated_at?Date.parse(r.updated_at):0,l=(r.isNew?100:0)+(r.isHot?50:0)+(null!==(a=r.star)&&void 0!==a?a:0)*10;e.push({...r,key:t,__createdTs:Number.isFinite(s)?s:0,__updatedTs:Number.isFinite(o)?o:0,__boostScore:l})}let s="asc"===r?1:-1;return e.sort((e,r)=>{var a,o,l,n;let i=null!==(a=e.sort)&&void 0!==a?a:0,d=null!==(o=r.sort)&&void 0!==o?o:0;return i!==d?d-i:c&&e.__boostScore!==r.__boostScore?r.__boostScore-e.__boostScore:"created_at"===t?(e.__createdTs-r.__createdTs)*s:"updated_at"===t?(e.__updatedTs-r.__updatedTs)*s:((null!==(l=e[t])&&void 0!==l?l:0)-(null!==(n=r[t])&&void 0!==n?n:0))*s}),e},[m,t,r,c]),C=Math.max(1,Math.ceil(T.length/M)),I=(0,s.useMemo)(()=>{let e=(f-1)*M;return T.slice(e,e+M)},[T,f,M]);(0,s.useEffect)(()=>{h(1)},[t,r,M]),(0,s.useEffect)(()=>()=>{null!==z.current&&(window.clearTimeout(z.current),z.current=null)},[]);let P=(0,s.useMemo)(()=>{let e=0;return I.map((t,r)=>({game:t,span:0===r||r>=16&&(r-1)%15==0&&e<2?(e+=1,"large"):"small"}))},[I]);return(0,a.jsxs)("div",{className:"w-full",ref:y,children:[b?(0,a.jsx)(g,{}):(0,a.jsx)("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-2 md:gap-3 auto-rows-fr",children:P.map(e=>"large"===e.span?(0,a.jsx)("div",{className:"col-span-2 row-span-2",children:(0,a.jsx)(v,{game:e.game,localePrefix:_,baseImg:N})},e.game.key):(0,a.jsx)(w,{game:e.game,localePrefix:_,baseImg:N},e.game.key))}),C>1&&!b&&(0,a.jsx)(p,{currentPage:f,totalPages:C,onPageChange:e=>{e===f||b||(j(!0),null!==z.current&&window.clearTimeout(z.current),z.current=window.setTimeout(()=>{if(h(e),j(!1),y.current){let e=y.current.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:e,behavior:"smooth"})}},350))}})]})}}}]);

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.