export*from"@vaadin/select/vaadin-select.js";import{forwardRef as v,isValidElement as c,useEffect as E,useRef as y}from"react";import{Select as S}from"@vaadin/select/vaadin-select.js";import*as f from"react";import{createComponent as R}from"./utils/createComponent.js";var h={onChange:"change",onInvalidChanged:"invalid-changed",onOpenedChanged:"opened-changed",onValidated:"validated",onValueChanged:"value-changed"},o=R({elementClass:S,events:h,react:f,tagName:"vaadin-select"});import{useSimpleOrChildrenRenderer as u}from"./renderers/useSimpleOrChildrenRenderer.js";import g from"./utils/useMergedRefs.js";import{jsxs as P}from"react/jsx-runtime";function C(e,d){let n=Array.isArray(e.children)?e.children:[e.children],l=n.filter(t=>c(t)&&t.props.slot),a=n.filter(t=>c(t)&&!l.includes(t)),p=n.find(t=>typeof t=="function"),r=y(null),[i,m]=u(e.renderer,p||(a.length?a:void 0)),s=g(r,d);return E(()=>{(e.renderer||e.children)&&r.current?.requestContentUpdate()},[r.current,e.renderer,e.children]),P(o,{...e,ref:s,renderer:m,children:[l,i]})}var O=v(C);export{O as Select,S as SelectElement};
//# sourceMappingURL=Select.js.map
