const e=require("../../_util/classNames.js"),t=require("../../_util/vue-types/index.js"),n=require("../../_util/vnode.js"),r=require("../../_util/BaseInput.js");let i=require("vue");var a={inputRef:t.default.any,prefixCls:String,id:String,inputElement:t.default.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.default.oneOfType([t.default.number,t.default.string]),attrs:t.default.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}},o=(0,i.defineComponent)({compatConfig:{MODE:3},name:`SelectInput`,inheritAttrs:!1,props:a,setup(t){let a=null,o=(0,i.inject)(`VCSelectContainerEvent`);return()=>{let{prefixCls:s,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||(0,i.createVNode)(r.default,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.cloneElement(O,Object.assign({type:`search`,...k,id:c,ref:E,disabled:u,tabindex:d,lazy:!1,autocomplete:p||`off`,autofocus:f,class:e.default(`${s}-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]),o?.focus(e[0])},onBlur:(...e)=>{a=setTimeout(()=>{N&&N(e[0]),w&&w(e[0]),o?.blur(e[0])},100)}},O.type===`textarea`?{}:{type:`search`}),!0,!0),O}}});exports.default=o,exports.inputProps=a;