"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../_util/createContext.js"),p=require("../_util/props-util/index.js"),f=require("../config-provider/hooks/useConfigInject.js"),v=require("../theme/internal.js"),g=require("../vc-util/devWarning.js"),o=()=>({prefixCls:String,size:{type:String}}),s=d.default(),C=e.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:o(),setup(r,{slots:i}){const{prefixCls:u,direction:a}=f.default("btn-group",r),[,,l]=v.useToken();s.useProvide(e.reactive({size:e.computed(()=>r.size)}));const c=e.computed(()=>{const{size:n}=r;let t="";switch(n){case"large":t="lg";break;case"small":t="sm";break;case"middle":case void 0:break;default:g.default(!n,"Button.Group","Invalid prop `size`.")}return{[`${u.value}`]:!0,[`${u.value}-${t}`]:t,[`${u.value}-rtl`]:a.value==="rtl",[l.value]:!0}});return()=>e.createVNode("div",{class:c.value},[p.flattenChildren(i.default?.())])}});exports.GroupSizeContext=s;exports.buttonGroupProps=o;exports.default=C;
