1import{j as e}from"./vendor-query-CniT1WJL.js";import{L as l}from"./vendor-react-69GsFwrV.js";import{ck as N,cl as h,cm as p,cn as o,P as n,f as y,co as g,cp as w,cq as k,cr as F,F as L,at as V,q as P,cs as m,V as u,ct as S,cu as C}from"./index-KjAD5lCC.js";import{ao as c,ai as v,aO as T}from"./vendor-ui-Ad3ANzF6.js";import"./vendor-forms-q6h4WU-p.js";function z({file:a,className:t}){const s=N(a),d=h(a),r=p(a);return e.jsxs(l,{to:g(a.slug),"data-testid":`card-vida-file-${a.slug}`,className:y("group block overflow-hidden rounded-card border border-card-border bg-card transition-shadow hover-elevate","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",t),children:[a.heroImageUrl?e.jsx("div",{className:"overflow-hidden bg-muted",style:o("vida_card"),children:e.jsx("img",{src:a.heroImageUrl,alt:"",loading:"lazy",className:"h-full w-full object-cover transition-transform group-hover:scale-105"})}):e.jsx("div",{className:"flex items-center justify-center bg-vida-mint-soft dark:bg-vida-green-700",style:o("vida_card"),children:e.jsx(c,{"aria-hidden":"true",className:"size-8 text-vida-green-800 dark:text-vida-mint"})}),e.jsxs("div",{className:"p-5",children:[e.jsxs("div",{className:"mb-2 flex flex-wrap items-center gap-2",children:[e.jsx(n,{variant:s==="Live now"?"mint":"neutral",children:s}),a.badgeLabel&&a.isLive?e.jsx(n,{variant:"gold",children:a.badgeLabel}):null]}),e.jsx("h3",{className:"font-display text-t3 text-ink group-hover:text-primary transition-colors",children:a.title}),a.productName?e.jsxs("p",{className:"text-caption mt-1 text-ink-3",children:["Featuring ",a.productName]}):null,a.summary?e.jsx("p",{className:"text-body mt-3 line-clamp-3 text-ink-2",children:a.summary}):null,e.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-2 text-caption text-ink-3",children:[e.jsx("span",{children:d??r}),e.jsxs("span",{className:"inline-flex items-center gap-1 font-semibold text-primary",children:["Read",e.jsx(v,{"aria-hidden":"true",className:"size-3.5 transition-transform group-hover:translate-x-0.5"})]})]})]})]})}const x={limit:24};function O(){w({title:"Vida Files | VidaPeps",description:"The weekly featured-peptide write-up for VidaPeps members: one compound, one write-up, one offer while the feature runs. For laboratory research use only."});const a=k({query:{queryKey:S()}}),t=F(x,{query:{queryKey:C(x)}}),s=a.data?.file??null,d=t.data?.files??[],r=s?d.filter(i=>i.slug!==s.slug):d,j=a.isLoading||t.isLoading,f=!!(a.error&&t.error);return e.jsxs(L,{className:"py-10 md:py-14",children:[e.jsxs(l,{to:"/research",className:"mb-6 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-ink",children:[e.jsx(T,{"aria-hidden":"true",className:"size-4"}),"Research"]}),e.jsx(V,{as:"h1",overline:"Vida Files",title:"One peptide, one write-up, one week.",sub:"Each Vida File is a members-only deep dive on a single research compound from the catalog. While a feature runs, the write-up comes with an automatic offer on that peptide. The archive stays open to read."}),j?e.jsx("div",{className:"mt-10 grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3","aria-busy":"true",children:Array.from({length:3}).map((i,b)=>e.jsx(P,{className:"h-72 rounded-card"},b))}):f?e.jsxs("div",{className:"mt-10 rounded-card border border-card-border bg-card p-6 text-center",children:[e.jsx("p",{className:"text-ink-2",children:"We could not load Vida Files right now."}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"Please check back shortly."})]}):e.jsxs(e.Fragment,{children:[s?e.jsx(_,{file:s}):null,e.jsxs("section",{"aria-labelledby":"vida-files-archive",className:"mt-12",children:[e.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[e.jsx("h2",{id:"vida-files-archive",className:"font-display text-t2 text-ink",children:s?"Past features":"The archive"}),e.jsx("p",{className:"text-caption text-ink-3",children:r.length===1?"1 write-up":`${r.length} write-ups`})]}),r.length===0?e.jsxs("div",{className:"mt-6 rounded-card border border-card-border bg-card p-10 text-center",children:[e.jsx(c,{"aria-hidden":"true",className:"mx-auto mb-3 size-10 text-muted-foreground"}),e.jsx("p",{className:"font-medium text-ink-2",children:s?"This is the first Vida File.":"No Vida Files yet."}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:s?"Past features will collect here as new ones run.":"The first featured peptide is on its way. Check back soon."})]}):e.jsx("div",{className:"mt-6 grid grid-cols-1 gap-5 md:grid-cols-2 lg:grid-cols-3",children:r.map(i=>e.jsx(z,{file:i},i.slug))})]})]})]})}function _({file:a}){const t=h(a),s=p(a);return e.jsx("section",{"aria-labelledby":"vida-file-current","data-testid":"vida-file-current",className:"vp-panel-gradient relative mt-10 overflow-hidden rounded-card text-white",children:e.jsxs("div",{className:"grid gap-0 md:grid-cols-[1.1fr_1fr]",children:[a.heroImageUrl?e.jsx("div",{className:"aspect-(--vp-slot-aspect) overflow-hidden bg-vida-green-900 md:aspect-auto md:min-
1h-[320px]",style:m("vida_hero"),children:e.jsx("img",{src:a.heroImageUrl,alt:"",className:"h-full w-full object-cover"})}):e.jsx("div",{className:"flex aspect-(--vp-slot-aspect) items-center justify-center bg-vida-green-900/60 md:aspect-auto md:min-h-[320px]",style:m("vida_hero"),children:e.jsx(c,{"aria-hidden":"true",className:"size-12 text-vida-mint/70"})}),e.jsxs("div",{className:"flex flex-col justify-center p-6 sm:p-8",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(n,{variant:"dark",children:"This week"}),a.badgeLabel&&a.isLive?e.jsx(n,{variant:"dark",className:"text-vida-gold-300 ring-vida-gold-300/40",children:a.badgeLabel}):null]}),e.jsx("h2",{id:"vida-file-current",className:"font-display text-t2 mt-4",children:a.title}),a.productName?e.jsxs("p",{className:"text-caption mt-1.5 text-white/60",children:["Featuring ",a.productName]}):null,a.summary?e.jsx("p",{className:"text-body mt-4 text-white/80",children:a.summary}):null,e.jsx("p",{className:"text-caption mt-4 text-vida-mint",children:t||s||"Members only"}),e.jsxs("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row",children:[e.jsx(u,{asChild:!0,variant:"primaryOnDark",children:e.jsxs(l,{to:g(a.slug),"data-testid":"link-vida-file-current",children:["Read the Vida File",e.jsx(v,{"aria-hidden":"true",className:"size-4"})]})}),a.productSlug?e.jsx(u,{asChild:!0,variant:"glass",children:e.jsxs(l,{to:`/products/${a.productSlug}`,children:["Shop ",a.productName??"the featured peptide"]})}):null]})]})]})})}export{O as default};
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.