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