PageSourceSearch

https://gotsnag.com/assets/BrandCard-CjPBrV2l.js

js gotsnag.com collected 2026-09-24 14:44:15 UTC 2,457 bytes, 1 lines download raw bytes

1import{bt as e,r as m,a3 as r,aJ as h,b0 as c,bw as x,a6 as p}from"./index-TH6SuPE4.js";import{c as u,a as g,b as f}from"./brand-D4_i4bw0.js";import{S as v}from"./star-Cr8a1CfU.js";function N({brand:t,index:d=0}){const s=u(t),n=g(t),i=f(t),l=t.id??"",a=t.products?.length??0,o=e.jsxs(m,{className:c("group gap-0 overflow-hidden border border-slate-100 bg-white p-0 shadow-sm","hover:border-snag-orange/30 hover:shadow-md","transition-all duration-200 rounded-xl h-full"),children:[e.jsxs("div",{className:"relative aspect-[16/7] w-full shrink-0 overflow-hidden bg-gradient-to-br from-slate-100 to-snag-orange/10",children:[n?e.jsx(r,{src:n,alt:"",fill:!0,"aria-hidden":!0,className:"object-cover object-center transition-transform duration-400 group-hover:scale-105",sizes:"(max-width: 640px) 50vw, 25vw"}):s?e.jsx(r,{src:s,alt:"",fill:!0,"aria-hidden":!0,className:"scale-150 object-cover opacity-30 blur-2xl",sizes:"(max-width: 640px) 50vw, 25vw"}):null,e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-black/30 via-transparent to-transparent"})]}),e.jsxs("div",{className:"relative -mt-6 flex items-start gap-3 px-3 pb-3",children:[e.jsx("div",{className:c("relative z-10 flex h-12 w-12 shrink-0 items-center justify-center","rounded-xl border-2 border-white bg-white shadow-md","transition-transform duration-200 group-hover:scale-105"),children:s?e.jsx(r,{src:s,alt:i,width:40,height:40,className:"h-full w-full object-contain rounded-lg p-1"}):e.jsx(h,{className:"h-5 w-5 text-slate-300"})}),e.jsxs("div",{className:"min-w-0 flex-1 pt-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"font-nunito text-base font-bold leading-snug text-slate-900 line-clamp-2 group-hover:text-snag-orange transition-colors",children:i}),t.avgRating!=null&&e.jsxs("span",{className:"mt-0.5 inline-flex shrink-0 items-center gap-0.5 text-sm font-semibold text-amber-500",children:[e.jsx(v,{className:"h-3.5 w-3.5 fill-current"}),t.avgRating.toFixed(1)]})]}),(t.description||a>0)&&e.jsx("p",{className:"mt-1 text-sm leading-snug text-slate-500 line-clamp-2",children:t.description?.trim()||`${a} ${a===1?"product":"products"}`})]})]})]});return l?e.jsx(x.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2,delay:Math.min(d*.025,.25)},children:e.jsx(p,{to:"/brands/$brandId",params:{brandId:l},className:"block h-full",children:o})}):o}export{N as B};

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.