1import{u as y,d as _,r as n,p as v,j as a,a as j}from"./index-DCivqqn7.js";const d=[{image:"/manus-storage/pagliacci_production_8efdd8f0.jpg",imageAlt:"Pagliacci â Opera Santa Barbara",caption:"Pagliacci · 24|25"},{image:"/manus-storage/figaro_production_7bd98e6b.jpg",imageAlt:"The Marriage of Figaro â Opera Santa Barbara",caption:"The Marriage of Figaro · 24|25"},{image:"/manus-storage/daughter_regiment_production_60ec463c.jpg",imageAlt:"The Daughter of the Regiment â Opera Santa Barbara",caption:"The Daughter of the Regiment · 24|25"},{image:"/manus-storage/cavalleria_hero_2b202a2c.webp",imageAlt:"Cavalleria Rusticana â Opera Santa Barbara",caption:"Cavalleria Rusticana · 25|26"},{image:"/manus-storage/caesar_cleopatra_hero_e9ab747d.jpeg",imageAlt:"Caesar and Cleopatra â Opera Santa Barbara",caption:"Caesar and Cleopatra · 25|26"},{image:"/manus-storage/elmer_gantry_hero_70398a03.jpg",imageAlt:"Elmer Gantry â Opera Santa Barbara",caption:"Elmer Gantry · 25|26"},{image:"/manus-storage/carmen_production_correct_0758eecc.jpeg",imageAlt:"Carmen â Opera Santa Barbara",caption:"Carmen · 23|24"},{image:"/manus-storage/trovatore_production_f2681804.jpeg",imageAlt:"Il Trovatore â Opera Santa Barbara",caption:"Il Trovatore · 23|24"},{image:"/manus-storage/zorro_production_d197c8ae.jpeg",imageAlt:"Zorro â Opera Santa Barbara",caption:"Zorro · 23|24"},{image:"/manus-storage/rheingold_production_609637b8.jpeg",imageAlt:"Das Rheingold â Opera Santa Barbara",caption:"Das Rheingold · 20|21"},{image:"/manus-storage/don_pasquale_drive_in_1d67b74f.jpeg",imageAlt:"Don Pasquale â Opera Santa Barbara",caption:"Don Pasquale · 20|21"},{image:"/manus-storage/carmen_drive_in_b27ec9b1.jpeg",imageAlt:"Carmen, A Live Drive-In Opera â Opera Santa Barbara",caption:"Carmen, A Live Drive-In Opera · 20|21"},{image:"/manus-storage/il_postino_ab87a4f1.jpeg",imageAlt:"Il Postino â Opera Santa Barbara",caption:"Il Postino · 19|20"},{image:"/manus-storage/madama_butterfly_b33ca73d.jpeg",imageAlt:"Madama Butterfly â Opera Santa Barbara",caption:"Madama Butterfly · 19|20"},{image:"/manus-storage/la_boheme_44_2cad105e.jpeg",imageAlt:"La bohème â Opera Santa Barbara",caption:"La bohème · 18|19"},{image:"/manus-storage/eugene_onegin_252_ce4e86c8.jpeg",imageAlt:"Eugene Onegin â Opera Santa Barbara",caption:"Eugene Onegin · 18|19"},{image:"/manus-storage/crucible_163_39d16fe4.jpeg",imageAlt:"The Crucible â Opera Santa Barbara",caption:"The Crucible · 18|19"}],x=Math.floor(Date.now()/(1e3*60*60*24*3))%d.length,s=d[x],i="archive-scroll-y";function O(){y({title:"Production Archive",description:"Every Opera Santa Barbara production since our founding in 1994 â cast, creative team, reviews, and photos from each season."});const[,u]=_(),l=n.useRef(!1),c=[...v].filter(e=>e.status==="past").sort((e,r)=>{const t=e.performances[e.performances.length-1]?.date??"";return(r.performances[r.performances.length-1]?.date??"").localeCompare(t)}),o={};for(const e of c)o[e.season]||(o[e.season]=[]),o[e.season].push(e);const m=Object.keys(o).sort((e,r)=>r.localeCompare(e)),[f,b]=n.useState(()=>Object.fromEntries(m.map(e=>[e,!0])));function h(e){b(r=>({...r,[e]:!r[e]}))}n.useEffect(()=>{if(l.current)return;l.current=!0;const e=sessionStorage.getItem(i);if(e){const r=parseInt(e,10);requestAnimationFrame(()=>{requestAnimationFrame(()=>{window.scrollTo({top:r,behavior:"instant"})})})}},[]),n.useEffect(()=>{function e(){sessionStorage.setItem(i,String(window.scrollY))}return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);function g(e){sessionStorage.setItem(i,String(window.scrollY)),u(`/season/${e}`)}return a.jsxs(j,{children:[a.jsxs("section",{className:"relative overflow-hidden",style:{height:"clamp(220px, 30vw, 340px)"},children:[a.jsx("img",{src:s.image,alt:s.imageAlt,style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center 55%",display:"block"}}),a.jsx("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.6) 100%)"}}),a.jsx("div",{style:{position:"absolute",bottom:"1rem",right:"1.25rem",fontFamily:"'DM Sans', sans-serif",fontWeight:400,fontSize:"0.65rem",letterSpacing:"0.08em",color:"rgba(255,255,255,0.50)",textTransform:"uppercase",pointerEvents:"none"},children:s.caption}),a.jsxs("div",{className:"container",style:{position:"absolute",bottom:"2rem",left:0,right:0},children:[a.jsx("p",{className:"osb-label mb-2",style:{color:"rgba(255,255,255,0.75)"},children:"Production Archive"}),a.jsx("h1",{style:{fontFamily:"'Libre Baskerville', serif",fontWeight:300,fontSize:"clamp(1.8rem, 4vw, 3rem)",color:"#fff",lineHeight:1.15,margin:0},children:"Over thirty years of opera in Santa Barbara"})]})]}),a.jsx("div",{className:"container py-20",style:{maxWidth:860},children:c.length===0?a.jsx("p",{className:"text-base",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,color:"#888"},children:"No past productions on record yet."}):a.jsxs("div",{children:[m.map(e=>{const r=f[e]??!0;return a.jsxs("div",{className:"border-t",style:{borderColor:"#d9d4cd"},children:[a.jsxs("button",{onClick:()=>h(e),className:"w-full flex items-center justify-between py-5 text-left",style:{background:"none",border:"none",cursor:"pointer"},"aria-expanded":r,children:[a.jsxs("span",{style:{fontFamily:"'DM Sans', sans-serif",fontWeight:500,fontSize:"0.7rem",letterSpacing:"0.12em",textTransform:"uppercase",color:"#A51140"},children:[e," Season"]}),a.jsx("span",{style:{fontSize:"0.75rem",color:"#999",transition:"transform 200ms cubic-bezier(0.23,1,0.32,1)",display:"inline-block",transform:r?"rotate(180deg)":"rotate(0deg)"},children:"â¾"})]}),a.jsx("div",{style:{overflow:"hidden",maxHeight:r?"2000px":"0",transition:"max-height 300ms cubic-bezier(0.23,1,0.32,1)"},children:a.jsx("div",{className:"pb-6",children:o[e].map((t,p)=>a.jsxs("div",{onClick:()=>g(t.slug),className:"flex items-baseline justify-between py-3 group",style:{borderBottom:p<o[e].length-1?"1px solid #ece8e2":"none",cursor:"pointer"},role:"link",tabIndex:0,onKeyDown:S=>S.key==="Enter"&&g(t.slug),children:[a.jsxs("div",{className:"flex items-baseline gap-4",children:[a.jsx("span",{style:{fontFamily:"'Libre Baskerville', serif",fontWeight:400,fontSize:"1.05rem",color:"#1a1a1a",transition:"color 150ms ease"},className:"group-hover:text-[#A51140]",children:t.title}),t.composer&&a.jsx("span",{style:{fontFamily:"'DM Sans', sans-serif",fontSize:"0.78rem",color:"#888",display:"block",marginTop:"0.1rem"},children:t.composer})]}),a.jsx("span",{style:{fontFamily:"'DM Sans', sans-serif",fontSize:"0.75rem",color:"#bbb",transition:"color 150ms ease",whiteSpace:"nowrap",marginLeft:"1rem"},className:"group-hover:text-[#A51140]",children:"â"})]},t.slug))})})]},e)}),a.jsx("div",{className:"border-t",style:{borderColor:"#d9d4cd"}})]})})]})}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.