"use strict";exports.id=8726,exports.ids=[8726],exports.modules={8726:(e,d,t)=>{t.d(d,{Pg:()=>r,el:()=>y,uX:()=>c});var a=t(8150);let s="/api/t_projects_feedbacks",i=a.g.enhanceEndpoints({addTagTypes:["Feedbacks"]}),p=i.injectEndpoints({endpoints:e=>({getFeedbacks:e.query({query:()=>s,providesTags:e=>e?[...e.map(({id:e})=>({type:"Feedbacks",id:e})),{type:"Feedbacks",id:"LIST"}]:[{type:"Feedbacks",id:"LIST"}]}),getFeedbacksByProject:e.query({query:e=>s+"?project="+e,providesTags:e=>e?[...e.map(({id:e})=>({type:"Feedbacks",id:e})),{type:"Feedbacks",id:"LIST"}]:[{type:"Feedbacks",id:"LIST"}]}),getSingleFeedback:e.query({query:e=>s+`/${e}`,providesTags:(e,d,t)=>[{type:"Feedbacks",id:t}]}),addNewFeedback:e.mutation({query:e=>({url:s,method:"POST",body:e,headers:{"Content-type":"application/json; charset=UTF-8"}}),invalidatesTags:[{type:"Feedbacks",id:"LIST"}]}),patchFeedback:e.mutation({query:e=>({url:s+`/${e.id}`,method:"PATCH",body:e}),invalidatesTags:(e,d,t)=>[{type:"Feedbacks",id:t.id}]}),deleteFeedback:e.mutation({query:e=>({url:s+`/${e}`,method:"DELETE"}),invalidatesTags:(e,d,t)=>[{type:"Feedbacks",id:t}]})}),overrideExisting:!1}),{useGetFeedbacksQuery:c,useGetFeedbacksByProjectQuery:r,useGetSingleFeedbackQuery:o,useAddNewFeedbackMutation:y,usePatchFeedbackMutation:n,useDeleteFeedbackMutation:b}=p}};