import{_ as $}from"./nuxt-link.6gyhzeaI.js";import{f as g,o as d,j as u,w as f,H as c,K as t,Y as B,a as P,an as S,I as L,J as q,ao as H}from"./entry.2xM5grDS.js";import{_ as w}from"./_plugin-vue_export-helper.x3n3nnut.js";import{n as N}from"./link.O6hAleNp.js";const Q=g({inheritAttrs:!1,props:{...N,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&&!H(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:v,href:y,target:m,rel:C,navigate:b,isActive:o,isExactActive:r,isExternal:h})=>[P("a",t(e.$attrs,{href:e.disabled?void 0:y,"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(v,e._.provides[S]||e.$route,{isActive:o,isExactActive:r}),onClick:k=>!h&&b(k)}),[c(e.$slots,"default",L(q({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 J=w(Q,[["render",_]]);export{J as default};
