1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[871],{6924:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[slug]",function(){return s(3861)}])},3861:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return x}});var n=s(5893),r=s(7021),a=s(5863),u=s(4057),l=s(5843),i=s(2708),o=s(7294),c=s(86),f=s(6153),d=s(6027);function h(e){var t,s;let{userId:u}=e,{ref:l,inView:d}=(0,i.YD)({rootMargin:"40% 0px"}),{data:h,isLoading:p,hasNextPage:x,fetchNextPage:g,isFetchingNextPage:_}=r.h.feed.userPosts.useInfiniteQuery({userId:u},{getNextPageParam:e=>e.nextCursor}),m=h?h.pages.flatMap(e=>e.posts):[],v=(0,c.hO)({count:x?m.length+1:m.length,estimateSize:()=>150,overscan:4}),w=v.getVirtualItems();return((0,o.useEffect)(()=>{d&&g()},[d]),p)?(0,n.jsx)(a.Y,{}):(0,n.jsx)("div",{className:"relative w-full",style:{height:"".concat(v.getTotalSize(),"px")},children:(0,n.jsxs)("div",{className:"absolute left-0 top-0 w-full",style:{transform:"translateY(".concat(null!==(s=null===(t=w[0])||void 0===t?void 0:t.start)&&void 0!==s?s:0,"px)")},children:[w.map(e=>{let{index:t,key:s}=e,r=m[t];return(0,n.jsx)("div",{"data-index":t,className:"w-full",ref:v.measureElement,children:(0,n.jsx)(f.J,{variant:"default",post:r,showParent:!1,className:"focus-wihtin:bg-white/[.03] group/post h-full transition-colors duration-200 ease-linear hover:bg-white/[.03]"})},s)}),(0,n.jsx)("div",{ref:l,children:d&&_&&(0,n.jsx)(a.Y,{})})]})})}let p=e=>{let{username:t}=e,{data:s}=r.h.profile.getUserByUsername.useQuery({username:t});return s?(0,n.jsx)(u.r,{username:t,children:(0,n.jsx)(h,{userId:s.id})}):(0,n.jsx)(l.Z,{username:t})};p.getLayout=function(e){return(0,n.jsx)(d.X,{children:e})};var x=!0;t.default=p}},function(e){e.O(0,[12,972,51,675,202,356,114,66,475,332,913,461,153,90,888,774,179],function(){return e(e.s=6924)}),_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.