import e from"../../_util/classNames.mjs";import t from"../../_util/vue-types/index.mjs";import{cloneElement as n}from"../../_util/vnode.mjs";import r from"../../_util/BaseInput.mjs";import{createVNode as i,defineComponent as a,inject as o}from"vue";var s={inputRef:t.any,prefixCls:String,id:String,inputElement:t.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:t.oneOfType([t.number,t.string]),attrs:t.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},c=a({compatConfig:{MODE:3},name:`SelectInput`,inheritAttrs:!1,props:s,setup(t){let a=null,s=o(`VCSelectContainerEvent`);return()=>{let{prefixCls:o,id:c,inputElement:l,disabled:u,tabindex:d,autofocus:f,autocomplete:p,editable:m,activeDescendantId:h,value:g,onKeydown:_,onMousedown:v,onChange:y,onPaste:b,onCompositionstart:x,onCompositionend:S,onFocus:C,onBlur:w,open:T,inputRef:E,attrs:D}=t,O=l||i(r,null,null),k=O.props||{},{onKeydown:A,onInput:j,onFocus:M,onBlur:N,onMousedown:P,onCompositionstart:F,onCompositionend:I,style:L}=k;return O=n(O,Object.assign({type:`search`,...k,id:c,ref:E,disabled:u,tabindex:d,lazy:!1,autocomplete:p||`off`,autofocus:f,class:e(`${o}-selection-search-input`,O?.props?.class),role:`combobox`,"aria-expanded":T,"aria-haspopup":`listbox`,"aria-owns":`${c}_list`,"aria-autocomplete":`list`,"aria-controls":`${c}_list`,"aria-activedescendant":h,...D,value:m?g:``,readonly:!m,unselectable:m?null:`on`,style:{...L,opacity:m?null:0},onKeydown:e=>{_(e),A&&A(e)},onMousedown:e=>{v(e),P&&P(e)},onInput:e=>{y(e),j&&j(e)},onCompositionstart(e){x(e),F&&F(e)},onCompositionend(e){S(e),I&&I(e)},onPaste:b,onFocus:(...e)=>{clearTimeout(a),M&&M(e[0]),C&&C(e[0]),s?.focus(e[0])},onBlur:(...e)=>{a=setTimeout(()=>{N&&N(e[0]),w&&w(e[0]),s?.blur(e[0])},100)}},O.type===`textarea`?{}:{type:`search`}),!0,!0),O}}});export{c as default,s as inputProps};