1import{c as a,r as l,j as e,s as n,a as p,A as d}from"./index-lCzCwniI.js";const b=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],m=a("arrow-right",b),x="/assets/book-expert-witness-600-CMcUZoXp.webp",h="/assets/book-expert-witness-300-Ctfx05PR.webp",f="/assets/book-aesthetic-regenerative-600-C69IH88h.webp",k="/assets/book-aesthetic-regenerative-300-cPX2eFcz.webp",v="/assets/book-peptide-pocket-guide-600-DNMOrO0V.webp",g="/assets/book-peptide-pocket-guide-300-BG5mHc4l.webp",w="/assets/book-peptide-pocket-arabic-600-an1vQfOb.webp",u="/assets/book-peptide-pocket-arabic-300-DPfKhz6l.webp",j="/assets/book-bpc157-600-BGl8s_jb.webp",N="/assets/book-bpc157-300-Buk0Avk2.webp",y="/assets/book-peptides-simplified-600-DMWdeRHG.webp",S="/assets/book-peptides-simplified-300-DYyalIOG.webp",A="/assets/book-peptides-simplified-arabic-600-BLXHpTu0.webp",B="/assets/book-peptides-simplified-arabic-300-DNhkU8wc.webp",P="/assets/book-peptides-hormones-longevity-600-oqfgQogZ.webp",C="/assets/book-peptides-hormones-longevity-300-BYPpmuqB.webp",o=(t,r,i)=>({src:t,srcSet:`${r} 300w, ${t} 600w`,width:600,height:i}),c={"book-expert-witness":o(x,h,927),"book-aesthetic-regenerative":o(f,k,927),"book-peptide-pocket-guide":o(v,g,927),"book-peptide-pocket-arabic":o(w,u,936),"book-bpc157":o(j,N,900),"book-peptides-simplified":o(y,S,900),"book-peptides-simplified-arabic":o(A,B,900),"book-peptides-hormones-longevity":o(P,C,776)};function G(){const{books:t}=n,r=l.useRef(null),i=s=>{r.current?.scrollBy({left:s*320,behavior:"smooth"})};return e.jsxs("section",{id:"books",className:"px-6 lg:px-12 py-32 border-t border-black/10",children:[e.jsxs("div",{className:"flex items-center gap-4 mb-16",children:[e.jsx("span",{className:"font-display text-xl font-bold",children:t.number}),e.jsx("div",{className:"flex-1 h-px bg-black/10"}),e.jsx("span",{className:"font-display text-xs uppercase tracking-widest text-black/40",children:t.label})]}),e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-end lg:justify-between gap-8 mb-12",children:[e.jsxs("div",{className:"max-w-xl",children:[e.jsx("h2",{className:"font-display text-4xl md:text-6xl font-bold tracking-tighter mb-4",children:t.heading}),e.jsx("p",{className:"text-black/60 text-lg font-medium",children:t.subheading})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"button",onClick:()=>i(-1),"aria-label":"Scroll books left",className:"w-12 h-12 rounded-full border border-black/15 flex items-center justify-center hover:bg-black hover:text-white transition-colors",children:e.jsx(p,{className:"w-4 h-4"})}),e.jsx("button",{type:"button",onClick:()=>i(1),"aria-label":"Scroll books right",className:"w-12 h-12 rounded-full border border-black/15 flex items-center justify-center hover:bg-black hover:text-white transition-colors",children:e.jsx(m,{className:"w-4 h-4"})})]}),e.jsxs("a",{href:t.storeUrl,target:"_blank",rel:"noopener noreferrer",className:"bg-[#0033FF] text-white h-12 px-6 flex items-center justify-center rounded-full text-sm font-bold tracking-wide hover:bg-black transition-colors gap-2",children:[t.storeCta," ",e.jsx(d,{className:"w-4 h-4"})]})]})]}),e.jsx("div",{ref:r,className:"flex gap-6 overflow-x-auto pb-4 snap-x snap-mandatory [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:t.items.map(s=>e.jsxs("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",className:"snap-start shrink-0 w-[260px] sm:w-[300px] group",children:[e.jsx("div",{className:"relative aspect-[3/4] rounded-2xl overflow-hidden border border-black/10 mb-5",children:e.jsx("img",{src:c[s.cover].src,srcSet:c[s.cover].srcSet,sizes:"(min-width: 640px) 300px, 260px",width:c[s.cover].width,height:c[s.cover].height,alt:`${s.title} book cover`,loading:"lazy",className:"w-full h-full object-contain group-hover:scale-[1.03] transition-transform duration-500"})}),e.jsx("h3",{className:"font-display text-lg font-bold leading-snug mb-1 group-hover:text-[#0033FF] transition-colors",children:s.title}),e.jsxs("p",{className:"text-sm font-medium text-black/50",children:[s.price," · ",s.pages]})]},s.title))})]})}export{G as Books};
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.