import{b as y,a as p,w as b,c as l,D as a,h as o,i as c,j as n,l as r,T as g,t as C}from"./vue-y3KLWBaS.js";import{a4 as x,i as S,f as $,e as B}from"./app-JmgyQoR0.js";import{X as E}from"./follow-list-5uwSQDtT.js";import"./MkUserInfo-NOodgOlv.js";import"./MkNumber.vue_vue_type_script_setup_true_lang-gu4zp81q.js";import"./number-rE36t967.js";import"./MkPagination-urywMrXv.js";const L={key:0},F=y({__name:"followers",props:{acct:{}},setup(d){const s=d;let e=p(null),u=p(null);function i(){s.acct!=null&&(e.value=null,$("users/show",B.parse(s.acct)).then(t=>{e.value=t}).catch(t=>{u.value=t}))}b(()=>s.acct,i,{immediate:!0});const f=l(()=>[]),v=l(()=>[]);return x(l(()=>e.value?{icon:"ph-user ph-bold ph-lg",title:e.value.name?`${e.value.name} (@${e.value.username})`:`@${e.value.username}`,subtitle:S.ts.followers,userName:e.value,avatar:e.value}:null)),(t,m)=>{const _=a("MkPageHeader"),k=a("MkError"),h=a("MkLoading"),M=a("MkSpacer"),w=a("MkStickyContainer");return o(),c(w,null,{header:n(()=>[r(_,{actions:f.value,tabs:v.value},null,8,["actions","tabs"])]),default:n(()=>[r(M,{"content-max":1e3},{default:n(()=>[r(g,{name:"fade",mode:"out-in"},{default:n(()=>[e.value?(o(),C("div",L,[r(E,{user:e.value,type:"followers"},null,8,["user"])])):u.value?(o(),c(k,{key:1,onRetry:m[0]||(m[0]=P=>i())})):(o(),c(h,{key:2}))]),_:1})]),_:1})]),_:1})}}});export{F as default};
