"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("lodash-unified");require("../../../ap-field/switch/index.vue2.js");const n=require("../../constant.js");require("../../item/index.vue2.js");const f=require("../../item/index.vue.js"),c=require("../../../ap-field/switch/index.vue.js"),m=e.defineComponent({name:"ApFormItemSwitch",__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:{},valuePropName:{default:"checked"},initialValue:{},_signal:{},transform:{},description:{},customFilled:{},disabled:{type:Boolean,default:void 0},autoFocus:{type:Boolean},field:{default:()=>({})}},setup(o,{expose:u}){const d=o,s=e.useSlots(),r=e.ref();return u({focus:()=>r.value?.focus(),blur:()=>r.value?.blur()}),(i,_)=>(e.openBlock(),e.createBlock(f.default,e.normalizeProps(e.guardReactiveProps(e.unref(a.omit)(d,["field","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(c.default,e.mergeProps({ref_key:"switchRef",ref:r,disabled:o.disabled},o.field),e.createSlots({_:2},[e.renderList(e.unref(a.omit)(s,e.unref(n.apFormItemSlotNames)),(p,t)=>({name:t,fn:e.withCtx(l=>[e.renderSlot(i.$slots,t,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["disabled"])]),_:2},[e.renderList(e.unref(a.pick)(s,e.unref(n.apFormItemSlotNames)),(p,t)=>({name:t,fn:e.withCtx(l=>[e.renderSlot(i.$slots,t,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040))}});exports.default=m;
