1import{j as s}from"./vendor-query-CniT1WJL.js";import{L as t}from"./vendor-react-69GsFwrV.js";import{F as n,B as i,G as d,q as c,d3 as m}from"./index-KjAD5lCC.js";import{h as o}from"./clubApi-JPjlrS4z.js";import{C as x}from"./ClubOrderStatusPill-BJTLg4f2.js";import{aO as h,bv as u,i as p}from"./vendor-ui-Ad3ANzF6.js";import"./vendor-forms-q6h4WU-p.js";function k(){const{data:a,isLoading:r}=o(!0);return s.jsxs(n,{width:"narrow",className:"pb-12 pt-6",children:[s.jsx("div",{className:"mb-5",children:s.jsx(i,{asChild:!0,variant:"ghost",size:"sm",className:"rounded-pill",children:s.jsxs(t,{href:"/club","data-testid":"club-back-landing",children:[s.jsx(h,{className:"mr-1.5 size-4"})," VidaPeps Club"]})})}),s.jsx("h1",{className:"mb-6 font-display text-t1 text-ink",children:"My pre-orders"}),s.jsx(d,{tone:"solid","data-testid":"club-orders-list",children:r?s.jsx("div",{className:"space-y-3",children:Array.from({length:3}).map((e,l)=>s.jsx(c,{className:"h-16 w-full rounded-xl"},l))}):!a||a.length===0?s.jsxs("div",{className:"py-12 text-center",children:[s.jsx(u,{className:"mx-auto mb-3 size-8 text-ink-3","aria-hidden":"true"}),s.jsx("p",{className:"text-sm text-ink-2",children:"You have no Club pre-orders yet."}),s.jsx(i,{asChild:!0,variant:"default",className:"mt-4 rounded-pill",children:s.jsx(t,{href:"/club",children:"Browse the Club run"})})]}):s.jsx("ul",{className:"divide-y divide-card-border",children:a.map(e=>s.jsx("li",{children:s.jsxs(t,{href:`/club/orders/${e.id}`,className:"flex items-center justify-between gap-3 py-4 transition-colors first:pt-0 hover:opacity-80","data-testid":`club-order-row-${e.id}`,children:[s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"font-medium text-ink",children:e.orderNumber}),s.jsxs("p",{className:"mt-0.5 text-caption text-ink-3",children:[e.runName," · ",new Date(e.createdAt).toLocaleDateString()]})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[s.jsxs("div",{className:"text-right",children:[s.jsx("p",{className:"font-semibold tabular-nums text-ink",children:m(e.totalCents)}),s.jsx(x,{status:e.status})]}),s.jsx(p,{className:"size-4 text-ink-3","aria-hidden":"true"})]})]})},e.id))})})]})}export{k 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.