1import{C as e,E as t,F as n,J as r,M as i,N as a,O as o,T as s,W as c,c as l,k as u,n as d,st as f,ut as p}from"./vendor-vue-Bu-KQjoC.js";import{s as m}from"./index-BE2-dWra.js";import{i as h,n as g,t as _}from"./mediaMeta-CYd0ph1V.js";var v=[`href`],y={class:`media-card-thumb relative aspect-square w-full shrink-0 overflow-hidden bg-reader`},b=[`src`,`alt`],x={key:1,class:`absolute inset-0 flex h-full w-full items-center justify-center text-muted`},S={class:`flex min-h-0 flex-1 flex-col gap-1 p-2.5`},C={class:`line-clamp-2 text-[12px] font-semibold leading-snug text-primary`},w={class:`mt-auto truncate text-[11px] text-muted`},T={key:2},E=n({__name:`MediaPlazaCard`,props:{media:{}},setup(n){let E=n,{t:D}=d(),O=l(),k=s(()=>`/media/${E.media.media_id}`),A=s(()=>h(E.media.extension)),j=s(()=>A.value===`audio`?`audio_file`:A.value===`video`?`movie`:A.value===`archive`?`folder_zip`:A.value===`image`?`image`:`insert_drive_file`),M=s(()=>g(E.media.cover_url,E.media.file_url,E.media.extension)),N=s(()=>!!M.value);function P(e){m(e,O,k.value)}return(s,l)=>{let d=r(`MaterialIcon`);return c(),u(`a`,{href:k.value,class:`nico-panel flex h-full flex-col overflow-hidden border border-border no-underline transition-colors hover:border-accent`,onClick:P},[t(`div`,y,[N.value?(c(),u(`img`,{key:0,src:M.value,alt:n.media.title,class:`absolute inset-0 h-full w-full object-cover object-center`,loading:`lazy`,decoding:`async`},null,8,b)):(c(),u(`div`,x,[a(d,{name:j.value,size:40,class:`text-accent opacity-80`},null,8,[`name`])]))]),t(`div`,S,[t(`p`,C,p(n.media.title||f(D)(`media.untitled`,{id:n.media.media_id})),1),t(`p`,w,[n.media.username?(c(),u(e,{key:0},[i(`@`+p(n.media.username),1)],64)):(c(),u(e,{key:1},[i(`UID `+p(n.media.uid),1)],64)),n.media.file_size?(c(),u(`span`,T,` · `+p(f(_)(n.media.file_size)),1)):o(``,!0)])])],8,v)}}});export{E as t};
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.