????
Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/ |
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/index-f54fc992.js |
import{j as e,U as i}from"./index-727ccf4d.js";import{T as d}from"./Table-9bef8b1e.js";const p=({columns:l,data:r,style:n})=>e.jsx(e.Fragment,{children:e.jsxs(c,{style:n,children:[e.jsx(b,{children:l==null?void 0:l.map((t,o)=>e.jsx(u,{children:t==null?void 0:t.title},o))}),e.jsx(x,{children:r&&e.jsx(e.Fragment,{children:r!=null&&r.length?e.jsx(e.Fragment,{children:r==null?void 0:r.map((t,o)=>e.jsx(h,{i:o,children:l==null?void 0:l.map((s,a)=>e.jsx(j,{children:s!=null&&s.render?s==null?void 0:s.render(s):typeof t[s==null?void 0:s.field]=="number"?i(t[s==null?void 0:s.field]||0):t[s==null?void 0:s.field]},a))},o))}):"Không có dữ liệu"})})]})}),c=({children:l,hover:r,style:n,border:t})=>e.jsx(e.Fragment,{children:e.jsx("div",{style:{marginTop:"1rem",...n},className:"ntable-wrap",children:e.jsx("div",{className:"ntable-inner",children:e.jsx(d,{hover:r,bordered:t,className:"MuiTable-root",children:l})})})}),b=({children:l,addTr:r})=>e.jsx(e.Fragment,{children:e.jsxs("thead",{className:"MuiTableHead-root",children:[e.jsx("tr",{className:"MuiTableRow-root MuiTableRow-head",children:l}),r]})}),h=({children:l,i:r,onClick:n,style:t})=>e.jsx(e.Fragment,{children:e.jsx("tr",{className:"MuiTableRow-root MuiTableRow-hover",index:"0",level:"0",localization:"[object Object]",actions:"[object Object],[object Object],[object Object]",path:"0",onClick:n,style:{transition:"300ms",backgroundColor:+r%2===1?"rgb(250, 250, 250)":"rgb(255, 255, 255)",cursor:"pointer",...t},children:l})}),x=({children:l})=>e.jsx(e.Fragment,{children:e.jsx("tbody",{style:{position:"relative"},className:"MuiTableBody-root",children:l})}),u=({children:l,isThaoTac:r,isArrow:n,rowspan:t,colSpan:o,style:s})=>e.jsx(e.Fragment,{children:e.jsx("th",{className:"MuiTableCell-root MuiTableCell-head MTableHeader-header-5 MuiTableCell-alignLeft",scope:"col",rowspan:t,colSpan:o,style:{color:"rgb(0, 0, 0)",padding:"0.3rem 1rem 0.5rem",position:"relative",fontSize:"12px",fontWeight:"bold",textAlign:"center",alignItems:"center",backgroundColor:"rgb(241, 241, 241)",minWidth:r?"7rem":"auto",width:n?"2%":"",...s},children:e.jsx("span",{className:"MuiButtonBase-root MuiTableSortLabel-root",tabindex:"0",role:"button","aria-disabled":"false",children:l})})}),j=({children:l,cap:r,isArrow:n,colspan:t,style:o,rowspan:s})=>e.jsx(e.Fragment,{children:e.jsx("td",{className:"MuiTableCell-root MuiTableCell-body MuiTableCell-alignLeft MuiTableCell-sizeSmall",colspan:t||1,rowspan:s||1,style:{fontSize:r===1?"0.8rem":"12px",padding:"1rem 0 1rem 1.5rem",paddingLeft:r?`${r*1.5}rem`:null,fontWeight:r?r===1?"bold":r===2?500:300:400,width:n?"2%":"",textAlign:r?"start":"center",...o},children:l})}),f=({children:l})=>e.jsx("td",{className:"MuiTableCell-root MuiTableCell-body MuiTableCell-paddingNone MuiTableCell-sizeSmall",onClick:r=>r.stopPropagation(),style:{width:"26px",padding:"0.25rem 5px",borderLeft:"0.5px solid #edf1f2"},children:e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:l})}),C=()=>e.jsx(e.Fragment,{children:e.jsx("div",{style:{padding:"2rem"},children:e.jsx("div",{style:{position:"absolute",left:0,right:0,bottom:"1rem",textAlign:"center",fontSize:"0.8rem"},children:"Không có dữ liệu để hiển thị."})})});export{C as E,h as T,j as a,f as b,c,b as d,u as e,x as f,p as g};