import{M as f}from"./index-kQIztB-E.js";import{O as r,d as y,aS as d,h as c,o as p,aD as B,u,i as b,g as m,w as v,aT as h,e as w,j as g}from"./index-BFxAF8P3.js";import{V as x}from"./VBtn-CWo0kh8N.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";const C=(...e)=>e.filter(Boolean).join(" "),$=e=>{const l=r(()=>{const{variant:i,nav:a,...n}=e,t={...n,"aria-label":e.title||e["aria-label"]};return f(i).with("responsive",()=>({...t,icon:!0,variant:"text",ripple:e.ripple!==!1,class:e.class?`btn-responsive ${e.class}`:"btn-responsive",style:{height:"var(--responsive-button-size, min(calc(100vw - 40px), calc(100vh - 340px)))",width:"var(--responsive-button-size, min(calc(100vw - 40px), calc(100vh - 340px)))",...typeof e.style=="object"?e.style:{}}})).with("icon",()=>({...t,icon:!0,variant:"plain",ripple:e.ripple!==!1,class:e.class?`btn-icon ${e.class}`:"btn-icon"})).with("list",()=>({...t,variant:"plain",density:"comfortable",ripple:e.ripple!==!1,class:e.class?`btn-list ${e.class}`:"btn-list"})).with("plain",()=>({...t,variant:"plain",ripple:e.ripple!==!1})).with("default",()=>({...t,variant:"text",ripple:e.ripple!==!1})).otherwise(()=>({...t,variant:"text",ripple:e.ripple!==!1}))}),o=r(()=>C("button",e.variant&&`button--${e.variant}`,e.nav&&"button--nav"));return{buttonProps:l,buttonClasses:o}},P={variant:"default",ripple:!0},S=y({__name:"Button",props:d({variant:{},nav:{type:Boolean},icon:{type:[String,Boolean]},ripple:{type:Boolean},height:{},width:{},size:{},title:{},disabled:{type:Boolean},color:{},to:{},block:{type:Boolean},density:{},flat:{type:Boolean},loading:{type:Boolean},outlined:{type:Boolean},rounded:{type:[Boolean,String,Number]},tag:{},text:{type:Boolean},type:{},value:{},active:{type:Boolean},append:{type:Boolean},exact:{type:Boolean},replace:{type:Boolean},slim:{type:Boolean},stacked:{type:Boolean},class:{},style:{},"aria-label":{}},P),emits:["click"],setup(e){const l=e,{buttonProps:o,buttonClasses:i}=$(l);return(a,n)=>(p(),c(x,B(u(o),{class:u(i),onClick:n[0]||(n[0]=t=>a.$emit("click",t))}),b({default:v(()=>[e.icon&&typeof e.icon=="string"?(p(),c(g,{key:0,icon:e.icon},null,8,["icon"])):w("",!0)]),_:2},[m(a.$slots,(t,s)=>({name:s,fn:v(()=>[h(a.$slots,s,{},void 0,!0)])}))]),1040,["class"]))}}),I=k(S,[["__scopeId","data-v-f097a0e8"]]);export{I as B,C as m};
