import{_ as $}from"./nuxt-link.HDpUgD9S.js";import{h as g,o as d,y as u,w as f,M as c,P as t,a0 as B,a as P,ap as S,N as q,O as L,aq as N}from"./entry.RGd0w9hd.js";import{_ as w}from"./_plugin-vue_export-helper.x3n3nnut.js";import{n as H}from"./link.O6hAleNp.js";const Q=g({inheritAttrs:!1,props:{...H,as:{type:String,default:"button"},type:{type:String,default:"button"},disabled:{type:Boolean,default:null},active:{type:Boolean,default:void 0},exact:{type:Boolean,default:!1},exactQuery:{type:Boolean,default:!1},exactHash:{type:Boolean,default:!1},inactiveClass:{type:String,default:void 0}},setup(e){function n(a,s,{isActive:i,isExactActive:l}){return e.exactQuery&&!N(a.query,s.query)||e.exactHash&&a.hash!==s.hash?e.inactiveClass:e.exact&&l||!e.exact&&i?e.activeClass:e.inactiveClass}return{resolveLinkClass:n}}}),R=["href","aria-disabled","role","rel","target","onClick"];function _(e,n,a,s,i,l){const p=$;return e.to?(d(),u(p,t({key:1},e.$props,{custom:""}),{default:f(({route:y,href:v,target:m,rel:C,navigate:h,isActive:o,isExactActive:r,isExternal:b})=>[P("a",t(e.$attrs,{href:e.disabled?void 0:v,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,rel:C,target:m,class:e.active!==void 0?e.active?e.activeClass:e.inactiveClass:e.resolveLinkClass(y,e._.provides[S]||e.$route,{isActive:o,isExactActive:r}),onClick:k=>!b&&h(k)}),[c(e.$slots,"default",q(L({isActive:e.exact?r:o})))],16,R)]),_:3},16)):(d(),u(B(e.as),t({key:0,type:e.type,disabled:e.disabled},e.$attrs,{class:e.active?e.activeClass:e.inactiveClass}),{default:f(()=>[c(e.$slots,"default")]),_:3},16,["type","disabled","class"]))}const V=w(Q,[["render",_]]);export{V as default};
