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