import{L as r}from"./LoadingButton-H6RtHB1p.js";import{p as s,o as a,e as d,r as i,c as n,w as o}from"./app-WJL2kJBE.js";const c=["href"],p={__name:"Button",props:{loading:Boolean,href:{type:String,default:""},away:{type:Boolean,default:!1},type:{type:String,default:"submit"}},setup(e){return(t,u)=>{const l=s("Link");return e.away&&e.href?(a(),d("a",{key:0,href:e.href,class:"inline-flex items-center px-4 py-3 bg-blue-600 border-0 rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-700 active:bg-blue-700 disabled:opacity-25 transition"},[i(t.$slots,"default")],8,c)):e.href?(a(),n(l,{key:1,href:e.href,class:"inline-flex items-center px-4 py-3 bg-blue-600 border-0 rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-700 active:bg-blue-700 disabled:opacity-25 transition"},{default:o(()=>[i(t.$slots,"default")]),_:3},8,["href"])):(a(),n(r,{key:2,type:e.type,loading:e.loading,class:"inline-flex items-center px-4 py-3 bg-blue-600 border-0 rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-blue-700 active:bg-blue-700 disabled:opacity-25 transition"},{default:o(()=>[i(t.$slots,"default")]),_:3},8,["type","loading"]))}}};export{p as _};
