import{ar as o}from"./index-OtVJl4GC.js";import"./lodash-ZyeDnt0e.js";import"./vendor-ClLR6ncd.js";import{b as s,a as i,f as n,c as t}from"./useEntity-C2GgsMNR.js";const a=t;function r(e){return{queryKey:["admin","role",e],queryFn:async()=>({roleUrl:`/admin/roles/${e}`,...await n(e,"role","roles",a)})}}const y=s(r),v=i(r,"/roles"),l=e=>{o.invalidateQueries(["admin","role",e])},u=e=>{o.removeQueries(["admin","role",e]),o.removeQueries([e,"roles","color"]),o.resetQueries(["admin","/roles"])},Q={urlPrefix:"/roles",invalidate:l,remove:u};export{y as a,Q as r,v as u};
