import{o as e}from"./chunk.DuxOD-Sk.js";import{r as t}from"./emotion-is-prop-valid.esm.DV_OErv-.js";import{c as n}from"./emotion-styled.browser.esm.BPUx6WuE.js";import{R as r}from"./src.sR_9Xh2m.js";import{N as i}from"./utils.B9mvrYZE.js";import{n as a}from"./useBasicWidgetState.DAZ7WsXN.js";var o=e(t()),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(r,{label:e.label,labelVisibility:i(e.labelVisibility?.value),help:e.help,onChange:h,disabled:t,value:p})});export{d as default};