import{V as n,n as l}from"./client-BmVmnFEC.js";const o=n.extend({props:{to:{type:[String,Object],default:""},href:{type:String,default:""},target:{type:String,default:""},rel:{type:String,default:""},isStyled:{type:Boolean,default:!1},isTrusted:{type:Boolean,default:!1}},computed:{baseUrl(){return new URL(window.location.origin)},resolvedUrl(){return new URL(this.to,this.baseUrl)},hrefUrl(){return this.href||this.resolvedUrl.toString()},shouldUseNuxtLink(){return typeof this.to=="object"&&Object.hasOwn(this.to,"name")},componentName(){return this.shouldUseNuxtLink?"nuxt-link":"a"},isTrustedUrl(){return["retty.me","retty.news","corp.retty.me","user.retty.me","reserve.retty.me","inforetty.zendesk.com","own.retty.me"].includes(this.resolvedUrl.host)},isExternalUrl(){return!["retty.me","user.retty.me","reserve.retty.me",this.baseUrl.host].includes(this.resolvedUrl.host)},attrRel(){const e=this.isTrusted||this.isTrustedUrl,t=this.isExternalUrl,r=this.isExternalUrl&&!e;return[t?"noopener":null,r?"noreferrer":null,!e?"nofollow":null,this.rel].filter(s=>s).join(" ")||void 0},attrTarget(){return this.target.length>0?this.target:this.isExternalUrl?"_blank":void 0}}});var i=function(){var t=this,r=t._self._c;return t._self._setupProxy,t.shouldUseNuxtLink?r("nuxt-link",{class:t.isStyled?"_styled-link":null,attrs:{rel:t.attrRel,target:t.attrTarget,to:t.to}},[t._t("default")],2):r("a",{class:t.isStyled?"_styled-link":null,attrs:{rel:t.attrRel,target:t.attrTarget,href:t.hrefUrl}},[t._t("default")],2)},a=[],u=l(o,i,a,!1,null,null);const c=u.exports;export{c as default};