PageSourceSearch

https://irfaqraza.com/_next/static/chunks/pages/scroll/[scrollContext]-f79ea56361c86c62.js

js irfaqraza.com collected 2026-09-25 22:44:02 UTC 3,616 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9499],{45260:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/scroll/[scrollContext]",function(){return l(55027)}])},55027:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>E,default:()=>L});var n=l(37876),a=l(67768),s=l(14232),r=l(89099),o=l(57994),c=l(16495),i=l(43271),u=l(63819),d=l(18480),x=l(48134),m=l(10986),h=l(63096),C=l(15086),f=l(17175),p=l(34321),g=l(68827),S=l(48230),P=l.n(S),_=l(21639),A=l(83872),y=l(89311);let N=e=>{let{contextKey:t}=e;return({PRODUCTDESIGNCHALLENGE:(0,n.jsxs)("div",{className:"p-6 flex flex-col gap-2 items-center border-b border-gray-200",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,n.jsx)(y.default.SemiBoldText,{xs:!0,className:"uppercase tracking-uppercase",textColor:"text-gray-500",children:"21 Day"}),(0,n.jsx)(y.default.NormalText,{xxl:!0,className:"font-instrument italic",children:"Product Design Challenge"})]}),(0,n.jsx)(_.Ay.Carbon,{small:!0,className:"pr-2",as:P(),href:c.APP_PATHS.designChallenge,target:"_blank",iconRight:(0,n.jsx)(A.ExternalLinkIcon,{size:14,color:"currentColor"}),children:"Learn More"})]})})[t]||null};var j=l(94296);let T=e=>{let{currentContext:t,contexts:l=[]}=e,h=(0,r.useRouter)(),C=(0,a.jE)(),[S,P]=(0,s.useState)([]),[_,A]=(0,s.useState)(!1),[y,T]=(0,s.useState)(!1),[E,L]=(0,s.useState)(!0),[k,v]=(0,s.useState)(),O=async e=>{var l,n,a,s,r;try{T(!0),A(!S.length);let a=await p.mi.getScrollPosts({timeSince:e,context:t.key,maxCount:c.SCROLL_CONSTANTS.MAX_POST_PER_CALL,numUpvoteProfiles:m.ib,numComments:m.Vi}),s=(null==a||null==(n=a.data)||null==(l=n.data)?void 0:l.scroll)||[];s.forEach(e=>{C.setQueryData(f.l.post(e.id),e)}),P(t=>{let l=s.map(e=>e.id);return e?[...t,...l]:l}),L(s.length===c.SCROLL_CONSTANTS.MAX_POST_PER_CALL)}catch(e){v((null==e||null==(r=e.response)||null==(s=r.data)||null==(a=s.error)?void 0:a.message)||g.A.GLOBAL.wrong)}finally{T(!1),A(!1)}};return(0,s.useEffect)(()=>{P([]),O()},[t.key]),(0,n.jsx)("div",{children:(0,n.jsxs)(o.A.Center,{removeTopSpace:!0,children:[(0,n.jsxs)(o.A.CenterTop,{className:"flex justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(o.A.BackButton,{linkTo:c.APP_PATHS.scroll}),(0,n.jsx)(o.A.PageHeading,{as:"h1",children:(null==t?void 0:t.name)?(0,n.jsxs)(n.Fragment,{children:["Scroll",(0,n.jsxs)("span",{className:"sm:inline hidden",children:[" ","/ ",u.default.getContextLabel(t.name)]})]}):"Scroll"})]}),(0,n.jsx)(i.A.ContextDropdown,{contexts:l,currentContextKey:t.key,onContextSelect:e=>{e!==t.key&&h.push(c.APP_PATHS.scrollContextPage(e))}})]}),(0,n.jsx)(N,{contextKey:null==t?void 0:t.key}),(0,n.jsx)(x.A,{feedType:m.ji.CONTEXT,analyticsEventSource:j.jP.SCROLL_CONTEXT,context:t.key,emptyStateTitle:"No posts for ".concat(u.default.getContextLabel(t.name)),emptyStateDescription:"Go ahead, create one!",createPostContext:t.key,metaSEO:(0,n.jsx)(d.A,{title:(null==t?void 0:t.name)?"Posts from ".concat(u.default.getContextLabel(t.name)):"Posts",description:(null==t?void 0:t.name)?"Check out all posts on Peerlist from ".concat(u.default.getContextLabel(t.name)):"Posts from Peerlist Scroll",ogImage:(0,m.aE)(t.key)}),customFetcher:{postIds:S,isLoading:_,isFetching:y,hasNextPage:E,fetchNextPage:()=>{if(S.length>0){let e=C.getQueryData(f.l.post(S[S.length-1]));e&&O(new Date(e.createdAt).valueOf()-1)}},isError:k}})]})})};T.getLayout=e=>(0,n.jsx)(h.A,{children:(0,n.jsx)(C.A,{children:e})});var E=!0;let L=T}},e=>{e.O(0,[8798,7843,4e3,1270,6318,5389,5777,2705,2981,8514,1894,9571,636,6593,8792],()=>e(e.s=45260)),_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.