1import{u as j,by as y,j as e,J as w,L as k,r as p}from"./index-CJSs1J5s.js";import{u as N}from"./use-isomorphic-layout-effect-B-gWoZeB.js";import{P as S}from"./pick-image-gallery-bTvB2DGs.js";import{c as g,t as C}from"./image-variants-DapJuS0w.js";import{p as v}from"./media-url-BXVnwbPV.js";import{P as L,t as z,a as I}from"./page-head-YQgPeOTb.js";import{J as B,e as H}from"./json-ld-C7mjOENa.js";import{p as R,P,h as D}from"./listing-hero-source-D38jrhLQ.js";import{f as E,D as T}from"./price-DHyrQKaV.js";import{C as A}from"./crosshair-Cts5V-sN.js";import{S as U,T as M}from"./tag-00FnptNp.js";import"./deferred-responsive-image-Dzozls-K.js";import"./chevron-left-CR7lxgOU.js";import"./chevron-right-bvx0H_wp.js";const _=P,m="#1c7d44",u={"exceptional-quality":T,"exceptional-price":M,innovative:U,"direct-to-consumer":A};function O({price:t,attributes:s}){const c=s?.filter(i=>!!u[i]).length??0;return e.jsxs("div",{className:"flex items-center",style:{gap:5},children:[t&&e.jsx("span",{style:{fontSize:12,fontWeight:600,color:"#3a3834",letterSpacing:"0.01em",lineHeight:1},children:t}),t&&c>0&&e.jsx("span",{style:{width:1,height:10,background:"#e0dbd5",display:"inline-block",flexShrink:0,marginInline:1}}),s?.map(i=>{const o=u[i];return o?e.jsx(o,{style:{width:12,height:12,color:"#4a8060",flexShrink:0,strokeWidth:1.6}},i):null})]})}const f=3,W={instagram:"Instagram",twitter:"Twitter / X",x:"Twitter / X",youtube:"YouTube",facebook:"Facebook",tiktok:"TikTok",linkedin:"LinkedIn",pinterest:"Pinterest"};function F({platform:t}){const s=t.toLowerCase();return s==="instagram"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}):s==="twitter"||s==="x"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.259 5.63L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}):s==="youtube"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M23.495 6.205a3.007 3.007 0 0 0-2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501A3.007 3.007 0 0 0 .527 6.205a31.247 31.247 0 0 0-.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0-.5-5.805zM9.609 15.601V8.408l6.264 3.602z"})}):s==="facebook"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}):s==="tiktok"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08
1-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})}):s==="pinterest"?e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 0 1 .083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.632-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z"})}):e.jsx("svg",{className:"w-[18px] h-[18px]",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm11-3v8l-3.528-3.536-5.99 5.997-1.42-1.42 5.989-5.997L13 3h8z"})})}function V({text:t}){const[s,c]=p.useState(!1),[i,o]=p.useState(!1),r=p.useRef(null);return N(()=>{const l=r.current;if(!l)return;const n=()=>{o(l.scrollHeight>l.clientHeight+1)};n();const d=new ResizeObserver(n);return d.observe(l),()=>d.disconnect()},[t]),e.jsxs("div",{className:"mb-5",children:[e.jsx("p",{ref:r,className:"text-[14px] text-[#444] leading-[1.72]",style:s?void 0:{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t}),!s&&i&&e.jsx("button",{onClick:()=>c(!0),className:"mt-1 text-[13px] font-medium text-[#555] hover:text-[#222] transition-colors underline-offset-2 hover:underline",children:"Read more"})]})}function $({listing:t}){const[s,c]=p.useState(!1),i=`/listings/${t.slug}`,o=t,r=R({tier:o.tier,galleryImages:o.galleryImages,illustrationImage:o.illustrationImage??null,primaryImageUrl:t.primaryImageUrl,placeholder:_}),l=D(r);return e.jsxs("div",{style:{background:"#f9f8f6",borderRadius:14,border:"1px solid #e6e3de",boxShadow:"0 1px 2px rgba(0,0,0,0.04), 0 3px 12px rgba(0,0,0,0.05)",overflow:"hidden"},children:[e.jsx("div",{style:{padding:"9px 9px 13px"},children:r.kind==="gallery"?e.jsx(S,{images:r.images,variants:o.galleryImageVariants??null,alt:t.name??"",href:i,mobileArrows:!0,sizes:"(max-width: 1023px) calc(100vw - 58px), calc((min(100vw, 1040px) - 126px) / 3)"}):e.jsx("a",{href:i,className:"block",children:e.jsx("div",{style:{aspectRatio:"1 / 1",borderRadius:7,background:"#c8c4be",overflow:"hidden"},children:e.jsx("img",{src:v(r.kind==="illustration"?C(r.image,l):l),srcSet:r.kind==="illustration"?g(r.image):void 0,sizes:r.kind==="illustration"&&g(r.image)?"(max-width: 1023px) calc(100vw - 58px), calc((min(100vw, 1040px) - 126px) / 3)":void 0,alt:t.name??"",width:400,height:400,loading:"lazy",decoding:"async",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})})})}),e.jsxs("div",{style:{padding:"0 13px"},children:[e.jsx("a",{href:i,className:"block group",children:e.jsx("h3",{className:"leading-snug group-hover:text-primary transition-colors",style:{fontSize:16,fontWeight:800,color:"#141414",letterSpacing:"-0.02em"},children:t.name})}),t.sources&&t.sources.length>0&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,marginTop:5},children:[e.jsx("p",{style:{fontSize:9.5,fontWeight:600,color:"#a29d97",textTransform:"uppercase",letterSpacing:"0.08em",lineHeight:1},children:"Also Recommended By"}),e.jsx("p",{style:{fontSize:11,color:"#807a76",lineHeight:1.2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.sources.map((n,d)=>e.jsxs("span",{children:[d>0&&e.jsx("span",{style:{color:"#d0cbc5",marginInline:2},children:"·"}),e.jsx("span",{style:{color:"#807a76"},children:n.name})]},n.slug))})]}),t.descriptionShort&&e.jsxs("button",{onClick:()=>c(n=>!n),style:{display:"flex",alignItems:"center",width:"100%",minHeight:36,marginTop:3,fontSize:11,color:"#a8a39e",background:"none",border:"none",padding:0,cursor:"pointer",letterSpacing:"0.02em",lineHeight:1},children:["Description ",s?"â":"+"]})]}),s&&t.descriptionShort&&e.jsx("div",{style:{padding:"9px 13px 0",borderTop:"1px solid #f0ede8",marginTop:8},children:e.jsx("p",{style:{fontSize:12,color:"#5a5550",lineHeight:1.6},children:t.descriptionShort})}),e.jsxs("div",{className:"flex items-center justify-between",style:{borderTop:"1px solid rgba(0,0,0,0.07)",padding:"8px 13px 10px",marginTop:8},children:[e.jsx(O,{price:E(t.priceDisplay),attributes:t.icons}),e.jsx("a",{href:t.primaryCtaUrl??i,target:t.primaryCtaUrl?"_blank":void 0,rel:t.primaryCtaUrl?"noopener noreferrer":void 0,className:"hover:opacity-70 transition-opacity",style:{fontSize:12,fontWeight:500,color:m,textDecoration:"none",whiteSpace:"nowrap"},children:"View pick â"})]})]})}function oe(){const{slug:t}=j(),{data:s,isLoading:c,isError:i,error:o}=y(t??"",{query:{queryKey:["brand",t??""],enabled:!!t,retry:!1}});if(c)return e.jsx("div",{className:"max-w-[640px] mx-auto px-5 pt-16 pb-24 text-[13px] text-[#888]",children:"Loading brandâ¦"});if(i||!s){const x=(o instanceof w?o.status===404:!s)?"Brand not found.":"Something went wrong.";return e.jsxs("div",{className:"max-w-[640px] mx-auto px-5 pt-16 pb-24",children:[e.jsx("p",{className:"text-[14px] text-[#555]",children:x}
1),e.jsx("a",{href:"/",className:"text-[13px] font-medium mt-3 inline-block hover:underline",style:{color:m},children:"â Back to home"})]})}const{brand:r,socials:l,productsByCategory:n}=s,d=n.reduce((a,x)=>a+x.listings.length,0);return e.jsxs("div",{className:"max-w-[640px] lg:max-w-[960px] xl:max-w-[1040px] mx-auto w-full px-5",children:[e.jsx(L,{title:I(r.name),description:z(r.description??r.shortSummary),canonicalPath:`/brands/${r.slug}`,ogImage:r.logoUrl}),e.jsx(B,{data:H(s)}),e.jsxs("div",{className:`pt-8 pb-6 ${r.logoUrl?"lg:flex lg:items-start lg:gap-10":""}`,children:[r.logoUrl&&e.jsx("div",{className:"mb-5 lg:mb-0 lg:shrink-0 lg:w-[300px]",children:e.jsx("div",{className:"rounded-[8px] overflow-hidden bg-[#f5f5f5] h-[180px] lg:h-auto lg:aspect-square",children:e.jsx("img",{src:v(r.logoUrl),alt:r.name,width:300,height:300,loading:"eager",decoding:"async",className:"w-full h-full object-cover"})})}),e.jsxs("div",{className:r.logoUrl?"lg:flex-1 lg:min-w-0 lg:pt-2":"",children:[e.jsx("h1",{className:"text-[28px] lg:text-[36px] font-bold text-[#141414] leading-tight tracking-[-0.4px] mb-3",children:r.name}),r.description&&e.jsx(V,{text:r.description}),r.website&&e.jsx("div",{className:"mb-5",children:e.jsxs("a",{href:r.website,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-4 py-2 border border-[#d0d0d0] rounded-[4px] text-[12px] font-medium text-[#444] hover:border-[#999] hover:text-[#111] transition-colors",children:[e.jsx("svg",{className:"w-3 h-3 shrink-0",fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),r.website.replace(/^https?:\/\//,"").replace(/\/$/,"")]})}),l.length>0&&e.jsx("div",{className:"flex items-center gap-4",children:l.map(a=>e.jsx("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",title:W[a.platform.toLowerCase()]??a.platform,className:"text-[#888] hover:text-[#222] transition-colors",children:e.jsx(F,{platform:a.platform})},a.platform))}),!r.isClaimed&&e.jsx("div",{className:"mt-5",children:e.jsxs(k,{href:`/claim?brand=${r.slug}`,className:"text-[12px] font-medium text-[#444] hover:text-primary border border-[#d0d0d0] hover:border-[#999] rounded px-3 py-2 inline-flex items-center transition-colors",children:["Are you ",r.name,"? Claim this brand â"]})})]})]}),e.jsx("div",{className:"h-px bg-[#ebebeb]"}),e.jsx("div",{className:"pt-7 pb-16",children:d===0?e.jsx("p",{className:"text-[14px] text-[#888]",children:"No featured products yet."}):e.jsx("div",{className:"space-y-10 lg:space-y-14",children:n.map(a=>{const x=a.listings.slice(0,f),b=a.listings.length>f;return e.jsxs("section",{children:[e.jsx("h2",{className:"text-[13px] font-semibold uppercase tracking-[0.08em] text-[#999] mb-4 lg:mb-5",children:a.category.name}),e.jsx("div",{className:"flex flex-col gap-4 lg:grid lg:grid-cols-3",children:x.map(h=>e.jsx($,{listing:h},h.id))}),b&&a.category.slug&&e.jsx("div",{className:"mt-4",children:e.jsxs("a",{href:`/categories/${a.category.slug}`,className:"text-[13px] font-medium hover:underline transition-colors",style:{color:m},children:["See all in ",a.category.name," â"]})})]},a.category.id)})})})]})}export{oe as BrandDetail};
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.