1import{H as S,i as u,bQ as g,aB as I,d as w,bJ as A}from"./app-C2Ek0jQb.js";import{M as F}from"./B64XpYSc.js";import{b as H,a as m,e as L,A as k,g as s,h as f,i as c,q as a,L as y,H as d,u as i,C as v,l as o,F as _,D as N,B as C}from"./Cz7xZCJB.js";import"./BX8RwoyW.js";const V=["onClick"],R=H({__name:"index.files",props:{user:{}},setup(b){const B=b,l=m(!0),r=m([]),p=m([]);function x(n){return w.state.disableShowingAnimatedImages?A(n.url):n.thumbnailUrl}return L(()=>{S("users/notes",{userId:B.user.id,withFiles:!0,limit:15}).then(n=>{for(const t of n)for(const h of t.files)r.value.push({note:t,file:h});l.value=!1})}),(n,t)=>{const h=k("MkLoading"),M=k("MkA");return s(),f(F,{"max-height":300,foldable:!0},{icon:c(()=>t[0]||(t[0]=[a("i",{class:"ti ti-photo"},null,-1)])),header:c(()=>[y(d(i(u).ts.files),1)]),default:c(()=>[a("div",{class:"xfESY"},[l.value?(s(),f(h,{key:0})):v("",!0),!l.value&&r.value.length>0?(s(),o("div",{key:1,class:"x2HaQ"},[(s(!0),o(_,null,N(r.value,e=>(s(),o(_,{key:e.note.id+e.file.id},[e.file.isSensitive&&!p.value.includes(e.file.id)?(s(),o("div",{key:0,class:"xniZ4",onClick:Y=>p.value.push(e.file.id)},[C(g,{class:"xeCYR",hash:e.file.blurhash,src:x(e.file),title:e.file.name,forceBlurhash:!0},null,8,["class","hash","src","title"]),a("div",{class:"x45q7"},[a("div",null,[a("div",null,[t[1]||(t[1]=a("i",{class:"ti ti-eye-exclamation"},null,-1)),y(" "+d(i(u).ts.sensitive),1)]),a("div",null,d(i(u).ts.clickToShow),1)])],2)],10,V)):(s(),f(M,{key:1,class:"xniZ4",to:i(I)(e.note)},{default:c(()=>[C(g,{hash:e.file.blurhash,src:x(e.file),title:e.file.name},null,8,["hash","src","title"])]),_:2},1032,["class","to"]))],64))),128))],2)):v("",!0),!l.value&&r.value.length==0?(s(),o("p",{key:2,class:"xhK42"},d(i(u).ts.nothing),3)):v("",!0)],2)]),_:1})}}});
1export{R as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.