import{bq as c,br as u,a9 as r,aJ as h}from"./index-BiWH3VAt.js";var t={},s=c;Object.defineProperty(t,"__esModule",{value:!0});var o=t.default=void 0,y=s(u()),M=r;o=t.default=(0,y.default)((0,M.jsx)("path",{d:"m22.61 18.99-9.08-9.08c.93-2.34.45-5.1-1.44-7C9.79.61 6.21.4 3.66 2.26L7.5 6.11 6.08 7.52 2.25 3.69C.39 6.23.6 9.82 2.9 12.11c1.86 1.86 4.57 2.35 6.89 1.48l9.11 9.11c.39.39 1.02.39 1.41 0l2.3-2.3c.4-.38.4-1.01 0-1.41m-3 1.6-9.46-9.46c-.61.45-1.29.72-2 .82-1.36.2-2.79-.21-3.83-1.25C3.37 9.76 2.93 8.5 3 7.26l3.09 3.09 4.24-4.24-3.09-3.09c1.24-.07 2.49.37 3.44 1.31 1.08 1.08 1.49 2.57 1.24 3.96-.12.71-.42 1.37-.88 1.96l9.45 9.45z"}),"BuildOutlined");const m=h.injectEndpoints({endpoints:a=>({saveMachineDetails:a.mutation({query:({machine:e})=>({url:"machine",method:"POST",body:e})}),saveMachineServiceDetails:a.mutation({query:({machine:e})=>({url:"machine-service-details",method:"POST",body:e})}),updateMachineServiceDetails:a.mutation({query:({machine:e})=>({url:"machine-service-details",method:"PUT",body:e})}),deleteMachineServiceDetails:a.mutation({query:({id:e})=>({url:`machine-service-details/${e}`,method:"DELETE"})}),getMachineServiceByMachine:a.query({query:({machineId:e})=>({url:`machine-service-details/by-machine/${e}`,method:"GET"})}),addMachineInsurance:a.mutation({query:({body:e})=>({url:"machine-insurance-policy",method:"POST",body:e})}),updateMachineInsurance:a.mutation({query:({body:e})=>({url:"machine-insurance-policy",method:"PUT",body:e})}),deleteMachineInsurance:a.mutation({query:({id:e})=>({url:`machine-insurance-policy/${e}`,method:"DELETE"})}),getMachineInsuranceByMachine:a.query({query:({machineId:e})=>({url:`machine-insurance-policy/by-machine/${e}`,method:"GET"})}),addMachinePart:a.mutation({query:({body:e})=>({url:"machine-part-replaced",method:"POST",body:e})}),updateMachinePart:a.mutation({query:({body:e})=>({url:"machine-part-replaced",method:"PUT",body:e})}),deleteMachinePart:a.mutation({query:({id:e})=>({url:`machine-part-replaced/${e}`,method:"DELETE"})}),getMachinePartByMachine:a.query({query:({machineId:e})=>({url:`machine-part-replaced/by-machine/${e}`,method:"GET"})}),updateMachineDetails:a.mutation({query:({edit:e})=>({url:"machine",method:"PUT",body:e})}),deleteMachineDetails:a.mutation({query:({id:e})=>({url:`machine/${e}`,method:"DELETE"})}),checkDuplicateMachine:a.mutation({query:({check:e})=>({url:"machine/duplicate",method:"POST",body:e})}),getMachineDataWithId:a.query({query:({id:e})=>({url:`machine/${e}`,method:"GET"})}),getDataWithId:a.query({query:({id:e})=>({url:`machine/${e}`,method:"GET"})}),getMachineDetailsBypage:a.mutation({query:({page:e,size:i,searchByName:n})=>({url:`machine/search-by-criteria?page=${e}&size=${i}`,method:"POST",body:n})}),getMachineDetailsBySearch:a.mutation({query:({searchByName:e})=>({url:"machine/search-by-criteria?page=0&size=25",method:"POST",body:e})}),getMachineDetails:a.query({query:()=>({url:"machine/search-by-criteria?page=0&size=25",method:"GET"})})})}),{useUpdateMachineDetailsMutation:d,useGetMachineDetailsQuery:p,useSaveMachineDetailsMutation:D,useSaveMachineServiceDetailsMutation:q,useUpdateMachineServiceDetailsMutation:v,useDeleteMachineServiceDetailsMutation:E,useGetMachineServiceByMachineQuery:S,useLazyGetMachineServiceByMachineQuery:P,useAddMachineInsuranceMutation:T,useUpdateMachineInsuranceMutation:G,useDeleteMachineInsuranceMutation:g,useGetMachineInsuranceByMachineQuery:I,useLazyGetMachineInsuranceByMachineQuery:B,useAddMachinePartMutation:L,useUpdateMachinePartMutation:Q,useDeleteMachinePartMutation:$,useGetMachinePartByMachineQuery:z,useLazyGetMachinePartByMachineQuery:O,useLazyGetMachineDetailsQuery:f,useLazyGetMachineDataWithIdQuery:U,useGetMachineDataWithIdQuery:x,useGetMachineDetailsBypageMutation:j,useGetMachineDetailsBySearchMutation:_,useLazyGetDataWithIdQuery:C,useDeleteMachineDetailsMutation:W,useCheckDuplicateMachineMutation:A}=m;export{D as a,d as b,A as c,o as d,S as e,I as f,z as g,q as h,v as i,E as j,U as k,T as l,G as m,g as n,L as o,Q as p,$ as q,W as r,j as u};
