import{d as n,be as l,o as e,g as p,w as i,r as o,m as s,c as r,cu as u}from"./v5WcX6fg.js";const m=["href"],d=n({inheritAttrs:!1,__name:"AutoLink",props:{to:{}},setup(f){return(t,h)=>{const a=l("router-link");return t.to.path||t.to.query||t.to.startsWith("/")?(e(),p(a,s({key:0,to:t.to},t.$attrs),{default:i(()=>[o(t.$slots,"default")]),_:3},16,["to"])):t.to.startsWith("http")?(e(),r("a",s({key:1,href:t.to},t.$attrs),[o(t.$slots,"default")],16,m)):(e(),r("span",u(s({key:2},t.$attrs)),[o(t.$slots,"default")],16))}}});export{d as _};