import{_ as r,b_ as i,W as g,B as u,an as o}from"./index-BiWH3VAt.js";const d=r.injectEndpoints({endpoints:t=>({saveArtDesign:t.mutation({query:e=>({url:"art-design",method:"POST",body:e,headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesign"]}),updateArtDesign:t.mutation({query:e=>({url:"art-design",method:"PUT",body:e,headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesign","ArtDesignImage"]}),getArtDesignById:t.query({query:e=>`art-design/${e}`,providesTags:["ArtDesign"]}),getArtDesignFullById:t.query({query:e=>`art-design/full/${e}`,providesTags:["ArtDesign","ArtDesignImage"]}),deleteArtDesign:t.mutation({query:e=>({url:`art-design/${e}`,method:"DELETE",headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesign"]}),searchArtDesigns:t.mutation({query:({criteria:e,page:s,size:a})=>({url:`art-design/search-by-criteria?page=${s}&size=${a}`,method:"POST",body:e,headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesign"]}),listArtDesignsByLead:t.mutation({query:e=>({url:`art-design/by-lead/${e}`,method:"POST",headers:{entityName:"ArtDesign"}})}),updateImageStatus:t.mutation({query:({imageId:e,update:s})=>({url:`art-design/image/${e}/status`,method:"PUT",body:s,headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesignImage","ArtDesign"]}),sendToCustomer:t.mutation({query:e=>({url:`art-design/${e}/send-to-customer`,method:"POST",headers:{entityName:"ArtDesign"}})}),getArtDesignReplies:t.query({query:e=>`art-design/${e}/replies`,providesTags:["ArtDesignReply"]}),getArtDesignConversation:t.query({query:e=>`art-design/${e}/conversation`,providesTags:["ArtDesignReply"]}),getAdminArtImages:t.query({query:e=>{const s=new URLSearchParams;return e.status&&s.set("status",e.status),e.salesPersonId!=null&&s.set("salesPersonId",String(e.salesPersonId)),e.fromDate&&s.set("fromDate",e.fromDate),e.toDate&&s.set("toDate",e.toDate),s.set("page",String(e.page??0)),s.set("size",String(e.size??40)),`art-design/admin/images?${s.toString()}`},providesTags:["ArtDesignImage"]}),getAdminArtImageSummary:t.query({query:({fromDate:e,toDate:s}={})=>{const a=new URLSearchParams;e&&a.set("fromDate",e),s&&a.set("toDate",s);const n=a.toString();return`art-design/admin/images/summary${n?`?${n}`:""}`},providesTags:["ArtDesignImage"]}),deleteAdminArtImage:t.mutation({query:e=>({url:`art-design/admin/image/${e}`,method:"DELETE",headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesignImage","ArtDesign"]}),deleteAdminArtImagesByCriteria:t.mutation({query:e=>({url:"art-design/admin/images/delete",method:"POST",body:e,headers:{entityName:"ArtDesign"}}),invalidatesTags:["ArtDesignImage","ArtDesign"]})})}),{useSaveArtDesignMutation:A,useUpdateArtDesignMutation:y,useGetArtDesignByIdQuery:D,useLazyGetArtDesignByIdQuery:l,useGetArtDesignFullByIdQuery:I,useLazyGetArtDesignFullByIdQuery:h,useDeleteArtDesignMutation:T,useSearchArtDesignsMutation:q,useListArtDesignsByLeadMutation:S,useUpdateImageStatusMutation:c,useSendToCustomerMutation:v,useGetArtDesignRepliesQuery:p,useGetArtDesignConversationQuery:P,useGetAdminArtImagesQuery:f,useLazyGetAdminArtImagesQuery:$,useGetAdminArtImageSummaryQuery:B,useDeleteAdminArtImageMutation:M,useDeleteAdminArtImagesByCriteriaMutation:L}=d,C=i(u),G=i(g),N=i(o);export{G as M,T as a,C as b,B as c,f as d,M as e,L as f,N as g,I as h,c as i,v as j,y as k,P as l,A as m,q as u};
