import{o as s,c as a,r,n as o,i}from"./vendor-1-1-49.js";const p={type:{type:String,default:"button"},classList:{type:String,default:""},disabled:{type:Boolean,default:!1},link:{type:String,default:""},target:{type:String,default:"_self"}},u=["disabled","type"],f=["href","target"],n="flex items-center justify-center px-4 py-2 border border-transparent rounded-md font-semibold text-white text-xs tracking-widest transition ease-in-out duration-150",b={__name:"BaseButton",props:p,setup(l){const d=l,t=i(()=>d.disabled?n+" !hover:bg-gray-300 !hover:text-gray-400 !bg-gray-300 !text-gray-400 cursor-not-allowed shadow":n);return(e,y)=>e.link===""?(s(),a("button",{key:0,disabled:e.disabled,type:e.type,class:o(`${t.value} ${e.classList}`)},[r(e.$slots,"default")],10,u)):(s(),a("a",{key:1,href:e.link,class:o(`${t.value} ${e.classList} ${e.disabled?"cursor-not-allowed	pointer-events-none":""}`),target:e.target},[r(e.$slots,"default")],10,f))}};export{b as _,p};
