PageSourceSearch

https://duckmath.org/assets/CategoryGrid-BIys9OAi.js

js duckmath.org collected 2026-10-03 23:18:26 UTC 3,152 bytes, 3 lines download raw bytes

1import{B as y,b as v,c as P,j as o,ag as G,g as m,i as w,ah as z,af as F}from"./index-3F8zEw1m.js";import{a as B,G as M,P as N,A as R,R as E,b as I}from"./RelatedCategories-Bzxm5XFT.js";import{L as U}from"./LoadMainGrid-CxSuca4R.js";import{S as D}from"./SEOHelmet-Bvt0eIk_.js";import{B as T}from"./BottomMarkdown-muINB6iL.js";import{u as H}from"./useApps-CaaqTGBm.js";import{u as q}from"./useCategories-DJWlVXQR.js";import O from"./404-BUPBNnqo.js";import"./testConts-vN1Nohsa.js";import"./useCurUser-C4DCt6Yf.js";import"./Icon-CH5danlF.js";const ae=()=>{var C,b;const f=(C=y().category)==null?void 0:C.toLowerCase(),e=(b=q())==null?void 0:b.find(t=>t.category_slug.toLowerCase()===(f==null?void 0:f.toLowerCase()));let s=H();s=e!=null&&e.category_slug&&(s!=null&&s.length)?s.filter(t=>{var n,a;return(a=(n=t.categories)==null?void 0:n.toLowerCase())==null?void 0:a.includes(e==null?void 0:e.category_slug.toLowerCase())}):s,s=s==null?void 0:s.filter(t=>t.is_listed!==!1);const l=v(P),L=l==null?void 0:l.Apps,_=l==null?void 0:l.Categories;if(L||_)return o.jsx(U,{});if(!e||!(s!=null&&s.length))return o.jsx(O,{});const p=(t=>{var S,$;if(!t||t.length===0)return[];const n=F(t),a=(S=n.slice(0,6))==null?void 0:S.map(i=>({...i,size:"2x2"})),g=($=n.slice(6))==null?void 0:$.map(i=>({...i,size:"1x1"})),j=Math.min(50,n.length),u=[],h=new Set;if(h.add(0),a.length>1){const i=Math.floor((j-1)/(a.length-1));for(let x=1;x<a.length;x++)h.add(x*i)}let d=0,c=0;for(let i=0;i<j;i++)h.has(i)&&d<a.length?(u.push(a[d]),d++):c<g.length&&(u.push(g[c]),c++);for(;d<a.length;)u.push(a[d]),d++;for(;c<g.length;)u.push(g[c]),c++;return u})(s||[]),r=G(e==null?void 0:e.category_slug),A=`${r} Games - ${m(!1)} Unblocked`,k=w()&&(e!=null&&e.category_slug)?B(e==null?void 0:e.category_slug,s,m(!1),5):null;return o.jsxs("div",{children:[o.jsx(D,{seo:{title:A,description:`Play the best ${r} games online! Free, unblocked, and no downloads needed. Enjoy ${r} games at school with our collection.`,keywords:`${r} games, unblocked games, free games, ${r} online`},regular:{title:`${r} - ${m(!0)}`,description:`Browse ${r} flashcard sets. Learn and play with our collection.`,keywords:`${r}, flashcards, study sets`},structuredData:k||void 0}),o.jsxs(M,{children:[o.jsx(N,{size:"1x1"}),(e==null?void 0:e.category_slug)&&o.jsx("div",{className:"col-span-2 row-span-1 flex items-center justify-center p-6",style:{backgroundColor:"#ffffff",borderRadius:"16px",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)"},children:o.jsxs("h2",{className:"text-2xl font-bold text-gray-900 capitalize","data-testid":`category-title-${e==null?void 0:e.category_slug.toLowerCase()}`,children:[r.toUpperCase()," ",w()?"GAMES":"FLASHCARDS"]})}),p==null?void 0:p.map(t=>o.jsx(R,{title:t.title,icon:t.icon,id:String(t.id),size:t.size,videoUrl:t.video_link},t.id)),o.jsx(E,{category:e==null?void 0:e.category_slug})]}),w()&&o.jsx("div",{className:"px-4 pb-8",children:o.jsx(T,{title:`${r} Games`,breadcrumb:[{label:m(!1),href:"/"},{label:r,href:z(e==null?void 0:e.category_slug)||"/"}],content:`${(e==null?void 0:e.description)||""}
2
3${I(void 0,e==null?void 0:e.category_slug,s)}`})})]})};export{ae 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.