import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{c as n}from"./emotion-styled.browser.esm.DmHEQgFq.js";import{N as r}from"./utils.CmclnrwZ.js";import{rt as i}from"./index.BfkDCGNp.js";import{n as a}from"./useBasicWidgetState.Bj6bxpQq.js";var o=e(t(),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:e,disabled:t,widgetMgr:d,fragmentId:f})=>{let[p,m]=a({getStateFromWidgetMgr:s,getDefaultStateFromProto:c,getCurrStateFromProto:l,updateWidgetMgrState:u,element:e,widgetMgr:d,fragmentId:f,formClearBehavior:`resetValueOnly`,queryParamBinding:e.queryParamKey?{paramKey:e.queryParamKey,valueType:`string_value`,clearable:!1}:void 0}),h=(0,o.useCallback)(e=>{m({value:e,fromUi:!0})},[m]);return n(i,{label:e.label,labelVisibility:r(e.labelVisibility?.value),help:e.help,onChange:h,disabled:t,value:p})});export{d as default};