import{j as p}from"./cm-1.0.63-CSIRHMXC.js";import{l as a,o as u}from"./lib-1.0.63-DJZPtMem.js";import{f as d}from"./tab-1.0.63-Dmjvx_Wl.js";import{T as g}from"./TextField-1.0.63-C35Mfi1Q.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";const K=({value:t,columnState:o,columnMetaData:r,setValue:m,saveChanges:s,cancel:n,setButtons:e})=>{a.debug(t,o,r);const l=u(t);return p.jsx("div",{onClick:i=>{i.stopPropagation()},children:p.jsx(g,{className:"pp-inline-editing",value:l,required:r.is_nullable==="NO",slotProps:{input:{},htmlInput:{maxLength:r.character_maximum_length}},variant:"outlined",onChange:i=>{m(i.target.value===""?null:i.target.value)},onKeyDown:i=>{i.key==="Enter"?s():i.key==="Escape"&&n()},onFocus:()=>{e(!0)},onBlur:()=>{setTimeout(()=>{e(!1)},200)},sx:d(o)})})};export{K as default};
