import{j as s}from"./tanstack-1.0.74-aU0azVkW.js";import{r as u}from"./redux-1.0.74-D8bIc6ki.js";import{l as x,r as d,d5 as c}from"./lib-1.0.74-B5IEqfHg.js";import{B as g}from"./Box-1.0.74-DEbuVvGV.js";import{T as f}from"./TextField-1.0.74-BW9Byijb.js";import"./vendor-1.0.74-CN03Eozo.js";import"./utils-1.0.74-7xWhx9mc.js";import"./CircularProgress-1.0.74-QfwfRJ7i.js";import"./Typography-1.0.74-B4mhsevh.js";import"./ButtonBase-1.0.74-W6tAH7AI.js";import"./useEnhancedEffect-1.0.74-B56M26dS.js";import"./Select-1.0.74-DHOnlEEH.js";import"./Menu-1.0.74-CdjCBJ4R.js";import"./ThemeProvider-1.0.74-4uzbYYLM.js";import"./index-1.0.74-DxwH6OqZ.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";const L=({value:o,columnState:m,columnMetaData:e,setValue:p,cancel:n,setButtons:i})=>{x.debug(o,e);const l=d(o),[r,a]=u.useState(!1);return s.jsx(g,{onClick:t=>{t.stopPropagation()},sx:{"& textarea":{position:r?"unset":"absolute"}},children:s.jsx(f,{className:"pp-inline-editing pp-textarea",value:l,required:e.is_nullable==="NO",multiline:!0,minRows:r?5:1,maxRows:r?7:1,slotProps:{htmlInput:{maxLength:e.character_maximum_length}},variant:"outlined",onChange:t=>{p(t.target.value===""?null:t.target.value)},onKeyDown:t=>{t.key==="Escape"&&n()},onFocus:()=>{i(!0),a(!0)},onBlur:()=>{setTimeout(()=>{i(!1),a(!1)},200)},sx:c(m,!0)})})};export{L as default};
