import{a7 as g,aQ as t,a4 as i}from"./index-BKr2rJhV.js";const e=g.injectEndpoints({endpoints:n=>({getAdminConfig:n.query({query:()=>({url:"/admin/configuration"}),providesTags:t.providesListItems(i.AdminTags.Config,"name")}),addOrUpdateAdminConfig:n.mutation({query:a=>({url:`/admin/configuration/${a.name}`,method:"POST",data:a}),async onQueryStarted(a,{dispatch:d,queryFulfilled:o}){try{const{data:r}=await o;d(e.util.updateQueryData("getAdminConfig",void 0,s=>{Object.assign(s,r)}))}catch{}},invalidatesTags:t.cacheByIdArgProperty(i.AdminTags.Config,"name")})})}),{useGetAdminConfigQuery:m,useAddOrUpdateAdminConfigMutation:c}=e;export{m as a,c as u};
