import{g as m}from"./vendor-utils-BveVE6Uf.js";import{r as c}from"./vendor-charts-tGnAgELZ.js";import{Y as g,b3 as p,aX as l,b9 as x,z as r}from"./index-IP_FWtso.js";import{r as D,j as I}from"./vendor-mui-CBBEb17G.js";import{a as y}from"./vendor-react-BBazpZul.js";var n={},s;function f(){if(s)return n;s=1;var e=c();Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e(g()),o=D(),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"}),"DoDisturbOn");return n.default=a,n}var C=f();const q=m(C),h=[{title:"تاریخ",dataIndex:"createDate",key:"createDate",width:40,render:e=>x(e)},{title:"نوع",dataIndex:"kardexTypeName",key:"kardexTypeName",width:40},{title:"شماره",dataIndex:"productCode",key:"productCode",width:40,render:e=>e?r(e):"-"},{title:"مقدار وارده",dataIndex:"incomingCount",key:"incomingCount",width:40,render:e=>e?r(e):"-"},{title:"مبلغ وارده",dataIndex:"incomingAmount",key:"incomingAmount",width:40,render:e=>e?r(e):"-"},{title:"مقدار صادره",dataIndex:"outgoingCount",key:"outgoingCount",width:40,render:e=>e?r(e):"-"},{title:"مبلغ صادره",dataIndex:"outgoingAmount",key:"outgoingAmount",width:40,render:e=>e?r(e):"-"},{title:"مقدار اشانتیون",dataIndex:"sampleIncomingCount",key:"sampleIncomingCount",width:70,render:e=>e?r(e):"-"},{title:"موجودی",dataIndex:"currentInventory",key:"currentInventory",width:40,render:e=>e?r(e):"-"},{title:"تحویل گیرنده",dataIndex:"receiverName",key:"receiverName",width:150}],O=({dataTable:e,loading:i,fetchData:o})=>{const a=()=>{},t=y.useMemo(()=>e?{...e,list:e.list.map(u=>({...u,id:p()}))}:null,[e]);return I.jsx(l,{loading:i,rowKey:"id",columns:h||[],data:(t==null?void 0:t.list)||[],onClick:a,totalCount:t==null?void 0:t.pagination.totalCount,pageNumber:((t==null?void 0:t.pagination.pageNumber)??1)-1,pageSize:t==null?void 0:t.pagination.pageSize,onPaginationLoad:async(u,d)=>o(u+1,d)})};export{q as D,O as K,h as c};
