import{n as e}from"./rolldown-runtime-Czos8NxU.js";import{Dt as t,Et as n,Gc as r,Rt as i,Wc as a,Xs as o,zt as s}from"./app-initial~app-main~worktree-init-v2-page~appgen-settings-page~page~appgen-publication-ter~fzo5ij6p-BKVLyD1q.js";import{Xy as c,Yy as l}from"./app-initial~app-main~new-thread-panel-page-BZHGOlMi.js";var u,d,f,p=e((()=>{o(),c(),s(),t(),u=[`custom-avatars`],d=r(i,()=>({queryKey:u,queryFn:()=>l.customAvatars.load(),enabled:!0,networkMode:`always`,refetchOnMount:!1,refetchOnWindowFocus:!1,staleTime:n.INFINITE})),f=a(i,(e,{get:t,scope:r})=>({queryKey:[...u,`selected`,e],queryFn:async()=>(await r.query.invalidate(d,{exact:!0,refetchType:`none`}),r.query.fetch(d)),enabled:e.startsWith(`custom:`)&&t(d).data?.avatars.some(({id:t})=>t===e)!==!0,gcTime:0,networkMode:`always`,refetchOnWindowFocus:!1,retry:!1,staleTime:n.INFINITE}))}));export{f as i,d as n,p as r,u as t};
//# sourceMappingURL=custom-avatars-query-Cxh7UWsi.js.map