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