1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cdf08bcd-fa4a-4d2f-b5c0-566beef96114",e._sentryDebugIdIdentifier="sentry-dbid-cdf08bcd-fa4a-4d2f-b5c0-566beef96114")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7111],{72099:function(e,t,n){n.d(t,{Z:function(){return E}});var o=n(85893),r=n(67294),a=n(65222),i=n(12332),c=n(64613),l=n(9594),s=n(7212),d=n(47559),u=n(41852),p=n(28276),m=n(59251),f=n(25617),h=n(5152),x=n.n(h),g=n(91834);let b=x()(()=>Promise.all([n.e(1837),n.e(4905),n.e(8661),n.e(8754),n.e(4079),n.e(365)]).then(n.bind(n,14079)),{loadableGenerated:{webpack:()=>[14079]},ssr:!1}),w=e=>{let{size:t=16,className:n}=e;return(0,o.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:(0,o.jsx)("path",{d:"M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z",fill:"currentColor"})})},y=(0,i.Z)(e=>({"@keyframes rainbowText":{"0%":{color:"#FF6B6B"},"14%":{color:"#FFE66D"},"28%":{color:"#4ECDC4"},"42%":{color:"#45B7D1"},"57%":{color:"#96C93D"},"71%":{color:"#DDA0DD"},"85%":{color:"#FF6B6B"},"100%":{color:"#FF6B6B"}},"@keyframes iconPulse":{"0%":{transform:"scale(1) rotate(0deg)"},"25%":{transform:"scale(1.15) rotate(8deg)"},"50%":{transform:"scale(1) rotate(0deg)"},"75%":{transform:"scale(1.15) rotate(-8deg)"},"100%":{transform:"scale(1) rotate(0deg)"}},"@keyframes shimmer":{"0%":{filter:"drop-shadow(0 0 2px currentColor) brightness(1)"},"50%":{filter:"drop-shadow(0 0 8px currentColor) brightness(1.4)"},"100%":{filter:"drop-shadow(0 0 2px currentColor) brightness(1)"}},buttonGroup:{boxShadow:"0px 3px 11px #08135914",borderRadius:"8px",width:"100%",border:"2px solid white",display:"flex",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease","&:hover":{boxShadow:"none"}},filterButton:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),fontWeight:"bold",boxShadow:"none",borderRadius:"8px",fontSize:"0.75rem",justifyContent:"center",backgroundColor:"white",color:e.palette.primary.main,"&:hover":{backgroundColor:"white",boxShadow:"none"}},glowingIcon:{animation:"$iconPulse 2s ease-in-out infinite, $rainbowText 4s linear infinite, $shimmer 1.5s ease-in-out infinite"},textButton:{width:"100%"},iconButton:{minWidth:"auto",paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},"@media screen and (min-width: 600px)":{filterButton:{paddingRight:e.spacing(2),paddingLeft:e.spacing(2),fontSize:"0.875rem"}}}));var v=()=>{let{t:e}=(0,p.$G)(),t=y(),[n,a]=(0,r.useState)(!1),i=(0,m.useFirestore)(),c=(0,f.v9)(e=>e.firebase.auth),l=(0,g.E)(),s=()=>{a(!0),i&&(null==c?void 0:c.uid)&&i.collection("concertGuideClicks").add({userId:c.uid,region:l,source:"koncertguide_button",createdAt:i.FieldValue.serverTimestamp()}).catch(e=>console.error("Error logging concert guide click:",e))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d.Z,{className:t.buttonGroup,disableRipple:!0,children:[(0,o.jsx)(u.Z,{variant:"contained",className:"".concat(t.filterButton," ").concat(t.textButton),onClick:s,children:("function"==typeof e?e:(e,t)=>e)("KONCERTGUIDE")}),(0,o.jsx)(u.Z,{variant:"contained",className:"".concat(t.filterButton," ").concat(t.iconButton),onClick:s,children:(0,o.jsx)(w,{size:24,className:t.glowingIcon})})]}),(0,o.jsx)(b,{open:n,onClose:()=>{a(!1)}})]})},j=n(90240),C=n(14327),Z=n(40253),B=n(53695),k=n(67894),I=n(14529);let N=(0,i.Z)(()=>Object.fromEntries(Object.entries(I.R).map(e=>{let[t,n]=e;return[t,{color:n,borderColor:n,"&.selected":{color:"white",border:"2px solid",borderColor:n,backgroundColor:n}}]}))),S=(0,i.Z)(e=>({root:{display:"flex",flexDirection:"column",alignItems:"center"},section:{display:"flex",flexDirection:"column",alignItems:"center"},chip:{padding:"5px",fontSize:e.typography.pxToRem(16),textTransform:"capitalize",borderWidth:"2px",marginRight:e.spacing(1.5),marginBottom:e.spacing(1.5)},"@media screen and (max-width: 900px)":{chip:{padding:0,fontSize:e.typography.pxToRem(12),marginRight:e.spacing(1),marginBottom:e.spacing(1),height:"24px"}}}));var T=e=>{let{refine:t,refinedItems:n}=e,{t:r}=(0,p.$G)(),a="function"==typeof r?r:(e,t)=>e,i=S(),c=N();return(0,o.jsx)(o.Fragment,{children:["symphonic","opera","ballet","church","chamber","soloduo","song","churchmusic","earlymusic","avantgarde","crossover","youth","student"].map(e=>(0,o.jsx)(k.Z,{className:"".concat(c[e]," ").concat(i.chip," ").concat(n&&n.some(t=>t===e)?"selected":""),clickable:!0,label:a(e),variant:n&&n.some(t=>t===e)?"default":"outlined",onClick:()=>t(e)},e))})};let R=(0,i.Z)(e=>({buttonGroup:{boxShadow:"0px 3px 11px #08135914",borderRadius:"8px",width:"100%",border:"2px s
1olid white",display:"flex",justifyContent:"center",cursor:"pointer"},button:{maxWidth:"250px",width:"100%",backgroundColor:e.palette.primary.main,color:"white","&:hover":{backgroundColor:e.palette.primary.main,color:"white"},padding:e.spacing(1,5),borderRadius:"8px",boxShadow:"0 3px 11px #08135914",fontWeight:"bold"},filterButton:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),fontWeight:"bold",boxShadow:"none",borderRadius:"8px",fontSize:"0.75rem",justifyContent:"center"},textButton:{width:"100%"},expandedButtonGroup:{border:"2px solid ".concat(e.palette.primary.main)},expandedButton:{backgroundColor:e.palette.primary.main,color:"white","&:hover":{backgroundColor:e.palette.primary.main,color:"white",boxShadow:"none"}},collapsedButton:{backgroundColor:"white",color:e.palette.primary.main,"&:hover":{backgroundColor:"white",color:e.palette.primary.main,boxShadow:"none"}},active:{border:"2px solid ".concat(e.palette.primary.main)},popover:{maxWidth:1e3,marginTop:e.spacing(2),borderWidth:2,borderColor:e.palette.primary.main},paper:{color:"white",boxShadow:"0px 3px 11px #08135914",backgroundColor:e.palette.primary.main,borderColor:e.palette.primary.main,borderWidth:2,borderRadius:"8px",minWidth:"320px",padding:e.spacing(3)},selector:{backgroundColor:"white",borderRadius:6,padding:16},elevation:{boxShadow:"0px 3px 11px #08135914"},"@media screen and (min-width: 600px)":{filterButton:{fontSize:"0.875rem",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}}}));var D=e=>{let{types:t,setTypes:n}=e,{t:r}=(0,p.$G)(),a=R(),i=(0,B.o_)({variant:"popover",popupId:"filterTypes"}),c=t.length>0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(d.Z,{className:"".concat(a.buttonGroup," ").concat(i.isOpen?a.expandedButton:a.collapsedButton," ").concat(i.isOpen&&a.expandedButtonGroup," ").concat(c&&a.active),...(0,B.vW)(i),children:[(0,o.jsx)(u.Z,{variant:"contained",className:"".concat(a.filterButton," ").concat(a.textButton," ").concat(i.isOpen?a.expandedButton:a.collapsedButton),children:("function"==typeof r?r:(e,t)=>e)("Types")}),(0,o.jsx)(u.Z,{variant:"contained",className:"".concat(a.filterButton," ").concat(i.isOpen?a.expandedButton:a.collapsedButton),children:c?(0,o.jsx)(C.Z,{onClick:()=>n([])}):(0,o.jsx)(Z.Z,{})})]}),(0,o.jsx)(j.ZP,{...(0,B.ZW)(i),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},className:a.popover,PaperProps:{className:a.paper},elevation:0,children:(0,o.jsx)("div",{className:a.selector,children:(0,o.jsx)(T,{refinedItems:t,refine:e=>n(t.includes(e)?t.filter(t=>t!==e):[...t,e])})})})]})},F=n(57068),L=n(99222);let W=(0,i.Z)(e=>({secondaryHeading:{fontSize:e.typography.pxToRem(15),fontWeight:"bold",color:e.palette.primary.main,textTransform:"uppercase",margin:e.spacing(3,0,2,0)},smallScreens:{marginBottom:e.spacing(1.5),[e.breakpoints.up("sm")]:{display:"none"}},scrollWrapper:{position:"relative"},scrollRow:{display:"flex",gap:e.spacing(1),overflowX:"auto",paddingBottom:e.spacing(.5),scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},"& > *":{flex:"0 0 auto"}},scrollFade:{position:"absolute",right:0,top:0,bottom:e.spacing(.5),width:"48px",display:"flex",alignItems:"center",justifyContent:"flex-end",background:"linear-gradient(to right, transparent, #f5f6f8 75%)",pointerEvents:"none",transition:"opacity 0.2s ease",zIndex:1},scrollArrow:{color:e.palette.primary.main,fontSize:"1.2rem",opacity:.7},scrollItem:{minWidth:0,maxWidth:"130px",display:"flex","& > *":{width:"100%"}},searchItem:{minWidth:"120px",flex:"1 0 auto !important"},guideRow:{marginTop:e.spacing(1)},largeScreens:{marginBottom:e.spacing(3),[e.breakpoints.down("xs")]:{display:"none"}},filterGridItem:{flex:"1 1 auto"}}));var E=e=>{let{showRegion:t=!0,minimal:n=!1,query:i,setQuery:d,types:u=[],setTypes:m,date:f,setDate:h,location:x,setLocation:g}=e,{t:b}=(0,p.$G)(),w=W(),y=(0,r.useRef)(null),[j,C]=(0,r.useState)(!0),Z=(0,r.useCallback)(()=>{let e=y.current;if(e){if(e.scrollWidth<=e.clientWidth){C(!1);return}C(!(e.scrollLeft+e.clientWidth>=e.scrollWidth-8))}},[]);return((0,r.useEffect)(()=>{let e=y.current;if(!e)return;e.addEventListener("scroll",Z,{passive:!0});let t=requestAnimationFrame(()=>Z());return()=>
1{e.removeEventListener("scroll",Z),cancelAnimationFrame(t)}},[Z]),n)?(0,o.jsxs)(a.Z,{container:!0,spacing:1,style:{marginBottom:16},children:[(0,o.jsx)(a.Z,{item:!0,xs:6,sm:4,md:3,children:(0,o.jsx)(s.Z,{date:f,setDate:h})}),(0,o.jsx)(a.Z,{item:!0,xs:6,sm:8,md:9,children:(0,o.jsx)(c.Z,{query:null!=i?i:"",setQuery:d})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:w.smallScreens,children:[(0,o.jsxs)("div",{className:w.scrollWrapper,children:[(0,o.jsxs)("div",{className:w.scrollRow,ref:y,children:[t&&(0,o.jsx)("div",{className:w.scrollItem,children:(0,o.jsx)(F.Z,{})}),g&&(0,o.jsx)("div",{className:w.scrollItem,children:(0,o.jsx)(l.Z,{location:x,setLocation:g})}),m&&(0,o.jsx)("div",{className:w.scrollItem,children:(0,o.jsx)(D,{types:u,setTypes:m})}),(0,o.jsx)("div",{className:w.scrollItem,children:(0,o.jsx)(s.Z,{date:f,setDate:h})}),(0,o.jsx)("div",{className:"".concat(w.scrollItem," ").concat(w.searchItem),children:(0,o.jsx)(c.Z,{query:null!=i?i:"",setQuery:d})})]}),(0,o.jsx)("div",{className:w.scrollFade,style:{opacity:j?1:0},children:(0,o.jsx)(L.Z,{className:w.scrollArrow})})]}),(0,o.jsx)("div",{className:w.guideRow,children:(0,o.jsx)(v,{})})]}),(0,o.jsx)("div",{className:w.largeScreens,children:(0,o.jsxs)(a.Z,{spacing:2,container:!0,direction:"row",justifyContent:"flex-start",children:[t&&(0,o.jsx)(a.Z,{item:!0,className:w.filterGridItem,children:(0,o.jsx)(F.Z,{})}),g&&(0,o.jsx)(a.Z,{item:!0,className:w.filterGridItem,children:(0,o.jsx)(l.Z,{location:x,setLocation:g})}),m&&(0,o.jsx)(a.Z,{item:!0,className:w.filterGridItem,children:(0,o.jsx)(D,{types:u,setTypes:m})}),(0,o.jsx)(a.Z,{item:!0,className:w.filterGridItem,children:(0,o.jsx)(s.Z,{date:f,setDate:h})}),(0,o.jsx)(a.Z,{item:!0,className:w.filterGridItem,children:(0,o.jsx)(v,{})}),(0,o.jsx)(a.Z,{item:!0,xs:!0,children:(0,o.jsx)(c.Z,{query:null!=i?i:"",setQuery:d})})]})})]})}},27382:function(e,t,n){var o=n(85893),r=n(67294),a=n(19214),i=n(77563),c=n(79077),l=n(28276);let s=(0,a.Z)(e=>({button:{width:"70px",height:"70px",borderRadius:"8px",backgroundColor:"#08135919",boxShadow:"0 3px 11px #08135914",color:e.palette.primary.main,position:"fixed",bottom:"100px",left:"calc(90vw - 35px)",zIndex:400,"&:hover":{backgroundColor:"#08135919"}},"@media screen and (max-width: 600px)":{button:{display:"none"}}}));t.Z=function(){let e=s(),{t:t}=(0,l.$G)(),[n,a]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=()=>a(window.scrollY>1.5*window.innerHeight);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),n)?(0,o.jsx)(i.Z,{onClick:()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},className:e.button,disableRipple:!0,"aria-label":("function"==typeof t?t:e=>e)("scrollToTop"),children:(0,o.jsx)(c.Z,{})}):null}},70026:function(e,t,n){n.d(t,{I:function(){return r}});var o=n(67294);let r=e=>{let{withTime:t=!0}=null!=e?e:{},n=(0,o.useMemo)(()=>{let e=new Date;return t||e.setHours(0,0,0,0),e},[]),[r,a]=(0,o.useState)(n);return(0,o.useEffect)(()=>{let e=new Date;t||e.setHours(0,0,0,0),a(e)},[]),r}},94989:function(e,t,n){var o=n(67294);t.Z=function(e,t){let[n,r]=(0,o.useState)(e);return(0,o.useEffect)(()=>{let n=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}},76437:function(e,t,n){n.d(t,{NT:function(){return s},V_:function(){return c},_Y:function(){return p},b4:function(){return d},hv:function(){return l},lt:function(){return u},sh:function(){return m}});var o=n(11036),r=n(31584),a=n(74962);n(9420);var i=n(45794);let c=(e,t,n,r,a)=>(0,o.Z)(e,"concerts",t,n,r,a),l=e=>e.collection("concerts").doc().id,s=async(e,t,n)=>{let o=await (0,a.I)(e,"concerts",(0,r.JC)(t.dateTime,t.title),n);await e.collection("concerts").doc(n).set({...t,slug:o,isDeleted:!1,createdAt:e.FieldValue.serverTimestamp(),updatedAt:e.FieldValue.serverTimestamp()}),(0,i.w)(n)},d=async(e,t)=>await e.collection("concerts").doc(t).get(),u=async(e,t,n)=>{await e.collection("concerts").doc(n).update({...t,isDeleted:!1,updatedAt:e.FieldValue.serverTimestamp()}),(0,i.w)(n)},p=async(e,t)=>{await e.collection("concerts").doc(t).update({isDeleted:!0}
1),(0,i.w)(t)},m=async(e,t)=>{for(let n of(await e.collection("concerts").where("recommendationPostId","==",t).get()).docs)await u(e,{recommendationPostId:null,recommendation:null},n.id)}},64867:function(e,t,n){async function o(){try{let e=(await Promise.resolve().then(n.bind(n,44866))).default.auth().currentUser;if(!e)return null;return await e.getIdToken(!0)}catch(e){return null}}async function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=await o(),r={"Content-Type":"application/json",...t.headers||{}};return n&&(r.Authorization="Bearer ".concat(n)),fetch(e,{...t,headers:r})}n.d(t,{S:function(){return r},l:function(){return o}})},45794:function(e,t,n){n.d(t,{E:function(){return i},w:function(){return a}});var o=n(64867);let r=(e,t)=>{(0,o.S)(e,{method:"POST",body:JSON.stringify(t)}).then(n=>{n.ok||console.warn("[revalidate]",e,t,n.status)}).catch(n=>console.warn("[revalidate]",e,t,n))},a=e=>r("/api/revalidate-concert",{concertId:e}),i=e=>r("/api/revalidate-news",{postId:e})},31584:function(e,t,n){n.d(t,{zO:function(){return l},JC:function(){return c},Wd:function(){return s},Es:function(){return d},fN:function(){return p},wR:function(){return u}});let o=e=>e.replace(/æ/g,"ae").replace(/ø/g,"o").replace(/å/g,"aa").replace(/ä/g,"a").replace(/ö/g,"o").replace(/[^\x00-\x7F]+/g,""),r=e=>e.replace(/[?!\(\)\[\]\{\}\.,;:'"\|]/g,"").trim().replace(/[ \-/#&]+/g,"_"),a=e=>r(o(e.trim().toLowerCase())),i=(e,t)=>{let n=t-e.toString().length;if(!(n>0))return e.toString();{let t=Array(n+1).join("0");return"".concat(t).concat(e.toString())}},c=(e,t)=>{let n;let o=(n="number"==typeof e?new Date(1e3*e):e.toDate()).getFullYear(),r=i(n.getMonth()+1,2),c=i(n.getDate(),2),l=i(n.getHours(),2),s=i(n.getMinutes(),2);return a("".concat(o).concat(r).concat(c).concat(l).concat(s,"_").concat(t))},l=e=>a(e),s=e=>a(e),d=(e,t)=>{let n=e.getFullYear(),o=i(e.getMonth()+1,2),r=t;return t.includes("".concat(n))||(r="".concat(n).concat(o,"_").concat(t)),a(r)},u=(e,t)=>{let n=e;return e.toLowerCase().includes(t.toLowerCase())||(n="".concat(e,"_").concat(t)),a(n)},p=e=>a(e)},28426:function(e,t,n){n.d(t,{L:function(){return o}});let o=e=>Math.floor(e.valueOf()/1e3)},74962:function(e,t,n){n.d(t,{I:function(){return o}});let o=async(e,t,n,o)=>{let r=async n=>(await e.collection(t).where("slug","==",n).get()).docs.some(e=>e.id!==o&&!0!==e.data().isDeleted);if(!await r(n))return n;for(let e=2;e<=50;e++){let t="".concat(n,"_").concat(e);if(!await r(t))return t}throw Error("Could not find a free slug for ".concat(t,"/").concat(n," after 50 attempts"))}}}]);
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.