1import{_ as T}from"./BtQetqJ2.js";import{_ as V}from"./B0wTaH2-.js";import{_ as z}from"./BlWid5T4.js";import{_ as W}from"./CSCjBnj-.js";import{w as k,t as D,o as i,A as v,C as e,D as u,F as G,e as c,ad as E,v as J,u as K,a as q,b as C,aM as Q,M as U,N as X,s as B,P as Y,V as P,d as f,W as Z,f as ee,B as te,g as b,aJ as se}from"./DLCGl5VT.js";import{H as I,a as ae}from"./BdBTCahT.js";import{u as ne,E as oe,b as le}from"./DaQdspRY.js";import{_ as re}from"./Chu61Fj3.js";import{u as ie}from"./OWjuZeJp.js";import"./CSCEJQdt.js";import"./BEdCHSTy.js";import"./CQ-6RvL7.js";import"./VuWn8wMV.js";import"./DKaucCqr.js";import"./C24GK1Z1.js";import"./Ji3brAVC.js";import"./CXd9gugI.js";import"./vtMdCECc.js";import"./MMTGhKRH.js";import"./BJ9Ry7I1.js";import"./B_L_kfk0.js";import"./BKF6v_oB.js";import"./DCmvDn8R.js";import"./CqQfD-qi.js";import"./DQXEFTMJ.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new o.Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="78117278-3c1e-40f3-9b21-7523fb864dd4",o._sentryDebugIdIdentifier="sentry-dbid-78117278-3c1e-40f3-9b21-7523fb864dd4")}catch{}})();const ce={class:"booklet-close-bar grid-container--full"},de={class:"grid-container"},ue={class:"grid-x"},me={class:"cell small-12"},_e=k({__name:"CloseBar",emits:["close"],setup(o,{emit:a}){const{t:n}=D(),t=a;return(p,d)=>{const h=G;return i(),v("div",ce,[e("div",de,[e("div",ue,[e("div",me,[d[1]||(d[1]=e("div",{class:"spacer--small"},null,-1)),u(h,{variant:"link",text:c(n)("SchlieÃen"),icon:"close","aria-label":c(n)("SchlieÃen"),class:"booklet-close-bar__button",onClick:d[0]||(d[0]=y=>t("close"))},null,8,["text","aria-label"]),d[2]||(d[2]=e("div",{class:"spacer--small"},null,-1))])])])])}}}),ve=Object.assign(E(_e,[["__scopeId","data-v-dc7f7cee"]]),{__name:"BookletDetailCloseBar"}),ge={class:"grid-x"},pe={class:"event-image cell small-12 large-5 show-for-large"},fe={class:"event-content cell small-12 large-7"},he={class:"hide-for-large"},be=k({__name:"Hero",props:{event:{}},setup(o){function a(n){const t=[];if(n?.header_image_obj&&t.push(n.header_image_obj),n?.gallery_images){const p=n.gallery_images.map(d=>d.image_obj);t.push(...p)}return t}return(n,t)=>(i(),v("div",ge,[e("div",pe,[t[0]||(t[0]=e("div",{class:"spacer"},null,-1)),u(I,{images:a(o.event),"gallery-id":"booklet-detail-hero-gallery-desktop"},null,8,["images"])]),e("div",fe,[t[1]||(t[1]=e("div",{class:"spacer hide-for-large"},null,-1)),u(ae,{event:o.event},null,8,["event"]),t[2]||(t[2]=e("div",{class:"spacer hide-for-large"},null,-1)),e("div",he,[u(I,{images:a(o.event),"gallery-id":"booklet-detail-hero-gallery-mobile"},null,8,["images"])])])]))}}),ke=Object.assign(be,{__name:"BookletDetailHero"}),ye={class:"grid-container--full"},xe=["id"],$e={class:"grid-container"},we={class:"grid-x grid-margin-x align-center"},Se={class:"cell small-12 large-8"},Ce={key:2,class:"grid-container--full"},Be={class:"grid-container"},Pe={class:"grid-x grid-margin-x"},Ie={class:"cell small-12"},De=k({__name:"[id]",async setup(o){let a,n;const{t}=D(),p=J(),d=K(),h=q(),y=ne(),A=C("slide-in-overlay-active",()=>!1),x=C("slide-in-overlay-return-path",()=>null),$=Q(A.value),g=b(()=>Number(d.params.id)),{data:l,error:w}=([a,n]=U(async()=>X(()=>`booklet:${g.value}`,async()=>{if(!Number.isInteger(g.value)||g.value<=0)throw B({statusCode:404,statusMessage:"Page Not Found",fatal:!0});const r=await y.fetchEvent(g.value);if(!r.has_booklet)throw B({statusCode:404,statusMessage:"Page Not Found",fatal:!0});return{event:r}},{watch:[g]})),a=await a,n(),a);if(w.value)throw w.value;Y({title:`${t("Programmheft")} - ${l.value?.event?.name||""}`,ogTitle:`${t("Programmheft")} - ${l.value?.event?.name||""}`});const N=r=>r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),S=b(()=>{const r=[];l.value?.event?.booklet_show_program&&l.value?.event?.works?.length&&r.push({anchor_text:t("Programm"),anchor:"works",in_navigation:!0}),l.value?.event?.casts?.length&&r.push({anchor_text:t("Künstler*innen"),anchor:"cast",in_navigation:!0});const s=l.value?.event?.booklet_sections?.filter(m=>m.in_navigation&&m.section).map(m=>({anchor_text:m.section,anchor:N(m.section),in_navigation:m.in_navigation}))??[];return[...r,...s]}),{buildStaticBreadcrumbs:H}=ie(),O=b(()=>
1H({parents:[{linktext:t("Programmhefte"),link:p({name:"booklets"})}],current:{linktext:l.value?.event?.name||t("Programmheft"),link:null}}));function j(){if(x.value){se(x.value);return}h.back()}function F(r){return`booklet-${l?.value?.event?.production?.id}-${r}`.substring(0,50)}return(r,s)=>{const m=T,M=V,L=z,R=W;return i(),v("div",{class:te(["booklet-detail-page",{"booklet-detail-page--overlay":c($)}])},[c($)?(i(),v(P,{key:0},[u(ve,{onClose:j}),s[0]||(s[0]=e("div",{class:"spacer"},null,-1))],64)):(i(),f(m,{key:1,"static-links":c(O)},null,8,["static-links"])),u(M,{headline:c(t)("Digitales Programmheft")},null,8,["headline"]),u(ke,{event:c(l)?.event},null,8,["event"]),u(L,{anchors:c(S)},null,8,["anchors"]),s[4]||(s[4]=e("div",{class:"spacer"},null,-1)),e("div",ye,[(i(!0),v(P,null,Z(c(S),_=>(i(),v("section",{id:_.anchor,key:_.anchor,class:"booklet-section"},[e("div",$e,[e("div",we,[e("div",Se,[s[2]||(s[2]=e("div",{class:"spacer"},null,-1)),_.anchor==="works"?(i(),f(oe,{key:0,event:c(l)?.event,"show-teasers":!1},null,8,["event"])):_.anchor==="cast"?(i(),f(le,{key:1,event:c(l)?.event,"section-id":"event-cast","has-expandable":!1},null,8,["event"])):(i(),v("div",Ce,[e("div",Be,[e("div",Pe,[e("div",Ie,[_.in_navigation?(i(),f(re,{key:0,content:_.anchor_text,headline_level:"2",class:"booklet-section__title",extra_class:"contained"},null,8,["content"])):ee("",!0),s[1]||(s[1]=e("div",{class:"spacer--small"},null,-1)),u(R,{"is-static-page":"","section-id":F(_.anchor)},null,8,["section-id"])])])])])),s[3]||(s[3]=e("div",{class:"spacer"},null,-1))])])])],8,xe))),128))])],2)}}}),st=E(De,[["__scopeId","data-v-f22c624b"]]);export{st 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.