import{j as r}from"./cm-1.0.63-CSIRHMXC.js";import{u as c}from"./useAutoUpdate-1.0.63-3DXsSxm4.js";import{l,k as x}from"./lib-1.0.63-DJZPtMem.js";import{F as g}from"./FormControlLabel-1.0.63-DpYUdUm6.js";import{C as d}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"./Select-1.0.63-BMejr8a7.js";import"./Menu-1.0.63-DLh4HkF0.js";import"./ThemeProvider-1.0.63-Cq0KMgkh.js";import"./useEnhancedEffect-1.0.63-DnR0ZFqV.js";import"./index-1.0.63-oIDff4nA.js";import"./ButtonBase-1.0.63-CF10PFMS.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 y=({value:o,tableState:n,columnState:i,columnMetaData:p,setValue:e,saveChanges:s})=>{l.debug(o,n,i,p);const a=c(o,s),m=o===1||o==="1"||o===!0||o==="on";return r.jsx("div",{onClick:t=>{t.stopPropagation()},children:r.jsx(g,{className:"pp-inline-editing",control:r.jsx(d,{checked:m,onClick:t=>{a(!0),e(!m),t.preventDefault(),t.stopPropagation()}}),label:p.formLabel,sx:{...i.alignment===x.RIGHT&&{marginRight:"-16px"}}})})};export{y as default};
