import{r as a,j as n,i as c,l as g}from"./index-TcDrXcNe.js";import{u as m}from"./useBasicWidgetState-DoAL3G-D.js";import"./FormClearHelper-DzT4m6x-.js";const b=(t,e)=>t.getStringValue(e),f=t=>t.default??null,p=t=>t.value??null,d=(t,e,r,o)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},o)},C=({element:t,disabled:e,widgetMgr:r,fragmentId:o})=>{const[i,l]=m({getStateFromWidgetMgr:b,getDefaultStateFromProto:f,getCurrStateFromProto:p,updateWidgetMgrState:d,element:t,widgetMgr:r,fragmentId:o}),s=a.useCallback(u=>{l({value:u,fromUi:!0})},[l]);return n.jsx(c,{label:t.label,labelVisibility:g(t.labelVisibility?.value),help:t.help,onChange:s,disabled:e,value:i})},x=a.memo(C);export{x as default};
