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