import{d as s,o as e,e as u,n as a,c as n,w as c,s as p,A as d,b,p as t,f as m}from"./BvNnk7SS.js";import{_ as f}from"./DXjXgEo6.js";const _=s({__name:"NIcon",props:{icon:{}},setup(r){return(o,l)=>(e(),u("div",{class:a(["n-icon",o.icon])},null,2))}}),B=s({__name:"NButton",props:{to:{},icon:{},border:{type:Boolean,default:!0},disabled:{type:Boolean},type:{default:"button"}},setup(r){return(o,l)=>{const i=_;return e(),n(d(o.to?b(f):"button"),p({to:o.to},{...o.$attrs,...!o.to&&{type:o.type},...o.disabled?{disabled:!0}:{tabindex:0}},{class:[[{"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":o.border},{"n-icon-button":!o.$slots.default}],"n-button n-transition n-disabled:n-disabled"]}),{default:c(()=>[t(o.$slots,"icon",{},()=>[o.icon?(e(),n(i,{key:0,icon:o.icon,class:a({"n-button-icon":o.$slots.default})},null,8,["icon","class"])):m("",!0)]),t(o.$slots,"default")]),_:3},16,["to","class"])}}});export{_,B as a};
