1import{G as u,aq as f,o as p,d as k,A as m,c as n,f as g,k as e}from"./B7YrqJZS.js";const h=["href","target","download"],b=u({__name:"AbLink",props:{to:{},download:{type:[String,Boolean,null]},target:{}},setup(a){const o=a,s=f(),r=e(()=>/^(https?|tel|mailto):/.test(o.to??"")),l=t=>t.startsWith("/")&&!t.startsWith("//"),c=e(()=>{const t=o.to??"";return!t||!l(t)||typeof s?.localePath!="function"?t:s.localePath(t)}),i=e(()=>o.target||(r.value?"_blank":"_self")),d=e(()=>typeof o.download=="string"||o.download===!0?o.download:null);return(t,_)=>a.to?(p(),k("a",{key:0,href:n(c),target:n(i),download:n(d),class:"ab-link"},[m(t.$slots,"default")],8,h)):g("",!0)}});export{b as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.