import{e as M,i as r,aU as h,n as b}from"./app-JmgyQoR0.js";import{M as A}from"./MkPagination-urywMrXv.js";import{b as d}from"./bytes-7YLXyrly.js";import{b as D,D as c,g as F,h as s,t as i,l,j as m,F as w,G as C,q as $,z as n,i as u,E as a,H as p,u as t,K as z,x as B}from"./vue-y3KLWBaS.js";const L={key:0,class:"sensitive-label"},N={key:1,class:"body"},S={style:{opacity:"0.7"}},T={key:1},V={style:{"margin-right":"1em"}},x=D({__name:"MkFileListForAdmin",props:{pagination:{},viewMode:{}},setup(f){return(o,E)=>{const _=c("MkAcct"),v=c("MkTime"),k=c("MkA"),y=F("tooltip");return s(),i("div",null,[l(A,{pagination:o.pagination,class:B(["urempief",{grid:o.viewMode==="grid"}])},{default:m(({items:g})=>[(s(!0),i(w,null,C(g,e=>$((s(),u(k,{key:e.id,to:`/admin/file/${e.id}`,class:"file _button"},{default:m(()=>[e.isSensitive?(s(),i("div",L,a(n(r).ts.sensitive),1)):p("",!0),l(h,{class:"thumbnail",file:e,fit:"contain"},null,8,["file"]),o.viewMode==="list"?(s(),i("div",N,[t("div",null,[t("small",S,a(e.name),1)]),t("div",null,[e.user?(s(),u(_,{key:0,user:e.user},null,8,["user"])):(s(),i("div",T,a(n(r).ts.system),1))]),t("div",null,[t("span",V,a(e.type),1),t("span",null,a(n(d)(e.size)),1)]),t("div",null,[t("span",null,[z(a(n(r).ts.registeredDate)+": ",1),l(v,{time:e.createdAt,mode:"detail"},null,8,["time"])])])])):p("",!0)]),_:2},1032,["to"])),[[y,`${e.type}
${n(d)(e.size)}
${new Date(e.createdAt).toLocaleString()}
by ${e.user?"@"+M.toString(e.user):"system"}`,void 0,{mfm:!0}]])),128))]),_:1},8,["pagination","class"])])}}}),I=b(x,[["__scopeId","data-v-840e498c"]]);export{I as M};
