1import{_ as A,w as F,u as C,S as L,c as s,a as t,b as R,d as b,e as p,t as n,F as B,r as O,f as v,g as S,A as $,h as y,i as V,j as I,o as e,k as M,l as E}from"./BdrRePpj.js";import{u as U}from"./OI9PYUYr.js";import{I as z}from"./K2bng1ie.js";import{u as j}from"./Y91FAsSC.js";const q={class:"pt-[72px]"},G={class:"section-container"},D={class:"page-title"},H={key:0,class:"followers-list"},K=["src"],Y={class:"follower-name"},Z={key:0,class:"follower-bio"},J={key:0,class:"text-center py-4"},Q={key:1,class:"text-gray-500 text-center py-10"},W={__name:"followers",async setup(X){let i,k;const g=S(),d=g.params.lang||"en",c=g.params.id,h=d==="en"?"":`/${d}`,x={en:{backToProfile:"Back to profile",followers:"Followers",empty:"No followers yet."},es:{backToProfile:"Volver al perfil",followers:"Seguidores",empty:"Aun no hay seguidores."},fr:{backToProfile:"Retour au profil",followers:"Abonnes",empty:"Aucun abonne pour le moment."},pt:{backToProfile:"Voltar ao perfil",followers:"Seguidores",empty:"Nenhum seguidor ainda."},de:{backToProfile:"Zuruck zum Profil",followers:"Follower",empty:"Noch keine Follower."},ja:{backToProfile:"ãããã£ã¼ã«ã«æ»ã",followers:"ãã©ãã¯ã¼",empty:"ã¾ã ãã©ãã¯ã¼ã¯ãã¾ããã"},it:{backToProfile:"Torna al profilo",followers:"Follower",empty:"Ancora nessun follower."},ko:{backToProfile:"íë¡íë¡ ëìê°ê¸°",followers:"íë¡ì",empty:"ìì§ íë¡ìê° ììµëë¤."}},u=o=>x[d]?.[o]||x.en[o],f=y([]),a=y(""),r=y(!1),{data:m}
1=([i,k]=F(()=>j(`${$.PROCOLOR_PUBLIC_API_URL}/profiles/${c}/followers`,{key:`followers-${c}`,query:{size:20}},"$Eyv-w4-YK0")),i=await i,k(),i);m.value&&(f.value=m.value.data||[],a.value=m.value.next_page_cursor||"");const w=I(()=>f.value);async function T(){if(!(!a.value||r.value)){r.value=!0;try{const o=await $fetch(`${$.PROCOLOR_PUBLIC_API_URL}/profiles/${c}/followers`,{query:{size:20,page_cursor:a.value}});o?.data&&(f.value=[...f.value,...o.data],a.value=o.next_page_cursor||"")}finally{r.value=!1}}}const N=I(()=>!!a.value);return U({fetchNext:T,isFetching:r,hasMore:N,offset:500}),C({title:`${u("followers")} â ${L}`,meta:[{name:"robots",content:"noindex"}]}),(o,_)=>{const P=V;return e(),s("div",q,[t("div",G,[R(P,{to:`${p(h)}/profile/${p(c)}`,class:"back-link"},{default:b(()=>[_[0]||(_[0]=t("i",{class:"pi pi-arrow-left"},null,-1)),M(" "+n(u("backToProfile")),1)]),_:1},8,["to"]),t("h1",D,n(u("followers")),1),w.value&&w.value.length?(e(),s("div",H,[(e(!0),s(B,null,O(w.value,l=>(e(),E(P,{key:l.profile_id,to:`${p(h)}/profile/${l.profile_id}`,class:"follower-card"},{default:b(()=>[l.profile_picture_file_url?(e(),s("img",{key:0,src:p(z).avatar(l.profile_picture_file_url),class:"follower-avatar"},null,8,K)):v("",!0),t("div",null,[t("span",Y,n(l.name),1),l.bio?(e(),s("span",Z,n(l.bio),1)):v("",!0)])]),_:2},1032,["to"]))),128)),r.value?(e(),s("div",J,[..._[1]||(_[1]=[t("div",{class:"loading-spinner"},null,-1)])])):v("",!0)])):(e(),s("p",Q,n(u("empty")),1))])])}}},te=A(W,[["__scopeId","data-v-0725d235"]]);export{te 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.