PageSourceSearch

https://bhanusingh.in/_next/static/chunks/app/series/%5Bslug%5D/page-95c6281db9d3a307.js

js bhanusingh.in collected 2026-10-08 07:01:08 UTC 2,232 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7382],{9077:(e,s,t)=>{Promise.resolve().then(t.bind(t,652)),Promise.resolve().then(t.bind(t,12958)),Promise.resolve().then(t.t.bind(t,52619,23)),Promise.resolve().then(t.t.bind(t,81356,23))},12958:(e,s,t)=>{"use strict";t.d(s,{SeriesPostsList:()=>o});var r=t(95155),a=t(12115),i=t(20730);function o(e){let{initialPosts:s,initialCursor:t,initialHasNextPage:o,seriesSlug:n}=e,l=a.useId(),[d,u]=a.useState(s),[c,p]=a.useState(t),[m,h]=a.useState(o),[f,x]=a.useState(!1),g=async()=>{if(m&&!f){x(!0);try{var e;let s=await fetch("/api/series-posts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:n,cursor:c})});if(!s.ok)throw Error("Failed to load posts");let t=await s.json();u(e=>{var s;let r=new Set(e.map(e=>e.id)),a=(null!=(s=t.posts)?s:[]).filter(e=>!r.has(e.id));return[...e,...a]}),p(null!=(e=t.endCursor)?e:null),h(!!t.hasNextPage)}catch(e){console.error("Error loading more series posts",e)}finally{x(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ol",{id:l,className:"flex flex-col gap-5 list-none p-0","aria-busy":f,children:d.map(e=>(0,r.jsx)("li",{className:"list-none",children:(0,r.jsx)(i.default,{post:e})},e.id))}),m&&(0,r.jsx)("div",{className:"flex justify-center py-8",children:(0,r.jsx)("button",{type:"button",className:"group flex items-center gap-2 rounded-lg px-5 py-2.5 text-sm font-medium text-muted-foreground transition hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary disabled:opacity-50",onClick:()=>void g(),disabled:f,"aria-controls":l,"aria-label":f?"Loading more posts":"Load more posts",children:f?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("i",{className:"fa-jelly fa-arrows-rotate animate-spin text-sm","aria-hidden":!0}),(0,r.jsx)("span",{"aria-live":"polite",children:"Loading..."})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-live":"polite",children:"Load more posts"}),(0,r.jsx)("i",{className:"fa-regular fa-arrow-down text-sm transition-transform group-hover:translate-y-0.5","aria-hidden":!0})]})})})]})}}},e=>{e.O(0,[4554,7563,5001,2423,9216,3091,652,730,8441,8229,1255,7358],()=>e(e.s=9077)),_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.