import{b,w as y,f as l,E as t,j as o,g as c,i as n,k as r,T as x,u,p as C,a as d}from"./vue-Cm77DuTi.js";import{aA as E,b as S,d as $,x as B}from"./app-QjDgb7aF.js";import{X as L}from"./follow-list-D-q6sDzu.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";import"./MkUserInfo-Brwzwv5t.js";import"./MkNumber.vue_vue_type_script_setup_true_lang-DCqylJGQ.js";import"./animation-wAdLxVJ8.js";import"./number-BJeYzK3l.js";import"./MkPagination-DzUgufpZ.js";const P={key:0},z=b({__name:"following",props:{acct:{}},setup(f){const s=f;let e=d(null),i=d(null);function p(){s.acct!=null&&(e.value=null,$("users/show",B.parse(s.acct)).then(a=>{e.value=a}).catch(a=>{i.value=a}))}y(()=>s.acct,p,{immediate:!0});const k=l(()=>[]),_=l(()=>[]);return E(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.following,userName:e.value,avatar:e.value}:null)),(a,m)=>{const v=t("MkPageHeader"),h=t("MkError"),M=t("MkLoading"),g=t("MkSpacer"),w=t("MkStickyContainer");return o(),c(w,null,{header:n(()=>[r(v,{actions:k.value,tabs:_.value},null,8,["actions","tabs"])]),default:n(()=>[r(g,{"content-max":1e3},{default:n(()=>[r(x,{name:"fade",mode:"out-in"},{default:n(()=>[u(e)?(o(),C("div",P,[r(L,{user:u(e),type:"following"},null,8,["user"])])):u(i)?(o(),c(h,{key:1,onRetry:m[0]||(m[0]=T=>p())})):(o(),c(M,{key:2}))]),_:1})]),_:1})]),_:1})}}});export{z as default};
//# sourceMappingURL=following-GouQ7-gC.js.map
