const e=require("../_util/classNames.js"),t=require("../config-provider/hooks/useConfigInject.js"),n=require("./style/index.js");let r=require("vue");var i=(0,r.defineComponent)({compatConfig:{MODE:3},name:`ACheckableTag`,inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(i,{slots:a,emit:o,attrs:s}){let{prefixCls:c}=t.default(`tag`,i),[l,u]=n.default(c),d=e=>{let{checked:t}=i;o(`update:checked`,!t),o(`change`,!t),o(`click`,e)},f=(0,r.computed)(()=>e.default(c.value,u.value,{[`${c.value}-checkable`]:!0,[`${c.value}-checkable-checked`]:i.checked}));return()=>l((0,r.createVNode)(`span`,{...s,class:[f.value,s.class],onClick:d},[a.default?.()]))}});exports.default=i;