import{M as D}from"./MkPagination-urywMrXv.js";import{a4 as V,i,r as F,$ as h,ae as H,a$ as L,f as k,n as R}from"./app-JmgyQoR0.js";import{b as E,a as U,c as d,D as s,g as z,h as n,i as u,j as a,l,u as o,z as t,E as p,K as G,H as w,t as f,G as J,q as K,F as T,I as W,J as O}from"./vue-y3KLWBaS.js";const v=c=>(W("data-v-30aa2777"),c=c(),O(),c),Q={class:"_fullinfo"},X=["src"],Y={class:"mk-follow-requests"},Z={class:"body"},q={class:"name"},ee={class:"acct"},oe=["title"],te={class:"actions"},se=["onClick","aria-label"],ae=v(()=>o("i",{class:"ph-check ph-bold ph-lg"},null,-1)),ne=[ae],le=["onClick","aria-label"],ie=v(()=>o("i",{class:"ph-x ph-bold ph-lg"},null,-1)),ce=[ie],re=E({__name:"follow-requests",setup(c){const _=U(),g={endpoint:"following/requests/list",limit:10,noPaging:!0};function M(r){k("following/requests/accept",{userId:r.id}).then(()=>{_.value.reload()})}function b(r){k("following/requests/reject",{userId:r.id}).then(()=>{_.value.reload()})}return d(()=>[]),d(()=>[]),V(d(()=>({title:i.ts.followRequests,icon:"ph-hand-waving ph-bold ph-lg"}))),(r,_e)=>{const C=s("MkPageHeader"),x=s("MkInfo"),y=s("MkAvatar"),I=s("MkUserName"),S=s("MkA"),j=s("Mfm"),N=s("MkSpacer"),P=s("MkStickyContainer"),$=z("user-preview");return n(),u(P,null,{header:a(()=>[l(C)]),default:a(()=>[l(N,{"content-max":800},{default:a(()=>[l(D,{ref_key:"paginationComponent",ref:_,pagination:g},{empty:a(()=>[o("div",Q,[o("img",{src:t(F).images.info,"aria-label":"none",class:"_ghost"},null,8,X),o("div",null,p(t(i).ts.noFollowRequests),1)])]),default:a(({items:A})=>{var m;return[((m=t(h))==null?void 0:m.isLocked)===!1?(n(),u(x,{key:0,warn:"",class:"info"},{default:a(()=>[G(p(t(i).ts.silencedWarning),1)]),_:1})):w("",!0),o("div",Y,[(n(!0),f(T,null,J(A,e=>(n(),f("div",{key:e.id,class:"user _panel"},[l(y,{class:"avatar",user:e.follower,"show-indicator":!0,disableLink:""},null,8,["user"]),o("div",Z,[o("div",q,[K((n(),u(S,{class:"name",to:t(H)(e.follower)},{default:a(()=>[l(I,{user:e.follower},null,8,["user"])]),_:2},1032,["to"])),[[$,e.follower.id]]),o("p",ee," @"+p(t(L)(e.follower)),1)]),e.follower.description?(n(),f("div",{key:0,class:"description",title:e.follower.description},[l(j,{text:e.follower.description,"is-note":!1,author:e.follower,i:t(h),"custom-emojis":e.follower.emojis,plain:!0,nowrap:!0},null,8,["text","author","i","custom-emojis"])],8,oe)):w("",!0),o("div",te,[o("button",{class:"_button",onClick:B=>M(e.follower),"aria-label":t(i).t("accept")},ne,8,se),o("button",{class:"_button",onClick:B=>b(e.follower),"aria-label":t(i).t("reject")},ce,8,le)])])]))),128))])]}),_:1},512)]),_:1})]),_:1})}}}),fe=R(re,[["__scopeId","data-v-30aa2777"]]);export{fe as default};
