import{Ci as e,Ja as t,Nt as n,Qa as r,io as i}from"./index.dkY5s53S.js";import{n as a}from"./useBasicWidgetState.C674_qFj.js";var o=i(r(),1),s=(e,t)=>e.getStringValue(t),c=e=>e.default??`#000000`,l=e=>e.value??e.default??`#000000`,u=(e,t,n,r)=>{t.setStringValue(e,n.value,{fromUi:n.fromUi},r)},d=(0,o.memo)(({element:r,disabled:i,widgetMgr:d,fragmentId:f})=>{let[p,m]=a({getStateFromWidgetMgr:s,getDefaultStateFromProto:c,getCurrStateFromProto:l,updateWidgetMgrState:u,element:r,widgetMgr:d,fragmentId:f,formClearBehavior:`resetValueOnly`,queryParamBinding:r.queryParamKey?{paramKey:r.queryParamKey,valueType:`string_value`,clearable:!1}:void 0}),h=(0,o.useCallback)(e=>{m({value:e,fromUi:!0})},[m]);return t(n,{label:r.label,labelVisibility:e(r.labelVisibility?.value),help:r.help,onChange:h,disabled:i,value:p})});export{d as default};