import{M as d}from"./MkPagination-urywMrXv.js";import{_ as P}from"./MkTab.vue_vue_type_style_index_0_lang-bgKDPAJl.js";import{a4 as U,i as l,an as _,ae as p}from"./app-JmgyQoR0.js";import{F as f}from"./link-UF1gGYGD.js";import{b as x,a as C,c as k,D as F,h as o,t as i,l as a,j as e,u as g,E as u,z as s,K as b,F as v,G as h,i as y,H as V}from"./vue-y3KLWBaS.js";const N={class:"_formRoot"},A={value:"mute"},D={value:"block"},E={key:0},L={key:1},R=x({__name:"mute-block",setup(j){let r=C("mute");const M={endpoint:"mute/list",limit:10},B={endpoint:"blocking/list",limit:10};return k(()=>[]),k(()=>[]),U({title:l.ts.muteAndBlock,icon:"ph-prohibit ph-bold ph-lg"}),(w,m)=>{const c=F("MkAcct");return o(),i("div",N,[a(P,{modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=n=>r.value=n),style:{"margin-bottom":"var(--margin)"}},{default:e(()=>[g("option",A,u(s(l).ts.mutedUsers),1),g("option",D,u(s(l).ts.blockedUsers),1)]),_:1},8,["modelValue"]),r.value==="mute"?(o(),i("div",E,[a(d,{pagination:M,class:"muting"},{empty:e(()=>[a(_,null,{default:e(()=>[b(u(s(l).ts.noUsers),1)]),_:1})]),default:e(({items:n})=>[(o(!0),i(v,null,h(n,t=>(o(),y(f,{key:t.id,to:s(p)(t.mutee)},{default:e(()=>[a(c,{user:t.mutee},null,8,["user"])]),_:2},1032,["to"]))),128))]),_:1})])):V("",!0),r.value==="block"?(o(),i("div",L,[a(d,{pagination:B,class:"blocking"},{empty:e(()=>[a(_,null,{default:e(()=>[b(u(s(l).ts.noUsers),1)]),_:1})]),default:e(({items:n})=>[(o(!0),i(v,null,h(n,t=>(o(),y(f,{key:t.id,to:s(p)(t.blockee)},{default:e(()=>[a(c,{user:t.blockee},null,8,["user"])]),_:2},1032,["to"]))),128))]),_:1})])):V("",!0)])}}});export{R as default};
