import{x as M,b as r,aO as h,_ as b}from"./app-QjDgb7aF.js";import{M as A}from"./MkPagination-DzUgufpZ.js";import{b as d}from"./bytes-C39hD0JB.js";import{b as x,E as c,A as D,j as s,p as i,k as l,i as m,F,G as w,l as C,u as n,g as u,D as a,H as p,q as t,J as $,x as B}from"./vue-Cm77DuTi.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"}},z=x({__name:"MkFileListForAdmin",props:{pagination:{},viewMode:{}},setup(o){return(E,f)=>{const _=c("MkAcct"),v=c("MkTime"),k=c("MkA"),y=D("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(F,null,w(g,e=>C((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,[$(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(z,[["__scopeId","data-v-840e498c"]]);export{I as M};
//# sourceMappingURL=MkFileListForAdmin-DZRcKdif.js.map
