PageSourceSearch

https://artboxy.com/assets/index-B5ZWawN1.js

js artboxy.com collected 2026-09-25 19:41:43 UTC 1,119 bytes, 1 lines download raw bytes

1import{b as w,c as y,z as j,r,s as g,l as k,m as N,v as P,j as s,C as E,ae as L,af as v,ag as C}from"./index-CZu9zp_4.js";const M=()=>{const l=w(),{t:f}=y(),{isLoading:x}=j(a=>a.user),[n,d]=r.useState([]),[c,A]=r.useState({currentPage:0,limit:0,pageNo:0,total:0,totalPages:0});r.useEffect(()=>{p()},[]);const p=async(a=1,o=!1)=>{try{o||l(g(!0));const t={page:a,limit:30,sort:"desc",sortBy:"createdAt"},e=await k.post(N.getSocialFeeds,t);if(e.status===1){const u=e.data.map(i=>({...i,showMore:!1}));d(i=>a===1?u:[...i,...u]),A(e.metadata)}}catch(t){P(t)}finally{l(g(!1))}},h=r.useCallback((a,o,t)=>a.map(e=>e._id===o?{...e,...t}:e),[]),m=r.useCallback((a,o)=>{d(t=>h(t,a,o))},[h]),S=()=>{const a=c.pageNo+1;a<=c.totalPages&&p(a,!0)};return s.jsx("section",{className:"category-wrapper",children:s.jsx(E,{children:!x&&n.length===0?s.jsx("div",{className:"no-found",style:{textAlign:"center"},children:f("No data found")}):s.jsx(L,{scrollThreshold:.8,dataLength:n.length,next:S,hasMore:n.length<c.total,loader:s.jsx(C,{}),children:s.jsx(v,{variant:"SocialFeed",dataArray:n,onArtworkUpdate:m})})})})};export{M 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.