import{M as d}from"./MkPagination-DzUgufpZ.js";import{_ as B}from"./MkTab.vue_vue_type_style_index_0_lang-Cn_SAquG.js";import{aA as P,b as l,ak as p,a9 as _}from"./app-QjDgb7aF.js";import{F as f}from"./link-DQNFdX6e.js";import{b as U,E as x,j as a,p as r,k as s,i as e,q as k,D as u,u as t,I as A,F as g,G as b,g as h,J as y,H as v,a as C}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const F={class:"_formRoot"},N={value:"mute"},D={value:"block"},E={key:0},I={key:1},T=U({__name:"mute-block",setup(L){let n=C("mute");const V={endpoint:"mute/list",limit:10},M={endpoint:"blocking/list",limit:10};return P({title:l.ts.muteAndBlock,icon:"ph-prohibit ph-bold ph-lg"}),(R,m)=>{const c=x("MkAcct");return a(),r("div",F,[s(B,{modelValue:t(n),"onUpdate:modelValue":m[0]||(m[0]=i=>A(n)?n.value=i:n=i),style:{"margin-bottom":"var(--margin)"}},{default:e(()=>[k("option",N,u(t(l).ts.mutedUsers),1),k("option",D,u(t(l).ts.blockedUsers),1)]),_:1},8,["modelValue"]),t(n)==="mute"?(a(),r("div",E,[s(d,{pagination:V,class:"muting"},{empty:e(()=>[s(_,null,{default:e(()=>[y(u(t(l).ts.noUsers),1)]),_:1})]),default:e(({items:i})=>[(a(!0),r(g,null,b(i,o=>(a(),h(f,{key:o.id,to:t(p)(o.mutee)},{default:e(()=>[s(c,{user:o.mutee},null,8,["user"])]),_:2},1032,["to"]))),128))]),_:1})])):v("",!0),t(n)==="block"?(a(),r("div",I,[s(d,{pagination:M,class:"blocking"},{empty:e(()=>[s(_,null,{default:e(()=>[y(u(t(l).ts.noUsers),1)]),_:1})]),default:e(({items:i})=>[(a(!0),r(g,null,b(i,o=>(a(),h(f,{key:o.id,to:t(p)(o.blockee)},{default:e(()=>[s(c,{user:o.blockee},null,8,["user"])]),_:2},1032,["to"]))),128))]),_:1})])):v("",!0)])}}});export{T as default};
//# sourceMappingURL=mute-block-BxWwlMM6.js.map
