import{j as r}from"./tanstack-1.0.74-aU0azVkW.js";import{u as c}from"./useAutoUpdate-1.0.74-DFgwgwEr.js";import{l,n as x}from"./lib-1.0.74-B5IEqfHg.js";import{F as g}from"./FormControlLabel-1.0.74-CdAG1Jo8.js";import{C as d}from"./Checkbox-1.0.74-DOdb-56q.js";import"./redux-1.0.74-D8bIc6ki.js";import"./vendor-1.0.74-CN03Eozo.js";import"./utils-1.0.74-7xWhx9mc.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./Select-1.0.74-DHOnlEEH.js";import"./Menu-1.0.74-CdjCBJ4R.js";import"./ThemeProvider-1.0.74-4uzbYYLM.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./index-1.0.74-DxwH6OqZ.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./Portal-1.0.74-BrUPeMX9.js";import"./iconBase-1.0.74-Cs0vntJu.js";import"./isHostComponent-1.0.74-DVu5iVWx.js";import"./Modal-1.0.74-BfLid1bk.js";import"./createSvgIcon-1.0.74-Cw_ZFbxi.js";import"./SwitchBase-1.0.74-pUYMwK3f.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};
