import{j as x}from"./tanstack-1.0.74-aU0azVkW.js";import{l as K,dg as I,dj as S,di as w,dh as A}from"./lib-1.0.74-B5IEqfHg.js";import{F as B,I as H,b as O}from"./TextField-1.0.74-BW9Byijb.js";import{S as P}from"./Select-1.0.74-DHOnlEEH.js";import{M as R}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"./ButtonBase-1.0.74-W6tAH7AI.js";import"./Typography-1.0.74-B4mhsevh.js";import"./useEnhancedEffect-1.0.74-B56M26dS.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 m=({columnName:h,columnValue:g,columnMetaData:e,storeColumn:i,columnValidation:p,onColumnChange:s,metaData:t,storeForm:j,formMode:b,locale:y,columnEvents:r})=>{K.debug(h,g,e,i,p,t,j,b,y);const L={readOnly:I(t,e,i,b)},k=p!=null&&p.error?p==null?void 0:p.text:y.selectFromList;return x.jsxs(B,{className:S(i),children:[x.jsx(H,{variant:j.fieldVariant,children:e.formLabel}),x.jsx(P,{MenuProps:{id:"pp-select-menu"},error:p==null?void 0:p.error,label:e.formLabel,value:g===null?[]:g.split(","),multiple:!0,inputProps:L,variant:w(),onChange:F=>{const C=F.target.value.join(",");s(h,C!==""?C:null),r!=null&&r.onChange&&r.onChange()},sx:{textAlign:i.alignment},onBlurCapture:r==null?void 0:r.onBlur,onClickCapture:r==null?void 0:r.onClick,onDoubleClickCapture:r==null?void 0:r.onDoubleClick,onFocusCapture:r==null?void 0:r.onFocus,onKeyDownCapture:r==null?void 0:r.onKeyDown,onKeyUpCapture:r==null?void 0:r.onKeyUp,children:e.column_type.replace("set(","").replace(")","").replaceAll("'","").split(",").map(function(f){return x.jsx(R,{value:f,children:f},f)})}),x.jsx(O,{children:A(i,k)})]})};export{m as default};
