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