1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3468],{45708:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/t/[topic]",function(){return s(49537)}])},49537:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>p,default:()=>h});var a=s(37876),r=s(14232),n=s(77328),i=s.n(n),c=s(38485),o=s(75260),l=s(3572);function d(e=""){return String(e).replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase())}var p=!0;function h({menuItems:e,topic:t}){let[s,n]=(0,r.useState)([]),[p,u]=(0,r.useState)(()=>new Set);return(0,r.useEffect)(()=>{function e(){try{let e=JSON.parse(window.localStorage.getItem("hidden_story_ids")||"[]"),t=Array.isArray(e)?e.map(e=>String(e||"")):[];u(new Set(t.filter(Boolean)))}catch(e){u(new Set)}}return e(),window.addEventListener("focus",e),window.addEventListener("storage",e),()=>{window.removeEventListener("focus",e),window.removeEventListener("storage",e)}},[]),(0,r.useEffect)(()=>{let e=!1;return async function(){let s=await fetch(`/api/posts?topic=${encodeURIComponent(t)}&limit=30`);if(!s.ok)return;let a=await s.json();e||n(Array.isArray(a.posts)?a.posts:[])}(),()=>{e=!0}},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:`${d(t)} | Topic | NextShark`})}),(0,a.jsx)(l.A,{activeNav:"",showTrustBar:!1}),(0,a.jsx)("main",{className:"bg-[#F3F4F5] py-4 md:py-6",children:(0,a.jsxs)("div",{className:"container space-y-3",children:[(0,a.jsxs)("section",{className:"rounded-xl bg-white p-4",children:[(0,a.jsx)("h1",{className:"text-2xl font-semibold text-black",children:d(t)}),(0,a.jsx)("p",{className:"mt-1 text-sm text-v2gray",children:"Legacy topic archive"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-slate-600",children:"School feeds are the active home surface. This topic page remains available as a legacy archive."})]}),s.filter(e=>!p.has(String(e?.id||""))).map(e=>(0,a.jsx)(o.OI,{item:e},e.id))]})}),(0,a.jsx)(c.A,{})]})}}},e=>{e.O(0,[4587,2749,7735,8485,8918,5260,636,6593,8792],()=>e(e.s=45708)),_N_E=e.O()}]);
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.