import{aj as d,j as c,ak as h,q as p}from"./index-B1H8BCL7.js";var s={},i=h;Object.defineProperty(s,"__esModule",{value:!0});var v=s.default=void 0,l=i(d()),m=c,O=(0,l.default)((0,m.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5-4-4V4h8v3.5l-4 4z"}),"HourglassEmpty");v=s.default=O;const T=p.injectEndpoints({endpoints:r=>({createBranchTestOrder:r.mutation({query:e=>({url:"branch-test-order/add",method:"POST",body:e})}),searchBranchTestOrders:r.mutation({query:({body:e,branchId:t,status:o,userId:n})=>{const a=new URLSearchParams;t!=null&&a.append("branchId",t),o&&a.append("status",o),n!=null&&a.append("userId",n);const u=a.toString();return{url:`branch-test-order/search${u?`?${u}`:""}`,method:"POST",body:e}}}),approveBranchTestOrder:r.mutation({query:e=>({url:`branch-test-order/${e}/approve`,method:"POST"})}),rejectBranchTestOrder:r.mutation({query:({id:e,reason:t})=>({url:`branch-test-order/${e}/reject`,method:"POST",body:{reason:t}})}),getBranchTestOrder:r.query({query:e=>`branch-test-order/${e}`}),getPendingCount:r.query({query:e=>`branch-test-order/pending-count/${e}`})})}),{useCreateBranchTestOrderMutation:f,useSearchBranchTestOrdersMutation:q,useApproveBranchTestOrderMutation:g,useRejectBranchTestOrderMutation:j,useGetBranchTestOrderQuery:B,useGetPendingCountQuery:P}=T;export{q as a,g as b,j as c,v as d,f as u};
