1import{i as r,d}from"./BLuxgZ3F.js";import{_ as u,j as f,w as c,K as h,r as p,o as l,c as a,m as n,e as o,F as y,d as g,t as m}from"./C_dDoqqV.js";const k=["left","right"],x=["2xs","xs","sm","md","lg","xl","2xl"],b={name:"AppLink",props:{href:{type:String,required:!1,default:""},copy:{type:String,default:""},icon:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:e=>k.includes(e)},size:{type:String,default:"md",validator:e=>x.includes(e)},variant:{type:String,default:"default"},disabled:{type:Boolean,default:!1},isExternal:{type:Boolean,default:!1},isInternal:{type:Boolean,default:!1},noFollow:{type:Boolean,default:!1},classes:{type:String,default:""},externalClasses:{type:String,default:""},dprPage:{type:Boolean,default:!1},toplistResponseId:{type:String,default:""},toplistLinkId:{type:String,default:""},toplistData:{type:String,default:""}},computed:{url(){return this.href?r(this.href)?"mailto:null":this.href:""},linkClasses(){return this.classes!==""?this.classes:["flex items-center gap-2xs",`text-${this.size}`,{"underline link font-bold leading-md":!this.disabled&&this.variant==="default"&&this.url,"underline link-nav font-bold leading-md":!this.disabled&&this.variant==="nav"&&this.url,"underline text-link-secondary-foreground hover:text-link-secondary-hover-foreground":!this.disabled&&this.variant==="secondary"&&this.url,"text-primary-foreground hover:underline":!this.disabled&&this.variant==="primary"&&this.url,"underline text-foreground-disabled cursor-default":this.disabled||!this.url,"link-block !no-underline !hover:no-underline":this.variant==="block"&&!this.disabled,"hover:underline":!this.disabled&&this.url}]},styleObject(){return{"--icon-size":this.size}},tagNameValue(){const e=this.url||"",s=e.startsWith("/cardschat")||e.startsWith("/news")||e.startsWith("/poker");return this.isExternal||this.dprPage||s?"a":"nuxt-link"},urlBind(){return this.tagNameValue==="nuxt-link"?{to:this.url}:{href:this.url}},rel(){return this.isExternal&&this.noFollow?"noopener noreferrer nofollow":this.isExternal?"noopener noreferrer":this.isInternal?"noopener":""}},methods:{onClick(e){if((this.disabled||!this.url)&&e.preventDefault(),this.href&&r(this.href)){e.preventDefault();const s=d(this.href);window.location.href=`mailto:${s}`}}}},_={key:0,class:"icon-left"},v={key:2,class:"icon-right"};function S(e,s,t,B,C,i){return l(),f(p(i.tagNameValue),h({target:t.isExternal||t.isInternal?"_blank":"_self",rel:i.rel,class:[i.linkClasses,t.externalClasses],style:i.styleObject,"aria-disabled":t.disabled?"true":"false"},i.urlBind,{"data-toplist-response-id":t.toplistResponseId||null,"data-toplist-link-id":t.toplistLinkId||null,"data-toplist-data":t.toplistData||null,onClick:i.onClick}),{default:c(()=>[t.icon&&t.iconPosition==="left"?(l(),a("span",_,[n(e.$slots,"icon-left",{},void 0,!0)])):o("",!0),t.copy?(l(),a(y,{key:1},[g(m(t.copy),1)],64)):o("",!0),t.icon&&t.iconPosition==="right"?(l(),a("span",v,[n(e.$slots,"icon-right",{},void 0,!0)])):n(e.$slots,"default",{key:3},void 0,!0)]),_:3},16,["target","rel","class","style","aria-disabled","data-toplist-response-id","data-toplist-link-id","data-toplist-data","onClick"])}const E=Object.assign(u(b,[["render",S],["__scopeId","data-v-d86648af"]]),{__name:"AppLink"});export{E as default};
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.