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