1import{r as n,f as d}from"./vendor-wagmi-CRHMQcRy.js";import{$ as l,cA as f}from"./index-CjDX1y09.js";const y=()=>{const{apiClient:e}=l();return n.useCallback(async({feedKey:a,feedType:r,latestItemTimestamp:t,accessTimestamp:s})=>{try{await e.setFeedSeen({feeds:[{feedKey:a,feedType:r,latestItemTimestamp:t,accessTimestamp:s}]})}catch{}},[e])},T=({feedKey:e,feedType:a})=>{const r=y(),t=d(),s=f({feedKey:e,feedType:a}),c=n.useRef(!1),u=t.getQueryData(s),[i,m]=n.useMemo(()=>{const o=u?.pages?.[0]?.result;return[o?.latestMainCastTimestamp||0,o?.feedTopSeenAtTimestamp||0]},[u]),p=n.useMemo(()=>t.getQueryCache().find({queryKey:s})?.options.meta?.updateState||!1,[s,t]);!c.current&&!p&&(r({feedKey:e,feedType:a,latestItemTimestamp:i,accessTimestamp:m}),c.current=!0)};export{T as u};
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.