????

Your IP : 3.14.67.90


Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/
Upload File :
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/3435.2bdc578d.chunk.js

"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[3435],{33435:(e,t,i)=>{i.r(t),i.d(t,{default:()=>n});var o=i(9950),s=i(5386),p=i(36841),r=i(44414);class n extends o.Component{constructor(){super(...arguments),this.handleClickCell=e=>{this.props.columnDef.disableClick&&e.stopPropagation()},this.getStyle=()=>{let e={padding:"6px"};return e="function"===typeof this.props.columnDef.cellStyle?{...e,...this.props.columnDef.cellStyle(this.props.value,this.props.rowData)}:{...e,...this.props.columnDef.cellStyle},this.props.columnDef.disableClick&&(e.cursor="default"),{...this.props.style,...e}},this.getAlign=()=>-1!==["numeric","currency"].indexOf(this.props.columnDef.type)?"right":-1!==["date","time","datetime"].indexOf(this.props.columnDef.type)?"center":"left"}getRenderValue(){if(void 0!==this.props.columnDef.emptyValue&&(void 0===this.props.value||null===this.props.value))return this.getEmptyValue(this.props.columnDef.emptyValue);if(this.props.columnDef.render)try{if(this.props.rowData)return this.props.columnDef.render(this.props.rowData,"row")}catch{return""}else{if("boolean"===this.props.columnDef.type){const e={textAlign:"center",verticalAlign:"middle",width:30};return null===this.props.value||void 0===this.props.value?(0,r.jsx)(this.props.icons.ThirdStateCheck,{style:e}):this.props.value?(0,r.jsx)(this.props.icons.CheckBox,{style:e}):(0,r.jsx)(this.props.icons.UnCheckBox,{style:e})}if("date"===this.props.columnDef.type)return this.props.value instanceof Date?this.props.value.toLocaleDateString():void 0===this.props.value?"":(0,p.Yq)(this.props.value);if("time"===this.props.columnDef.type)return this.props.value instanceof Date?this.props.value.toLocaleTimeString():void 0===this.props.value?"":(0,p.fU)(this.props.value);if("datetime"===this.props.columnDef.type)return this.props.value instanceof Date?this.props.value.toLocaleString():void 0===this.props.value?"":(0,p.Rt)(this.props.value);if("currency"===this.props.columnDef.type)return(0,p.vv)(this.props.value,this.props.columnDef.currencySetting)}return this.props.value}getEmptyValue(e){return"function"===typeof e?this.props.columnDef.emptyValue(this.props.rowData):e}render(){const{children:e,icons:t,columnDef:i,rowData:o,...p}=this.props;return(0,r.jsxs)(s.A,{...p,size:this.props.size,style:this.getStyle(),align:this.getAlign(),onClick:this.handleClickCell,children:[e,this.getRenderValue()]})}}n.defaultProps={columnDef:{},value:void 0}},96287:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(9950).createContext()},49739:(e,t,i)=>{i.d(t,{A:()=>o});const o=i(9950).createContext()},5386:(e,t,i)=>{i.d(t,{A:()=>u});var o=i(80045),s=i(58168),p=i(9950),r=i(2803),n=i(33720),l=i(52521),a=i(37751),c=i(96287),d=i(49739),h=p.forwardRef((function(e,t){var i,n,a=e.align,h=void 0===a?"inherit":a,u=e.classes,g=e.className,f=e.component,m=e.padding,y=e.scope,v=e.size,x=e.sortDirection,D=e.variant,A=(0,o.A)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),C=p.useContext(c.A),k=p.useContext(d.A),b=k&&"head"===k.variant;f?(n=f,i=b?"columnheader":"cell"):n=b?"th":"td";var w=y;!w&&b&&(w="col");var S=m||(C&&C.padding?C.padding:"normal"),R=v||(C&&C.size?C.size:"medium"),z=D||k&&k.variant,V=null;return x&&(V="asc"===x?"ascending":"descending"),p.createElement(n,(0,s.A)({ref:t,className:(0,r.A)(u.root,u[z],g,"inherit"!==h&&u["align".concat((0,l.A)(h))],"normal"!==S&&u["padding".concat((0,l.A)(S))],"medium"!==R&&u["size".concat((0,l.A)(R))],"head"===z&&C&&C.stickyHeader&&u.stickyHeader),"aria-sort":V,role:i,scope:w},A))}));const u=(0,n.A)((function(e){return{root:(0,s.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n    ".concat("light"===e.palette.type?(0,a.a)((0,a.X4)(e.palette.divider,1),.88):(0,a.e$)((0,a.X4)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(h)}}]);