1import{_ as B}from"./3PeUKBTt.js";import{_ as D}from"./DKp4DJUr.js";import{d as U,j as k,h as x,u as A,w as u,a as C,c as r,e as a,r as $,g as s,f as g,F as h,z as E,q as v,t as I,m as y,s as z,D as V,b as n}from"./DHiWUW6j.js";import{c as j}from"./6d_I6luA.js";/* empty css */import"./Dwx_ir2a.js";import"./B29MK8z3.js";const q={class:"profile"},F={class:"profile__header"},G={class:"profile__details"},O={class:"profile__details__inner"},T=["src"],H={class:"content-container"},P={class:"bot-grid profile__bots"},S={key:1,class:"profile__empty"},tt=U({__name:"[id]",async setup(W){let e,i;const{params:{id:f}}=k(),{$api:m}=x(),{t:b}=A(),{data:w}=([e,i]=u(async()=>y(async()=>{const{data:l,error:o,response:p}=await m.value.GET("/api/v1/users/{id}/",{params:{path:{id:f}}});if(o)throw z({status:p.status,message:o.message});return l},"$ojRvc_iOWZ")),e=await e,i(),e),t=w.value,{data:N}=([e,i]=u(async()=>y(async()=>(await m.value.GET("/api/v1/bots/",{params:{query:{authorId:t.userId,sort:"username",order:"asc"}}})).data,"$LwX11O0A74")),e=await e,i(),e),{bots:c}=N.value;t.avatarURL=j(t.avatarURL,256);const _=b("profile.viewProfile",{username:t.discriminator==="0"?t.globalName:t.username});return C({title:t.discriminator==="0"?t.globalName:t.username,meta:[{name:"description",content:_},{property:"og:title",content:t.discriminator==="0"?t.globalName:t.username},{property:"og:description",content:_},{property:"og:image",content:t.avatarURL},{property:"og:image:alt",content:`${t.discriminator==="0"?t.globalName:t.username} avatar`},{property:"og:image",content:"https://discord.bots.gg/img/bot_icon_placeholder.png"},{property:"og:image:alt",content:"Discord Bots logo"},{property:"twitter:title",content:t.discriminator==="0"?t.globalName:t.username},{property:"twitter:image",content:t.avatarURL.replace("cdn.discordapp.com","images.discordapp.net")}]}),(l,o)=>{const p=B,L=D,R=V("lazy");return n(),r("div",q,[a("section",F,[a("div",G,[a("div",O,[$(a("img",{src:s(t).avatarURL,class:"profile__avatar",alt:"User icon",width:"256",height:"256"},null,8,T),[[R,"/img/user_icon_placeholder.png"]]),g(p,{"global-name":s(t).globalName,username:s(t).username,discriminator:s(t).discriminator},null,8,["global-name","username","discriminator"])])])]),a("section",H,[s(c).length?(n(),r(h,{key:0},[o[0]||(o[0]=a("h1",{class:"profile__title"},"Bots",-1)),a("section",P,[(n(!0),r(h,null,E(s(c),d=>(n(),r("div",{key:d.clientId},[g(L,{bot:d},null,8,["bot"])]))),128))])],64)):v("",!0),s(c).length?v("",!0):(n(),r("p",S,[a("i",null,I(l.$t("profile.noBots")),1)]))])])}}});export{tt 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.