import{g as c,j as d,P as g,Q as h,N as v,R as z,E as a,G as n}from"./entry.9e31e8a4.js";import{t as x}from"./tw-merge.27ca352e.js";import{u as C,b as w,f as y}from"./ui.config.7ae255de.js";const G=a(n.ui.strategy,n.ui.button,w),j=a(n.ui.strategy,n.ui.buttonGroup,y),O=c({inheritAttrs:!1,props:{size:{type:String,default:null,validator(o){return Object.keys(G.size).includes(o)}},orientation:{type:String,default:"horizontal",validator(o){return["horizontal","vertical"].includes(o)}},ui:{type:Object,default:void 0}},setup(o,{slots:s}){const{ui:e,attrs:f,attrsClass:p}=C("buttonGroup",o.ui,j),l=d(()=>g(s)),r=d(()=>({"rounded-none":{horizontal:{left:"rounded-s-none",right:"rounded-e-none"},vertical:{top:"rounded-t-none",bottom:"rounded-b-none"}},"rounded-sm":{horizontal:{left:"rounded-s-sm",right:"rounded-e-sm"},vertical:{top:"rounded-t-sm",bottom:"rounded-b-sm"}},rounded:{horizontal:{left:"rounded-s",right:"rounded-e"},vertical:{top:"rounded-t",bottom:"rounded-b"}},"rounded-md":{horizontal:{left:"rounded-s-md",right:"rounded-e-md"},vertical:{top:"rounded-t-md",bottom:"rounded-b-md"}},"rounded-lg":{horizontal:{left:"rounded-s-lg",right:"rounded-e-lg"},vertical:{top:"rounded-t-lg",bottom:"rounded-b-lg"}},"rounded-xl":{horizontal:{left:"rounded-s-xl",right:"rounded-e-xl"},vertical:{top:"rounded-t-xl",bottom:"rounded-b-xl"}},"rounded-2xl":{horizontal:{left:"rounded-s-2xl",right:"rounded-e-2xl"},vertical:{top:"rounded-t-2xl",bottom:"rounded-b-2xl"}},"rounded-3xl":{horizontal:{left:"rounded-s-3xl",right:"rounded-e-3xl"},vertical:{top:"rounded-t-3xl",bottom:"rounded-b-3xl"}},"rounded-full":{horizontal:{left:"rounded-s-full",right:"rounded-e-full"},vertical:{top:"rounded-t-full",bottom:"rounded-b-full"}}})[e.value.rounded][o.orientation]),b=d(()=>l.value.map((u,i)=>{const t={};return o.size&&(t.size=o.size),t.ui=u.props?.ui||{},t.ui.rounded="rounded-none",t.ui.base="!shadow-none",i===0&&(t.ui.rounded+=` ${r.value.left||r.value.top}`),i===l.value.length-1&&(t.ui.rounded+=` ${r.value.right||r.value.bottom}`),h(u,t)})),m=d(()=>x(v(e.value.wrapper[o.orientation],e.value.rounded,e.value.shadow),p));return()=>z("div",{class:m.value,...f.value},b.value)}});export{O as default};
