import{a as s}from"./h48l6b7a.js";import{l,m as i,R as r,N as p,a0 as u,W as c,U as m,X as _,a2 as k}from"./vendor/json-editor-vue-hrh84odz.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},v=l({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(a){const t=a,n=i(()=>t.href||t.to);return(e,f)=>{const o=s;return r(),p(o,k(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:u(()=>[c(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),m("div",d)):_("",!0)]),_:3},16,["class"])}}});export{v as _};
