"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("lodash-unified");require("../../../ap-field/index.js");const n=require("../../constant.js");require("../../item/index.vue2.js");const f=require("../../item/index.vue.js"),m=require("../../../ap-field/select/index.vue.js"),_=e.defineComponent({name:"ApFormItemSelect",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},initialValue:{},_signal:{},transform:{},description:{},customFilled:{},disabled:{type:Boolean,default:void 0},autoFocus:{type:Boolean},field:{default:()=>({})},placeholder:{}},setup(d,{expose:i}){const r=d,s=e.useSlots(),o=e.shallowRef(),p=e.computed(()=>({placeholder:r.placeholder,disabled:r.disabled,...r.field||{},bordered:r.bordered?!1:l.isUndefined(r.field?.bordered)?!0:r.field?.bordered}));return i({focus:()=>{o.value?.focus()},blur:()=>{o.value?.blur()},request:()=>{o.value?.request()}}),(u,h)=>(e.openBlock(),e.createBlock(f.default,e.normalizeProps(e.guardReactiveProps(e.unref(l.omit)(r,["field","placeholder"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(m.default),e.mergeProps(p.value,{ref_key:"selectRef",ref:o}),e.createSlots({_:2},[e.renderList(e.unref(l.omit)(s,e.unref(n.apFormItemSlotNames)),(c,t)=>({name:t,fn:e.withCtx(a=>[e.renderSlot(u.$slots,t,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(l.pick)(s,e.unref(n.apFormItemSlotNames)),(c,t)=>({name:t,fn:e.withCtx(a=>[e.renderSlot(u.$slots,t,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040))}});exports.default=_;
