import{j as i}from"./cm-1.0.63-CSIRHMXC.js";import{u as l}from"./useAutoUpdate-1.0.63-3DXsSxm4.js";import{l as u}from"./lib-1.0.63-DJZPtMem.js";import{S as a}from"./Select-1.0.63-BMejr8a7.js";import{M as c}from"./MenuItem-1.0.63-Bvb3IjMP.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"./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";const N=({value:t,columnMetaData:p,setValue:n,saveChanges:m})=>{u.debug(t,p);const s=l(t,m);return i.jsx("div",{onClick:r=>{r.stopPropagation()},children:i.jsx(a,{MenuProps:{id:"pp-select-menu"},className:"pp-inline-editing",sx:{width:"100%"},value:t===null?[]:t.split(","),multiple:!0,variant:"outlined",onChange:r=>{const o=r.target.value.join(",");n(o!==""?o:null)},children:p.column_type.replace("set(","").replace(")","").replaceAll("'","").split(",").map(function(e){return i.jsx(c,{value:e,onClick:()=>{s(!0)},children:e},e)})})})};export{N as default};
