import{E as t,ar as i,i as o}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";import"./vendor-ClLR6ncd.js";const n=["serverWarnings"];function g(){return i.invalidateQueries(n)}async function c(){try{return await o({url:"/serverWarnings"})}catch(r){return r.response?[{tag:"Error response",category:"",expansion:"The request for fetching server warnings returns error response",cancellable:!1}]:r.request?[{tag:"Error response",category:"",expansion:"The request for fetching server warnings doesn't return any response",cancellable:!1}]:[{tag:"Error response",category:"",expansion:"The request for fetching server warnings fails to start. Please check your network connection",cancellable:!1}]}}function y(){const r=a=>a.concat(Array.isArray(e.data)?e.data.filter(({generatedByClient:s})=>s):[]),e=t(n,async()=>r(await c()),{retry:!1});return e}export{g as i,y as u};
