1import{r as e,t}from"./jsx-runtime-BkSabwWG.js";import{t as n}from"./react-DHmoMYoq.js";var r=e(n(),1),i=t();function a({name:e,logoUrl:t,size:n=40,className:a=``,rounded:o=`rounded-lg`}){let[s,c]=(0,r.useState)(0),l=(e||`?`).split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]).join(``).toUpperCase()||`?`,u=null;if(t)try{let e=new URL(t).pathname.replace(/^\//,``);e&&(u=`https://www.google.com/s2/favicons?domain=${e}&sz=128`)}catch{u=null}function d(){return(0,i.jsx)(`div`,{className:`shrink-0 ${o} bg-secondary text-primary font-bold flex items-center justify-center ${a}`,style:{width:n,height:n,fontSize:Math.max(11,n*.36)},role:`img`,"aria-label":`${e} logo`,children:l})}if(!t||s>=2)return(0,i.jsx)(i.Fragment,{children:d()});let f=s===0?t:u;return f?(0,i.jsx)(`img`,{src:f,alt:`${e} logo`,width:n,height:n,loading:`lazy`,onError:()=>c(e=>e+1),className:`shrink-0 object-contain ${o} ${a}`,style:{width:n,height:n}}):(0,i.jsx)(i.Fragment,{children:d()})}export{a 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.