1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7f11066a-848a-48cb-871e-7696e4f02f87`,e._sentryDebugIdIdentifier=`sentry-dbid-7f11066a-848a-48cb-871e-7696e4f02f87`)}catch{}})();import{$ as e,C as t,Ct as n,G as r,J as i,O as a,S as o,Wt as s,Y as c,_t as l,b as u,it as d,x as f,y as p}from"./route-CITprrr5.js";import{t as m}from"./_plugin-vue_export-helper-CdgHZ22j.js";var h=[`solid`,`outlined`,`subtle`,`link`],g=[`primary`,`gray`,`error`,`tertiary-gray`],_=[`sm`,`md`,`lg`,`xl`,`2xl`],v=[`disabled`,`type`],y={class:`tooltip`},b=m(a({__name:`BaseButton`,props:{variant:{type:String,default:`solid`},color:{type:String,default:`primary`},size:{type:String,default:`lg`},type:{type:String,default:`button`},iconOnly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:[`click`],setup(a){let m=a,b=e(),x=l(),S=p(()=>{if(!h.includes(m.variant))throw TypeError(`Invalid variant prop: '${m.variant}'. Allowed values are ${h.join(`, `)}.`);if(!g.includes(m.color))throw TypeError(`Invalid color prop: '${m.color}'. Allowed values are ${g.join(`, `)}.`);return`${m.variant} --color-${m.color}`}),C=p(()=>{if(!_.includes(m.size))throw TypeError(`Invalid size prop: '${m.size}'. Allowed values are ${_.join(`, `)}`);return`size-${m.size}`}),w=p(()=>!!b.leftIcon),T=p(()=>!!b.rightIcon);return(e,l)=>{let p=c(`VTooltip`);return r(),t(`button`,{ref_key:`btnRef`,ref:x,disabled:a.disabled,class:s([`btn`,n(S),n(C),{"cursor-pointer":!a.disabled,"btn-icon":a.iconOnly}]),type:a.type,onClick:l[0]||=t=>e.$emit(`click`)},[n(w)?i(e.$slots,`leftIcon`,{key:0},void 0,!0):o(``,!0),i(e.$slots,`default`,{},void 0,!0),n(T)?i(e.$slots,`rightIcon`,{key:1},void 0,!0):o(``,!0),e.$slots.tooltip?(r(),f(p,{key:2,activator:n(x),location:`bottom left`},{default:d(()=>[u(`div`,y,[i(e.$slots,`tooltip`,{},void 0,!0)])]),_:3},8,[`activator`])):o(``,!0)],10,v)}}}),[[`__scopeId`,`data-v-9f1da96a`]]);export{h as i,g as n,_ as r,b as t}; 2//# sourceMappingURL=BaseButton-DYUX4Air.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.