PageSourceSearch

https://matchyforbusiness.com/assets/PartnerLogo-CSGtMflG.js

js matchyforbusiness.com collected 2026-10-02 01:35:50 UTC 1,134 bytes, 1 lines download raw bytes

1import{r,j as a,m as p}from"./main-CcYcFY5H.js";import{p as u}from"./partner-logos-CjdXqLtB.js";const C=["#FF6B6B","#4ECDC4","#FFD93D","#6C5CE7","#FF8C42","#1ABC9C","#E84393","#3498DB","#9B59B6","#2ECC71"];function m(e){let o=0;for(let t=0;t<e.length;t++)o=o*31+e.charCodeAt(t)>>>0;return C[o%C.length]}function j({slug:e,name:o,url:t,websiteUrl:c,className:l,fallbackText:h}){const n=r.useMemo(()=>{const s=[`/api/public/partner-logo?slug=${encodeURIComponent(e)}`,...u(e,c)];return t&&!/(^https?:\/\/)?logo\.clearbit\.com\//i.test(t)&&s.unshift(t),s},[e,t,c]),[i,f]=r.useState(0),[g,d]=r.useState(!1);if(r.useEffect(()=>{f(0),d(!1)},[n]),g||n.length===0){const s=m(e);return a.jsx("span",{className:l??"size-5",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:s,borderRadius:6,overflow:"hidden"},"aria-label":h??o,title:o,children:a.jsx("img",{src:p,alt:"",style:{width:"70%",height:"70%",objectFit:"contain",filter:"brightness(0) invert(1)"}})})}return a.jsx("img",{src:n[i],alt:o,loading:"lazy",className:l??"size-5 object-contain",onError:()=>{i+1<n.length?f(i+1):d(!0)}})}export{j as P};

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.