import{j as a}from"./cm-1.0.63-CSIRHMXC.js";import{l as F,cS as f,k as h,cJ as j,cK as k}from"./lib-1.0.63-DJZPtMem.js";import{F as t,b as y}from"./TextField-1.0.63-C35Mfi1Q.js";import{F as K}from"./FormControlLabel-1.0.63-DpYUdUm6.js";import{C as R}from"./Checkbox-1.0.63-DPBXeOde.js";import"./redux-1.0.63-Df-eBzJn.js";import"./vendor-1.0.63-CN03Eozo.js";import"./loglevel-1.0.63-BZ7XahX3.js";import"./lodash-1.0.63-hMxolcpJ.js";import"./moment-1.0.63-C5S46NFB.js";import"./Typography-1.0.63-mecuj_Wl.js";import"./ButtonBase-1.0.63-CF10PFMS.js";import"./useEnhancedEffect-1.0.63-DnR0ZFqV.js";import"./Select-1.0.63-BMejr8a7.js";import"./Menu-1.0.63-DLh4HkF0.js";import"./ThemeProvider-1.0.63-Cq0KMgkh.js";import"./index-1.0.63-oIDff4nA.js";import"./Modal-1.0.63-fMXTbfks.js";import"./notistack-1.0.63-B49ULGrj.js";import"./iconBase-1.0.63-CFvHhC4t.js";import"./createSvgIcon-1.0.63-DWL3J-DK.js";import"./SwitchBase-1.0.63-Br-lbcZ1.js";const $=({columnName:C,columnValue:p,columnMetaData:o,storeColumn:i,onColumnChange:d,metaData:x,formMode:g,columnEvents:r})=>(F.debug(C,p,o,i,d,x),a.jsxs(t,{className:f(i),children:[a.jsx("div",{}),a.jsx(K,{control:a.jsx(R,{id:C,checked:p===1||p==="1"||p===!0||p==="on",disabled:j(x,o,i,g),onChange:(H,b)=>{d(C,b)},onBlurCapture:r==null?void 0:r.onBlur,onChangeCapture:r==null?void 0:r.onChange,onClickCapture:r==null?void 0:r.onClick,onDoubleClickCapture:r==null?void 0:r.onDoubleClick,onFocusCapture:r==null?void 0:r.onFocus,onKeyDownCapture:r==null?void 0:r.onKeyDown,onKeyUpCapture:r==null?void 0:r.onKeyUp}),label:o.formLabel,sx:{justifyContent:i.alignment,...i.alignment===h.RIGHT&&{marginRight:0}}}),a.jsx(y,{children:k(i,"")})]}));export{$ as default};
