1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6d5f5904-ff52-5a48-a6d7-dd2f859fd3aa")}catch(e){}}(); 3import{Ct as e,Gt as t,I as a,L as l,M as i,O as n,S as r,Zt as s,b as o,it as u,j as m,k as f,lt as v,o as d,z as c}from"./CV1VnGLa.js";import{t as p}from"./CWTB_NSG.js";import{t as y}from"./BzqjePJz.js";import{Nt as k,hn as x,q as j}from"./o1_oaBL2.js";import{r as h}from"./7n0wwqSa.js";import{t as I}from"./C552GLj-.js";import{t as g}from"./CPmMrSGe.js";import{t as z}from"./sszdAk-7.js";import{z as b}from"#entry";import{n as w,t as C}from"./d_mtT1tA2.js";import{t as F}from"./CBQuXpqn.js";var T={class:"flex h-screen"},_={class:"m-auto"},S=["textContent"],$=["textContent"],q=c({__name:"FavoriteItemView",props:{itemId:{}},setup(c){const{t:q}=h(),{safeName:L}=C(),{getFavorite:K}=w(),{readableMimeType:M,readableFileSize:N,getFileIcon:R}=I(),{downloadFileKey:U,isDownloading:A}=b(),{isAuthenticated:B}=d(y()),{data:D}=p({queryKey:n(()=>["favorite",c.itemId]),queryFn:()=>K(c.itemId),staleTime:1/0,enabled:n(()=>B.value&&c.itemId.length>0)}),G=n(()=>L(D?.value?.location?.title||D?.value?.file?.name||D?.value?.link?.name||D?.value?.name||"")),O=n(()=>D?.value?.file?.mimeType?M(D.value.file.mimeType||""):""),V=n(()=>D?.value?.file?.fileSize?N(D.value.file.fileSize||0):""),Z=n(()=>[O.value,V.value].filter(Boolean).join(", ")),E=n(()=>{if(A.value)return x;const e=D?.value?.file?.mimeType;return e&&R(e)||j}),H=n(()=>
3{if(!D?.value?.link?.url)return"";try{return new URL(D.value.link.url).hostname}catch(e){return console.error(`Invalid URL: ${D.value.link.url} - ${e}`),""}});return z(n(()=>G.value)),(n,d)=>{const c=v("font-awesome-icon");return u(),i("div",T,[l(F,{fullscreen:!1}),f("div",_,[t(D)?.file?.key?(u(),i(r,{key:0},[l(g,{size:"xl",variant:"solid",href:t(D).file.key,disabled:t(A),onClick:d[0]||(d[0]=o(e=>t(U)(t(D).file.key),["prevent"]))},{default:e(()=>[l(c,{icon:E.value},null,8,["icon"]),a(" "+s(t(q)("downloadIn",{in:`"${G.value}"`})),1)]),_:1},8,["href","disabled"]),Z.value?(u(),i("p",{key:0,class:"text-gray-40 mt-2 text-center text-sm",textContent:s(Z.value)},null,8,S)):m("",!0)],64)):m("",!0),t(D)?.link?.url?(u(),i(r,{key:1},[l(g,{size:"xl",variant:"solid",href:t(D).link.url,"icon-left":"link",target:"_blank"},{default:e(()=>[l(c,{icon:t(k)},null,8,["icon"]),a(" "+s(t(q)("visitIn",{in:`«${G.value}»`})),1)]),_:1},8,["href"]),H.value?(u(),i("p",{key:0,class:"text-gray-40 mt-2 text-center text-sm",textContent:s(H.value)},null,8,$)):m("",!0)],64)):m("",!0)])])}}});export{q as default}; 4//# debugId=6d5f5904-ff52-5a48-a6d7-dd2f859fd3aa
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.