1import{j as e,u as g,i as h,E as n}from"./index-obhH_LhV.js";import{b as c,e as m,L as a}from"./react-vendor-iJun6VP1.js";import{S as x}from"./SiteShell-DO5yyJRk.js";import{P as y}from"./PrerenderReady-NFWVwRf3.js";import{c as p,w as f}from"./bestofArchive-CzNa547b.js";import{W as u}from"./WinnerName-CI8uJJ5P.js";import"./supabase-vendor-o79c1kQX.js";import"./helpers-CddHt4ev.js";function j({winners:s,style:r}){return s.length?e.jsx(e.Fragment,{children:s.map((t,o)=>e.jsxs(c.Fragment,{children:[o>0&&(o===s.length-1?" and ":", "),e.jsx(u,{name:t.name,website:t.website,style:{position:"relative",zIndex:2,...r}})]},`${t.name}:${o}`))}):null}const v=860;function l({title:s,children:r}){return e.jsxs("div",{style:{background:n.color.card,border:`1px solid ${n.color.rule}`,borderRadius:12,padding:28,textAlign:"center"},children:[e.jsx("h2",{style:{fontFamily:n.font.heading,fontWeight:400,fontSize:24,color:n.color.ink,margin:"0 0 10px"},children:s}),e.jsx("div",{style:{color:n.color.inkMid,fontSize:15.5,lineHeight:1.6},children:r})]})}function T(){const s=g(),{slug:r}=m(),t=p(r),o=t.categories.some(i=>i.latestWinners.length>0);return c.useEffect(()=>{t.resolved&&h({title:t.section?`${t.section.name} â ${s.name}`:`Winners â ${s.name}`,description:t.section?`Every ${t.section.name} category readers have voted on in North SLO County.`:"The Best Of archive.",siteName:s.name,type:"website"})},[t.resolved,t.section,s.name]),e.jsxs(x,{children:[e.jsx(y,{route:"/winners/section/:slug",when:t.resolved}),e.jsx("main",{style:{background:n.color.paper,color:n.color.ink,fontFamily:n.font.body,fontSize:17,lineHeight:1.65,minHeight:"60vh",padding:"72px 0"},children:e.jsxs("div",{style:{maxWidth:v,margin:"0 auto",padding:"0 24px"},children:[!t.resolved&&e.jsx("p",{"data-gate-section":"loading",style:{textAlign:"center",color:n.color.inkLight},children:"Loadingâ¦"}),t.resolved&&t.notFound&&e.jsx("div",{"data-gate-section":"not-found",children:e.jsxs(l,{title:"We could not find that section.",children:[e.jsx("p",{style:{margin:"0 0 10px"},children:"The link may be mistyped. Every section is listed on the winners page."}),e.jsx("p",{style:{margin:0},children:e.jsx(a,{to:"/winners",style:{color:n.color.accent},children:"See every section"})})]})}),t.resolved&&!t.notFound&&t.section&&e.jsxs(e.Fragment,{children:[e.jsxs("nav",{"data-gate-section-crumb":!0,"aria-label":"Breadcrumb",style:{fontSize:14,color:n.color.inkLight,marginBottom:10,textAlign:"center"},children:[e.jsx(a,{to:"/winners",style:{color:n.color.accent},children:"Winners"}),e.jsx("span",{"aria-hidden":"true",style:{margin:"0 8px"},children:"âº"}),e.jsx("span",{children:t.section.name})]}),e.jsx("h1",{style:{fontFamily:n.font.heading,fontWeight:400,lineHeight:1.05,fontSize:"clamp(30px,4.8vw,48px)",margin:"0 0 8px",textAlign:"center"},children:t.section.name}),e.jsxs("p",{style:{textAlign:"center",color:n.color.inkMid,margin:"0 0 26px"},children:[t.section.categoryTotal," ",t.section.categoryTotal===1?"category":"categories"]}),!o&&t.categories.length>0&&e.jsx("div",{"data-gate-section":"assembling",style:{marginBottom:26},children:e.jsx(l,{title:"The winners for these categories are being assembled.",children:e.jsx("p",{style:{margin:0},children:"Thirteen years of results were printed before this site existed. We are attaching each year to the right category, so a name printed three different ways over the years reads as one history. Every category below already opens."})})}),t.categories.length===0&&e.jsx("div",{"data-gate-section":"empty",children:e.jsx(l,{title:"This section has no categories yet.",children:e.jsx("p",{style:{margin:0},children:e.jsx(a,{to:"/winners",style:{color:n.color.accent},children:"See every section"})})})}),t.categories.length>0&&e.jsxs("div",{"data-gate-section":"present",children:[e.jsx("style",{children:` 2 .bestof-catlink::after { 3 content: ''; position: absolute; inset: 0; z-index: 1; 4 } 5 `}),t.categories.map(i=>{const d=f(i.latestWinners);return e.jsxs("div",{"data-gate-section-category":i.slug,style:{position:"relative",padding:"16px 0",borderTop:`1px solid ${n.color.rule}`},children:[e.jsx(a,{to:`/winners/${i.slug}`,className:"bestof-catlink",style:{display:"block",textDecoration:"none",color:"inherit",fontFamily:n.font.body,fontWeight:400,fontSize:20,lineHeight:1.25},children:i.name}),d&&e.jsxs("div",{"data-gate-section-winner":!0,style:{fontSize:31,color:n.color.brassLift,marginTop:3,lineHeight:1.2,fontFamily:n.font.heading},children:[e.jsx(j,{winners:i.latestWinners}),i.latestYear&&e.jsxs("span",{style:{color:n.color.inkLight,fontSize:14},children:[" · ",i.latestYear]})]}),i.status==="retired"&&e.jsxs("div",{style:{fontSize:14,color:n.color.inkLight,marginTop:3},children:["Retired",i.lastPrintedYear?` â last ran in ${i.lastPrintedYear}`:""]})]},i.slug)})]})]})]})})]})}export{T 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.