import{c as s,f as e,d as a}from"./router.chunk.YsRm4bSN.js";import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{w as t,aw as u,ax as n}from"./main.chunk.N-eZ2ybB.js";const r=()=>u.get(n.TAGS).then(s=>s.data),c=()=>s({queryKey:["Tags"],queryFn:r}),o=s=>u.post(n.TAGS,s).then(s=>s.data),i=()=>{const s=e();return a({mutationFn:o,onSuccess:()=>{s.invalidateQueries({queryKey:["Tags"]}),t.success(__("Tag created successfully","growfund"))}})},d=({id:s,...e})=>u.put(n.TAGS_WITH_ID(s),e).then(s=>s.data),T=()=>{const s=e();return a({mutationFn:d,onSuccess(){s.invalidateQueries({queryKey:["Tags"]}),t.success(__("Tag updated successfully","growfund"))}})},g=s=>u.patch(n.TAGS_BULK_ACTIONS,s),m=()=>{const s=e();return a({mutationFn:g,onSuccess(e){s.invalidateQueries({queryKey:["Tags"]}),t.success(e.message)}})};export{i as a,T as b,m as c,c as u};
