import{j as i}from"./tanstack-1.0.74-aU0azVkW.js";import{u as l}from"./useAutoUpdate-1.0.74-DFgwgwEr.js";import{l as u}from"./lib-1.0.74-B5IEqfHg.js";import{S as a}from"./Select-1.0.74-DHOnlEEH.js";import{M as c}from"./MenuItem-1.0.74-D9LDbFUb.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"./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";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};
