import{i as n,k as u,l as t,q as i,m as s}from"./index-B48HCCvn.js";function p(){return n({queryKey:i.providers.all,queryFn:()=>s.get("/providers")})}function c(){const e=u();return t({mutationFn:r=>s.post("/providers",r),onSuccess:()=>{e.invalidateQueries({queryKey:i.providers.all})}})}function d(){const e=u();return t({mutationFn:({id:r,data:o})=>s.put(`/providers/${r}`,o),onSuccess:()=>{e.invalidateQueries({queryKey:i.providers.all})}})}function v(){const e=u();return t({mutationFn:r=>s.delete(`/providers/${r}`),onSuccess:()=>{e.invalidateQueries({queryKey:i.providers.all})}})}function l(){return t({mutationFn:()=>s.get("/providers/backup")})}function y(){return t({mutationFn:e=>s.post("/providers/import/preview",e)})}function m(){const e=u();return t({mutationFn:r=>s.post("/providers/import",r),onSuccess:()=>{e.invalidateQueries({queryKey:i.providers.all})}})}export{c as a,d as b,v as c,l as d,y as e,m as f,p as u};
