1import{b as h,n as g,j as e,R as f,u as p,a as x,r as y,L as b}from"./index-DCivqqn7.js";import{r as u}from"./newsExcerpt-UjGyNWEj.js";const j={"what-makes-a-classic":["Rigoletto","The Barber of Seville","Riders of the Purple Sage"]},S="https://docs.google.com/forms/d/e/1FAIpQLScYh4QQUH3fOIiq5-S5PKIftJYD-Q0rLkqqjaPEiZojEpsoEg/viewform?usp=publish-editor",_={"**Do audiences and scholars agree on classics?**":{label:"Do audiences and scholars agree on classics?"},"***Rigoletto***":{label:"Rigoletto",italic:!0,id:"classic-rigoletto-heading"},"**Does It Move Me?**":{label:"Does It Move Me?"}};function d(i){return new Date(i+"T12:00:00").toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}function D(){const{slug:i}=h(),s=g.find(t=>t.slug===i);if(!s)return e.jsx(f,{to:"/news"});p({title:s.title,description:s.excerpt||`${s.title} â Opera Santa Barbara news.`,image:s.image?`https://operasb.org${s.image}`:void 0,url:`https://operasb.org/news/${s.slug}`});const m=t=>t.replace(/__(.+?)__/g,'<span class="classic-inline-underline">$1</span>').replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").replace(/\*([^*]+?)\*/g,"<em>$1</em>"),n=s.body?s.body.split(/\n\n+/).map(t=>t.trim()).filter(Boolean):[],r=s.slug==="what-makes-a-classic",o=r?n.filter(t=>!t.startsWith("**Continue the Conversation**")&&!t.startsWith("What do you consider a classic?")&&!t.startsWith("â")):n,l=s.byline||s.category;return e.jsxs(x,{children:[e.jsx("section",{className:"py-16 border-b",style:{borderColor:"#d9d4cd",backgroundColor:"#f5f2ee"},children:e.jsxs("div",{className:"container",style:{maxWidth:760},children:[e.jsx("p",{className:"text-xs mb-3",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,color:"#888",letterSpacing:"0.08em",textTransform:s.byline?"none":"uppercase"},children:s.byline?e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{textTransform:"uppercase"},children:d(s.date)})," · ",l]}):e.jsxs(e.Fragment,{children:[d(s.date)," · ",l]})}),e.jsx("h1",{className:"mb-4",style:{fontFamily:"'Libre Baskerville', serif",fontWeight:400,fontSize:"clamp(1.8rem, 4vw, 3rem)",lineHeight:1.2,color:"#1a1a1a"},children:s.title}),e.jsx("p",{className:"text-lg leading-relaxed",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,color:"#555"},children:u(s.excerpt,j[s.slug])})]})}),s.image&&e.jsxs("div",{style:{backgroundColor:"#e8e3dc"},children:[e.jsx("div",{style:{width:"100%",maxHeight:480,overflow:"hidden"},children:e.jsx("img",{src:s.image,alt:s.title,style:{width:"100%",height:"100%",maxHeight:480,objectFit:"cover",objectPosition:"center 35%",display:"block"}})}),s.image_caption&&e.jsx("p",{style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,fontSize:"0.78rem",color:"#888",padding:"0.6rem 1.5rem",margin:0,borderBottom:"1px solid #d9d4cd"},dangerouslySetInnerHTML:{__html:s.image_caption}})]}),e.jsxs("div",{className:"container py-16",style:{maxWidth:760},children:[o.length>0?o.map((t,c)=>{const a=r?_[t]:void 0;return e.jsxs(y.Fragment,{children:[a?a.italic?e.jsx("h3",{id:a.id,className:"classic-rigoletto-heading text-base leading-relaxed mb-5",style:{fontFamily:"'Libre Baskerville', Georgia, serif",fontWeight:700,fontStyle:"italic",fontSize:"1.125rem",color:"#333",marginTop:"2rem"},children:e.jsx("strong",{children:e.jsx("em",{children:a.label})})}):e.jsx("p",{id:a.id,className:"text-base leading-relaxed mb-5",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:700,fontStyle:"normal",color:"#333",marginTop:"2rem"},children:e.jsx("strong",{children:a.label})}):e.jsx("p",{className:"text-base leading-relaxed mb-5",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,color:"#333"},dangerouslySetInnerHTML:{__html:m(t)}}),c===0&&s.headshot_image&&e.jsxs("div",{className:"my-8 flex flex-col items-start",children:[e.jsx("img",{src:s.headshot_image,alt:s.headshot_caption||s.title,style:{width:220,height:260,objectFit:"cover",objectPosition:"center top",display:"block",borderRadius:2}}),s.headshot_caption&&e.jsx("p",{style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,fontSize:"0.78rem",color:"#888",marginTop:"0.5rem",maxWidth:220},children:s.headshot_caption})]})]},c)}):e.jsx("p",{className:"text-base",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,color:"#888"},children:"Full text not available."}
1),r&&e.jsxs("section",{"aria-labelledby":"classic-response-heading",className:"mt-10",style:{borderTop:"1px solid #d9d4cd",paddingTop:"2rem"},children:[e.jsx("h2",{id:"classic-response-heading",style:{fontFamily:"'Libre Baskerville', serif",fontWeight:400,fontSize:"clamp(1.25rem, 2.5vw, 1.7rem)",color:"#1a1a1a",margin:"0 0 0.75rem"},children:"Continue the Conversation"}),e.jsx("p",{style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,fontStyle:"italic",color:"#333",lineHeight:1.7,margin:"0 0 1.25rem"},children:e.jsx("em",{children:"What do you consider a classic? Share your examples and thoughts through our short form."})}),e.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"osb-btn-tickets",style:{display:"inline-block",textDecoration:"none"},children:"Share What You Consider a Classic"})]}),s.end_image&&e.jsxs("figure",{className:"mt-10 mb-3",style:{marginLeft:0,marginRight:0},children:[e.jsx("img",{src:s.end_image,alt:s.end_image_caption||s.title,style:{width:"100%",display:"block"}}),s.end_image_caption&&e.jsx("figcaption",{style:{fontFamily:"'DM Sans', sans-serif",fontWeight:300,fontSize:"0.78rem",color:"#888",padding:"0.6rem 0",borderBottom:"1px solid #d9d4cd"},dangerouslySetInnerHTML:{__html:s.end_image_caption}})]}),s.url&&e.jsx("div",{className:"mt-8 pt-8 border-t",style:{borderColor:"#d9d4cd"},children:e.jsx("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"osb-btn-outline",children:"Read Original Article"})}),e.jsx("div",{className:"mt-10",children:e.jsx(b,{href:"/news",className:"text-xs",style:{fontFamily:"'DM Sans', sans-serif",fontWeight:400,letterSpacing:"0.1em",textTransform:"uppercase",color:"#1a1a1a",textDecoration:"none"},children:"â All News"})})]})]})}export{D 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.