import{_}from"./MkMiniChart.vue_vue_type_script_setup_true_lang-pO1kuPAx.js";import{T as m,a$ as h,ae as f,n as M}from"./app-JmgyQoR0.js";import{b as k,a as y,D as o,h as r,i as n,j as C,l as c,u as e,E as v,z as l,H as w,x as N}from"./vue-y3KLWBaS.js";const b={class:"body"},A={class:"name"},B={class:"sub"},U={class:"acct _monospace"},V=k({__name:"MkUserCardMini",props:{user:{},withChart:{type:Boolean,default:!0}},setup(i){const t=i;let a=y(null);return t.withChart&&m("charts/user/notes",{userId:t.user.id,limit:17,span:"day"}).then(s=>{s.inc.splice(0,1),a.value=s.inc}),(s,z)=>{const u=o("MkAvatar"),d=o("MkUserName"),p=o("MkA");return r(),n(p,{class:N(["user-card-mini",[s.$style.root,{yellow:s.user.isSilenced,red:s.user.isSuspended,gray:!1}]]),to:l(f)(s.user)},{default:C(()=>[c(u,{class:"avatar",user:s.user,"disable-link":!0,"show-indicator":!0},null,8,["user"]),e("div",b,[e("span",A,[c(d,{class:"name",user:s.user},null,8,["user"])]),e("span",B,[e("span",U,"@"+v(l(h)(s.user)),1)])]),a.value?(r(),n(_,{key:0,class:"chart",src:a.value},null,8,["src"])):w("",!0)]),_:1},8,["class","to"])}}}),$="_root_1if22_1",g={root:$},S={$style:g},G=M(V,[["__cssModules",S]]);export{G as M};
