"use strict";(globalThis.webpackChunk_affine_web=globalThis.webpackChunk_affine_web||[]).push([[4486],{14486:(e,l,u)=>{u.d(l,{IT:()=>i,e6:()=>o});var s=u(47387),a=u(86326),n=u(47488),r=u(96269),t=u(13709);let c=e=>(l,u)=>{let t=(0,a.useMemo)(()=>({suspense:!0,...u}),[u]);return(e?r.A:n.Ay)(l?()=>["cloud",l.query.id,l.variables]:null,l?()=>(0,s.GO)(l):null,t)},i=c(!1);function o(e,l){let u=(0,a.useMemo)(()=>({suspense:!0,...l}),[l]),{data:n,setSize:r,size:c,error:i}=(0,t.Ay)((l,u)=>["cloud",e.query.id,e.getVariables(l,u)],async([l,u,a])=>{let n={...e,variables:a};return(0,s.GO)(n)},u),o=c>0&&n&&!n[c-1],b=(0,a.useCallback)(()=>{o||r(e=>e+1).catch(e=>{console.error(e)})},[o,r]);return{data:n,error:i,loadingMore:o,loadMore:b}}c(!0)}}]); //# sourceMappingURL=chunk.4486.1a3fd38d.js.map