1import{r as l,F as a,j as e}from"./index-CpQoSMGd.js";function d(){return e.jsx("div",{style:{width:"100%",aspectRatio:"4 / 3",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--char)",borderBottom:"1px solid var(--line)"},children:e.jsx("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"var(--dim)",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M16 3l5 4-3 3-2-2v11a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V8l-2 2-3-3 5-4a3 3 0 0 0 3 3 3 3 0 0 0 3-3z"})})})}function c({item:r}){const i=e.jsxs(e.Fragment,{children:[r.imageUrl?e.jsx("img",{src:r.imageUrl,alt:r.name,style:{width:"100%",aspectRatio:"4 / 3",objectFit:"cover",borderBottom:"1px solid var(--line)"}}):e.jsx(d,{}),e.jsxs("div",{style:{padding:"14px 16px"},children:[r.category&&e.jsx("p",{style:{fontSize:"0.68rem",letterSpacing:"0.1em",textTransform:"uppercase",color:"var(--gold)",margin:"0 0 4px",fontWeight:700},children:r.category}),e.jsx("p",{style:{fontWeight:600,fontSize:"0.92rem",margin:"0 0 6px",lineHeight:1.35},children:r.name}),e.jsxs("div",{style:{display:"flex",gap:10,fontSize:"0.8rem",color:"var(--muted)",marginBottom:8},children:[r.priceText&&e.jsx("span",{children:r.priceText}),r.sizeRange&&e.jsxs("span",{children:["· ",r.sizeRange]})]}),r.features&&e.jsx("ul",{style:{margin:"0 0 10px",paddingLeft:16,fontSize:"0.74rem",color:"var(--dim)",lineHeight:1.5},children:r.features.split(` 2`).filter(Boolean).slice(0,3).map((t,s)=>e.jsx("li",{children:t},s))}),e.jsx("p",{style:{fontSize:"0.8rem",color:r.shopUrl?"var(--muted)":"var(--dim)",margin:0,fontStyle:r.shopUrl?"normal":"italic"}
2,children:r.shopUrl?"Shop this item â":"Shop link unavailable"})]})]}),o={display:"block",textDecoration:"none",color:"var(--text)",background:"var(--ink)",border:"1px solid var(--line)",borderRadius:6,overflow:"hidden",transition:"border-color 0.15s"};return r.shopUrl?e.jsx("a",{href:r.shopUrl,target:"_blank",rel:"noopener noreferrer",style:o,onMouseEnter:t=>{t.currentTarget.style.borderColor="var(--gold)"},onMouseLeave:t=>{t.currentTarget.style.borderColor="var(--line)"},children:i}):e.jsx("div",{style:{...o,opacity:.75},children:i})}function h(){const[r,i]=l.useState([]),[o,t]=l.useState(!0);l.useEffect(()=>{a().then(n=>{n.ok&&i(n.data),t(!1)})},[]);const s=r.some(n=>n.shopUrl);return e.jsxs("div",{children:[e.jsxs("div",{style:{marginBottom:32},children:[e.jsx("h1",{style:{marginBottom:6},children:"Uniform"}),e.jsx("p",{style:{color:"var(--muted)",fontSize:"0.9rem",maxWidth:"62ch",lineHeight:1.6},children:`MISC's approved uniform range, printed with our logo and "MISC". MISC does not process uniform payments; you'll order and pay the shop directly, shipped straight to you.`}),!o&&r.length>0&&!s&&e.jsx("p",{style:{color:"var(--dim)",fontSize:"0.82rem",marginTop:10,fontStyle:"italic"},children:"The club's shop site is being replaced â links to order are unavailable until the new shop site is ready. Check back soon."})]}),o&&e.jsx("p",{style:{color:"var(--muted)"},children:"Loadingâ¦"}),!o&&r.length===0&&e.jsx("div",{className:"empty-state",children:e.jsx("p",{children:"No approved uniform items yet â check back soon."})}),!o&&r.length>0&&e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:20},children:r.map(n=>e.jsx(c,{item:n},n.id))})]})}export{h 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.