PageSourceSearch

https://energy.ch/_next/static/chunks/1203-3287f65415039359.js

js energy.ch collected 2026-09-24 09:35:40 UTC 196,313 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1203],{27152:function(e,t,n){n.d(t,{Z:function(){return Z}});var i=n(85893),r=n(20117),a=n(98768),s=n(17230),l=n(47014),o=n(26042),c=n(69396),d=n(67294),u=n(94184),m=n.n(u),x=n(25492),h=function(e){var t=e.className;return(0,i.jsxs)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z",fill:t}),(0,i.jsx)("path",{d:"M10.7445 6.55859H12.9621V14.3034H10.7445V6.55859ZM13.1301 15.7818V17.697H10.5933V15.7818H13.1301Z",fill:"currentColor"})]})},f=function(e){var t=e.className,n=void 0===t?"":t,r=e.fill,a=void 0===r?"currentColor":r;return(0,i.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",className:n,children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 1.66797C11.7157 1.66797 5 8.3837 5 16.668V18.3346H35V16.668C35 8.3837 28.2843 1.66797 20 1.66797ZM19.1667 4.16797C13.1836 4.16797 8.33333 9.01822 8.33333 15.0013H31.6667C31.6667 9.01822 26.8164 4.16797 20.8333 4.16797H19.1667Z",fill:a}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66667 15.0013C5.74619 15.0013 5 15.7475 5 16.668V35.0013C5 36.8422 6.49238 38.3346 8.33333 38.3346H31.6667C33.5076 38.3346 35 36.8422 35 35.0013V16.668C35 15.7475 34.2538 15.0013 33.3333 15.0013H6.66667ZM21.6524 27.8969C22.6566 27.3226 23.3333 26.241 23.3333 25.0013C23.3333 23.1604 21.8409 21.668 20 21.668C18.1591 21.668 16.6667 23.1604 16.6667 25.0013C16.6667 26.241 17.3434 27.3226 18.3476 27.8969C18.3382 28.0401 18.3333 28.1863 18.3333 28.3346C18.3333 30.1756 19.0795 31.668 20 31.668C20.9205 31.668 21.6667 30.1756 21.6667 28.3346C21.6667 28.1863 21.6618 28.0401 21.6524 27.8969Z",fill:a})]})},p=n(34629),v=function(e){var t=e.className,n=e.children,r=e.navItem;return(0,i.jsxs)("div",{className:"flex-col mb-12",children:[(0,i.jsx)("div",{className:m()("w-16 h-16 flex-shrink-0 relative","flex items-center justify-center rounded-4 w-[229px] h-[229px] lg:w-[276px] lg:h-[276px]",t),children:n}),(0,i.jsx)("div",{className:m()("text-body1 text-center mt-4 font-semibold"),children:r.link.text})]})},g=function(e){var t=e.navItem,n=e.incompleteProfileData,a=e.incompleteProfileText,l=e.showIcon,u=(0,s.Z)(),g=!!n.length;return"/account/tickets"===t.link.href&&g?(0,i.jsx)(v,{className:"bg-gradient-to-br from-gray-2 to-gray-1",navItem:t,children:(0,i.jsxs)("div",{className:"pt-[18px] lg:pt-5 p-5 flex flex-col h-full w-full",children:[(0,i.jsx)("div",{className:"flex items-center justify-center text-eds-gray-light mb-4",children:(0,i.jsx)(f,{className:"w-8 h-8 lg:w-10 lg:h-10"})}),(0,i.jsx)("p",{className:"text-[12px] font-inter lg:text-overline",children:a}),(0,i.jsx)("ul",{className:"mt-2 text-[12px] font-inter lg:text-overline",children:n.map((function(e){return(0,i.jsx)("li",{className:"list-disc ml-4",children:(0,r.Z)(u["account-".concat(e)])||e},e)}))})]})}):(0,d.createElement)(x.Z,(0,c.Z)((0,o.Z)({},t.link),{key:t.link.id}),(0,i.jsxs)(v,{className:m()("bg-gradient-to-br from-red-medium to-red","before:absolute before:h-full before:w-full before:bg-red before:rounded-4 before:opacity-0 before:transition-opacity before:ease-in-out before:duration-200 before:hover:opacity-100"),navItem:t,children:[l&&(0,i.jsx)(h,{className:"absolute top-5 right-5 w-10 h-10 text-red-medium fill-white"}),(null===t||void 0===t?void 0:t.icon)&&(0,i.jsx)(p.Z,{src:t.icon.src,alt:t.link.text,useIntrinsicSize:!0,width:80,height:80})]}))},b=n(45297),j=n(42872),w=function(e){var t=e.text,n=e.incompleteProfileData,a=e.onCloseIncompleteProfileModal,l=(0,s.Z)();return(0,i.jsx)(j.Z,{onClose:a,showCloseIcon:!1,children:(0,i.jsxs)("div",{className:"bg-black-light h-full pt-20 px-5 py-4 flex flex-col",children:[(0,i.jsx)("h3",{className:"text-h3 text-center mb-4",children:(0,r.Z)(l["account-missing-information-text"])||"Fehlende Informationen"}),(0,i.jsx)("p",{className:"text-body2",children:t}),(0,i.jsx)("ul",{className:"mt-6 text-body2",children:n.map((function(e){return(0,i.jsx)("li",{className:"list-disc ml-6",children:(0,r.Z)(l["account-".concat(e)
1])||"account-".concat(e)},e)}))}),(0,i.jsxs)("div",{className:"mt-auto",children:[(0,i.jsx)(x.Z,{href:"#editProfile",as:"#editProfile",isExternal:!0,children:(0,i.jsx)(b.Z,{text:(0,r.Z)(l["account-edit-profile-cta-text"])||"Profil bearbeiten",className:"w-full",size:"L"})}),(0,i.jsx)("div",{className:"mt-4 text-center",children:(0,i.jsx)("button",{type:"button",className:"text-body2 text-gray-2 underline",onClick:a,children:(0,r.Z)(l["account-cancel-cta-text"])||"Abbrechen"})})]})]})})},N=function(e){var t=e.navItem,n=e.openModal,r=e.showIcon;return(0,i.jsxs)("div",{onClick:n,className:m()("flex items-center my-4",n&&"cursor-pointer"),children:[(0,i.jsxs)("div",{className:m()("w-16 h-16 flex-shrink-0 relative","flex items-center lg: justify-center"),children:[r&&(0,i.jsx)(h,{className:"absolute z-10 top-0 right-0 w-6 h-6 text-white fill-red"}),(null===t||void 0===t?void 0:t.icon)&&(0,i.jsx)(p.Z,{src:t.icon.src,alt:t.link.text,useIntrinsicSize:!0,width:80,height:80})]}),(0,i.jsx)("div",{className:m()("text-h1 uppercase ml-3"),children:t.link.text})]})},y=function(e){var t=e.navItem,n=e.incompleteProfileData,r=e.incompleteProfileText,a=e.showIcon,s=(0,d.useState)(!1),l=s[0],u=s[1],m=!!n.length;return"/account/tickets"===t.link.href&&m?(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)(w,{text:r,incompleteProfileData:n,onCloseIncompleteProfileModal:function(){return u(!1)}}),(0,i.jsx)(N,{navItem:t,openModal:function(){return u(!0)},showIcon:a})]}):(0,i.jsx)("div",{className:"flex flex-col",children:(0,d.createElement)(x.Z,(0,c.Z)((0,o.Z)({},t.link),{key:t.link.id}),(0,i.jsx)(N,{navItem:t,showIcon:a}))})},Z=function(e){var t=e.navigation,n=e.incompleteProfileData,o=(0,a.Z)().isMobile,c=(0,s.Z)(),d=(0,r.Z)(c["account-profile-not-complete-text"])||"Vervollst\xe4ndige dein Profil mit diesen Angaben, um deine Tickets & Preise zu sehen:";return(0,i.jsx)("div",{className:"flex flex-col md:flex-row md:flex-wrap md:justify-center gap-x-8",children:t.map((function(e){var t,r,a=!!n.length,s=(null===e||void 0===e?void 0:e.action)===l.ms.EditProfile&&a;return o?(0,i.jsx)(y,{navItem:e,incompleteProfileText:d,incompleteProfileData:n,showIcon:s},null===(r=e.icon)||void 0===r?void 0:r.id):(0,i.jsx)(g,{navItem:e,incompleteProfileText:d,incompleteProfileData:n,showIcon:s},null===(t=e.icon)||void 0===t?void 0:t.id)}))})}},50497:function(e,t,n){var i=n(85893);t.Z=function(e){var t=e.className;return(0,i.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.9125 6.1432C18.7182 5.94706 18.403 5.94706 18.2086 6.1432L9.53744 14.8927L5.78411 11.1103C5.5896 10.9143 5.27425 10.9143 5.07974 11.1103L4.14197 12.0553C3.94747 12.2513 3.94747 12.5691 4.14197 12.7652L7.89634 16.5487L7.89342 16.5516L9.18256 17.8524C9.37695 18.0485 9.6921 18.0485 9.88648 17.8524L19.8497 7.79913C20.0441 7.60299 20.0441 7.28499 19.8497 7.08885L18.9125 6.1432Z",fill:"white"})})}},1203:function(e,t,n){n.d(t,{Z:function(){return Dl}});var i=n(26042),r=n(69396),a=n(828),s=n(29815),l=n(85893),o=n(94184),c=n.n(o),d=n(9008),u=n.n(d),m=n(11163),x=n(36078),h=n(67294),f=n(29197),p=n(413),v=n(32363),g=n(20117),b=function(e){var t=sessionStorage.getItem("prevPath");t?e.push(t):e.push("/")},j=n(70123),w=n(17230),N=function(e){e.className;return(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,l.jsx)("ellipse",{cx:"16",cy:"16",rx:"16",ry:"16",transform:"rotate(90 16 16)",fill:"white"}),(0,l.jsx)("path",{d:"M22.2218 16.2777C22.2218 16.5539 21.9979 16.7777 21.7218 16.7777L12.7562 16.7777L16.7492 20.7707C16.945 20.9664 16.9444 21.284 16.748 21.4791L16.3531 21.8711C16.1577 22.0652 15.842 22.0646 15.6473 21.8699L10.1309 16.3535C9.93564 16.1582 9.93564 15.8417 10.1309 15.6464L15.646 10.1313C15.8413 9.93601 16.1579 9.93601 16.3531 10.1313L16.743 10.5212C16.9381 10.7163 16.9383 11.0326 16.7433 11.2279L12.7562 15.2222L21.7218 15.2222C21.9979 15.2222 22.2218 15.446 22.2218 15.7222L22.2218 16.2777Z",fill:"#000331"})]})},y={breadcrumbs:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];
1return c()(e&&"teair:bg-air-lightBlue")},container:function(e){return c()("content-box",e&&"hidden md:block")},wrapper:function(e){return c()("flex items-center py-4 text-overline",e&&"border-b-2 border-gray-1")},backButton:"flex items-center py-1.5 px-2 text-gray-4 hover:text-pink teair:text-air-mediumBlue teair:hover:text-air-deepBlue tesn:hover:text-esn-primary",backButtonText:"ml-2 text-overline"},Z=y,k=function(e){var t=e.hideOnMobile,n=e.showBorder,i=void 0!==n&&n,r=e.breadcrumbItems,a=void 0===r?[]:r,s=(0,m.useRouter)(),o=(0,w.Z)(),c=(0,j.Z)().isEventTheme,d=s.route.includes("/artikel/");return(0,l.jsx)("div",{className:Z.breadcrumbs(d),children:(0,l.jsx)("div",{className:Z.container(t),children:(0,l.jsxs)("div",{className:Z.wrapper(!d&&i),children:[(0,l.jsxs)("button",{className:Z.backButton,onClick:function(){return b(s)},children:[c?(0,l.jsx)(N,{}):(0,l.jsx)(v.w,{}),(0,l.jsx)("span",{className:Z.backButtonText,children:(0,g.Z)(o["breadcrumbs-back-button"])||"\xdcberblick"})]}),a&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"w-px h-8 bg-gray-4 mx-4"}),a.map((function(e){return(0,l.jsx)("div",{className:"text-pink teair:text-air-mediumBlue py-2 px-4 tesn:text-esn-primary",children:e.text},e.slug)}))]})]})})})},C=n(16011),S=function(){var e,t=(0,h.useState)(!0),n=t[0],i=t[1],r=(0,h.useState)(!1),a=r[0],s=r[1],o=(0,h.useRef)(null),c=(0,w.Z)(),d=function(){var e;return!!(null===(e=o.current)||void 0===e?void 0:e.innerHTML)};return(0,h.useEffect)((function(){if(d())i(!1);else if("undefined"!==typeof window.OneTrust){try{var e;null===(e=window.OneTrust)||void 0===e||e.initializeCookiePolicyHtml()}catch(n){var t;if(null===n||void 0===n||null===(t=n.message)||void 0===t?void 0:t.includes("Cannot read properties of undefined (reading 'querySelector')"))return void console.warn(n);console.error(n),s(!0)}i(!1)}}),[]),(0,h.useEffect)((function(){d()&&(i(!1),s(!1))}),[null===(e=o.current)||void 0===e?void 0:e.innerHTML]),(0,l.jsxs)("div",{className:"content-box",children:[n&&(0,l.jsx)("div",{className:"w-full flex justify-center",children:(0,l.jsx)(C.Z,{id:"loading-icon",className:"w-24 h-24"})}),a&&(0,l.jsx)("div",{className:"text-air-coral-light",children:(0,g.Z)(c["cookie-list-error"])||"An error occurred while generating cookie list. Please, reload page."}),(0,l.jsx)("div",{ref:o,id:"ot-sdk-cookie-policy"}),(0,l.jsx)("button",{id:"ot-sdk-btn",className:"ot-sdk-show-settings",children:(0,g.Z)(c["cookie-sett
1ings"])||"Cookie Settings"})]})},T=n(34629),I=n(7297),L=n(20294),E=n(15377),M=n.n(E);function P(){var e=(0,I.Z)(["\n  height: 275px;\n\n  @media (min-width: ",") {\n    height: 344px;\n  }\n  @media (min-width: ",") {\n    height: 560px;\n  }\n"]);return P=function(){return e},e}var A=(0,L.iv)(P(),E.screens.md,E.screens.lg),F={container:"absolute w-full top-0 left-0 -z-10 ".concat(A),wrapper:"h-full hidden md:block",wrapperMobile:"h-full md:hidden",image:"object-cover object-center",gradient:"absolute w-full h-full top-0 left-0  bg-gradient-to-t from-black to-transparent"},B=function(e){var t=e.desktop,n=e.mobile;return(0,l.jsxs)("div",{className:F.container,children:[n&&(0,l.jsxs)("div",{className:F.wrapperMobile,children:[(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,alt:n.description,objectFit:"cover",className:F.image,basicLoader:n.isExternal}),(0,l.jsx)("div",{className:F.gradient})]}),t&&(0,l.jsxs)("div",{className:F.wrapper,children:[(0,l.jsx)(T.Z,{src:t.src,fallbackSrc:t.fallbackSrc,alt:t.description,objectFit:"cover",className:F.image,basicLoader:t.isExternal}),(0,l.jsx)("div",{className:F.gradient})]})]})},_=n(57469),D=n(98768),R=n(27152),z={wrapper:"bg-black teair:bg-air-lightBlue",container:"container 2xl:max-w-none xl:max-w-5xl lg:max-w-3xl md:max-w-none relative",imageContainer:"content-box mx-auto max-w-4xl",image:"flex rounded-4 overflow-hidden"},H=function(e){var t=e.title,n=e.image;return(0,l.jsx)("div",{className:z.wrapper,children:(0,l.jsx)("div",{className:z.container,children:(0,l.jsx)("div",{className:z.imageContainer,children:(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,useIntrinsicSize:!0,width:n.width,height:n.height,alt:t,basicLoader:n.isExternal,className:z.image})})})})},W=n(29460),O=n(577),V=n(59454),U=n(39621),q=n(5793),G=function(e){var t=e.profiles;return(0,l.jsx)(l.Fragment,{children:t.map((function(e){return(0,l.jsx)(q.Z,{tag:e,className:"mt-2 mr-2"},e.link.id)}))})};function Q(){var e=(0,I.Z)(["\n  &::after {\n    content: '';\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    width: 100vw;\n    z-index: -1;\n    background-color: inherit;\n\n    @media (min-width: ",") {\n      left: 50%;\n      transform: translateX(-50%);\n    }\n  }\n"]);return Q=function(){return e},e}var K=(0,L.iv)(Q(),E.screens["2xl"]),X={container:"bg-black text-white tlight:bg-white tlight:text-black teair:bg-white ".concat(K),contentContainer:"content-box",articlePaddings:"pb-4 md:pb-6",textContainer:"text-box",contentCategories:"text-red text-overline pb-5 tesn:text-esn-secondary-light teair:text-air-skyBlue",title:"text-h4 pb-4 teair:text-air-deepBlue",lead:"text-lead pb-4 md:pb-6 teair:text-air-deepBlue"},Y=function(e){var t=e.title,n=e.lead,i=e.publishDate,r=e.contentCategories,a=e.link,s=e.profiles,o=(0,w.Z)(),d=(0,j.Z)().isEventTheme,u=(0,m.useRouter)().asPath.includes("/artikel"),x=(0,U.Z)(i,r);return(0,l.jsx)("div",{className:X.container,children:(0,l.jsx)("div",{className:c()(X.contentContainer,u&&X.articlePaddings),children:(0,l.jsxs)("div",{className:X.textContainer,children:[r&&(0,l.jsx)("div",{className:X.contentCategories,children:x}),(0,l.jsx)("h1",{className:X.title,children:t}),n&&(0,l.jsx)(W.ZP,{className:X.lead,body:n}),(0,l.jsxs)("div",{className:"flex items-center flex-wrap text-white -mt-2",children:[(0,l.jsx)("div",{className:"flex-shrink-0 mt-2 mr-4",children:(0,l.jsx)(O.Z,{urlToShare:"".concat((0,V.Z)()).concat(a.href),theme:"button",buttonText:(0,g.Z)(o["share-article-button"])||"Artikel teilen",shareBoxPlacement:"bottomRight"})}),!d&&(null===s||void 0===s?void 0:s.length)&&(0,l.jsx)(G,{profiles:s})]})]})})})},J=n(47568),$=n(20414),ee=n(45297),te=n(67143),ne=n(16586),ie=n(49294),re=n(74201),ae=n(25492),se=function(e){var t=e.image,n=e.updatedAt,i=e.contentCategories,r=e.title,a=e.profiles,s=e.link,o=e.theme,c=s.href;return(0,l.jsxs)("div",{className:"mb-18 md:mb-28 last:mb-0",children:[(0,l.jsx)("div",{className:"md:w-10/12 mx-auto mb-4 ".concat(o?"rounded-4 overflow-hidden":""),children:t&&(0,l.jsx)(ae.Z,{href:c,children:(0,l.jsx)(T.Z,{className:"aspect aspect-16-9",alt:r,useIntrinsicSize:!1,src:t.src,fallbackSrc:t.fallbackSrc,objectFit:"cover",basicLoader:t.isExternal})})}),(0,l.jsxs)("div",{className:"md:w-8/12 md:mx-auto",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,l.jsxs)("div",{className:"flex text-overline w-full text-gray-2 teair:text-air-skyBlue tesn:text-esn-secondary-light",children:[(0,l.jsx)("span",{children:(0,re.Z)(new Date(n),"dd.MM.yyyy")}),i&&(0,l.jsx)("span",{className:"hidden md:inline-block truncate ml-1",children:i.map((function(e,t){return 0===t?"/ ".concat(e):", ".concat(e)}))})]}),(0,l.jsx)(O.Z,{urlToShare:"".concat((0,V.Z)()).concat(c)})]}),(0,l.jsx)("h4",{className:"text-h4 text-white teair:text-air-mediumBlue",children:(0,l.jsx)(ae.Z,{href:c,children:r})}),!o&&a&&(0,l.jsx)("div",{className:"md:mt-4",children:(0,l.jsx)(G,{profiles:a})})]})]})},le=function(e){return e.map((function(e){return e.slug}))},oe=["in-gedenken-an-lara"],ce=function(e){var t=e.articles,n=e.hasMore,a=e.theme,o=(0,m.useRouter)().query.slug,c=function(e){var t=e.toExclude,n=e.hasMore,i=e.theme,r=(0,h.useState)(t),a=r[0],l=r[1],o=(0,h.useState)([]),c=o[0],d=o[1],u=(0,h.useState)(n),m=u[0],x=u[1],f=(0,h.useState)(!1),p=f[0],v=f[1],g=function(){var e=(0,J.Z)((function(){var e,t,n,r,o,u,m;return(0,$.__generator)(this,(function(h){switch(h.label){case 0:return v(!0),e="?slugsToExclude=".concat(a.join(",")),t=i?"&theme=".concat(i):"",[4,(0,te.Z)((function(){return fetch("/api/related-articles".concat(e).concat(t))}))];case 1:return n=h.sent(),r=n.data,o=n.error,v(!1),!r||o||(u=r.articles,m=r.hasMore,l
1((0,s.Z)(a).concat((0,s.Z)(le(u)))),d((0,s.Z)(c).concat((0,s.Z)(u))),x(m)),[2]}}))}));return function(){return e.apply(this,arguments)}}();return{fetchMoreArticles:g,fetchedArticles:c,hasMoreArticles:m,isLoading:p}}({toExclude:[o].concat((0,s.Z)(le(t))),hasMore:n,theme:a}),d=c.fetchMoreArticles,u=c.fetchedArticles,x=c.hasMoreArticles,p=c.isLoading,v=(0,w.Z)(),b=(0,f.v9)(ie.Rg),j=(0,ne.Z)(b);return o&&oe.includes(o)?null:(0,l.jsxs)("div",{className:"content-box",children:[(0,l.jsx)("h2",{className:"text-h2 uppercase mb-10 md:mb-20 md:text-center text-pink teair:text-air-mediumBlue tesn:text-white",children:(0,g.Z)(v[a?"more-articles-event-text":"more-articles-text"])||"Auch Interessant"}),(0,l.jsxs)("div",{children:[t.map((function(e){return(0,l.jsx)(se,(0,i.Z)({},e),e.slug)})),!!u.length&&u.map((function(e){return(0,l.jsx)(se,(0,i.Z)({},e),e.slug)}))]}),x&&(0,l.jsx)("div",{className:"text-center mt-10 md:mt-28",children:(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},j),{size:"XL",disabled:p,onClick:d,text:(0,g.Z)(v["more-articles-load-more-cta-text"])}))})]})},de=n(30172),ue=n(10787),me=n(95186),xe=n(69447),he=n(61052),fe=n(79723),pe=n(77821),ve=n(73222),ge=n(40010),be=null,je=function(e,t,n){if(!e)return null;if(t){var i=new URL(t.streamUrl);i.searchParams.append("ua","energy+website+metadata+only");var r=(0,ge.DQ)();r&&i.searchParams.set("aw_0_req.userConsentV2",encodeURIComponent(r)),be=new IcecastMetadataPlayer(i.toString(),{onMetadata:function(){var e=(0,J.Z)((function(e){var i,r,a,s,l,o,c,d,u,m,x;return(0,$.__generator)(this,(function(h){switch(h.label){case 0:if(!(i=(0,pe.Z)(e)))return[2];if(n(i),r=new URL(e.StreamUrl).searchParams,!(a=r.get("plId")))return[2];s=parseInt(a,10),h.label=1;case 1:return h.trys.push([1,3,,4]),[4,(0,ve.Z)(s,t.id)];case 2:return(l=h.sent())?n({title:i.title,artist:null!==(u=null===(o=l.song)||void 0===o?void 0:o.artists_full)&&void 0!==u?u:i.artist,artists:null!==(m=null===(c=l.song)||void 0===c?void 0:c.artists.map((function(e){return{id:e.id,name:e.name}})))&&void 0!==m?m:null,duration:null===(d=l.song)||void 0===d?void 0:d.duration,coverUrl:l.resolved_cover_url}):console.warn("Could not get metadata from BM."),[3,4];case 3:return x=h.sent(),console.error(x),console.error("AWS client sent error"),[3,4];case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}()})}return be},we=n(93099),Ne=function(e){var t=(0,f.v9)(we.By),n=(0,h.useState)(null),i=n[0],r=n[1],a=(0,h.useState)(!0),s=a[0],l=a[1],o=(0,h.useCallback)((function(e){e&&(r(e),l(!1))}),[]),c=(0,h.useMemo)((function(){return je(t,e,o)}),[t,e,o]);return(0,h.useEffect)((function(){return c&&(c.audioElement.volume=0,c.audioElement.muted=!0,c.audioElement.autoplay=!0,c.play()),function(){c&&(c.stop(),c.detachAudioElement()),l(!0)}}),[c]),{songMetadata:i,isLoading:s}},ye=function(e){var t="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname);return(null===e||void 0===e?void 0:e.includeHash)?"".concat(t).concat(window.location.hash):t},Ze=n(97486),ke=n(95353),Ce=n(76928);function Se(){var e=(0,I.Z)(["\n  height: 375px;\n  background: linear-gradient(180deg, rgba(18, 17, 19, 0.22) 0%, #121113 100%),\n    ",";\n  ","\n"]);return Se=function(){return e},e}function Te(){var e=(0,I.Z)(["\n  content: '';\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  z-index: 1;\n  opacity: 0.8;\n"]);return Te=function(){return e},e}function Ie(){var e=(0,I.Z)(["\n  .swiper-wrapper {\n    align-items: center;\n  }\n\n  &.swiper-container-initialized .swiper-slide {\n    transition: transform 0.2s linear;\n  }\n\n  .swiper-slide {\n    width: 48% !important;\n    transform: ",";\n  }\n\n  .swiper-slide.swiper-slide-prev,\n  .swiper-slide.swiper-slide-next {\n    &::after {\n      width: 90%;\n      ","\n    }\n  }\n\n  .swiper-slide.swiper-slide-prev {\n    transform: "," translate3d(10%, 0, 0);\n\n    &::after {\n      background: linear-gradient(90deg, #121113 0%, rgba(18, 17, 19, 0) 100%);\n      border-top-left-radius: ",";\n      border-bottom-left-radius: ",";\n    }\n  }\n\n  .swiper-slide.swiper-slide-next {\n    transform: "," translate3d(-10%, 0, 0);\n\n    &::after {\n      background: linear-gradient(270deg, #121113 0%, rgba(18, 17, 19, 0) 100%);\n      border-top-right-radius: ",";\n      border-bottom-right-radius: ",";\n      right: 0;\n    }\n  }\n\n  .swiper-slide.swiper-slide-prev,\n  .swiper-slide.swiper-slide-next {\n    .channel-wrapper {\n      border-radius: ",";\n    }\n  }\n\n  .swiper-slide.swiper-slide-active {\n    transform: scale3d(1, 1, 1);\n  }\n\n  @media (min-width: ",") {\n    .swiper-slide {\n      width: 30% !important;\n      transform: ",";\n      cursor: pointer;\n    }\n\n    .swiper-slide:not(.swiper-slide-visible) {\n      opacity: 0;\n    }\n\n    .swiper-slide:not(.swiper-slide-next) + .swiper-slide-visible,\n    .swiper-slide.swiper-slide-next + .swiper-slide-visible {\n      &::after {\n        width: 58.3%;\n        ","\n      }\n    }\n\n    .swiper-slide:not(.swiper-slide-next) + .swiper-slide-visible {\n      transform: "," translate3d(146%, 0, 0);\n\n      &::after {\n        background: linear-gradient(\n          90deg,\n          #121113 0%,\n          rgba(18, 17, 19, 0) 100%\n        );\n        border-top-left-radius: ",";\n        border-bottom-left-radius: ",";\n      }\n    }\n\n    .swiper-slide + .swiper-slide.swiper-slide-prev,\n    .swiper-slide.swiper-slide-prev + .swiper-slide.swiper-slide-active,\n    .swiper-slide.swiper-slide-active + .swiper-slide.swiper-slide-next {\n      &::after {\n        content: none;\n      }\n    }\n\n    .swiper-slide + .swiper-slide.swiper-slide-prev {\n      transform: "," translate3d(25%, 0, 0);\n    }\n\n    .swiper-slide.swiper-slide-prev + .swiper-slide.swiper-slide-active {\n      transform: scale3d(1, 1, 1);\n\n      .channel-wrapper {\n        border-radius: ","px;\n      }\n    }\n\n    .swiper-slide.swiper-slide-active + .swiper-slide.swiper-slide-next {\n      transform: "," translate3d(-25%, 0, 0);\n    }\n\n    .swiper-slide.swiper-slide-next + .swiper-slide-visible {\n      transform: "," translate3d(-146%, 0, 0);\n\n      &::after {\n        background: linear-gradient(\n          270deg,\n          #121113 0%,\n          rgba(18, 17, 19, 0) 100%\n        );\n        border-top-right-radius: ",";\n        border-bottom-right-radius: ",";\n        right: 0;\n      }\n    }\n\n    .swiper-slide:not(.swiper-slide-next) + .swiper-slide-visible,\n    .swiper-slide.swiper-slide-next + .swiper-slide-visible {\n      .channel-wrapper {\n        border-radius: ",";\n      }\n    }\n\n    .swiper-slide + .swiper-slide.swiper-slide-prev,\n    .swiper-slide.swiper-slide-active + .swiper-slide.swiper-slide-next {\n      .channel-wrapper {\n        border-radius: ","px;\n      }\n\n      .channel-name {\n        font-size: ","rem;\n        line-height: ","rem;\n        margin-top: ","px;\n      }\n    }\n  }\n"]);return Ie=function(){return e},e}var Le=parseFloat((150/343).toFixed(2)),Ee=parseFloat((100/180).toFixed(2)),Me=parseFloat((120/343).toFixed(2)),Pe="scale3d(".concat(Le,", ").concat(Le,", ").concat(Le,")"),Ae="scale3d(".concat(Ee,", ").concat(Ee,", ").concat(Ee,")"),Fe="scale3d(".concat(Me,", ").concat(Me,", ").concat(Me,")"),Be="".concat(Math.round(8/Me),"px"),_e="".concat(Math.round(8/Ee),"px"),De=(0,L.iv)(Te()),Re=(0,L.iv)(Ie(),Ae,De,Ae,_e,_e,Ae,_e,_e,_e,E.screens.md,Fe,De,Fe,Be,Be,Pe,8,Pe,Fe,Be,Be,Be,Math.round(8/Le),(.875/Le).toFixed(2),(1.125/Le).toFixed(2),Math.round(16/Le)),ze="absolute z-20 top-1/2 transform -translate-y-1/2";de.Z.use([ue.Z,me.Z]);
1var He,We="channel-carousel-navigation-prev-button",Oe="channel-carousel-navigation-next-button",Ve=function(e){var t=e.currentChannel,n=e.channels,i=(0,m.useRouter)(),r=(0,h.useState)(null),a=r[0],s=r[1],o=(0,D.Z)().isMobile,d=t.id,u=t.bgMobile,x=t.bgDesktop,p=t.name,v=n.findIndex((function(e){return e.id===d})),g=o?u:x,b=(0,f.v9)(we.AE),j=(0,f.v9)(we.iW),w=Ne(t),N=w.songMetadata,y=w.isLoading,Z=(0,f.v9)(we.Qt);if((0,h.useEffect)((function(){a&&a.realIndex!==v&&a.slideToLoop(v)}),[a,v]),!(0,Ze.Z)())return null;var k,C=(null===j||void 0===j?void 0:j.id)===d,S=b&&C,T=function(e){He&&clearTimeout(He),e!==v&&(He=setTimeout((function(){return i.push("/channels/".concat(n[e].id))}),1e3))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:c()("absolute top-0 left-0 2xl:left-1/2 2xl:transform 2xl:-translate-x-1/2 w-screen -z-10",(k=g,(0,L.iv)(Se(),k?"url(".concat(k,") center no-repeat"):"linear-gradient(180deg, #EFAAE8 0%, #FFFFFF 100%)",k?"background-size: cover;":"")))}),(0,l.jsx)("div",{className:"md:content-box",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(xe.t,{slidesPerView:"auto",initialSlide:v,navigation:{prevEl:"#".concat(We),nextEl:"#".concat(Oe)},className:Re,centeredSlides:!0,loop:!0,slideToClickedSlide:!0,watchSlidesVisibility:!o,runCallbacksOnInit:!1,preventInteractionOnTransition:!0,threshold:2,onTouchEnd:function(e){return T(e.realIndex)},onSlideChangeTransitionEnd:function(e){return T(e.realIndex)},onSwiper:s,children:n.map((function(e){return(0,l.jsx)(he.o,{children:function(t){var n=t.isActive,i=t.isPrev,r=t.isNext,s=(null===a||void 0===a?void 0:a.realIndex)===v;return(0,l.jsxs)("div",{className:"channel-wrapper relative rounded-2 overflow-hidden",children:[(0,l.jsx)(ke.Z,{isLoading:y,coverUrl:null===N||void 0===N?void 0:N.coverUrl,isActive:n&&s,logoUrl:e.logoUrl}),(i||r)&&(0,l.jsx)("div",{className:"channel-name text-center hidden md:flex absolute w-full text-overline text-gray-2 mt-4 md:line-clamp-2",children:e.name}),(0,l.jsx)("div",{className:c()("channel-overlay absolute inset-0 z-20",!n&&"bg-black bg-opacity-30 opacity-0 hover:opacity-100 transition-opacity duration-200"),children:n&&s&&(0,l.jsx)(Ce.Z,{channelId:d})})]})}},e.id)}))}),(0,l.jsx)(fe.Z,{id:We,type:"prev",shouldDisplay:!o,className:c()("left-0 -translate-x-1/2",ze)}),(0,l.jsx)(fe.Z,{id:Oe,type:"next",shouldDisplay:!o,className:c()("right-0 translate-x-1/2",ze)})]})}),(0,l.jsxs)("div",{className:"content-box",children:[(0,l.jsx)("div",{className:"w-7/12 md:w-4/12 text-h4 text-center text-red-light mx-auto mt-4 md:mt-6",children:p}),(0,l.jsx)("div",{className:c()("md:w-5/12 text-center text-body1 text-gray-3 mx-auto mt-1 md:mt-4",y&&"min-h-12"),children:N&&!y&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"font-semibold line-clamp-1",children:N.title?N.title:S&&(null===Z||void 0===Z?void 0:Z.title)}),(0,l.jsx)("div",{className:"line-clamp-1",children:N.artist?N.artist:S&&(null===Z||void 0===Z?void 0:Z.artist)})]})}),(0,l.jsx)("div",{className:"flex justify-center mt-2",children:(0,l.jsx)(O.Z,{urlToShare:ye()})})]})]})},Ue=n(14605),qe=n(47014),Ge={container:function(e,t){return c()("flex flex-col",e&&"tesn:bg-black tesn:px-4 teair:px-4",t?"items-center":"rounded-2 overflow-hidden tesn:bg-esn-secondary-dark")},title:function(e){return c()("text-white text-h5 pb-2 text-center md:text-left teair:text-air-deepBlue",e?"tesn:text-white":"tesn:text-esn-secondary-light")},text:"text-white teair:text-air-deepBlue tesn:text-white text-body2 text-center md:text-left",image:function(e,t){return c()("flex pb-6 justify-center items-center",e&&!t?"md:justify-start tesn:bg-black":!t&&"tesn:bg-white tesn:pt-4 tesn:px-4 tesn:h-[135px] teair:bg-air-lightBlue-light teair:py-0 teair:px-4","[&>div]:max-h-full [&>div]:flex [&>div]:items-center [&>div]:justify-center","[&>div>img]:max-h-full [&>div>img]:max-w-full [&>div>img]:h-auto [&>div>img]:w-auto")}},Qe=function(e){var t,n,a=e.image,s=e.link,o=e.title,c=e.text,d=e.mobileImage,u=e.type,m=void 0===u?qe.vf.Info:u,x=(0,D.Z)().isMobile,f=m===qe.vf.Info,p=!o&&!c,v=(0,h.useMemo)((function(){return x&&d?d:a}),[x,d,a]),g=(null===v||void 0===v?void 0:v.description)||o||"Image",b=null!==(t=null===v||void 0===v?void 0:v.width)&&void 0!==t?t:0,j=null!==(n=null===v||void 0===v?void 0:v.height)&&void 0!==n?n:0,w=f&&b>0?70*j/b:j,N=null;return v&&(b>0&&j>0)?N=(0,l.jsx)(T.Z,{src:v.src,fallbackSrc:v.fallbackSrc,alt:g,useIntrinsicSize:!0,width:f?70:b,height:w,className:Ge.image(f,p),basicLoader:v.isExternal}):v&&(N=(0,l.jsx)("div",{className:Ge.image(f,p),children:(0,l.jsx)("div",{className:f?"relative h-[70px] w-[70px]":"relative h-[135px] w-full",children:(0,l.jsx)(T.Z,{src:v.src,fallbackSrc:v.fallbackSrc,alt:g,objectFit:"contain",basicLoader:!0})})})),(0,l.jsxs)("div",{className:Ge.container(f,p),children:[N&&(s?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({}
1,s),{children:N})):N),(0,l.jsxs)("div",{className:f?"tesn:py-4 teair:py-4":"tesn:p-4 teair:p-4",children:[o&&(0,l.jsx)("h5",{className:Ge.title(f),children:o}),c&&(0,l.jsx)(W.ZP,{body:c,className:Ge.text,openLinksInNewTab:!0})]})]})};function Ke(){var e=(0,I.Z)(["\n  @media (min-width: ",") {\n    grid-template-columns: repeat(\n      ",",\n      minmax(0, 1fr)\n    );\n  }\n\n  @media (min-width: ",") {\n    grid-template-columns: repeat(",", minmax(0, 1fr));\n  }\n"]);return Ke=function(){return e},e}var Xe,Ye=new Map([[1,2],[2,2],[3,2],[4,2],[5,3],[6,3]]),Je=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,L.iv)(Ke(),E.screens.md,t?Ye.get(e):e,E.screens.xl,e)},$e={title:function(e){return c()("text-white uppercase text-h1 pb-4 md:pb-16","teair:text-air-deepBlue tesn:text-white teds:pb-6",e&&"text-center md:text-left")},container:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c()("grid gap-x-12 gap-y-10 teds:gap-3 md:teds:gap-x-5",e>1&&"'grid-cols-2' ".concat(Je(e,t)))}},et=$e,tt=function(e){var t=e.title,n=e.type,r=e.isTitleCenteredForMobile,a=e.items,s=void 0===a?[]:a,o=e.numberOfColumns,d=e.dynamicColumnsCountScaling,u=void 0===d||d,m=e.deactivateAdSlots;return(0,l.jsxs)("div",{className:c()("content-box teair:pt-14 tesn:pt-14 tels:pt-14",m&&"ml-auto"),children:[t&&(0,l.jsx)("h1",{className:et.title(r),children:t}),(0,l.jsx)("div",{className:et.container(o,u),children:s.map((function(e,t){return(0,l.jsx)(Qe,(0,i.Z)({type:n},e),"".concat(e.id,"-").concat(t))}))})]})},nt={creatorsContainer:"content-box relative flex justify-center flex-wrap space-x-4"},it=function(e){var t=e.tags;return(0,l.jsx)("div",{className:nt.creatorsContainer,children:t.map((function(e){return(0,l.jsx)(q.Z,{tag:e,className:"mt-2 md:mt-4"},e.name)}))})},rt=n(14924),at=n(86437),st=function(e){var t=e.fill,n=void 0===t?"#121113":t,i=e.className,r=void 0===i?"":i;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:r,children:(0,l.jsx)("path",{d:"M18 22H6C4.89543 22 4 21.1046 4 20.0001V4.00078C4 2.89626 4.89543 2.00087 6 2.00087H13C13.009 1.99971 13.018 1.99971 13.027 2.00087H13.033C13.0424 2.00383 13.0522 2.00584 13.062 2.00687C13.1502 2.01252 13.2373 2.02967 13.321 2.05787H13.336H13.351H13.363C13.3815 2.07079 13.3988 2.08517 13.415 2.10087C13.5239 2.14929 13.6232 2.21705 13.708 2.30086L19.708 8.3006C19.7918 8.38538 19.8596 8.48464 19.908 8.59358C19.917 8.61558 19.924 8.63658 19.931 8.65958L19.941 8.68758C19.9689 8.77097 19.9854 8.85775 19.99 8.94557C19.9909 8.95553 19.9932 8.96531 19.997 8.97457V8.98057C19.9986 8.98712 19.9996 8.99382 20 9.00057V20.0001C20 20.5305 19.7893 21.0392 19.4142 21.4142C19.0391 21.7893 18.5304 22 18 22ZM14.424 14.0003V19.0001H15.364V16.9602H16.824V16.1223H15.364V14.8413H17V14.0003H14.424ZM10.724 14.0003V19.0001H11.93C12.4359 19.025 12.9258 18.819 13.262 18.4402C13.6069 18.0001 13.7797 17.4494 13.748 16.8912V16.0813C13.7712 15.5289 13.5936 14.9869 13.248 14.5553C12.9226 14.185 12.4476 13.9811 11.955 14.0003H10.724ZM7 14.0003V19.0001H7.94V17.2412H8.566C8.98402 17.2643 9.39232 17.1096 9.69 16.8152C9.97408 16.4976 10.1214 16.0808 10.1 15.6553C10.1186 15.2195 9.97135 14.7929 9.688 14.4613C9.40772 14.1505 9.00309 13.9814 8.585 14.0003H7ZM13 4.00078V9.00057H18L13 4.00078ZM11.946 18.1622H11.664V14.8413H12.006C12.2489 14.827 12.4824 14.937 12.626 15.1333C12.7726 15.4366 12.8354 15.7735 12.808 16.1093V16.9782C12.83 17.298 12.7606 17.6173 12.608 17.8992C12.4441 18.0905 12.1965 18.1889 11.946 18.1622ZM8.585 16.4002H7.939V14.8413H8.594C8.75752 14.8431 8.90863 14.9288 8.994 15.0683C9.10222 15.2469 9.15447 15.4537 9.144 15.6623C9.15654 15.8568 9.1049 16.05 8.997 16.2123C8.89754 16.3371 8.74447 16.4069 8.585 16.4002Z",fill:n})})},lt=n(87053),ot=function(e){var t=e.files,n=e.downloadText,i=(0,h.useRef)(null),r=(0,h.useState)(!1),a=r[0],s=r[1];return(0,lt.Z)([i],(function(e){var t;a&&!(null===i||void 0===i||null===(t=i.current)||void 0===t?void 0:t.contains(null===e||void 0===e?void 0:e.target))&&s(!1)})),(0,l.jsxs)("div",{className:"max-w-[335px] relative mb-10",children:[(0,l.jsxs)("button",{className:"flex items-center",onClick:function(){s(!a)},children:[(0,l.jsx)("div",{className:"bg-black w-8 h-8 rounded-4 flex basis-8 grow-0 shrink-0",children:(0,l.jsx)(v.v,{className:c()("transform transition-transform m-auto",a?"rotate-180":"rotate-0"),fill:"white"})}),n&&(0,l.jsx)("div",{className:"text-xs ml-3 text-left",children:n})]}),a&&(0,l.jsxs)("div",{className:c()("w-60  py-2 rounded-2 bg-red-light text-black","shadow-[5px_5px_20px_rgba(0,0,0,0.4)]","absolute left-0 top-[calc(100%+1rem)]"),ref:i,children:[(0,l.jsx)("div",{className:c()("absolute bottom-full left-4 w-0 h-0 box-content","border-[7px] border-transparent border-b-[#FAF3F8]")}),t.map((function(e){return(0,l.jsx)("a",{download:!0,href:e.fields.file.url,target:"_blank",rel:"noreferrer",children:(0,l.jsxs)("div",{className:"flex w-full p-2 hover:bg-red-light-darker",children:[(0,l.jsx)("div",{className:"mr-2",children:(0,l.jsx)(st,{})}),(0,l.jsx)("div",{className:"whitespace-nowrap overflow-hidden text-ellipsis",children:e.fields.title})]})})}))]})]})},ct={contentContainer:"content-box",textContainer:"text-box text-body2 ml-0 mr-
1auto",heading1:"text-h5 mb-4 last:mb-0",heading2:"text-body1 font-semibold mb-4 last:mb-0",paragraph:"text-body3 mb-8 last:mb-0"},dt=function(e){var t,n=e.content,i=e.mediaFiles,r=e.mediaDownloadText;return(0,l.jsx)("div",{className:ct.contentContainer,children:(0,l.jsxs)("div",{className:ct.textContainer,children:[i&&(0,l.jsx)(ot,{files:i,downloadText:r}),n&&(0,l.jsx)(W.ZP,{body:n,options:{renderNode:(t={},(0,rt.Z)(t,at.BLOCKS.HEADING_1,(function(e,t){return(0,l.jsx)("h2",{className:ct.heading1,children:t})})),(0,rt.Z)(t,at.BLOCKS.HEADING_2,(function(e,t){return(0,l.jsx)("h3",{className:ct.heading2,children:t})})),(0,rt.Z)(t,at.BLOCKS.PARAGRAPH,(function(e,t){return(0,l.jsx)("p",{className:ct.paragraph,children:t})})),t)}})]})})},ut=function(e){var t=e.title;return(0,l.jsx)("div",{className:c()("bg-black",K),children:(0,l.jsx)("div",{className:"content-box -mb-4 md:-mb-2",children:(0,l.jsx)("h1",{className:"text-h1 text-pink mb-0",children:t})})})},mt=n(2877),xt=function(e){var t=e.ctaText,n=e.lotteryTitle,i=e.lotteryPot,r=e.initialLotteryState;return(0,l.jsx)(mt.Z,{ctaText:t,lotteryTitle:n,lotteryPot:i,initialLotteryState:r,isOversize:!0})},ht=n(88875),ft="absolute w-full h-full top-0 left-0",pt=function(e){var t=e.background,n=e.backgroundMobile,i=e.backgroundImageHeight,r=e.alt,a=e.children,s=e.theme,o=e.adaptiveBottomMargin,d="event"===s,u="act"===s,m=1===r.split(/\s/).filter(Boolean).length;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:c()("relative py-12 md:py-14 tesn:py-8",u&&"h-[432px] md:h-[464px] bg-gradient-to-t to-1/2 teair:from-white tesn:from-black tels:from-black",m?"mb-12 md:mb-14":"mb-22 sm:mb-24 md:mb-38"),style:o?{marginBottom:"".concat(o,"px")}:void 0,children:a}),(0,l.jsxs)("div",{className:"absolute top-0 w-screen 2xl:left-1/2 2xl:transform 2xl:-translate-x-1/2 -z-10",style:{height:null!==i&&void 0!==i?i:"100%"},children:[n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,alt:r,objectFit:"cover",objectPosition:"top",basicLoader:n.isExternal,className:"md:hidden object-cover object-center"}),(0,l.jsx)("div",{className:"md:hidden bg-gradient-to-t from-black to-transparent teair:from-transparent ".concat(ft)})]}):d&&(0,l.jsx)("div",{className:"md:hidden bg-gradient-from-tl bg-gradient-to-br from-air-gradientPink to-air-gradientBlue ".concat(ft)}),t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.Z,{src:t.src,fallbackSrc:t.fallbackSrc,alt:r,objectFit:"cover",objectPosition:"top",basicLoader:t.isExternal,className:c()(n?"hidden md:block":"block","object-cover object-center")}),(0,l.jsx)("div",{className:c()(n?"hidden md:block":"block","bg-gradient-to-t from-black to-transparent teair:from-transparent ".concat(ft))})]}):d&&(0,l.jsx)("div",{className:"hidden md:block bg-gradient-from-tl bg-gradient-to-br from-air-gradientPink to-air-gradientBlue ".concat(ft)})]})]})},vt=n(31702),gt={wrapper:"flex items-center rounded-full p-2px bg-black-light",item:function(e){return c()(e?"rounded-full text-black-light bg-red-light-darker":"text-gray-2","text-overline block px-3 py-1")}},bt=function(e){var t,n=e.activeIndex,i=e.children,r=e.className;return(0,l.jsx)("ul",{className:c()(gt.wrapper,r),children:null===(t=h.Children.map(i,(function(e,t){var i=gt.item(n===t);return h.isValidElement(e)?(0,l.jsx)("li",{children:h.cloneElement(e,{className:i})},t):(0,l.jsx)("li",{className:i,children:e},t)})))||void 0===t?void 0:t.filter(vt.Nf)})},jt=function(e){var t=e.activeLinkIndex,n=e.toggleLinksData,i=e.className,r=void 0===i?"":i;return(0,l.jsx)(bt,{activeIndex:t,className:r,children:n.map((function(e){return(0,l.jsx)(ae.Z,{href:e.href,children:e.text},e.href)}))})},wt={contentContainer:"md:content-box relative flex flex-col items-center justify-center",profileHeaderContainer:"content-box container py-16 relative",title:"relative mb-2 text-h4 text-center max-w-xl teair:text-air-deepBlue tesn:text-white tels:text-white",description:"relative text-body1 text-gray-3 text-center max-w-xl teair:text-air-deepBlue tesn:text-esn-secondary-superLight",iconActionsBar:"md:content-box relative flex justify-center mt-6",shortInfo:"text-body1 mt-12 tels:text-gray-3"},Nt=function(e,t){var n=[];return e&&n.push((0,vt.p6)(e,"dd.MM.yyyy")),t&&n.push(t),n.join(", ")},yt=function(e){var t=e.title,n=e.background,i=e.backgroundMobile,r=e.theme,a=e.sessionDate,s=void 0===a?"":a,o=e.sessionLocation,d=void 0===o?"":o,u=e.deactivateAdSlots,x=(0,h.useRef)(null),f=x.current?x.current.offsetHeight/2:void 0,p=(0,h.useRef)(null),v=(0,h.useState)(128),j=v[0],N=v[1],y=(0,w.Z)(),Z=(0,m.useRouter)(),k=t.split(RegExp("(?<=^\\S+)\\s"));return(0,h.useEffect)((function(){var e=x.current,t=p.current,n=function(){if(e&&t){e.style.fontSize="".concat(j,"px");for(var n=t.offsetWidth-40,i=j;Math.abs(e.offsetWidth-n)>8&&i>=32&&i<=128;){e.offsetWidth<n&&i<128&&i++,e.offsetWidth>n&&i>32&&i--,e.style.fontSize="".concat(i,"px");break}N(i)}};return n(),window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}}),[j]),(0,l.jsxs)(pt,{background:n,backgroundMobile:i,alt:t,theme:r,adaptiveBottomMargin:f?f+32:void 0,children:[(0,l.jsx)("div",{className:c()("content-box py-16 relative",u&&"ml-auto"),ref:p,children:(0,l.jsx)("div",{className:"hidden md:block absolute top-12 z-10",children:(0,l.jsxs)("button",{className:"flex items-center",onClick:function(){return b(Z)},children:[(0,l.jsx)(ht.zE,{className:"transform rotate-180",arrowClassName:"fill-black-light teair:fill-white tesn:fill-esn-secondary-dark",backgroundClassName:"fill-white teair:fill-air-deepBlue tesn:fill-white"}),(0,l.jsx)("span",{className:"text-body1 font-semibold ml-2",children:(0,g.Z)(y["go-back-button"])||"Zur\xfcck"})]})})}),(0,l.jsxs)("div",{className:c()("flex flex-col items-center justify-center","absolute left-1/2 translate-x-[-50%] bottom-0 translate-y-1/2"),children:[(0,l.jsx)("h1",{ref:x,style:{fontSize:"".concat(j,"px")},className:c()("font-syne uppercase text-center whitespace-nowrap font-bold leading-[1] md:leading-[0.8]","tesn:text-white tels:text-white"),children:k.map((function(e){return(0,l.jsx)("div",{children:e})}))}),(s||d)&&(0,l.jsx)("h2",{className:wt.shortInfo,children:(0,l.jsx)("span",{children:Nt(s,d)})})]})]})},Zt="overflow-hidden rounded-2 mx-auto mb-5",kt={profileImageContainer:"w-38 md:w-40 mb-4",categoryImageContainer:"mb-4 rounded-full bg-black-light flex items-center justify-center shadow-lg w-40 h-40 overflow-hidden",profileImage:"block object-cover object-center drop-shadow-lg rounded-full overflow-hidden aspect aspect-1-1",podcastImageContainer:c()("w-40 h-40",Zt),formatImageContainer:c()("w-64 h-36",Zt),showImageContainer:c()("w-64 h-36",Zt)},Ct=function(e){var t=e.theme,n=e.image,i=e.title;return(0,l.jsxs)(l.Fragment,{children:["category"===t&&(0,l.jsx)("div",{className:kt.categoryImageContainer,children:(0,l.jsx)("div",{className:"w-16 h-16",children:(0,l.jsx)(T.Z,{src:n.src,alt:i,objectFit:"fill"})})}),"profile"===t&&(0,l.jsx)("div",{className:kt.profileImageContainer,children:(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,alt:i,className:kt.profileImage,basicLoader:n.isExternal})}),"podcast"===t&&(0,l.jsx)("div",{className:kt.podcastImageContainer,children:(0,l.jsx)(T.Z,{src:n.src,alt:i,className:"aspect aspect-1-1"})}),"formate"===t&&(0,l.jsx)("div",{className:kt.formatImageContainer,children:(0,l.jsx)(T.Z,{src:null===n||void 0===n?void 0:n.src,alt:i})}),"show"===t&&(0,l.jsx)("div",{className:kt.showImageContainer,children:(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,alt:i,basicLoader:n.isExternal})}),"event"===t&&(0,l.jsx)("div",{className:"w-36 mb-6 md:mb-4 md:w-40",children:(0,l.jsx)(T.Z,{src:n.src,alt:i,className:"aspect aspect-1-1 rounded-full overflow-hidden"})}),"playlist"===t&&(0,l.jsx)("div",{className:kt.categoryImageContainer,children:(0,l.jsx)("div",{className:"w-full h-full",children:(0,l.jsx)(T.Z,{src:n.src,alt:i,objectFit:"fill"})})})]})},St=function(e){var t=e.title,n=e.description,i=e.image,r=e.background,a=e.backgroundMobile,s=e.theme,o=e.areActionIconsVisible,c=void 0!==o&&o,d=e.slug,u=e.tags,x=e.toggleData,h=void 0===x?[]:x,f=e.sessionDate,p=void 0===f?"":f,v=e.sessionLocation,j=void 0===v?"":v,N=e.deactivateAdSlots,y=(0,m.useRouter)(),Z=(0,w.Z)(),k=h.findIndex((function(e){return d&&e.href.includes(d)})),C=ye({includeHash:!0});return"act"===s?(0,l.jsx)(yt,{title:t,description:n,theme:s,background:r,backgroundMobile:a,sessionDate:p,sessionLocation:j,deactivateAdSlots:N}):(0,l.jsx)(pt,{background:r,backgroundMobile:a,alt:t,theme:s,children:(0,l.jsxs)("div",{className:wt.profileHeaderContainer,children:[(0,l.jsx)("div",{className:"hidden md:block absolute top-12 z-10",children:(0,l.jsxs)("button",{className:"flex items-center",onClick:function(){return b(y)},children:[(0,l.jsx)(ht.zE,{className:"transform rotate-180",arrowClassName:"fill-black-light teair:fill-air-mediumBlue tesn:fill-esn-secondary-dark",backgroundClassName:"fill-white teair:fill-air-lemon tesn:fill-white"}),(0,l.jsx)("span",{className:"text-body1 font-semibold ml-2",children:(0,g.Z)(Z["go-back-button"])||"Zur\xfcck"})]})}),(0,l.jsxs)("div",{className:wt.contentContainer,children:[i&&(0,l.jsx)(Ct,{image:i,theme:s,title:t}),h.length>1&&(0,l.jsx)(jt,{activeLinkIndex:k,toggleLinksData:h,className:"mb-4"}),(0,l.jsx)("h1",{className:wt.title,children:t}),n&&(0,l.jsx)("div",{className:wt.description,children:"string"===typeof n?n:(0,l.jsx)(W.ZP,{body:n,options:{renderNode:(0,rt.Z)({},at.INLINES.HYPERLINK,(0,W.iB)(wt.description))}})})]}),c&&(0,l.jsx)("div",{className:wt.iconActionsBar,children:d&&(0,l.jsx)(O.Z,{urlToShare:C})}),!!(null===u||void 0===u?void 0:u.length)&&(0,l.jsx)(it,{tags:u})]})})},Tt=n(97401),It=function(e){var t=e.className,n=e.fill,i=void 0===n?"currentColor":n;return(0,l.jsxs)("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",className:t,children:[(0,l.jsx)("path",{d:"M15.9997 5.93542C15.9584 8.12362 15.1997 10.0143 13.6584 11.5802C13.3028 11.9418 12.7054 11.9559 12.3521 11.6181C11.967 11.2503 11.9353 10.6626 12.3028 10.2818C12.9891 9.57051 13.5276 8.768 13.8107 7.81701C14.4913 5.52907 14.0264 3.49276 12.4308 1.71773C12.3487 1.62648 12.2637 1.53863 12.1975 1.43379C11.9489 1.03877 12.0288 0.496962 12.3776 0.214724C12.7513 -0.0873496 13.3147 -0.0703473 13.647 0.263464C14.8565 1.47799 15.5988 2.93509 15.8865 4.62455C15.9601 5.05754 15.9963 5.4945 15.9997 5.93542Z",fill:i}),(0,l.jsx)("path",{d:"M-0.00047957 5.54885C0.0397228 3.73357 0.78828 1.84802 2.32277 0.288911C2.68629 -0.0806055 3.30688 -0.0970411 3.65228 0.247538C4.03562 0.629523 4.04411 1.21837 3.6619 1.60829C2.76669 2.52074 2.18064 3.59869 1.97567 4.86196C1.65914 6.81495 2.15573 8.54522 3.46372 10.
10357C3.57584 10.1633 3.7055 10.2743 3.7995 10.4183C4.06336 10.823 3.99202 11.3393 3.62567 11.6464C3.26611 11.9479 2.70611 11.9304 2.37146 11.5988C1.39471 10.6331 0.717502 9.48714 0.326802 8.1706C0.107671 7.43327 -0.00161203 6.6795 -0.00047957 5.54885Z",fill:i}),(0,l.jsx)("path",{d:"M12.7203 5.94019C12.6966 7.23406 12.243 8.34941 11.3268 9.27093C10.9973 9.60248 10.4571 9.63081 10.0845 9.34121C9.70515 9.04593 9.60889 8.5166 9.85803 8.10798C9.93731 7.97763 10.0477 7.87334 10.1445 7.75773C11.0947 6.61744 11.0437 5.06344 10.02 3.95545C9.62531 3.5287 9.61852 2.96535 10.003 2.58677C10.3552 2.23936 10.9616 2.23539 11.3093 2.5828C12.2362 3.50773 12.6999 4.62874 12.7203 5.94019Z",fill:i}),(0,l.jsx)("path",{d:"M3.28066 5.92603C3.30161 4.6435 3.74157 3.52871 4.64131 2.60889C4.91933 2.32495 5.27096 2.24788 5.64581 2.37709C6.03254 2.51028 6.23809 2.81008 6.27376 3.20794C6.29867 3.48847 6.1826 3.73104 5.98272 3.93393C5.58126 4.34086 5.31456 4.82315 5.21151 5.38763C5.0439 6.30519 5.27153 7.11619 5.88532 7.81896C5.9629 7.90737 6.04274 7.99578 6.10729 8.09382C6.37058 8.49508 6.28622 9.04425 5.92269 9.33386C5.53992 9.6382 4.98785 9.60306 4.64698 9.25508C3.8837 8.47638 3.43807 7.54465 3.30444 6.46331C3.29368 6.37433 3.28576 6.28478 3.28236 6.19524C3.27783 6.10569 3.28066 6.01615 3.28066 5.92603Z",fill:i}),(0,l.jsx)("path",{d:"M7.94025 4.50359C8.68258 4.44749 9.35866 5.0556 9.42321 5.836C9.48663 6.60507 8.87906 7.29196 8.08011 7.35601C7.34967 7.41438 6.63282 6.80853 6.58016 6.08877C6.51618 5.22165 7.07618 4.56877 7.94025 4.50359Z",fill:i})]})},Lt=n(64710),Et={itemWrapper:function(e){return c()("flex w-full justify-between border-b border-black-light h-20",e&&"bg-gray-1 bg-opacity-30")},imageWrapper:"h-20 w-20 flex-grow flex-shrink-0",artistTitleWrapper:"p-4 overflow-hidden",trackDurationArtist:"flex",artist:"text-overline text-gray-2 line-clamp-1",title:"text-lead line-clamp-1",leftSide:"flex flex-shrink-1 overflow-hidden",duration:function(e){return c()("text-overline text-pink",e?"hidden md:block p-4 pr-6 w-20":"md:hidden mr-2")},rightSide:"flex items-center pr-2 md:pr-4",live:"bg-red rounded-full py-0.5 px-2 items-center hidden md:flex mr-4",liveText:"text-overline ml-2",audioProgressBar:"w-10 h-10 md:w-14 md:h-14"},Mt=function(e){var t=e.artist,n=e.title,i=e.imageUrl,r=e.audioUrl,a=e.playFrom,s=e.isLive,o=e.isActive,c=e.onPlay,d=e.onPause,u=e.audioTimeUpdateEvent,m=(0,vt.p6)(a,"HH:mm");return(0,l.jsxs)("li",{className:Et.itemWrapper(o),children:[(0,l.jsxs)("div",{className:Et.leftSide,children:[(0,l.jsx)("div",{className:Et.duration(!0),children:m}),(0,l.jsx)("div",{className:Et.imageWrapper,children:i?(0,l.jsx)(T.Z,{src:i,alt:n}):(0,l.jsx)(Lt.Z,{})}),(0,l.jsxs)("div",{className:Et.artistTitleWrapper,children:[(0,l.jsxs)("div",{className:Et.trackDurationArtist,children:[(0,l.jsx)("span",{className:Et.duration(!1),children:m}),t?(0,l.jsx)("span",{className:Et.artist,children:t}):null]}),(0,l.jsx)("div",{className:Et.title,children:n})]})]}),(0,l.jsxs)("div",{className:Et.rightSide,children:[s&&(0,l.jsxs)("div",{className:Et.live,children:[(0,l.jsx)(It,{}),(0,l.jsx)("span",{className:Et.liveText,children:"Live"})]}),r&&(0,l.jsx)(Tt.Z,{className:Et.audioProgressBar,onPlay:function(){var e;null===(e=window.dataLayer)||void 0===e||e.push({event:"playlist_item_play",media_title:null!==n&&void 0!==n?n:"",media_url:null!==r&&void 0!==r?r:"",media_artist:null!==t&&void 0!==t?t:"Energy"}),c()},onPause:d,audioTimeUpdateEvent:u,isActive:o,borderWidth:2})]})]})},Pt=n(34645),At=n(81289),Ft=n(83856),Bt=function(){var e=(0,J.Z)((function(e){var t,n=arguments;return(0,$.__generator)(this,(function(i){switch(i.label){case 0:return t=n.length>1&&void 0!==n[1]?n[1]:{},[4,fetch(e,t)];case 1:return[2,i.sent().json()]}}))}));return function(t){return e.apply(this,arguments)}}(),_t=Bt,Dt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(r,a){if(a&&!a.length)return null;var s=(0,At.Z)(t,r),l=(0,At.Z)(t,r+1),o=new URLSearchParams((0,i.Z)({},n?{future:"true"}:{createdAtMax:(0,re.Z)(s,"yyyy-MM-dd HH:mm"),createdAtMin:(0,re.Z)(l,"yyyy-MM-dd HH:mm")}
1));return"/api/channels/".concat(e,"/playouts?").concat(o.toString())},a=(0,Ft.ZP)(r,_t,{revalidateOnMount:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateFirstPage:!1}),s=a.data,l=a.setSize,o=a.isValidating,c=(0,h.useCallback)((function(){return l((function(e){return e+1}))}),[l]),d=(0,h.useMemo)((function(){return null===s||void 0===s?void 0:s.flat()}),[s]),u=null===d||void 0===d?void 0:d.filter((function(e){return void 0!==e&&null!==e})),m=null===s||void 0===s?void 0:s[s.length-1],x=0===(null===m||void 0===m?void 0:m.length);return{isLoading:o,data:u,loadMore:c,isAllDataLoaded:x}},Rt={wrapper:"content-box xl:max-w-5xl lg:max-w-3xl md:max-w-none py-16 relative",header:"flex justify-between items-end mb-6",heading:"text-h2 text-pink",listWrapper:"relative flex flex-col items-center justify-center border-t border-black-light"};!function(e){e[e.Last=0]="Last",e[e.Next=1]="Next"}(Xe||(Xe={}));var zt=function(e){var t=e.playlistId,n=(0,w.Z)(),a=(0,h.useState)(Xe.Last),s=a[0],o=a[1],c=(0,f.v9)(we.FK),d=(0,f.v9)(we.s3),u=(0,h.useMemo)((function(){return new Date}),[s]),m=s===Xe.Next,x=Dt(t,u,m),p=x.isLoading,v=x.data,b=x.loadMore,j=x.isAllDataLoaded,N=function(e){p||o(e)},y=m?function(e){if(!e)return[];var t=new Date,n=(0,vt.p6)(t.toString(),"HH:mm");return e.filter((function(e){return(0,vt.p6)(e.playFrom,"HH:mm")>n}))}(v):v,Z=!!(null===y||void 0===y?void 0:y.length),k=(0,Pt.Z)({autoPlaylist:y}),S=k.onPlay,T=k.onPause,I=k.changeEvent;return(0,l.jsxs)("div",{className:Rt.wrapper,children:[(0,l.jsxs)("div",{className:Rt.header,children:[(0,l.jsx)("h2",{className:Rt.heading,children:(0,g.Z)(n["playlist-title"])||"Playlist"}),(0,l.jsxs)(bt,{activeIndex:s,children:[(0,l.jsx)("button",{type:"button",onClick:function(){return N(Xe.Last)},children:(0,g.Z)(n.last)||"Zuletzt"}),(0,l.jsx)("button",{type:"button",onClick:function(){return N(Xe.Next)},children:(0,g.Z)(n.next)||"N\xe4chste"})]})]}),!p&&!Z&&(0,l.jsx)("div",{className:"flex w-full justify-center items-center border-b-1 border-black-light h-20",children:(0,g.Z)(n["content-not-loaded"])||"Inhalt konnte nicht geladen werden."}),Z&&(0,l.jsx)("ul",{className:Rt.listWrapper,children:y.map((function(e,t){return(0,h.createElement)(Mt,(0,r.Z)((0,i.Z)({},e),{key:t,isLive:!m&&0===t,isActive:(null===c||void 0===c?void 0:c.audioUrl)===(null===e||void 0===e?void 0:e.audioUrl)&&d,onPlay:function(){return S(t,e)},onPause:function(){return T()},audioTimeUpdateEvent:I}))}))}),p&&(0,l.jsx)("div",{className:"flex w-full justify-center items-center mt-6",children:(0,l.jsx)(C.Z,{className:"w-20 h-20"})}),!m&&Z&&!j&&!p&&(0,l.jsx)("div",{className:"flex justify-end mt-10",children:(0,l.jsx)(ee.Z,{text:(0,g.Z)(n["playlist-load-more"])||"Mehr laden",size:"XL",onClick:b})})]})},Ht={link:"text-body1 text-red-medium tesn:text-esn-primary tesn:hover:text-esn-primary-light teair:text-air-mediumBlue teair:hover:text-air-skyBlue underline hover:text-red font-semibold"},Wt=function(e){var t=e.className,n=e.link;return(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({className:c()(Ht.link,t)},n),{children:n.text}))},Ot={contentWrapper:"bg-black-light rounded-2 md:rounded-4 flex overflow-hidden cursor-pointer hover:bg-gray-1 tesn:bg-esn-secondary-dark tesn:hover:bg-esn-secondary teair:bg-air-lightBlue teair:hover:bg-opacity-50",imageContainer:"w-24 h-24 flex-shrink-0",contentContainer:"px-4 md:px-5 flex-1 self-center",categories:"text-overline text-light-red md:text-gray-3 tesn:text-esn-secondary-light teair:text-air-skyBlue",title:"text-body1 text-pink line-clamp-2 tesn:text-white teair:text-air-mediumBlue font-semibold",creators:"text-overline text-gray-3 md:text-white line-clamp-1 teair:text-air-skyBlue",brandedContent:"text-overline text-gray-2 mt-1 md:mt-2 cursor-default"},Vt=function(e){return e.join(", ")},Ut=function(e){var t=e.link,n=e.title,a=e.image,s=e.creators,o=e.isSponsoredContent,c=e.categories,d=(0,w.Z)()["sponsored-article-teaser-text"];return(0,l.jsxs)("article",{children:[(0,l.jsxs)(ae.Z,(0,r.Z)((0,i.Z)({},t),{className:Ot.contentWrapper,children:[a&&(0,l.jsx)("figure",{className:Ot.imageContainer,children:(0,l.jsx)(T.Z,{src:a.src,fallbackSrc:a.fallbackSrc,objectFit:"cover",basicLoader:a.isExternal})}),(0,l.jsxs)("div",{className:Ot.contentContainer,children:[(0,l.jsx)("div",{className:Ot.categories,children:(null===c||void 0===c?void 0:c.length)?Vt(c):null}),(0,l.jsx)("div",{className:Ot.title,children:n}),(0,l.jsx)("div",{className:Ot.creators,children:(null===s||void 0===s?void 0:s.length)?Vt(s):null})]})]})),o&&(0,l.jsx)(W.ZP,{className:Ot.brandedContent,body:d})]})},qt={contentWrapper:"content-box",header:"flex flex-col md:flex-row items-baseline mb-5",titleWrapper:"text-h2 text-pink mb-4 md:mb-5 tesn:text-white teair:text-air-deepBlue",articlesWrapper:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-x-5 md:gap-y-8"},Gt=function(e){var t=e.title,n=e.articles,r=e.link,a=e.deactivateAdSlots;return(0,l.jsxs)("div",{className:c()(qt.contentWrapper,a&&"ml-auto"),children:[t&&(0,l.jsxs)("div",{className:qt.header,children:[(0,l.jsx)("h2",{className:qt.titleWrapper,children:t}),r&&(0,l.jsx)(Wt,{className:"md:ml-4",link:r})]}),(0,l.jsx)("div",{className:qt.articlesWrapper,children:n.map((function(e){return(0,l.jsx)(Ut,(0,i.Z)({},e),e.id)}))})]})},Qt=n(59886);function Kt(){var e=(0,I.Z)(["\n  label::before {\n    content: none;\n  }\n"]);return Kt=function(){return e},e}function Xt(){var e=(0,I.Z)(["\n  transform-origin: 20% center;\n\n  &:before {\n    display: block;\n    transition: all 0.2s ease;\n    width: 2.3em;\n    height: 2.3em;\n    top: 0.25em;\n    left: 0.25em;\n    border-radius: 2em;\n    border: 2px solid #88cf8f;\n  }\n"]);return Xt=function(){return e},e}function Yt(){var e=(0,I.Z)(["\n  transform: translateY(-50%);\n\n  &:before {\n    width: 16px;\n    transform: rotate(-45deg) translate(-5px, 11px);\n  }\n\n  &:after {\n    width: 16px;\n    transform: rotate(45deg) translate(11px, 5px);\n  }\n"]);return Yt=function(){return e},e}function Jt(){var e=(0,I.Z)(["\n  transform: rotate(360deg) translateY(-50%);\n\n  &::before {\n    width: 14px;\n    transform: rotate(-45deg) translate(-3px, 14px);\n  }\n\n  &::after {\n    width: 8px;\n    transform: rotate(45deg) translate(13px, 7px);\n  }\n"]);return Jt=function(){return e},e}function $t(){var e=(0,I.Z)(["\n  ",";\n\n  &::before,\n  &::after {\n    content: '';\n    position: absolute;\n    height: 2px;\n    border-radius: 10px;\n    background: #fff;\n    transition: 0.3s ease;\n  }\n"]);return $t=function(){return e},e}var en,tn,nn,rn=(0,L.iv)(Kt()),an=(0,L.iv)(Xt()),sn=(0,L.iv)(Yt()),ln=(0,L.iv)(Jt()),on={wrapper:"flex items-center",checkCross:c()(rn,"md:flex"),checkbox:"invisible left-0 top-0 absolute opacity-0",toggleItem:c()(an,"bg-black-light h-8 w-14 inline-block rounded-full relative cursor-pointer transition-all duration-300"),check:function(e){return c()(function(e){return(0,L.iv)($t(),e?ln:sn)}(e),"bg-black h-6 w-6 rounded-full absolute top-1/2 transition-all duration-300 ease",e?"left-6":"left-1")},switchText:"text-small text-gray-2 mb-1 md:mb-0 ml-2 md:ml-0 md:mr-2 md:flex md:items-center"}
1,cn=function(e){var t=e.checked,n=void 0!==t&&t,i=e.onChange,r=e.switchText,a=void 0===r?"":r;return(0,l.jsx)("div",{className:on.wrapper,children:(0,l.jsxs)("div",{className:on.checkCross,children:[a&&(0,l.jsx)("div",{className:on.switchText,children:a}),(0,l.jsx)("input",{id:"checkCross",type:"checkbox",className:on.checkbox,checked:n,onChange:function(e){i(e.target.checked)}}),(0,l.jsx)("label",{className:on.toggleItem,htmlFor:"checkCross",children:(0,l.jsx)("div",{className:on.check(n)})})]})})},dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(t,n){if(n&&!n.length)return null;var r=t+1,a=(0,vt.ZN)(r),s=a.startDate,l=a.endDate,o=new URLSearchParams((0,i.Z)({entryType:"soundpiece",page:"1",currentPage:r.toString(),perPage:e},s&&l&&{startDate:s,endDate:l}));return"/api/taggingtool/soundpieces?".concat(o.toString())},r=(0,Ft.ZP)(n,function(){var e=(0,J.Z)((function(e){var n;return(0,$.__generator)(this,(function(r){switch(r.label){case 0:return n=new URLSearchParams((0,i.Z)({},!!t.length&&{idsToExclude:t.join(",")})),[4,fetch("".concat(e,"&").concat(n.toString()))];case 1:return[2,r.sent().json()]}}))}));return function(t){return e.apply(this,arguments)}}(),{initialSize:0,revalidateOnMount:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateFirstPage:!1}),a=r.data,s=r.setSize,l=r.isValidating,o=(0,h.useCallback)((function(){return s((function(e){return e+1}))}),[s]),c=(0,h.useMemo)((function(){return null===a||void 0===a?void 0:a.flat()}),[a]),d=null===a||void 0===a?void 0:a[a.length-1],u=0===(null===d||void 0===d?void 0:d.length),m=u||d&&(null===d||void 0===d?void 0:d.length)<+e;return{isLoading:l,data:c,loadMore:o,isAllDataLoaded:m}},un=function(e){var t=e.currentEntry,n=e.entries,a=e.link,o=(0,w.Z)(),c=(0,h.useState)(!1),d=c[0],u=c[1],m=(0,h.useState)((function(){return[t.id].concat((0,s.Z)(n.map((function(e){return e.id}))))})),x=m[0],p=m[1],v=(0,Pt.Z)(),b=v.onPlay,j=v.onPause,N=v.changeEvent,y=v.setIsAutoPlay,Z=dn("10",x),k=Z.isLoading,S=Z.data,T=Z.loadMore,I=Z.isAllDataLoaded,L=(0,f.v9)(we.FK),E=(0,f.v9)(we.s3),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,n){var a=n+e+1;return(0,l.jsx)(Qt.Z,(0,r.Z)((0,i.Z)({},t),{isActive:P(t),onPlay:function(){return b(a,t)},onPause:j,audioTimeUpdateEvent:N,duration:t.duration}),t.id)}},P=function(e){return!!L&&"id"in L&&L.id===e.id&&E};return(0,h.useEffect)((function(){if(null===S||void 0===S?void 0:S.length){var e=n.map((function(e){return e.id})),i=S.map((function(e){return e.id}));p([t.id].concat((0,s.Z)(e),(0,s.Z)(i)))}}),[t.id,S,n]),(0,l.jsxs)("div",{className:"content-box",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"text-h1 text-pink mb-4 md:mb-8",children:(0,g.Z)(o["audio-detail-audio-snippet"])||"Audio snippet"}),(0,l.jsx)(Qt.Z,(0,r.Z)((0,i.Z)({},t),{isActive:P(t),onPlay:function(){return b(0,t)},onPause:j,audioTimeUpdateEvent:N,duration:t.duration}))]}),(0,l.jsx)("div",{className:"mt-16 md:mt-22",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between items-start md:items-center",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row items-baseline",children:[(0,l.jsx)("h2",{className:"text-h2 text-pink",children:(0,g.Z)(o["audio-detail-also-interesting"])||"Auch interessant"}),(0,l.jsx)(Wt,{link:a,className:"md:ml-4"})]}),(0,l.jsx)("div",{className:"mb-0 md:pt-1 mt-4 md:mt-0",children:(0,l.jsx)(cn,{checked:d,onChange:function(e){u(e),y(e)},switchText:(0,g.Z)(o["switch-text-autoplay"])||"Autoplay"})})]})}),(0,l.jsx)("div",{className:"mt-4 md:mt-6",children:(0,l.jsxs)("ul",{children:[n.map(M()),null===S||void 0===S?void 0:S.map(M(5))]})}),k?(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(C.Z,{id:"loading-soundpices-icon",className:"h-12 w-12"})}):I?null:(0,l.jsx)("div",{className:"flex justify-end mb-4",children:(0,l.jsx)(ee.Z,{text:(0,g.Z)(o["audio-detail-load-more"])||"Mehr laden",onClick:T})})]})},mn=n(16299),xn=n(66514),hn=(en={},(0,rt.Z)(en,xn.Lz.Default,"grid-cols-2 md:grid-cols-3 2xl:grid-cols-4 gap-4"),(0,rt.Z)(en,xn.Lz.Categories,"grid-cols-3 md:grid-cols-5 xl:grid-cols-8 gap-4"),(0,rt.Z)(en,xn.Lz.Memes,"grid-cols-2 md:grid-cols-3 gap-x-2 md:gap-x-4 gap-y-12 grid-flow-row-dense"),(0,rt.Z)(en,xn.Lz.PodcastsCreatorsChannels,"grid-cols-2 gap-3 md:grid-cols-5 md:gap-4 xl:gap-y-12"),(0,rt.Z)(en,xn.Lz.Videos,"grid-cols-2 md:grid-cols-3 2xl:grid-cols-4 gap-x-2 md:gap-x-4 gap-y-12 grid-flow-row-dense"),(0,rt.Z)(en,xn.Lz.Stations,"grid-cols-2 md:grid-cols-4 2xl:grid-cols-5 ga
1p-4 md:gap-12"),(0,rt.Z)(en,xn.Lz.Prizes,"grid-cols-2 md:grid-cols-3 2xl:grid-cols-4 gap-x-2 md:gap-x-4 gap-y-12 grid-flow-row-dense"),(0,rt.Z)(en,xn.Lz.Contact,"grid-cols-2 gap-3 md:grid-cols-6 md:gap-x-5"),en),fn={wrapper:function(e){return"grid ".concat(hn[e])},loadingIcon:function(e){return c()(!e&&"mt-4","w-12 h-12 text-center mx-auto")},buttonContainer:"flex justify-center mt-4 mb-8"},pn=function(e){var t=e.teaserGroup,n=e.teasers,a=e.isLoading,s=void 0!==a&&a,o=e.isError,c=void 0!==o&&o,d=e.isEmpty,u=void 0!==d&&d,m=e.showLoadMore,x=void 0!==m&&m,h=e.onLoadMore,p=void 0===h?function(){return null}:h,v=e.loadMoreText,b=void 0===v?"":v,j=(0,w.Z)(),N=b||(0,g.Z)(j["load-more-cta"])||"",y=(0,f.v9)(ie.Rg),Z=(0,ne.Z)(y);return c?(0,l.jsx)("div",{children:(0,g.Z)(j["content-not-loaded"])}):u&&!s?(0,l.jsx)("div",{children:(0,g.Z)(j["content-not-found"])}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:fn.wrapper(t),children:n}),x&&!!n.length&&(0,l.jsx)("div",{className:fn.buttonContainer,children:(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},Z),{text:N,onClick:function(){return!s&&p()}}))}),s&&(0,l.jsx)(C.Z,{className:fn.loadingIcon(u)})]})},vn=n(58486),gn=function(e){var t=e.title,n=e.showTitle,i=e.categories.map(vn.Z).filter(vt.Nf);return(0,l.jsxs)("div",{className:"content-box",children:[n&&(0,l.jsx)("h4",{className:"text-h4 text-pink mb-6",children:t}),(0,l.jsx)(pn,{teaserGroup:xn.Lz.Categories,teasers:i,isEmpty:0===i.length})]})},bn=n(12628),jn=n(50730),wn=n(42283),Nn=n(70698),yn=n(15987),Zn=n(35429),kn=n(89646),Cn=n(73426),Sn=function(e){var t,n=e.register,a=e.errors,s=e.submitFailed,o=(0,w.Z)(),c=(0,g.Z)(o["contactform-email-label"]),d=(0,g.Z)(o["contactform-email-placeholder"]),u=(0,g.Z)(o["contactform-email-error"])||"Bitte gib eine E-Mail-Adresse ein",m=(0,g.Z)(o["contactform-invalid-email"])||"Bitte gib eine g\xfcltige Email-Adresse ein";return(0,l.jsx)("div",{className:"flex flex-wrap mt-6 items-start",children:(0,l.jsx)(Cn.Z,(0,r.Z)((0,i.Z)({},n("email",{required:u,pattern:{value:_.LW,message:m}})),{id:"email",label:c||"",showLabel:!0,type:"email",placeholder:d||"",containerClassName:"flex flex-col md:mr-4",error:null===a||void 0===a||null===(t=a.email)||void 0===t?void 0:t.message,submitFailed:s}))})},Tn=n(99534),In=n(64236),Ln=n(61452),En=(0,h.forwardRef)((function(e,t){var n=e.id,a=e.label,s=e.showLabel,o=e.variant,d=void 0===o?"newsletter":o,u=e.disabled,m=e.containerClassName,x=e.className,f=e.helperText,p=e.error,v=e.submitFailed,g=(0,Tn.Z)(e,["id","label","showLabel","variant","disabled","containerClassName","className","helperText","error","submitFailed"]),b=(0,h.useState)(!1),j=b[0],w=b[1],N=!!p;return(0,h.useEffect)((function(){v&&w(!0)}),[v]),(0,l.jsx)(In.Z,{id:n,label:a,showLabel:s,className:m,helperText:f,error:p,blur:j,children:(0,l.jsx)("textarea",(0,r.Z)((0,i.Z)({},g),{ref:t,id:n,disabled:u,className:c()(Ln.Z.input(d,N,j),x),onBlur:function(){return w(!0)}}))})})),Mn=function(e){var t,n=e.register,a=e.errors,s=e.submitFailed,o=(0,Tn.Z)(e,["register","errors","submitFailed"]),c=(0,w.Z)(),d=(0,g.Z)(c["contactform-message-placeholder"]),u=(0,g.Z)(c["contactform-message-error"])||"Bitte gib eine Nachricht ein";return(0,l.jsx)("div",{className:"flex flex-wrap mt-6 items-start",children:(0,l.jsx)(En,(0,i.Z)((0,r.Z)((0,i.Z)({},n("message",{required:u})),{id:"message",label:"Nachricht",showLabel:!1,placeholder:d||"",containerClassName:"md:mr-4",error:null===a||void 0===a||null===(t=a.message)||void 0===t?void 0:t.message,submitFailed:s,rows:3}),o))})},Pn=(0,h.forwardRef)((function(e,t){var n,a,s=e.register,o=e.errors,d=(0,w.Z)(),u=null===(n=(0,g.Z)(d["contactform-stations"]))||void 0===n?void 0:n.split(";"),m=(0,g.Z)(d["contactform-station-error"])||"Bitte w\xe4hle eine Station aus.";return(0,l.jsxs)("div",{className:"flex flex-wrap mt-6 items-start relative pb-6",children:[u&&u.map((function(e){return(0,l.jsxs)("label",{className:"mr-8 whitespace-nowrap flex flex-row gap-3 items-center text-body2 mb-2",children:[(0,l.jsx)("input",(0,r.Z)((0,i.Z)({},s("station",{required:m})),{ref:t,type:"radio",value:e,className:"hidden peer"})),(0,l.jsx)("div",{className:c()("w-6 h-6 rounded-full","bg-black bg-opacity-50 border border-gray-2 box-border","flex items-center justify-center","peer-checked:after:w-4 peer-checked:after:h-4","peer-checked:after:bg-gray-4 peer-checked:after:rounded-full")}),e]})})),(null===o||void 0===o||null===(a=o.station)||void 0===a?void 0:a.message)&&(0,l.jsx)("p",{className:"text-red-medium h-5 text-small mt-1 w-full absolute bottom-0",children:o.station.message})]})})),An=function(e){var t=e.register,n=e.errors,a=e.missingSubmitData,s=e.contactImageUrl,o=e.overlineText,d=e.isSubmitting,u=e.onSubmit,m=e.onClose,x=(0,w.Z)(),p=(0,g.Z)(x["contactform-title"]),v=(0,g.Z)(x["contactform-cta-text"]),b=(0,g.Z)(x["contactform-cancel"]),j=(0,f.v9)(ie.Rg),N=(0,ne.Z)(j),y=(0,h.useRef)(null);return(0,h.useEffect)((function(){y.current&&y.current.focus()}),[]),(0,l.jsx)("form",{className:c()("bg-black-light md:rounded-2 px-5 py-12 md:p-6 lg:p-12","relative z-50 transition-zoomIn duration-200 transform","box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.35)","scale-100 opacity-100"),onSubmit:u,noValidate:!0,children:(0,l.jsxs)("div",{className:"md:grid md:grid-cols-[0.65fr_0.35fr] place-items-left md:gap-10",children:[(0,l.jsx)("figure",{className:"w-full h-[166px] mb-12 md:h-full md:order-2 md:mb-0",children:(0,l.jsx)(T.Z,{className:"w-full overflow-hidden",src:null!==s&&void 0!==s?s:kn.Z.src,basicLoader:!0,objectFit:"contain"})}),(0,l.jsxs)("div",{className:"md:order-1 text-left",children:[(0,l.jsx)("p",{className:"text-overline text-gray-3 mb-1.5",children:o}),(0,l.jsx)("h3",{className:"text-h4 text-pink",children:p}),(0,l.jsx)(Pn,{register:t,errors:n,ref:y}),(0,l.jsx)(Sn,{register:t,errors:n,submitFailed:!!(null===a||void 0===a?void 0:a.email)}),(0,l.jsx)(Mn,{register:t,errors:n,submitFailed:!!(null===a||void 0===a?void 0:a.message)}),(0,l.jsx)("div",{className:"flex flex-wrap mt-6 items-start",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center gap-6 w-full",children:[(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({type:"submit"},N),{text:v,size:"L",className:"w-full md:w-auto"})),(0,l.jsx)("button",{type:"button",onClick:m,className:"w-full md:w-auto text-body2 text-gray-2 underline",disabled:d,children:b})]})})]})]})})},Fn=function(e){var t=e.image,n=e.isSuccess,a=e.onClose,s=e.onBack,o=(0,w.Z)(),c=(0,f.v9)(ie.Rg),d=(0,ne.Z)(c),u=(0,g.Z)(o["contactform-sent-title"]),m=(0,g.Z)(o["contactform-sent-text"]),x=(0,g.Z)(o["contactform-sent-close-button-text"]),h=(0,g.Z)(o["contactform-error-title"]),p=(0,g.Z)(o["contactform-error-text"]),v=(0,g.Z)(o["contactform-error-try-again-text"]),b=(0,g.Z)(o["contactform-error-cancel-text"]);return(0,l.jsxs)("div",{className:"py-12 px-5 md:px-12 flex flex-col items-center",children:[t&&(0,l.jsx)("figure",{className:"w-full md:w-3/5 aspect-[3/2] mb-8 md:mb-10",children:(0,l.jsx)(T.Z,{className:"w-full overflow-hidden",src:t.src,basicLoader:!0,objectFit:"contain"})}),(0,l.jsxs)("div",{className:"max-w-3xl text-center",children:[(0,l.jsx)("h2",{className:"text-h3 text-white mb-4",children:n?u:h}),(0,l.jsx)("p",{className:"text-white text-body1 mb-6",children:n?m:p}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},d),{text:n?x:v,onClick:n?a:s,size:"L",className:"w-full md:w-auto"})),!n&&(0,l.jsx)("button",{type:"button",onClick:a,className:"w-full md:w-auto text-body2 text-gray-2 underline",children:b})]})]})]})},Bn=function(e){var t=e.overlineText,n=e.recipient,i=e.contactMobileImage,r=e.contactDesktopImage,a=e.contactSuccessImage,s=e.contactErrorImage,o=e.onClose,c=(0,D.Z)().isMobile&&i?i.src:null===r||void 0===r?void 0:r.src,d=null!==a&&void 0!==a?a:yn.Z,u=null!==s&&void 0!==s?s:Nn.Z,m=(0,f.v9)(Zn.EM),x=(0,f.v9)(Zn.d),p=(0,h.useState)(void 0),v=p[0],g=p[1],b=(0,h.useState)(!1),j=b[0],w=b[1],N=(0,h.useState)(!1),y=N[0],Z=N[1],k=(0,wn.cI)({mode:"all",defaultValues:{email:m?null===x||void 0===x?void 0:x.email:"",recipient:n,targetText:t}}),C=k.handleSubmit,S=k.register,T=k.formState,I=T.errors,L=T.isSubmitting,E=k.reset,M=function(){var e=(0,J.Z)((function(e){var t,n;return(0,$.__generator)(this,(function(i){switch(i.label){case 0:return[4,fetch("/api/contact-form-send",{method:"post",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})];case 1:return(t=i.sent()).ok?[3,3]:[4,null===t||void 0===t?void 0:t.json()];case 2:return(null===(n=i.sent())||void 0===n?void 0:n.submitError)&&w(!0),[3,4];case 3:Z(!0),i.label=4;case 4:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:y||j?(0,l.jsx)(Fn,{image:y?d:u,isSuccess:y,onClose:o,onBack:function(){E(),w(!1)}}):(0,l.jsx)(An,{register:S,errors:I,missingSubmitData:v,onSubmit:C(M,(function(e){g(e)})),onClose:o,overlineText:t,isSubmitting:L,contactImageUrl:c})})},_n=n(57218),Dn=n(68378),Rn=n(52195),zn=function(e){var t=e.onClose;return(0,l.jsx)("div",{className:c()("fixed w-8 h-8 bg-white right-6 top-20 flex justify-center items-center rounded-16 cursor-pointer","md:absolute md:top-4 md:right-4 md:z-10","lg:right-6"),onClick:t,children:(0,l.jsx)(Rn.Z,{})})},Hn=function(e){var t=e.children,n=e.onClose;(0,Dn.Z)();var i=(0,h.useRef)(null),r=(0,h.useRef)(null);return(0,lt.Z)([i],(function(e){var t,i=null===(t=r.current)||void 0===t?void 0:t.contains(null===e||void 0===e?void 0:e.target);n&&i&&n()})),(0,l.jsx)(_n.Z,{children:(0,l.jsx)("div",{className:c()("fixed inset-x-0 bottom-0 top-16 z-60","bg-black bg-opacity-70 overflow-hidden"),ref:r,children:(0,l.jsx)("div",{className:"md:content-box-centered h-full flex justify-center items-center",children:(0,l.jsx)("div",{ref:i,className:"relative w-screen md:w-full mx-auto h-full md:h-auto md:max-h-full overflow-auto",children:(0,l.jsxs)("div",{className:c()("md:rounded-4 bg-black-light h-full md:h-auto md:max-h-full"),children:[(0,l.jsx)("div",{className:"absolute block w-full z-70",children:(0,l.jsx)(zn,{onClose:n})}),t]})})})})})},Wn=function(e){var t=e.id,n=e.title,a=e.showTitle,s=e.contactItems,o=e.newsletterMobileImage,c=e.newsletterDesktopImage,d=e.newsletterSuccessImage,u=e.newsletterErrorImage,m=(0,h.useState)(""),x=m[0],f=m[1],p=(0,h.useState)(""),v=p[0],g=p[1],b=s.map((function(e){var t=x===e.email&&v===e.text;return(0,r.Z)((0,i.Z)({},e),{isSelected:t,onContactClick:function(){return t=e.email,n=e.text,f(t),g(n),void N();var t,n}})})).map(vn.Z).filter(vt.Nf),j=(0,bn.Z)(),w=j.isModalOpen,N=j.toggleModal,y=j.setIsModalOpen,Z=function(){y(!1)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"content-box",children:[a&&(0,l.jsx)("h2",{className:"text-h2 text-pink mb-4 md:mb-5 tesn:text-white teair:text-air-deepBlue",children:n}),(0,l.jsx)("div",{className:"md:hidden overflow-hidden",children:(0,l.jsx)(jn.Z,{id:"contact_mobile_".concat(t),teaserGroup:xn.Lz.Contact,teasers:b,isMobile:!0})}),(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsx)(jn.Z,{id:"contact_desktop_".concat(t),teaserGroup:xn.Lz.Contact,teasers:b,isMobile:!1})})]}),w&&(0,l.jsx)(Hn,{onClose:Z,children:(0,l.jsx)(Bn,{overlineText:v,recipient:x,contactMobileImage:o,contactDesktopImage:c,contactSuccessImage:d,contactErrorImage:u,onClose:Z})})]})},On=n(50774),Vn=function(e){var t,n=e.itemsType,a=e.pageSize,s=e.idsToExclude,l=e.allowedEntryTypes,o=e.entryTypeGroup,c=e.configuration,d=void 0===c?{}:c,u=e.idsToInclude,m=e.tagIdsToInclude,x=e.includeChannel,h=e.publishDateOrderType,f=e.disabled,p=void 0!==f&&f,v=e.orderedIds,g=Number(a),b=v&&v.length>0,j=(0,Ft.ZP)((function(e,t){if(p)return null;if(t&&!t.length)return null;if(b){var c=g+e*g,d=v.slice(c,c+g);if(0===d.length)return null;var f=new URLSearchParams({idsToInclude:d.join(","),perPage:String(d.length),page:"1"});return n?"/api/taggingtool/".concat(_.Tg[n],"?").concat(f.toString()):"/api/content-feed-entries?".concat(f.toString())}var j=new URLSearchParams((0,r.Z)((0,i.Z)({},l&&!On.Z(l)&&{allowedEntryTypes:l.join(",")},s&&!On.Z(s)&&{idsToExclude:s.join(",")},m&&!On.Z(m)&&{tagIdsToInclude:m.join(",")},u&&!On.Z(u)&&{idsToInclude:u.join(",")},x&&{includeChannel:x},o&&{entryTypeGroup:o.toString()},h&&{publishDateOrderType:h}),{page:String(e+1),perPage:a}));return n?"/api/taggingtool/".concat(_.Tg[n],"?").concat(j.toString()):"/api/content-feed-entries?".concat(j.toString())}),_t,d),w=j.data,N=j.size,y=j.setSize,Z=j.isValidating,k=j.error,C=!(null===w||void 0===w||null===(t=w[0])||void 0===t?void 0:t.length),S=(null===w||void 0===w?void 0:w[w.length-1])||[],T="undefined"!==typeof(null===w||void 0===w?void 0:w[N-1])&&(C||S.length<Number(a));return{isLoading:Z,data:w,error:k,size:N,setSize:y,loadMore:function(){p||y((function(e){return e+1}))},isAllDataLoaded:T}},Un=n(86200),qn=n(3227),Gn=n(63896),Qn=(tn={},(0,rt.Z)(tn,qe.TD.Creators,["profile"]),(0,rt.Z)(tn,qe.TD.Categories,["category"]),(0,rt.Z)(tn,qe.TD.Memes,["meme"]),(0,rt.Z)(tn,qe.TD.Stations,["station"]),(0,rt.Z)(tn,qe.TD.Videos,["video"]),(0,rt.Z)(tn,qe.TD.Channels,["channel"]),(0,rt.Z)(tn,qe.TD.Podcasts,["podcast"]),(0,rt.Z)(tn,qe.TD.Soundpieces,["soundpiece"]),(0,rt.Z)(tn,qe.TD.ShowsFormatsProfiles,["show","format","profile"]),(0,rt.Z)(tn,qe.TD.ChannelsPodcasts,["channel","podcast"]),function(e){return Un.Z(qn.Z([Gn.Z(E.ScreenSizeNames),e]))}),Kn=(nn={},(0,rt.Z)(nn,xn.Lz.Default,Qn([1,3,3,3,4,4])),(0,rt.Z)(nn,xn.Lz.Categories,Qn([3,5,5,8,8,8])),(0,rt.Z)(nn,xn.Lz.Memes,Qn([2,3,3,3,3,3])),(0,rt.Z)(nn,xn.Lz.PodcastsCreatorsChannels,Qn([2,3,3,3,5,5])),(0,rt.Z)(nn,xn.Lz.Videos,Qn([2,3,3,3,4,4])),(0,rt.Z)(nn,xn.Lz.Stations,Qn([2,3,3,3,5,5])),(0,rt.Z)(nn,xn.Lz.Prizes,Qn([1,3,3,3,4,4])),(0,rt.Z)(nn,xn.Lz.Contact,Qn([2,3,3,3,5,5])),nn),Xn={header:"flex flex-col md:flex-row items-baseline mb-4 md:mb-6",headerTitle:function(e){return c()("text-h1 text-pink tesn:text-white mb-2 md:mb-0 md:mr-4","teds:text-white",e?"teair:text-white":"teair:text-air-deepBlue")}},Yn=function(e){var t=e.hideTitle,n=e.link,i=e.title,r=e.hasInvertedThemeColor,a=void 0!==r&&r;return(0,l.jsxs)("div",{className:Xn.header,children:[!t&&(0,l.jsx)("h2",{className:Xn.headerTitle(a),children:i}),n&&(0,l.jsx)(Wt,{link:n})]})},Jn={wrapper:"content-box overflow-hidden"},$n=function(e){var t=e.mobile,n=e.desktop,i=e.hideTitle,r=e.link,a=e.title,s=e.hasInvertedThemeColor,o=void 0!==s&&s,d=e.deactivateAdSlots;return(0,l.jsxs)("div",{className:c()(Jn.wrapper,d&&"ml-auto"),children:[(!i||r)&&(0,l.jsx)(Yn,{hideTitle:i,link:r,title:a,hasInvertedThemeColor:o}),(0,l.jsx)("div",{className:"md:hidden",children:t}),(0,l.jsx)("div",{className:"hidden md:block",children:n})]})},ei=function(e){var t=e.title,n=e.children,i=e.filters,r=e.channelFilters,a=e.setAudioPlayerIsAutoPlay,s=e.deactivateAdSlots,o=(0,w.Z)(),d=!!a||!!i,u=(0,h.useState)(!1),m=u[0],x=u[1];return(0,h.useEffect)((function(){if(localStorage){var e="true"===localStorage.getItem("soundpiecesPlaylist::isAutoPlay");x(e),a(e)}}),[a]),(0,l.jsxs)("div",{className:c()("overflow-hidded content-box",s&&"ml-auto"),children:[t,(0,l.jsxs)("div",{className:"flex flex-col xl:flex-row-reverse items-start xl:items-center",children:[(0,l.jsxs)("div",{className:"w-full xl:w-auto flex justify-between xl:block xl:mt-0 xl:pt-1 mb-8 xl:mb-0 ".concat(i?"xl:mt-auto xl:ml-20":""),children:[(0,l.jsx)("div",{className:"block xl:hidden",children:r}),(0,l.jsx)("div",{className:"flex items-end md:items-center xl:pb-1",children:(0,l.jsx)(cn,{switchText:(0,g.Z)(o["switch-text-autoplay"])||"Autoplay",checked:m,onChange:function(e){localStorage.setItem("soundpiecesPlaylist::isAutoPlay",e.toString()),x(e),a(e)}})})]}),(0,l.jsxs)("div",{className:"w-full xl:min-w-0",children:[(0,l.jsx)("div",{className:"hidden xl:block mb-8",children:r}),i]})]}),d&&(0,l.jsx)("div",{className:"flex min-h-1px h-2px my-6 xl:my-8 bg-black-light"}),n]})},ti=function(e){var t=e.hideTitle,n=e.link,i=e.teasers,r=e.title,a=e.loadMore,s=e.isLoading,o=e.isAllDataLoaded,c=e.deactivateAdSlots,d=(0,Pt.Z)({}),u=d.onPlay,m=d.onPause,x=d.changeEvent,f=d.setIsAutoPlay,p=d.addToAutoPlaylist,v=(0,w.Z)();return(0,l.jsxs)(ei,{title:(!t||n)&&(0,l.jsx)(Yn,{hideTitle:t,link:n,title:r}),setAudioPlayerIsAutoPlay:f,deactivateAdSlots:c,children:[h.Children.map(i,(function(e,t){return(0,h.cloneElement)(e,{index:t,onPlay:u,onPause:m,changeEvent:x,addToAutoPlaylist:p})})),a&&!s&&!o&&(0,l.jsx)("div",{className:"flex justify-end",children:(0,l.jsx)("button",{className:"bg-red-medium py-3 px-6 rounded-2",onClick:a,children:(0,g.Z)(v["audio-detail-load-more"])})}),s&&(0,l.jsx)("div",{className:"flex justify-center mb-4",children:(0,l.jsx)(C.Z,{id:"loading-soundpices-icon",className:"h-12 w-12"})})]})},ni=function(e){var t,n,r=e.id,a=e.title,o=e.hideTitle,c=e.link,d=e.teaserGroup,u=e.entries,m=e.totalCount,x=e.contentFeedLayout,f=e.numberOfRows,p=void 0===f?1:f,v=e.tagsToInclude,g=e.entryTypeGroup,b=e.showLoadMore,j=void 0!==b&&b,w=e.automaticEntries,N=void 0!==w&&w,y=e.manualEntryIdsOrdered,Z=e.manualEntryPageSize,k=e.hasInvertedThemeColor,C=e.deactivateAdSlots,S=(0,h.useState)(p),T=S[0],I=S[1],L=(0,D.Z)().currentBreakpoint,E=u.map((function(e){return(0,vn.Z)((0,i.Z)({hasInvertedThemeColor:k,deactivateAdSlots:C},e))})).filter(vt.Nf),M=null===v||void 0===v?void 0:v.map((function(e){return e.contentfulEntityId})),P=u.map((function(e){return e.id})),A=g===qe.TD.Soundpieces?"soundpiece":"video",F=!N&&(null!==(n=null===y||void 0===y?void 0:y.length)&&void 0!==n?n:0)>0,B=null!==Z&&void 0!==Z?Z:T,_=Vn({disabled:!1,itemsType:A,pageSize:String(F?B:T),publishDateOrderType:"desc",tagIdsToInclude:M,idsToExclude:P,orderedIds:F?y:void 0,configuration:{initialSize:0,revalidateOnMount:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}}
1),R=_.isLoading,z=_.data,H=_.size,W=_.loadMore;(0,vt.LI)((function(){return I(Kn[d][L]*p)}),[L,d,p]);var O,V=(null===(t=null===z||void 0===z?void 0:z.flat())||void 0===t?void 0:t.map((function(e){return(0,vn.Z)((0,i.Z)({hasInvertedThemeColor:k,deactivateAdSlots:C},e))})))||[],U=(0,s.Z)(E).concat((0,s.Z)(V)).filter((function(e){return(0,vt.Nf)(e)&&(!0===e.props.appearInWatchExperience||void 0===e.props.appearInWatchExperience)})),q=null!==(O=null===y||void 0===y?void 0:y.length)&&void 0!==O?O:0,G=Math.min((H+1)*B,q),Q=F?G>=q:U.length>=m||(H+1)*T>=m;if(!E.length)return null;if(g===qe.TD.Soundpieces)return(0,l.jsx)(ti,{hideTitle:o,link:c,teasers:U,title:a,isLoading:R,loadMore:W,isAllDataLoaded:Q,deactivateAdSlots:C});var K=g===qe.TD.Channels;return x.mobile===qe.j1.Grid?(0,l.jsx)($n,{hideTitle:o,link:c,title:a,mobile:(0,l.jsx)(pn,{teaserGroup:d,teasers:U.slice(0,T)}),desktop:(0,l.jsx)(pn,{teaserGroup:d,teasers:U.slice(0,T)}),hasInvertedThemeColor:k,deactivateAdSlots:C}):(0,l.jsx)($n,{hideTitle:o,link:c,title:a,hasInvertedThemeColor:k,mobile:(0,l.jsx)(jn.Z,{id:r,teaserGroup:d,teasers:U,isMobile:!0,showLoadMore:j&&!K&&(R||!Q),isLoading:R,onLoadMore:W,hasInvertedThemeColor:k}),desktop:(0,l.jsx)(jn.Z,{id:r,teaserGroup:d,teasers:U,isMobile:!1,isLoading:R,showLoadMore:j&&!K&&(R||!Q),onLoadMore:W,hasInvertedThemeColor:k}),deactivateAdSlots:C})},ii=function(e,t){return(0,l.jsx)("video",{autoPlay:!0,playsInline:!0,loop:!0,muted:!0,src:e,className:c()("absolute z-10 inset-0 object-cover h-full w-full",t?"block md:hidden":"hidden md:block")})},ri=function(e,t){return(0,l.jsx)(T.Z,{src:e.src,fallbackSrc:e.fallbackSrc,objectFit:"cover",className:t,basicLoader:e.isExternal})},ai=function(e){var t=e.background,n=e.backgroundMobile,i=null!==t&&void 0!==t?t:n,r=null!==n&&void 0!==n?n:t;if(!i&&!r)return null;return(0,l.jsxs)(l.Fragment,{children:[i?(0,vt.GD)(i)?ii(i.src,!1):ri(i,"hidden md:block"):null,r?(0,vt.GD)(r)?ii(r.src,!0):ri(r,i?"block md:hidden":void 0):null]})},si=n(24467),li=function(e){var t=e.condition,n=e.wrapper,i=e.children;return(0,l.jsx)(l.Fragment,{children:t?n(i):i})},oi=function(e){var t=e.showButton,n=e.backgroundColor,i=e.image,r=e.text,a=e.textColor,s=e.renderButton,o=e.backgroundDesktop,c=e.backgroundMobile;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"h-1/2 w-full md:h-full md:w-1/2 flex-none relative",style:{backgroundColor:"".concat(n)},children:[o&&(0,l.jsx)(ai,{background:o,backgroundMobile:c||o}),(0,l.jsxs)("div",{className:"absolute w-full h-3/4 top-0 self-stretch flex-none flex flex-col justify-center items-center p-16 gap-8 z-20",children:[i&&(0,l.jsx)(T.Z,{src:i.src,fallbackSrc:i.fallbackSrc,objectFit:"contain",className:"self-stretch",basicLoader:i.isExternal}),r&&(0,l.jsx)("span",{className:"text-body1 font-normal hidden lg:block text-center",style:{color:"".concat(a)},children:r}),t&&(0,l.jsx)("div",{className:"hidden md:block",children:s()})]})]})})},ci=function(e){var t=e.primaryBackgroundDesktop,n=e.primaryBackgroundMobile,a=e.secondaryBackgroundDesktop,s=e.secondaryBackgroundMobile,o=e.backgroundColor,c=e.textColor,d=e.link,u=e.showButton,m=e.image,x=e.text,h=(0,f.v9)(ie.Rg),p=(0,ne.Z)(h),v=function(){return u&&d&&g((0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},p),{text:d.text,className:"whitespace-nowrap"})))},g=function(e,t){return d?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},d),{className:t,children:e})):(0,l.jsx)("div",{className:t,children:e})};return(0,l.jsx)(li,{condition:!u,wrapper:function(e){return d?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},d),{children:e})):e},children:(0,l.jsxs)("div",{className:"".concat((0,si.Z)(14)," flex flex-col md:flex-row items-start p-0 w-full md:flex-nowrap relative"),children:[(0,l.jsx)("div",{className:"h-1/2 w-full md:h-full md:w-1/2 flex-none relative",children:(t||n)&&(0,l.jsx)(ai,{background:t,backgroundMobile:n||t})}),(0,l.jsx)(oi,{textColor:c,backgroundColor:o,showButton:u,image:m,backgroundDesktop:a,backgroundMobile:s,text:x,renderButton:v}),u&&(0,l.jsx)("div",{className:" absolute h-full w-full flex top-0 md:hidden",children:(0,l.jsx)("div",{className:"relative m-auto z-20",children:v()})})]})})},di=function(e){var t=e.hasHashNavigation,n=void 0===t||t,i=e.itemsToRender,r=(0,h.useState)(""),a=r[0],s=r[1];(0,h.useEffect)((function(){n&&s(window.location.hash.replace("#",""))}),[n]);var o=function(e){var t=window.location.pathname;if(a===e)return s(""),void(n&&history.replaceState({},"",t));n&&history.replaceState({},"","".concat(t,"#").concat(e)),s(e)};return(0,l.jsx)(l.Fragment,{children:i.map((function(e){return(0,l.jsx)(h.Fragment,{children:e.renderItem(e.slug===a,o)},e.slug)}))})};function ui(){var e=(0,I.Z)(["\n  transition: max-height 0.3s ease-in-out;\n"]);return ui=function(){return e},e}var mi,xi=(0,L.iv)(ui()),hi=function(e){var t=e.slug,n=e.title,i=e.text,r=e.isActive,a=e.onItemClick,s=(0,h.useState)(0),o=s[0],d=s[1],u=(0,h.useCallback)((function(e){e&&d(r?e.getBoundingClientRect().height:0)}),[r]);return(0,l.jsxs)("div",{className:c()("pb-4 md:pb-5 mb-4 last:mb-0 transition-colors duration-300 rounded-2 teair:bg
1-air-lightBlue ",r?"tesn:bg-esn-secondary teds:bg-eds-gray-light tels:bg-els-blue":"teair:bg-opacity-50 tesn:bg-esn-secondary-dark cursor-pointer teds:bg-eds-black-light tels:bg-els-blue-grey"),onClick:function(){return!r&&a(t)},children:[(0,l.jsx)("div",{id:t,className:"relative -top-16 md:-top-24"}),(0,l.jsxs)("div",{className:"flex justify-between items-center teair:text-air-deepBlue pt-4 px-4 md:pt-5 md:px-6 cursor-pointer",onClick:function(){return r&&a(t)},children:[(0,l.jsx)("h3",{className:"text-body1 font-semibold mr-4",children:n}),(0,l.jsx)(ht.zE,{className:c()("transform transition-transform duration-300 flex-shrink-0",r?"-rotate-90":"rotate-90"),backgroundClassName:c()("transition-colors duration-300 tels:fill-black teair:fill-air-lemon",r?"tesn:fill-esn-secondary-dark teds:fill-eds-black-light":"tesn:fill-esn-secondary teds:fill-eds-gray-light"),arrowClassName:"tesn:fill-white teair:fill-air-mediumBlue fill-air-lila-light"})]}),(0,l.jsx)("div",{className:"overflow-hidden ".concat(xi),style:{maxHeight:"".concat(o,"px")},children:(0,l.jsx)("div",{ref:u,className:"text-body2 pt-2 px-4 md:px-6 md:w-11/12",children:(0,l.jsx)(W.ZP,{body:i,openLinksInNewTab:!0})})})]})},fi={h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4"},pi=function(e){var t=e.title,n=e.slug,a=e.faqItems,s=e.link,o=e.titleTagComponent,d=void 0===o?"h2":o,u=e.deactivateAdSlots;return(0,l.jsxs)("div",{className:c()("content-box",u&&"ml-auto"),children:[(0,l.jsxs)("div",{className:"flex items-center flex-wrap mt-2 md:mt-0 mb-4 md:mb-6",id:n,children:[(0,h.createElement)(d,{className:c()("teair:text-air-deepBlue mr-4 uppercase",fi[d])},t),s&&(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({className:"text-body1 underline font-semibold teair:text-air-deepBlue teair:hover:text-air-skyBlue tesn:text-esn-secondary-light tesn:hover:text-esn-secondary-superLight tels:text-els-blue-light"},s),{children:s.text}))]}),(0,l.jsx)(di,{itemsToRender:a.map((function(e){return{slug:e.slug,renderItem:function(t,n){return(0,l.jsx)(hi,(0,i.Z)({isActive:t,onItemClick:n},e))}}}))})]})},vi=n(15930),gi=n(14495),bi=(mi={},(0,rt.Z)(mi,qe.dX.Small,"md:grid-cols-2 xl:grid-cols-3"),(0,rt.Z)(mi,qe.dX.Contact,"md:grid-cols-2 xl:grid-cols-3"),(0,rt.Z)(mi,qe.dX.Medium,"md:grid-cols-2"),mi),ji={wrapper:function(e){return c()("grid grid-rows-auto gap-12 md:gap-4",bi[e])}},wi=function(e){var t=e.elements,n=e.textClassNames;return t.length?(0,l.jsx)("div",{className:ji.wrapper(t[0].type),children:t.map((function(e,t){var i=e.title,r=e.image,a=e.description,s=e.overlineText,o=e.links,c=e.type,d=e.theme;return(0,l.jsx)(vi.Z,{image:r,type:c,theme:d,className:"w-full teair:bg-air-lightBlue",children:(0,l.jsx)(gi.Z,{title:i,description:a,overlineText:s,links:o,theme:d,type:c,textClassNames:n})},"box-".concat(t))}))}):null},Ni=function(e){var t=e.className,n=e.fill,i=void 0===n?"currentColor":n;return(0,l.jsx)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:i,children:(0,l.jsx)("path",{d:"M17.001 20H6.00101C4.89644 20 4.00101 19.1046 4.00101 18V7C4.00101 5.89543 4.89644 5 6.00101 5H10.001V7H6.00101V18H17.001V14H19.001V18C19.001 19.1046 18.1056 20 17.001 20ZM11.701 13.707L10.291 12.293L16.584 6H13.001V4H20.001V11H18.001V7.415L11.701 13.707Z"})})},yi=function(e){var t=e.title,n=e.icon,a=e.link;return(0,l.jsxs)(ae.Z,(0,r.Z)((0,i.Z)({},a),{className:c()("inline-flex items-center","text-body2 text-red-medium underline hover:no-underline"),children:[(0,l.jsx)("span",{className:"w-8 h-8",children:(0,l.jsx)(T.Z,{src:n.src})}),(0,l.jsx)("span",{className:"inline-block ml-2",children:t}),a.isExternal&&(0,l.jsx)(Ni,{className:"w-6 h-6 ml-2"})]}))},Zi=function(e){var t=e.iconLinks;return t.length?(0,l.jsx)("div",{className:"flex flex-col items-start",children:t.map((function(e){return(0,l.jsx)(yi,(0,i.Z)({},e))}))}):null},ki=n(4245),Ci=function(e){var t=e.title,n=e.description,a=e.links,s=e.hasInvertedThemeColor;return(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:c()("text-h2 text-pink tesn:text-white tels:text-white tlegal:text-black",s?"teair:text-white":"teair:text-air-deepBlue"),children:t}),n&&(0,l.jsx)(W.ZP,{body:n,className:"text-body2 text-red-light mt-2 md:mt-4 tlegal:text-black"}),a&&a.map((function(e){return(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},e),{className:c()("text-body1 text-red-medium underline hover:text-red font-semibold"),children:(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(ki.Z,{className:"transition-all",text:e.text,theme:"light"})})}),e.text)}))]})},Si=function(e){var t=e.pageTeasers;return t.length?(0,l.jsx)("div",{className:c()("mt-10 grid grid-rows-auto","grid-cols-1 md:grid-cols-2","gap-x-16 md:gap-x-20 lg:gap-x-28","gap-y-10 md:gap-y-14 lg:gap-y-20"),children:t.map((function(e){var t=e.title,n=e.description,i=e.links;return(0,l.jsx)(Ci,{title:t,description:n,links:i})}))}):null},Ti={box:function(e,t){return(0,l.jsx)(wi,{elements:e,textClassNames:t})},iconLink:function(e){return(0,l.jsx)(Zi,{iconLinks:e})},pageTeaser:function(e){return(0,l.jsx)(Si,{pageTeasers:e})}},Ii=function(e,t){var n;if(!e.length)return null;var i=e[0].componentType;return null===(n=Ti[i])||void 0===n?void 0:n.call(Ti,e,t)},Li=function(e){var t=e.title,n=e.showTitle,i=e.link,r=e.elements,a=e.textClassNames,s=e.hasInvertedThemeColor,o=e.deactivateAdSlots;return(0,l.jsx)(l.Fragment,{children:r.length?(0,l.jsxs)("div",{className:c()("content-box teair:pt-14",o&&"ml-auto"),children:[n&&(0,l.jsxs)("div",{className:"flex flex-row flex-wrap items-baseline gap-2 mb-4 md:mb-6",children:[(0,l.jsx)("h2",{className:c()("text-pink tesn:text-white tels:text-white tlegal:text-black text-h1",s?"teair:text-white":"teair:text-air-deepBlue"),children:t}),i&&(0,l.jsx)(Wt,{link:i})]}),Ii(r,a)]}):null})},Ei=function(e){var t=e.title,n=e.showTitle,i=e.link,r=e.galleryTeasers,a=e.hasInvertedThemeColor,s=e.deactivateAdSlots;return(0,l.jsx)(Li,{showTitle:n,title:t,link:i,elements:r,textClassNames:"teair:text-air-deepBlue",hasInvertedThemeColor:a,deactivateAdSlots:s})},Mi=n(81728),Pi=n(25950),Ai=function(e){var t=e.urlToShare,n=e.placement;return(0,l.jsx)(O.Z,{urlToShare:t,shareBoxPlacement:n})},Fi=function(e){var t=e.mediaItem,n=e.urlToShare,i=e.isActive,r=(0,m.useRouter)().asPath.includes("/artikel");return(0,l.jsxs)("div",{className:"relative",children:[(0,vt.I0)(t)&&(0,l.jsx)(T.Z,{src:t.src,alt:t.description,objectFit:"contain",className:"aspect aspect-16-9 rounded-2 overflow-hidden"}),(0,l.jsxs)("div",{className:c()("absolute inset-0 hidden md:block transition-all duration-300",i?"opacity-100":"opacity-0"),children:[(0,l.jsx)("div",{className:"absolute z-20 inset-x-0 bottom-0",children:(0,l.jsxs)("div",{className:"flex justify-between items-end px-8 pb-10",children:[(0,l.jsx)("div",{className:"w-4/5",children:(0,l.jsx)("span",{className:"text-body1 teair:text-white",children:t.description})}),!r&&(0,l.jsx)("div",{className:"transform translate-y-1/2",children:(0,l.jsx)(Ai,{urlToShare:n,placement:"topLeft"})})]})}),(0,l.jsx)("div",{className:"absolute z-10 inset-x-0 -bottom-2 top-1/2 bg-gradient-to-t from-black teair:from-transparent"})]})]})};function Bi(){var e=(0,I.Z)(["\n  @media (min-width: ",") {\n    .swiper-slide {\n      &.swiper-slide-active {\n        transform: scale(1);\n      }\n\n      &.swiper-slide-prev {\n        transform: translateX(10%) scale(0.8);\n      }\n\n      &.swiper-slide-next {\n        transform: translateX(-10%) scale(0.8);\n      }\n    }\n  }\n"]);return Bi=function(){return e},e}de.Z.use([me.Z,ue.Z,Mi.Z,Pi.Z]);var _i="gallery-main-carousel-navigation-prev-button",Di="gallery-main-carousel-navigation-next-button",Ri=(0,L.iv)(Bi(),E.screens.md),zi="absolute z-20 top-1/2 transform -translate-y-1/2",Hi="absolute z-10 inset-y-0 w-20 from-black teair:from-transparent",Wi=function(e){var t=e.mainSwiper,n=e.thumbnailsSwiper,i=e.media,r=e.urlToShare,a=e.className,s=e.onSwiper,o=e.onHashSet,d=e.onActiveIndexChange;return(0,l.jsxs)("div",{className:c()("relative",a),children:[(0,l.jsxs)("div",{className:"relative w-screen transform ml-1/2 -translate-x-1/2",children:[(0,l.jsx)(xe.t,{controller:{control:n},wrapperTag:"ul",slidesPerView:"auto",spaceBetween:20,centeredSlides:!0,navigation:{prevEl:"#".concat(_i),nextEl:"#".concat(Di)},hashNavigation:{replaceState:!0},className:Ri,onActiveIndexChange:d,onSwiper:s,onHashSet:o,children:i.map((function(e,t){return(0,l.jsx)(he.o,{tag:"li","data-hash":e.id,className:"relative content-box-centered",children:function(t){var n=t.isActive;return(0,l.jsx)("div",{className:"w-full md:w-5/6 mx-auto",children:(0,l.jsx)(Fi,{isActive:n,mediaItem:e,urlToShare:r})})}},t)}))}),(0,l.jsxs)("div",{className:"hidden lg:block",children:[!(null===t||void 0===t?void 0:t.isBeginning)&&(0,l.jsx)("div",{className:c()("left-0 bg-gradient-to-r",Hi)}),!(null===t||void 0===t?void 0:t.isEnd)&&(0,l.jsx)("div",{className:c()("right-0 bg-gradient-to-l",Hi)})]})]}),(0,l.jsx)(fe.Z,{id:_i,type:"prev",shouldDisplay:!(null===t||void 0===t?void 0:t.isBeginning),smSize:"small",mdSize:"medium",className:c()("left-0 -translate-x-1/4 lg:-translate-x-1/2",zi)}),(0,l.jsx)(fe.Z,{id:Di,type:"next",shouldDisplay:!(null===t||void 0===t?void 0:t.isEnd),smSize:"small",mdSize:"medium",className:c()("right-0 translate-x-1/4 lg:translate-x-1/2",zi)})]})};function Oi(){var e=(0,I.Z)(["\n  background: linear-gradient(\n    ",",\n    rgba(",", 0.95),\n    20%,\n    rgba(",", 0) 100%\n  );\n"]);return Oi=function(){return e},e}var Vi="absolute z-10 inset-y-0 pointer-events-none w-24",Ui={eair:"0, 3, 49"},qi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"18, 17, 19";return(0,L.iv)(Oi(),"left"===e?"90deg":"270deg",t,t)},Gi=function(e){var t=e.side,n=void 0===t?"left":t,i=e.pageTheme,r=i?Ui[i]:"18, 17, 19";return"left"===n?(0,l.jsx)("div",{className:c()("left-0",Vi,qi("left",r))}):(0,l.jsx)("div",{className:c()("right-0",Vi,qi("right",r))})},Qi=function(e){var t=e.mediaItem,n=e.isActive;return(0,l.jsx)("div",{className:"cursor-pointer",children:(0,vt.I0)(t)&&(0,l.jsx)(T.Z,{src:t.src,objectFit:"cover",className:c()("aspect aspect-16-9 rounded-2 overflow-hidden",n&&"border border-solid border-white")})})};de.Z.use([me.Z,ue.Z,Mi.Z]);var Ki="gallery-thumnails-carousel-navigation-prev-button",Xi="gallery-thumnails-carousel-navigation-next-button",Yi="absolute z-20 top-1/2 transform -translate-y-1/2",Ji=function(e){var t=e.media,n=e.mainSwiper,i=e.thumbnailsSwiper,r=e.className,a=e.onSwiper,s=(0,h.useReducer)((function(e){return e+1}),0)[1],o=(0,f.v9)(ie.Rg),d=null===n||void 0===n?void 0:n.activeIndex;return(0,l.jsxs)("div",{className:c()("relative w-full md:w-4/5",r),children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(xe.t,{wrapperTag:"ul",slidesPerView:"auto",spaceBetween:8,freeMode:!0,className:"px-5 md:px-0",navigation:{prevEl:"#".concat(Ki),nextEl:"#".concat(Xi)},onSwiper:a,onSlideChange:s,children:t.map((function(e,t){return(0,l.jsx)(he.o,{tag:"li",className:"w-28 md:w-52",onClick:function(){return null===n||void 0===n?void 0:n.slideTo(t)},children:(0,l.jsx)(Qi,{mediaItem:e,isActive:d===t})},t)}))}),(0,l.jsxs)("div",{className:"hidden md:block",children:[(0,l.jsxs)("div",{className:(null===i||void 0===i?void 0:i.isBeg
1inning)?"hidden":"block",children:[(0,l.jsx)(fe.Z,{id:Ki,type:"prev",mdSize:"small",className:c()("left-0 -translate-x-1/2",Yi)}),(0,l.jsx)(Gi,{side:"left",pageTheme:o})]}),(0,l.jsxs)("div",{className:(null===i||void 0===i?void 0:i.isEnd)?"hidden":"block",children:[(0,l.jsx)(fe.Z,{id:Xi,type:"next",mdSize:"small",className:c()("right-0 -translate-y-1/2 translate-x-1/2",Yi)}),(0,l.jsx)(Gi,{side:"right",pageTheme:o})]})]})]}),(0,l.jsxs)("div",{className:"block md:hidden",children:[!(null===i||void 0===i?void 0:i.isBeginning)&&(0,l.jsx)(Gi,{side:"left"}),!(null===i||void 0===i?void 0:i.isEnd)&&(0,l.jsx)(Gi,{side:"right"})]})]})},$i=function(e){var t=e.title,n=e.media,i=(0,h.useReducer)((function(e){return e+1}),0)[1],r=(0,h.useState)(),a=r[0],s=r[1],o=(0,h.useState)(),d=o[0],u=o[1],x=(0,h.useState)(ye({includeHash:!0})),f=x[0],p=x[1],v=(0,m.useRouter)(),b=(0,w.Z)(),j=v.asPath.includes("/artikel");return(0,l.jsxs)("div",{className:c()(!j&&"pt-8 md:pt-20","flex flex-col gap-4  "),children:[(0,l.jsxs)("div",{className:"content-box-centered",children:[!j&&(0,l.jsx)("h2",{className:"text-h1 mb-4 text-pink tesn:text-white teair:text-air-mediumBlue tels:text-white",children:t}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 w-full md:w-5/6 mx-auto",children:[!j&&(0,l.jsx)("button",{className:"ml-auto text-body2 font-semibold underline text-red-medium tesn:text-esn-primary teds:text-eds-pink tels:text-els-gold-light teair:text-air-skyBlue",onClick:v.back,children:(0,g.Z)(b["gallery-close-cta-text"])}),(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(0,l.jsx)(Wi,{mainSwiper:a,thumbnailsSwiper:d,media:n,urlToShare:f,onSwiper:s,onHashSet:function(){return p(ye({includeHash:!0}))},onActiveIndexChange:i})})]})]}),(0,l.jsx)("div",{className:"w-screen md:content-box-centered",children:(0,l.jsxs)("div",{className:"relative flex justify-between w-full md:w-5/6 mx-auto",children:[(0,l.jsx)("div",{className:"hidden md:block absolute inset-0 teair:bg-[linear-gradient(to_left,_#000331_25%,_transparent_45%)]"}),(0,l.jsx)(Ji,{media:n,mainSwiper:a,thumbnailsSwiper:d,onSwiper:u}),(0,l.jsx)("div",{className:"hidden md:block relative",children:function(){var e=a?a.activeIndex+1:"",t=null===a||void 0===a?void 0:a.slides.length;return(0,l.jsxs)("span",{className:"whitespace-nowrap text-body2 text-white tesn:text-esn-secondary-light teds:text-white tels:text-els-gold-light teair:text-white",children:[e," ",(0,g.Z)(b["gallery-pagination-from"])," ",t]})}()})]})}),!j&&(0,l.jsx)("div",{className:"content-box-centered",children:(0,l.jsxs)("article",{className:"flex md:hidden flex-col gap-2",children:[(0,l.jsx)("div",{className:"ml-auto",children:(0,l.jsx)(Ai,{urlToShare:f})}),(0,l.jsx)("span",{className:"text-body1",children:a?n[a.activeIndex].description:null})]})})]})},er=function(e){var t=e.background,n=e.backgroundMobile,i=e.children;return(0,l.jsxs)("div",{className:"h-full",children:[(0,l.jsx)(ai,{background:t,backgroundMobile:n}),i]})};function tr(){var e=(0,I.Z)(["\n  height: 70vh;\n"]);return tr=function(){return e},e}var nr=(0,L.iv)(tr()),ir=function(e){var t=e.foreground,n=e.foregroundMobile,a=e.link,s=e.isForegroundFullWidth,o=e.showButton,d=(0,f.v9)(ie.Rg),u=(0,ne.Z)(d,{eair:"lemon",esn:"pink"}),m=function(){return o&&a&&x((0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},u),{text:a.text,className:"whitespace-nowrap"})),"absolute z-20 bottom-32 left-1/2 transform -translate-x-1/2")},x=function(e,t){return a?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},a),{className:t,children:e})):(0,l.jsx)("div",{className:t,children:e})};return s?(0,l.jsxs)("div",{className:"absolute inset-0",children:[t&&(0,l.jsx)(T.Z,{src:t.src,fallbackSrc:t.fallbackSrc,objectFit:"cover",className:"hidden z-20 md:block",basicLoader:t.isExternal}),n&&(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,objectFit:"cover",className:t?"md:hidden z-20":"z-20",basicLoader:n.isExternal}),m()]}):(0,l.jsx)("div",{className:"absolute z-20 inset-0 flex justify-center items-center",children:(0,l.jsxs)("div",{className:"w-full flex flex-col justify-center items-center",children:[t&&x((0,l.jsx)(T.Z,{src:t.src,fallbackSrc:t.fallbackSrc,objectFit:"contain",basicLoader:t.isExternal}),c()("hidden md:block w-3/4",nr)),n&&x((0,l.jsx)("div",{className:"w-full h-full",children:(0,l.jsx)(T.Z,{src:n.src,fallbackSrc:n.fallbackSrc,objectFit:"contain",basicLoader:n.isExternal})}),c()(t?"md:hidden w-full aspect aspect-5-8":"w-full aspect aspect-5-8")),m()]})})},rr=function(e){var t=e.background,n=e.backgroundMobile,i=e.foreground,r=e.foregroundMobile,a=e.link,s=e.showButton,o=e.isForegroundFullWidth;return(0,l.jsx)("div",{className:(0,si.Z)(15),children:(0,l.jsx)(er,{background:t,backgroundMobile:null!==n&&void 0!==n?n:t,children:(i||r||s&&a)&&(0,l.jsx)(ir,{foreground:i,foregroundMobile:r,showButton:s,link:a,isForegroundFullWidth:o})})})};function ar(){var e=(0,I.Z)(["\n  box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.3);\n"]);return ar=function(){return e},e}var sr=(0,L.iv)(ar()),lr=function(e){var t=e.title,n=e.background,a=e.backgroundMobile,s=e.teaserImage,o=e.teaserImageMobile,d=e.streamUrl,u=(0,w.Z)(),m=(0,g.Z)(u["hero-livestream-cta"]),x=(0,f.v9)(ie.Rg),p=(0,ne.Z)(x),v=(0,h.useState)(!!s),b=v[0],j=v[1],N=function(){return j(!1)},y=function(e){var t=e.className;return(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({className:t,text:m},p),{onClick:N}))};return(0,l.jsx)("div",{className:(0,si.Z)(10),children:(0,l.jsx)(er,{background:n,backgroundMobile:null!==a&&void 0!==a?a:n,children:(0,l.jsx)("div",{className:c()("absolute top-1/3 md:top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/3 md:-translate-y-1/2 z-10","w-full md:px-4 md:content-box"),children:(0,l.jsx)("div",{className:"relative mx-auto",children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsxs)("div",{className:c()("w-full rounded-2 overflow-hidden aspect aspect-16-9",!b&&sr),children:[b&&(0,l.jsxs)("div",{children:[o&&(0,l.jsx)(T.Z,{className:s?"md:hidden":void 0,src:o.src,fallbackSrc:o.fallbackSrc,objectFit:"fill",basicLoader:o.isExternal}),s&&(0,l.jsx)(T.Z,{className:o?"hidden md:block":void 0,src:s.src,fallbackSrc:s.fallbackSrc,objectFit:"fill",basicLoader:s.isExternal}),(0,l.jsx)("div",{className:"absolute inset-0 tesn:bg-esn-secondary-dark tesn:bg-opacity-60"}),(0,l.jsx)("div",{className:"absolute inset-0 z-10 flex flex-col items-center justify-center md:pt-32",children:(0,l.jsx)(y,{className:"hidden md:block mt-6"})})]}),!b&&(0,l.jsx)("iframe",{src:d,frameBorder:"0",allowFullScreen:!0,title:t})]}),b&&(0,l.jsx)(y,{className:"md:mt-6 md:hidden"})]})})})})})}
1,or={wrapper:"bg-black tlight:bg-white teair:bg-white game:bg-game-blue-midnight"},cr=function(e){var t=e.image,n=e.link,a=e.layout,s=e.imageMobile,o=e.deactivateAdSlots,d=function(){return(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)(T.Z,{className:t?"md:hidden":void 0,src:s.src,fallbackSrc:s.fallbackSrc,useIntrinsicSize:!0,width:s.width,height:s.height,basicLoader:s.isExternal}),t&&(0,l.jsx)(T.Z,{className:s?"hidden md:block":void 0,src:t.src,fallbackSrc:t.fallbackSrc,useIntrinsicSize:!0,width:t.width,height:t.height,basicLoader:t.isExternal})]})},u=function(){return(0,l.jsx)(l.Fragment,{children:n?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({className:"inline-block"},n),{children:(0,l.jsx)(d,{})})):(0,l.jsx)(d,{})})};return(0,l.jsx)("div",{className:or.wrapper,children:(0,l.jsx)("div",{className:c()("content-box text-center leading-none",o&&"ml-auto"),children:"rich-text"===a?(0,l.jsx)("div",{className:"text-box",children:(0,l.jsx)(u,{})}):(0,l.jsx)(u,{})})})},dr={wrapper:"content-box",headerWrapper:"flex flex-col md:flex-row items-start md:items-center md:mb-5",header:"text-h2 text-pink mb-4 md:mb-0",filtersWrapper:"mb-4 md:mb-0 md:ml-auto",tilesWrapper:"grid grid-cols-1 md:grid-cols-3 gap-4"},ur={wrapper:"border border-gray-2 rounded-2 min-h-32 md:min-h-40 px-5 py-3 md:px-8 md:py-4 hover:bg-black-light",department:"text-lead text-pink",title:"text-h5 font-normal line-clamp-2",location:"text-body1 text-gray-4 mt-1"},mr=function(e){var t=e.title,n=e.pensum,i=e.department,r=e.location,a=e.url,s=e.className;return(0,l.jsxs)(ae.Z,{href:a,isExternal:!0,className:c()(ur.wrapper,s),children:[(0,l.jsx)("div",{className:ur.department,children:i}),(0,l.jsx)("div",{className:ur.title,children:t}),(0,l.jsx)("div",{className:ur.location,children:"".concat(n," ").concat(r)})]})};function xr(){var e=(0,I.Z)(["\n                animation-duration: ","ms;\n              "]);return xr=function(){return e},e}var hr="Alle",fr=function(e){var t=e.title,n=e.showTitle,a=e.jobs,o=(0,h.useState)([]),c=o[0],d=o[1],u=(0,h.useState)(hr),m=u[0],x=u[1],f=(0,h.useState)(!1),p=f[0],v=f[1],g=(0,w.Z)(),b=a.length;(0,h.useEffect)((function(){if(b){var e={};a.forEach((function(t){t.location&&t.location!==hr&&(e[t.location]=!0)}));var t=Object.keys(e);t.length>1&&d([hr].concat((0,s.Z)(t)))}}),[a,b]);return(0,l.jsxs)("div",{className:dr.wrapper,children:[(n||!!c.length)&&(0,l.jsxs)("div",{className:dr.headerWrapper,children:[n&&(0,l.jsx)("h2",{className:dr.header,children:t}),!!c.length&&(0,l.jsx)("div",{className:dr.filtersWrapper,children:(0,l.jsx)(bt,{activeIndex:c.indexOf(m),children:c.map((function(e){return(0,l.jsx)("button",{type:"button",onClick:function(){var t;(t=e)!==m&&(x(t),p||v(!0))},children:e},e)}))})})]}),b?(0,l.jsx)("div",{className:dr.tilesWrapper,children:a.filter((function(e){return[hr,e.location].includes(m)||!e.location||e.location===hr})).map((function(e,t){var n,a=(0,L.iv)(xr(),800/(b-t));return(0,l.jsx)(mr,(0,r.Z)((0,i.Z)({},e),{location:null!==(n=e.location)&&void 0!==n?n:hr,className:p?"animate-zoom-in ".concat(a):""}),"".concat(m,"_").concat(t))}))}):(0,l.jsx)(W.ZP,{body:g["no-jobs-text"],className:"text-lead"})]})},pr=n(38816),vr=function(e){return(0,l.jsx)(l.Fragment,{children:"page"===e.layout?(0,l.jsx)("div",{className:c()("content-box",e.deactivateAdSlots&&"ml-auto"),children:(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},e),{children:(0,l.jsx)(pr.Z,{text:e.text})}))}):(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},e),{children:(0,l.jsx)(ki.Z,{theme:"light",text:e.text})}))})},gr=n(80599),br=n(62913),jr=function(e){var t=e.children,n=e.className,i=void 0===n?"":n;return(0,l.jsx)("div",{className:c()("grid md:grid-flow-col items-center justify-items-center gap-2 mt-6",i),children:t})},wr=function(e){return(0,l.jsx)("span",{className:"text-h5 text-center font-semibold text-black tesn:text-white teair:text-air-mediumBlue mb-4 last:mb-0",children:e})},Nr=function(e){return(0,l.jsx)("span",{className:"body-2 text-center text-black tesn:text-esn-primary teair:text-air-mediumBlue",children:e})},yr=function(e){var t,n=e.smallHeadline,i=e.title,r=e.description;return(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[n&&(t=n,(0,l.jsx)("span",{className:"text-center text-gray-2 tesn:text-esn-secondary-light mb-4 last:mb-0 tels:text-els-gold-light teair:text-air-skyBlue",children:t})),i&&wr(i),r&&Nr(r)]})},Zr=n(42699),kr=n(313),Cr=n(1409),Sr=function(){var e=(0,J.Z)((function(e,t,n){var i,r,a;return(0,$.__generator)(this,(function(s){switch(s.label){case 0:return i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,pot_id:t,contentfulId:n})},[4,(0,te.Z)((function(){return fetch("/api/me/lottery/status",i)}))];case 1:return r=s.sent().data,[2,null!==(a=null===r||void 0===r?void 0:r.data)&&void 0!==a?a:null]}}))}));return function(t,n,i){return e.apply(this,arguments)}}(),Tr=function(){var e=(0,J.Z)((function(e,t){var n,i,r,a,s,l=arguments;return(0,$.__generator)(this,(function(o){switch(o.label){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:null,i=l.length>3?l[3]:void 0,r=l.length>4?l[4]:void 0,a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:e,pot_id:t,member_id:n,form_data:null!==r&&void 0!==r?r:null,contentfulId:i})},[4,(0,te.Z)((function(){return fetch("/api/me/lottery/participate",a)}))];case 1:return[2,null!==(s=o.sent().data)&&void 0!==s?s:null]}}))}));return function(t,n){return e.apply(this,arguments)}}(),Ir="event",Lr=function(e){var t=e.webRaffleStart,n=e.webRaffleEnd,i=e.poolId,r=e.contentfulId,a=e.lotteryId,s=(0,h.useState)(null),l=s[0],o=s[1],c=(0,Cr.Z)(),d=c.isLoggedIn,u=c.isLoading,m=c.profile,x=c.hasProfile,f=c.isProfileComplete;(0,h.useEffect)((function(){var e=function(){var e=(0,J.Z)((function(){var e;return(0,$.__generator)(this,(function(t){switch(t.label){case 0:return d?(o("loading"),[4,Sr(Ir,i,r)]):[3,2];case 1:(e=t.sent())?e.has_won?o("won"):e.has_participated?o("already_participated"):e.has_participated||e.has_
1won?o("error"):o("ready_for_participation"):o("error"),t.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}();e()}),[d,r,i]);var p=function(){var e=(0,J.Z)((function(){var e;return(0,$.__generator)(this,(function(t){switch(t.label){case 0:return"ready_for_participation"!==l?[2]:(o("loading"),[4,Tr(Ir,i,null===m||void 0===m?void 0:m.sub,r)]);case 1:return(null===(e=t.sent())||void 0===e?void 0:e.message)&&!(null===e||void 0===e?void 0:e.errorName)?(o("already_participated"),a&&function(e,t){window.dataLayer&&window.dataLayer.push({event:"lottery_participation",lottery_id:t.toString(),pool_id:e.toString()})}(i,a)):o("error"),[2]}}))}));return function(){return e.apply(this,arguments)}}();return{lotteryBoxState:u?"loading":function(e,t){if(!e||!t)return!1;var n=Date.now();return(0,Zr.Z)(n,new Date(e))&&(0,kr.Z)(n,new Date(t))}(t,n)?d?x&&f?l:"incomplete_profile":"logged_out":"inactive",participate:p}},Er=function(e,t,n){var a=(0,ne.Z)(t,{eair:"lemon",esn:"pink"});return(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},a),{text:e,onClick:n}))},Mr=function(e){return(0,l.jsx)(O.Z,{renderButton:function(t){return(0,l.jsx)("button",{className:"text-body1 underline font-semibold leading-none text-black tesn:text-esn-secondary-light teair:text-air-mediumBlue",onClick:t,children:e})},urlToShare:window.location.href})},Pr=function(e){var t=e.id,n=e.lotteryId,a=e.poolId,s=e.webRaffleStart,o=e.webRaffleEnd,c=e.raffleEndUrl,d=e.raffleEndLink,u=e.textData,m=(0,f.v9)(ie.Rg),x=Lr({webRaffleStart:s,webRaffleEnd:o,poolId:a,contentfulId:t,lotteryId:n}),h=x.lotteryBoxState,p=x.participate;if(!h)return null;return(0,l.jsx)("div",{className:"flex flex-col items-center rounded-4 w-[600px] mx-6 px-6 py-8 md:px-20 teair:bg-white tesn:bg-esn-secondary tesn:text-primary tels:bg-white",children:"error"===h?(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleError,description:u.descriptionError}):"loading"===h?(0,l.jsx)(C.Z,{className:"w-12 h-12"}):"inactive"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleInactive,description:u.descriptionInactive}),(d||c)&&(0,l.jsxs)(jr,{children:[d&&(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},d),{children:Er(u.ctaInactiveText,m)})),c&&(0,l.jsx)(ae.Z,{href:c,children:Er(u.ctaInactiveText,m)})]})]}):"incomplete_profile"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleIncompleteProfile,description:u.descriptionIncompleteProfile}),(0,l.jsx)(jr,{children:(0,l.jsx)(ae.Z,{href:"/account/profile",children:Er(u.ctaIncompleteProfileText,m)})})]}):"ready_for_participation"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.title,description:u.description}),(0,l.jsxs)(jr,{children:[Er(u.ctaButtonText,m,p),u.ctaShareText.trim().length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-black tesn:text-white",children:"oder"}),Mr(u.ctaShareText)]})]})]}):"took_participation"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleParticipationSuccess,description:u.descriptionParticipationSuccess}),(0,l.jsx)(jr,{children:Mr(u.ctaShareText)})]}):"already_participated"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleAlreadyParticipated,description:u.descriptionAlreadyParticipated}),(0,l.jsx)(jr,{children:Mr(u.ctaShareText)})]}):"won"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleAlreadyWon,description:u.descriptionAlreadyWon}),(0,l.jsx)(jr,{children:Mr(u.ctaShareText)})]}):"logged_out"===h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(yr,{smallHeadline:u.smallHeadline,title:u.titleLogin,description:u.descriptionLogin}),(0,l.jsxs)(jr,{children:[Er(u.ctaLoginText,m,br.x4),u.ctaShareText.trim().length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-black tesn:text-white",children:"oder"}),Mr(u.ctaShareText)]})]})]}):null})},Ar=function(e){var t=e.id,n=e.poolId,i=e.lotteryId,r=e.webRaffleStart,a=e.webRaffleEnd,s=e.raffleEndUrl,o=e.raffleEndLink,c=e.background,d=e.backgroundMobile,u=e.textData;return(0,l.jsxs)("div",{className:"relative h-[85vh] md:h-[70vh] teair:bg
1-gradient-to-br teair:from-air-gradientPink teair:to-air-gradientBlue",children:[(0,l.jsx)(ai,{background:c,backgroundMobile:d}),(0,l.jsx)("div",{className:"absolute z-10 inset-0 flex justify-center items-center",children:(0,l.jsx)(Pr,{id:t,poolId:n,lotteryId:i,webRaffleStart:r,webRaffleEnd:a,raffleEndUrl:s,raffleEndLink:o,textData:u})})]})},Fr={wrapper:"content-box mb-5",header:"flex flex-col md:flex-row items-baseline mb-5",headerTitle:"text-h2 text-pink",gridWrapper:"pt-6 md:pt-12 overflow-x-hidden",loadingIcon:function(e){return c()(e>0&&"mt-4","w-12 h-12 text-center mx-auto")}},Br=function(e){var t=e.id,n=e.title,i=e.entryType,r=e.linkText,a=e.entries,s=(0,D.Z)().isMobile,o=a.map(vn.Z).filter(vt.Nf),c=!o.length,d={isExternal:!1,href:"".concat(_.P0[i].href,"?tagIdsToInclude=").concat(t),text:r,id:t};return(0,l.jsxs)("div",{className:Fr.wrapper,children:[(0,l.jsxs)("div",{className:Fr.header,children:[(0,l.jsx)("h2",{className:Fr.headerTitle,children:n}),(0,l.jsx)(Wt,{className:"md:ml-4",link:d})]}),(0,l.jsx)("div",{className:Fr.gridWrapper,children:(0,l.jsx)(jn.Z,{id:"".concat(t,"_").concat(i),teaserGroup:_.P0[i].teaserGroup,teasers:o,isMobile:s,isEmpty:c})})]})},_r=function(e){var t=e.title,n=e.image,i=e.year,r=e.url;return(0,l.jsxs)("div",{onClick:function(){return function(e){e&&window.open(e,"_blank")}(r)},className:c()("relative w-full md:w-[300px] aspect-[4/3] md:h-[300px] rounded-4 select-none overflow-hidden shadow-[0_0_16px_0_rgba(0,0,0,0.25)]",r&&"curs
1or-pointer"),children:[(0,l.jsx)(T.Z,{src:n.src,alt:t,basicLoader:!0,objectFit:"cover",className:"h-full w-full"}),(0,l.jsx)("div",{className:"absolute top-0 left-0 inline-flex py-2 px-4 justify-center items-center bg-[rgba(0,0,0,0.75)] rounded-br-4",children:(0,l.jsx)("span",{className:"text-body1 text-center",children:i})}),(0,l.jsx)("div",{className:"w-full h-[64px] md:h-[76px] absolute bottom-0 left-0 py-2 px-4 flex justify-center items-center bg-[rgba(0,0,0,0.75)]",children:(0,l.jsx)("span",{className:"text-h5 text-center",children:t})})]})},Dr=n(50497),Rr=n(42872),zr=function(e){var t=e.act,n=e.closeModal,i=e.onVoting,r=(0,w.Z)();return(0,l.jsx)(Rr.Z,{showCloseIcon:!0,onClose:n,children:(0,l.jsxs)("div",{className:"px-4 pt-20 pb-5 md:p-20 flex flex-col items-center h-full overflow-hidden",children:[(0,l.jsxs)("h3",{className:"text-h3 text-center md:mb-4",children:[(0,g.Z)(r["music-award-modal-title"])||"Deine Stimme f\xfcr"," ".concat(t)]}),(0,l.jsx)("p",{className:"text-center p-6 flex-shrink flex-grow overflow-auto min-h-0",children:(0,g.Z)(r["music-award-modal-text"])||"Beachte, dass du nur einem Act deine Stimme geben kannst. Das Vote kann nicht r\xfcckg\xe4ngig gemacht werden."}),(0,l.jsx)(ee.Z,{className:"",size:"XL",text:(0,g.Z)(r["music-award-modal-button-text"])||"Jetzt voten",onClick:i})]})})},Hr=function(e){var t=e.id,n=e.title,i=e.lotteryPool,r=e.image,a=e.votingStart,s=e.votingEnd,o=e.votedOn,d=e.setVotedOn,u=e.actVotedOn,m=e.setActVotedOn,x=(0,h.useState)(!1),f=x[0],p=x[1],v=(0,w.Z)(),b=u===t,j=Lr({webRaffleStart:a,webRaffleEnd:s,poolId:i,contentfulId:t}),N=j.lotteryBoxState,y=j.participate;(0,h.useEffect)((function(){"already_participated"===N&&d(!0)}),[d,N]);var Z=function(){return p(!1)},k=!o&&"ready_for_participation"===N||"logged_out"===N||"incomplete_profile"===N;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:c()("relative w-full md:w-[300px] aspect-[4/3] md:h-[300px] rounded-4 select-none overflow-hidden shadow-[0_0_16px_0_rgba(0,0,0,0.25)] group",k&&"cursor-pointer"),onClick:function(){o||"ready_for_participation"!==N||p(!0),"logged_out"===N&&(0,br.x4)(),"incomplete_profile"===N&&(0,br.PV)()},children:[(0,l.jsx)(T.Z,{src:r.src,alt:n,basicLoader:!0,objectFit:"cover",className:"h-full w-full"}),("already_participated"===N||b)&&(0,l.jsx)("div",{className:"absolute top-0 left-0 h-[calc(100%-64px)] md:h-[calc(100%-76px)] w-full flex justify-center items-center",children:(0,l.jsx)(Dr.Z,{className:"w-[128px] md:w-auto h-[128px] md:h-full"})}),!o&&"ready_for_participation"===N&&(0,l.jsx)("div",{className:"h-full w-full group-hover:bg-[#dfbb7280] absolute top-0 left-0"}),"logged_out"===N&&(0,l.jsx)("div",{className:"h-full w-full absolute top-0 left-0 flex justify-center items-center px-4 bg-[rgba(0,0,0,0.50)]",children:(0,l.jsx)("span",{className:"text-body1 text-center",children:(0,g.Z)(v["music-award-login-text"])||"Um abzustimmen zu k\xf6nnen, musst du dich einloggen"})}),"incomplete_profile"===N&&(0,l.jsx)("div",{className:"h-full w-full absolute top-0 left-0",children:(0,l.jsx)("div",{className:"h-full w-full flex justify-center items-center px-4 bg-[rgba(0,0,0,0.50)]",children:(0,l.jsx)("span",{className:"text-body1 text-center",children:(0,g.Z)(v["music-award-incomplete-profile-text"])||"Bitte vervollst\xe4ndige dein Profil."})})}),(0,l.jsx)("div",{className:"w-full h-[64px] md:h-[76px] absolute bottom-0 left-0 py-2 px-4 flex justify-center items-center bg-[rgba(0,0,0,0.75)]",children:(0,l.jsx)("span",{className:"text-h5 text-center",children:n})})]}),f&&(0,l.jsx)(zr,{act:n,closeModal:Z,onVoting:function(){y(),d(!0),m(t),Z()}})]})},Wr=function(e){var t=e.votingStart,n=e.votingEnd,i=e.acts,r=(0,h.useState)(!1),a=r[0],s=r[1],o=(0,h.useState)(""),c=o[0],d=o[1];return(0,l.jsx)(l.Fragment,{children:i.map((function(e){return(0,l.jsx)(Hr,{id:e.id,title:e.title,lotteryPool:e.lotteryPool,image:e.image,votingStart:t,votingEnd:n,votedOn:a,setVotedOn:s,actVotedOn:c,setActVotedOn:d},e.id)}))})},Or=function(e){var t=e.displayData,n=e.votingStart,i=e.votingEnd,r=e.displayTitle,a=e.acts,s=e.id;return(0,l.jsxs)("div",{className:"content-box",children:[r&&(0,l.jsx)("h1",{className:"text-h2 text-pink mb-8",children:r}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-8 justify-center",children:[t===qe.iR.nominees&&n&&i&&(0,l.jsx)(Wr,{votingStart:n,votingEnd:i,acts:a}),t===qe.iR.winners&&a.map((function(e){return(0,l.jsx)(_r,{title:e.title,image:e.image,year:e.year,url:e.url},e.id)}))]})]},s)},Vr=n(71653),Ur=function(e){var t=e.title,n=e.showTitle,i=e.background,r=e.newsletterMobileImage,a=e.newsletterDesktopImage,s=e.newsletterSuccessImage,o=e.newsletterErrorImage,d=e.deactivateAdSlots,u=e.newsletterVariant,m=void 0===u?"newsletter":u;return(0,l.jsxs)("div",{children:[n&&"event"!==m&&(0,l.jsx)("div",{className:c()("content-box",d&&"ml-auto"),children:(0,l.jsx)("h2",{className:"text-h2 text-pink mb-4 md:mb-6 tesn:text-white teair:text-air-deepBlue",children:t})}),(0,l.jsx)(Vr.Z,{isModal:!1,newsletterMobileImage:r,newsletterDesktopImage:a,newsletterSuccessImage:s,newsletterErrorImage:o,deactivateAdSlots:d,newsletterVariant:m,sectionTitle:"event"===m?t:void 0,background:i}
1)]})},qr=function(e){var t=e.title,n=e.description,i=e.links;return(0,l.jsx)("div",{className:"content-box",children:(0,l.jsx)(Ci,{title:t,description:n,links:i})})},Gr="https://cdn.podigee.com/podcast-player/javascripts/podigee-podcast-player.js",Qr=function(e){var t=e.title,n=e.podcastSubdomain,i=e.deactivateAdSlots;return(0,h.useEffect)((function(){var e=document.createElement("script");return e.type="text/javascript",e.src=Gr,e.async=!0,document.body.appendChild(e),function(){document.body.removeChild(e)}}),[]),(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:c()("content-box",i&&"ml-auto"),children:[t&&(0,l.jsx)("h2",{className:"text-h2 text-pink mb-4 md:mb-6",children:t}),(0,l.jsx)("div",{className:"podigee-podcast-player","data-configuration":"https://".concat(n,".podigee.io/embed?context=external"),src:Gr})]})})},Kr=function(e){var t=e.className,n=void 0===t?"":t,i=e.stroke,r=void 0===i?"currentColor":i;return(0,l.jsx)("div",{className:n,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 317",fill:"none",className:"w-[178px] h-[178px] lg:w-[314px] lg:h-[314px]",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M201.102 301.5C188.051 305.258 174.261 307.271 160 307.271C145.74 307.271 131.949 305.258 118.898 301.5H201.102ZM215.585 296.5H104.416C98.037 293.919 91.8789 290.907 85.9775 287.5H234.023C228.122 290.907 221.963 293.919 215.585 296.5ZM65.7918 273.5C69.6749 276.699 73.7235 279.704 77.9228 282.5H242.078C246.277 279.704 250.326 276.699 254.209 273.5L65.7918 273.5ZM60.029 268.5C56.8876 265.63 53.8702 262.627 50.9856 259.5L269.015 259.5C266.13 262.627 263.113 265.63 259.972 268.5L60.029 268.5ZM39.5625 245.5C41.7866 248.591 44.1267 251.593 46.5765 254.5L273.424 254.5C275.874 251.593 278.214 248.591 280.438 245.5L39.5625 245.5ZM36.1179 240.5C34.187 237.571 32.3572 234.569 30.6334 231.5L289.367 231.5C287.643 234.569 285.813 237.571 283.883 240.5L36.1179 240.5ZM23.7168 217.5C25.0296 220.554 26.4421 223.556 27.9502 226.5L292.05 226.5C293.558 223.556 294.971 220.554 296.284 217.5L23.7168 217.5ZM21.6755 212.5C20.5317 209.545 19.4799 206.543 18.5235 203.5L301.477 203.5C300.521 206.544 299.469 209.545 298.325 212.5L21.6755 212.5ZM14.8701 189.5C15.5047 192.535 16.2321 195.536 17.0492 198.5L302.951 198.5C303.768 195.536 304.496 192.535 305.13 189.5L14.8701 189.5ZM13.9143 184.5C13.3994 181.529 12.9729 178.528 12.6376 175.5L307.363 175.5C307.027 178.528 306.601 181.529 306.086 184.5L13.9143 184.5ZM11.7506 161.5C11.8006 164.523 11.941 167.524 12.1693 170.5L307.831 170.5C308.059 167.524 308.2 164.523 308.25 161.5L11.7506 161.5ZM11.7506 156.5C11.8006 153.477 11.9411 150.476 12.1694 147.5L307.831 147.5C308.059 150.476 308.2 153.477 308.25 156.5L11.7506 156.5ZM13.9146 133.5C13.3997 136.471 12.9731 139.472 12.6378 142.5L307.363 142.5C307.027 139.472 306.601 136.471 306.086 133.5L13.9146 133.5ZM14.8704 128.5C15.505 125.465 16.2325 122.464 17.0496 119.5L302.951 119.5C303.768 122.464 304.495 125.465 305.13 128.5L14.8704 128.5ZM21.6761 105.5C20.5322 108.455 19.4804 111.457 18.524 114.5L301.476 114.5C300.52 111.457 299.468 108.455 298.324 105.5L21.6761 105.5ZM23.7175 100.5C25.0303 97.4457 26.4428 94.4443 27.9509 91.5L292.05 91.5C293.558 94.4443 294.97 97.4457 296.283 100.5L23.7175 100.5ZM36.1188 77.5C34.1879 80.4291 32.358 83.4308 30.6343 86.5L289.366 86.5C287.642 83.4308 285.813 80.4291 283.882 77.5L36.1188 77.5ZM39.5635 72.5C41.7877 69.4088 44.1279 66.4066 46.5777 63.5L273.423 63.5C275.873 66.4066 278.213 69.4087 280.437 72.5L39.5635 72.5ZM60.0305 49.5C56.8891 52.3696 53.8716 55.3726 50.9869 58.5L269.013 58.5C266.129 55.3726 263.111 52.3696 259.97 49.5L60.0305 49.5ZM65.7935 44.5C69.6767 41.3014 73.7255 38.2964 77.9249 35.5L242.076 35.5C246.275 38.2964 250.324 41.3014 254.207 44.5L65.7935 44.5ZM104.419 21.5C98.0402 24.081 91.8818 27.0931 85.98 30.5L234.02 30.5C228.119 27.0931 221.96 24.081 215.581 21.5L104.419 21.5ZM118.903 16.5C131.953 12.7432 145.742 10.7305 160 10.7305C174.259 10.7305 188.048 12.7432 201.097 16.5L118.903 16.5ZM316.27 159.001C316.27 245.306 246.306 315.271 160 315.271C73.6946 315.271 3.72998 245.306 3.72998 159.001C3.72998 72.695 73.6946 2.73047 160 2.73047C246.306 2.73047 316.27 72.695 316.27 159.001Z",fill:r})})})},Xr=function(e){var t=e.className,n=void 0===t?"":t,i=e.stroke,r=void 0===i?"currentColor":i;return(0,l.jsx)("div",{className:n,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 58 158",fill:"none",className:"w-[43px] h-[114px] lg:w-[58px] lg:h-[158px]",children:(0,l.jsx)("path",{d:"M29 154C15.19 154 4 142.81 4 129C4 115.19 15.19 104 29 104C42.81 104 54 92.81 54 79C54 65.19 42.81 54 29 54C15.19 54 4 42.81 4 29C4 15.19 15.19 4 29 4",stroke:r,strokeWidth:"8",strokeMiterlimit:"10"})})})},Yr=function(e){var t=e.className,n=void 0===t?"":t,i=e.strokeColor,r=void 0===i?"currentColor":i;return(0,l.jsx)("div",{className:n,children:(0,l.jsxs)("svg",{width:"233",he
1ight:"233",viewBox:"0 0 233 233",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"4.00049",y:"4",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"78.9998",y:"4",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"154.001",y:"4",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"79.0015",y:"79",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"79.0012",y:"154",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"154.001",y:"79",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"154",y:"154",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"4.00024",y:"79",width:"75",height:"75",stroke:r,strokeWidth:"8"}),(0,l.jsx)("rect",{x:"4",y:"154",width:"75",height:"75",stroke:r,strokeWidth:"8"})]})})},Jr=function(e){var t=e.className,n=void 0===t?"":t,i=e.fill,r=void 0===i?"currentColor":i;return(0,l.jsx)("div",{className:n,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"55",height:"88",viewBox:"0 0 55 88",fill:"none",className:"w-[36px] h-[58px] lg:w-[55px] lg:h-[88px]",children:(0,l.jsx)("path",{d:"M21.12 28.8L22.44 22.2C23.28 18.24 25.8 14.4 29.16 14.4C32.4 14.4 33.12 17.88 32.28 21.6C31.56 25.08 30 28.44 27.24 31.08L17.4 40.08C12 45 9.84 53.04 7.92 61.68H29.04C30.12 57.72 31.08 53.16 33.72 50.64L43.44 41.64C48.84 36.72 52.32 30.36 53.64 23.88C58.56 0.960007 38.76 0 33.12 0C24.36 0 14.64 2.40001 8.28 9.60001C3.24 15.24 1.44 22.32 0 28.8H21.12ZM2.28 87.36H24.12L28.44 67.2H6.6L2.28 87.36Z",fill:r})})})},$r=function(e){var t=e.className,n=void 0===t?"":t,i=e.fill,r=void 0===i?"currentColor":i;return(0,l.jsx)("div",{className:n,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 179 154",fill:"none",className:"w-[179px] h-[154px]",children:(0,l.jsx)("path",{d:"M7.6606 149.75L89.5 8L171.339 149.75H7.6606Z",stroke:r,strokeWidth:"8"})})})},ea="symbol text-white absolute block z-1",ta="text-game-orange absolute block",na=function(e){var t=e.hasWon,n=void 0!==t&&t,i=(0,h.useRef)(null),r=(0,h.useState)(!1),a=r[0],s=r[1],o=c()("animate-floating-left-element",ea,a&&"animate-pulse-left"),d=c()(ta,a&&"animate-pulse-left-shadow"),u=c()("animate-floating-right-element",ea,a&&"animate-pulse-right"),m=c()(ta,a&&"animate-pulse-right-shadow");return(0,h.useEffect)((function(){var e;n&&(((null===(e=i.current)||void 0===e?void 0:e.querySelectorAll(".symbol"))||[]).forEach((function(e){var t=window.getComputedStyle(e).getPropertyValue("transform");e.setAttribute("style","transform: ".concat(t))})),s(!0));var t=setTimeout((function(){s(!1)}),4e3);return function(){return clearTimeout(t)}}),[n,i]),(0,l.jsxs)("div",{className:"absolute z-1 inset-0",ref:i,children:[(0,l.jsxs)("div",{className:c()("hidden md:block absolute h-[152px] w-[152px] transform rotate-[-23deg]","top-[24rem] md:top-[20rem] lg:top-[20rem] xl:top-[24rem] left-[16rem] md:left-[-1rem] lg:left-[-1rem] 2xl:left-[-2rem]"),children:[(0,l.jsx)($r,{className:o}),(0,l.jsx)($r,{className:d})]}),(0,l.jsxs)("div",{className:"absolute top-[9rem] md:top-[38rem] left-[0.5rem] md:left-[12rem] lg:left-[11rem] 2xl:left-[11rem] transform rotate-[-30deg] w-[36px] h-[58px] 2xl:w-[55px] 2xl:h-[88px]",children:[(0,l.jsx)(Jr,{className:o}),(0,l.jsx)(Jr,{className:d})]}),(0,l.jsxs)("div",{className:"hidden md:block absolute top-[3rem] md:top-[2rem] lg:top-[1rem] left-[12rem] md:left-[-1.5rem] lg:left-[-1rem] xl:left-[1rem] 2xl:left-[-7rem] transform rotate-[15deg] h-[15rem] w-[15rem]",children:[(0,l.jsx)(Yr,{className:o}),(0,l.jsx)(Yr,{className:d})]}),(0,l.jsxs)("div",{className:c()("transform rotate-[-74deg] w-[43px] h-[114px] 2xl:w-[58px] 2xl:h-[158px]","block md:hidden lg:block absolute top-[35rem] left-[2rem] md:left-[-10rem]"),children:[(0,l.jsx)(Xr,{className:o}),(0,l.jsx)(Xr,{className:d})]}),(0,l.jsxs)("div",{className:"hidden md:block absolute top-[17rem] md:top-[18rem] lg:top-[15rem] 2xl:top-[15rem] right-[15rem] md:right-[3rem] lg:right-[-5rem] xl:right-[3rem] 2xl:right-[4rem] transform rotate-[20deg] w-[36px] h-[58px] 2xl:w-[55px] 2xl:h-[88px]",children:[(0,l.jsx)(Jr,{className:u}),(0,l.jsx)(Jr,{className:m})]}),(0,l.jsxs)("div",{className:"absolute top-[0.5rem] md:top-[4rem] lg:top-[0rem] 2xl:top-[0rem] right-[-0.5rem] md:right-[8rem] lg:right-[4rem] 2xl:right-[-1rem] transform rotate-[39deg] w-[43px] h-[114px] 2xl:w-[58px] 2xl:h-[158px]",children:[(0,l.jsx)(Xr,{className:u}),(0,l.jsx)(Xr,{className:m})]}),(0,l.jsxs)("div",{className:"absolute top-[34rem] md:top-[28rem] lg:top-[30rem] xl:top-[28rem] right-[-3rem] md:right-[-4rem] lg:right-[-6rem] 2xl:right-[-8rem] w-[178px] h-[178px] 2xl:w-[314px] 2xl:h-[314px] transform rotate-[45deg]",children:[(0,l.jsx)(Kr,{className:u}),(0,l.jsx)(Kr,{className:m})]})]})},ia=n(65896),ra=n(86142),aa=function(e){var t=e.text;return(0,l.jsx)("div",{className:"flex flex-col items-center",children:(0,l.jsxs)("div",{className:"flex items-start max-w-[508px]",children:[(0,l.jsx)("input",{type:"checkbox",name:"marketingOptIn",id:"marketingOptIn",className:"mt-1 mr-3 w-4 h-4 shadow-quizOption rounded-1 border-[1px] border-black bg-white hover:bg-game-orange-light cursor-pointer"}),(0,l.jsx)("label",{htmlFor:"marketingOptIn",className:"text-body text-white font-semibold cursor-pointer",children:t})]})})},sa=function(e){var t=e.title,n=void 0===t?"":t,i=e.message,r=void 0===i?"":i,a=e.children,s=e.switchState,o=void 0!==s&&s,d=e.onSwitchState,u=void 0===d?function(){}:d,m=e.hasWon,x=void 0!==m&&m,f=(null===n||void 0===n?void 0:n.split(" "))||[];return(0,h.useEffect)((function(){if(!o)return function(){};var e=setTimeout((function(){u()}),7e3);return function(){return clearTimeout(e)}}),[u,o]),(0,l.jsxs)("div",{children:[n&&(0,l.jsx)("div",{className:c()("text-[3.5rem] md:text-[6rem] font-inter font-extraBold text-white text-border drop-shadow-shifted","flex flex-row flex-wrap justify-center mt-4"),children:f.map((function(e,t){var n,i=((null===(n=f[t-1])||void 0===n?void 0:n.length)||0)*t,r=f.length-1===t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex flex-row",children:e.split("").map((function(e,t){var n=(.05*(i+t+1)).toFixed(2);return(0,l.jsx)("span",{className:c()("opacity-0 inline-block",x?"animate-title-reveal":"animate-title-reveal-no-hop"),style:{animationDelay:"".concat(n,"s")},children:e},"".concat(e,"-").concat(t))}))},"".concat(e,"-").concat(t)),!r&&(0,l.jsx)(l.Fragment,{children:"\xa0"})]})}))}),r&&(0,l.jsx)("h4",{className:c()("text-h4 text-white text-border drop-shadow-small my-8 md:mb-14 md:mt-8 text-center font-semibold","animate-fade-in opacity-0"),children:r}),a]})},la="font-extraBold text-white text-border drop-shadow-big",oa=function(e){var t=e.endDate,n=e.ticksPerSecond,i=void 0===n?1:n,r=e.onFinish,s=void 0===r?function(){}:r,o=e.hasStyledDate,d=void 0!==o&&o,u=(0,h.useState)((new Date(t).getTime()-Date.now())/1e3),m=u[0],x=u[1],f=function(e){return e.split("").map((function(e,t){return(0,l.jsx)("div",{className:c()(d&&"w-10 md:w-16"),children:e},"".concat(e,"-").concat(t))}))},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,vt.hK)(e),i=(0,a.Z)(n.split(":"),3),r=i[0],s=i[1],o=i[2];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex justify-center",children:[f(r),(0,l.jsx)("div",{className:c()(d&&"w-10 md:w-8"),children:t?"h":":"})]}),(0,l.jsxs)("div",{className:"flex justify-center",children:[f(s),(0,l.jsx)("div",{className:c()(d&&"w-10 md:w-8"),children:t?"m":":"})]}),(0,l.jsxs)("div",{className:"flex justify-center",children:[f(o),t&&(0,l.jsx)("div",{className:c()(d&&"w-10"),children:"s"})]})]})};return(0,h.useEffect)((function(){var e=setTimeout((function(){if(m>0){var e=m-1/i;x(e),e<=0&&s()}}),1e3/i);return function(){return clearTimeout(e)}}),[m,s,i]),(0,l.jsxs)("div",{className:c()(d&&"mt-4 text-center"),children:[(0,l.jsx)("span",{className:c()(d?"hidden md:flex justify-center text-[95px] ".concat(la):"flex items-center"),children:p(m)}),(0,l.jsx)("div",{className:c()(d?"flex flex-col md:hidden text-[56px] leading-[70px] ".concat(la):"hidden"),children:p(m,!0)})]})},ca=function(e){var t=e.message,n=void 0===t?"":t,i=e.hasPlainDate,r=void 0!==i&&i,a=e.nextQuestionDate,s=void 0===a?null:a,o=e.onCountdownFinish,d=void 0===o?function(){}:o,u=(0,w.Z)(),m=(0,g.Z)(u["next-question-in-text"])||"N\xe4chste Frage";return(0,l.jsxs)("div",{children:[n&&(0,l.jsx)("h3",{className:"text-body2 text-white text-center font-semibold",children:n}),s&&(0,l.jsxs)("div",{className:c()(r&&"inline-flex"),children:[(0,l.jsxs)("p",{className:c()(!r&&"text-[22px] font-semibold md:text-[2rem] text-white text-center drop-shadow-small my-6 md:mt-12 text-border"),children:[m,"\xa0"]}),(0,l.jsx)(oa,{endDate:new Date(s),onFinish:d,hasStyledDate:!r})]})]})};function da(){var e=(0,I.Z)(["\n  &:checked + label {\n    transform: translate(calc(0.25rem - 3px), 0.25rem);\n  }\n"]);return da=function(){return e},e}var ua=ra.Vo.QuizState,ma=(0,L.iv)(da()),xa=function(e){var t,n=e.title,a=e.displayTitle,s=void 0!==a&&a,o=(e.deactivateAdSlots,e.correctTitle),d=void 0===o?"":o,u=e.correctMessage,m=void 0===u?"":u,x=e.invalidAnswerTitle,p=void 0===x?"":x,v=e.invalidAnswerMessage,b=void 0===v?"":v,j=e.messageAlreadyAttended,N=void 0===j?"":j,y=e.messageWithoutQuiz,Z=void 0===y?""
1:y,k=e.sweepstakeDataToken,S=void 0===k?"":k,T=e.userNotWonTitle,I=void 0===T?"":T,L=e.validProfileWonTitle,E=void 0===L?"":L,M=e.loginForResultsMessage,P=void 0===M?"":M,A=e.marketingOptInText,F=void 0===A?"":A,B=(0,h.useRef)(null),_=(0,h.useRef)(null),D=(0,w.Z)(),R=(0,h.useState)(!0),z=R[0],H=R[1],W=(0,h.useState)(ua.LOADING),O=W[0],V=W[1],U=(0,h.useState)(),q=U[0],G=U[1],Q=(0,h.useState)(null),K=Q[0],X=Q[1],Y=(0,h.useState)(!0),re=Y[0],ae=Y[1],se=O===ua.LOADING,le=(0,Cr.Z)(),oe=le.isLoggedIn,ce=le.isLoading,de=le.hasProfile,ue=le.isProfileComplete,me=le.missingFields,xe=(0,f.v9)(ie.Rg),he=(0,ne.Z)(xe),fe=function(){var e=(0,J.Z)((function(){var e,t,n;return(0,$.__generator)(this,(function(i){switch(i.label){case 0:return ce?(V(ua.LOADING),[2]):oe?de?ue?[4,(0,te.Z)((function(){return fetch("/api/quiz/question")}))]:(V(ua.INCOMPLETE_PROFILE),[2]):(V(ua.ERROR),[2]):(V(ua.USER_NOT_LOGGED),[2]);case 1:return e=i.sent(),t=e.data,(n=e.error)||!t?(V(ua.ERROR),console.error(n),[2]):(null===(null===t||void 0===t?void 0:t.question)?(X(t),V(ua.NO_QUESTION)):(X(t),V(t.didUserAlreadyAnswer?ua.ALREADY_ANSWERED:ua.DEFAULT)),[2])}}))}));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=(0,J.Z)((function(e){var t,n,r,a;return(0,$.__generator)(this,(function(s){switch(s.label){case 0:return t=(0,i.Z)({},e&&(0,i.Z)({},e),S&&{sweepstakeDataToken:S}),[4,(0,te.Z)((function(){return fetch("/api/quiz/answer",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}})}))];case 1:return n=s.sent(),r=n.data,a=n.error,(null===r||void 0===r?void 0:r.consent)&&H(!0),(null===r||void 0===r?void 0:r.questionTimedOut)?[4,fe()]:[3,3];case 2:return s.sent(),V(ua.DEFAULT),[2];case 3:return(null===r||void 0===r?void 0:r.alreadyAnswered)?K?[3,5]:[4,fe()]:[3,6];case 4:s.sent(),s.label=5;case 5:return V(ua.ALREADY_ANSWERED),[2];case 6:return a||!r?(V(ua.ERROR),console.error(a),[2]):(r.wasCorrect?(V(ua.CORRECT),S&&(r.hasWon?setTimeout((function(){V(ua.SWEEPSTAKE_WIN),G(r.text)}),3250):setTimeout((function(){V(ua.SWEEPSTAKE_NOT_WIN),G(r.text)}),3250))):V(ua.WRONG_ANSWER),[2])}}))}));return function(t){return e.apply(this,arguments)}}(),ve=(0,g.Z)(D["quiz-send-button-text"])||"Send",ge=(0,g.Z)(D["quiz-login-button"])||"Login",be=(0,g.Z)(D["quiz-complete-profile-required-text"])||"Gib diese Informationen in deinem Profil an, um am Quiz teilnehmen zu k\xf6nnen:",je=function(){var e=(0,J.Z)((function(e){var t,n,i,r;return(0,$.__generator)(this,(function(a){switch(a.label){case 0:return e.preventDefault(),!(null===K||void 0===K?void 0:K.question)||re?[2]:(ae(!0),t=new FormData(e.target),n=t.get("quizQuestionOption"),i=t.get("marketingOptIn"),r={questionId:K.question.questionId,answerId:Number(n),marketingOptIn:Boolean(i)},[4,pe(r)]);case 1:return a.sent(),ae(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),we=function(){var e=(0,J.Z)((function(){return(0,$.__generator)(this,(function(e){switch(e.label){case 0:return V(ua.LOADING),[4,fe()];case 1:return e.sent(),[2]}}))}));return function(){return e.apply(this,arguments)}}(),Ne={switchState:!0,onSwitchState:(0,J.Z)((function(){return(0,$.__generator)(this,(function(e){switch(e.label){case 0:return K?[3,2]:[4,fe()];case 1:e.sent(),e.label=2;case 2:return O===ua.SWEEPSTAKE_WIN&&"string"===typeof(null===K||void 0===K?void 0:K.nextQuestionStart)&&(0,kr.Z)(new Date(K.nextQuestionStart),new Date)?[4,fe()]:[3,4];case 3:return e.sent(),V(ua.DEFAULT),[2];case 4:return V(ua.ALREADY_ANSWERED),[2]}}))}))};return(0,h.useEffect)((function(){window&&(O!==ua.ALREADY_ANSWERED&&fe(),ce||oe||V(ua.USER_NOT_LOGGED))}),[ce,_]),(0,h.useEffect)((function(){function e(){return e=(0,J.Z)((function(){var e,t,n,i;return(0,$.__generator)(this,(function(r){switch(r.label){case 0:return[4,(0,te.Z)((function(){return fetch("/api/quiz/consent?sweepstakeDataToken=".concat(S))}))];case 1:return e=r.sent(),t=e.data,n=e.error,i=t.consent,n||void 0===i?(console.error(n),H(!0),[2]):(H(i),[2])}}))})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[S]),(0,h.useEffect)((function(){var e;(null===(e=B.current)||void 0===e?void 0:e.checkValidity())&&ae(!1)}),[null===(t=B.current)||void 0===t?void 0:t.checkValidity]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(na,{hasWon:O===ua.CORRECT}),(0,l.jsxs)("div",{className:"content-box relative z-1 min-h-[568px] grid place-items-center",ref:_,children:[s&&(0,l.jsx)("h2",{children:n}),se?(0,l.jsx)(C.Z,{id:"loading-icon",className:"w-24 h-24"}):(0,l.jsxs)(l.Fragment,{children:[O===ua.DEFAULT&&!!(null===K||void 0===K?void 0:K.question)&&(0,l.jsxs)("form",{onSubmit:je,ref:B,className:"pt-8 pb-4 px-6",children:[(0,l.jsx)("h3",{className:"text-body1 text-white text-center font-semibold",children:(0,l.jsx)(ca,{hasPlainDate:!0,nextQuestionDate:K.question.questionEnd,onCountdownFinish:we})}),(0,l.jsx)("h4",{className:"text-h4 text-white text-center text-border drop-shadow-small mt-4",children:K.question.questionText}),(0,l.jsx)("ul",{className:"my-4 flex flex-col items-center",children:K.question.options.map((function(e){return(0,l.jsxs)("li",{className:"my-4 max-w-[508px] w-full group",children:[(0,l.jsx)("input",{type:"radio",name:"quizQuestionOption",id:"".concat(e.id),value:e.id,onChange:function(){return ae(!1)},required:!0,className:c()("hidden peer",ma)}),(0,l.jsx)("label",{htmlFor:"".concat(e.id),className:c()("group-hover:bg-game-orange-light cursor-pointer bg-white p-6 block shadow-quizOption rounded-2 border-[3px] text-body1 text-black font-semibold","peer-checked:bg-game-orange peer-checked:shadow-none","transition-quizOption duration-200 ease-in-out"),children:e.text})]},e.id)}))}),F&&!z&&(0,l.jsx)(aa,{text:F}),(0,l.jsx)("div",{className:"flex justify-center mt-8",children:(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({type:"submit"},he),{text:ve,disabled:re||se,className:"text-body2 font-semibold"}))})]}),O===ua.ERROR&&(0,l.jsx)(sa,{title:"Hoppala...",message:"Da ging was schief."}),O===ua.INCOMPLETE_PROFILE&&(0,l.jsx)(sa,{title:"Hoppala...",children:(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center w-full px-10",children:[(0,l.jsx)("h4",{className:c()("text-h4 text-white text-border drop-shadow-small my-8 font-semibold","animate-fade-in opacity-0"),children:be}),(0,l.jsx)("ul",{className:"mb-8 w-full px-10",children:null===me||void 0===me?void 0:me.map((function(e){return(0,l.jsx)("li",{className:c()("text-h4 text-white text-border drop-shadow-small font-semibold list-disc","animate-fade-in opacity-0"),children:(0,g.Z)(D[ia.a[e]])||e})}))}),(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},he),{size:"L",type:"submit",text:"Profil bearbeiten",onClick:function(){return(0,br.PV)()}}))]})}),O===ua.ALREADY_ANSWERED&&K&&(0,l.jsx)(ca,{message:N,nextQuestionDate:K.nextQuestionStart,onCountdownFinish:we}),O===ua.CORRECT&&(0,l.jsx)(sa,(0,i.Z)({message:m,title:d,hasWon:!0},Ne)),O===ua.WRONG_ANSWER&&(0,l.jsx)(sa,(0,i.Z)({title:p,message:b},Ne)),O===ua.SWEEPSTAKE_NOT_WIN&&(0,l.jsx)(sa,(0,i.Z)({title:I,message:q},Ne)),O===ua.SWEEPSTAKE_WIN&&(0,l.jsx)(sa,(0,i.Z)({message:q,title:E,hasWon:!0},Ne)),O===ua.NO_QUESTION&&K&&(0,l.jsx)(ca,{message:Z,nextQuestionDate:K.nextQuestionStart,onCountdownFinish:we}),O===ua.USER_NOT_LOGGED&&(0,l.jsx)(sa,{message:P,children:(0,l.jsx)("div",{className:"flex justify-center items-center",children:(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},he),{size:"L",type:"submit",text:ge,onClick:br.x4}))})})]})]})]})},ha={container:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c()("bg-black text-white tlight:bg-white tlight:text-black game:bg-game-blue-midnight ".concat(K),e?"teair:bg
1-air-deepBlue":"teair:bg-white")},contentContainer:"content-box",textContainer:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c()("text-body1 game:text-white game:text-center",!e&&"text-box",t?"teair:text-white":"teair:text-air-deepBlue")}},fa=ha,pa=function(e){var t=e.body,n=e.hasInvertedThemeColor,i=(0,j.Z)().isGameTheme,r=n;return(0,l.jsx)("div",{className:fa.container(r),children:(0,l.jsx)("div",{className:fa.contentContainer,children:(0,l.jsx)("div",{className:fa.textContainer(i,r),children:(0,l.jsx)(W.ZP,{body:t})})})})};function va(){var e=(0,I.Z)(["\n  font-family: 'Syne', sans-serif !important;\n  line-height: 0.75 !important;\n"]);return va=function(){return e},e}var ga=(0,L.iv)(va()),ba={gradient:c()("absolute inset-0 top-auto aspect aspect-1-1 bg-gradient-to-t from-black from-1/6 blend-multiply","xl:w-2/3 lg:w-10/12 md:top-0 md:w-3/4 md:h-full md:pb-0 md:blend-normal md:bg-gradient-to-r","teair:from-air-deepBlue teair:blend-normal teair:rounded-4"),gradientHover:"group-hover:w-full transition-all",imageContainer:"overflow-hidden object-cover md:rounded-4",image:"aspect aspect-2-3 md:aspect-2-1",imageMobile:"md:hidden",imageDesktop:"hidden md:block",content:function(e){return c()("absolute inset-0 top-auto md:w-3/5 lg:w-3/4 xl:w-1/2 my-8 md:mx-0 md:my-6 2xl:my-12",e&&"xl:mb-12 2xl:mb-14 3xl:mb-18 teair:md:mx-8 teair:lg:mx-12 teair:md:mb-16 teair:lg:mb-24")},overlineText:c()("inline-block text-overline mb-2","tesn:text-esn-secondary-light","teds:text-red-medium","tels:text-els-gold-light","teair:text-air-skyBlue"),description:"mt-2 md:mt-4 text-body2 md:text-body1 teair:text-white",buttonContainer:"mt-4 md:mt-6",circleContent:ga},ja=(0,h.memo)((function(e){var t=e.title,n=e.description,a=e.overlineText,s=e.imageDesktop,o=e.imageMobile,d=e.link,u=e.layout,m=e.formatOverlineText,x=void 0!==m&&m,h=e.sessionDate,f=void 0===h?"":h,p=e.sessionLocation,v=void 0===p?"":p,b=e.sessionNumber,N=void 0===b?"":b,y=e.hasInvertedThemeColor,Z=e.componentType,k=e.deactivateAdSlots,C=(0,w.Z)(),S=(0,j.Z)(),I=S.isEventTheme,L=S.pageTheme,E="teaser"===Z,M="act"===Z,P=(0,ne.Z)(L),A="lotteryFormButton"===(null===d||void 0===d?void 0:d.componentType),F=(x&&f||v)&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[];return t&&n.push((0,vt.p6)(t,"dd.MM.yyyy")),e&&n.push(e),n.join(", ")}(v,f),B=function(){return(0,l.jsxs)("div",{className:"group relative",children:[o&&(0,l.jsx)("div",{className:c()(ba.imageContainer,ba.imageMobile),children:(0,l.jsx)(T.Z,{className:ba.image,src:o.src,fallbackSrc:o.fallbackSrc,alt:o.description,objectFit:"cover",basicLoader:o.isExternal})}),s&&(0,l.jsx)("div",{className:c()(ba.imageContainer,ba.imageDesktop),children:(0,l.jsx)(T.Z,{className:ba.image,src:s.src,fallbackSrc:s.fallbackSrc,alt:s.description,objectFit:"cover",basicLoader:s.isExternal})}),(s||o)&&(0,l.jsx)("div",{className:c()(ba.gradient,d&&ba.gradientHover)}),N&&(0,l.jsx)("div",{className:c()("absolute right-5 top-6 w-20 h-20 tels:bg-els-blue rounded-full flex items-center justify-center","md:w-32 md:h-32 lg:right-10 lg:top-10"),children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:c()("text-h4",ba.circleContent),children:(0,g.Z)(C["live-session-circle-number-text"])||"Nr."}),(0,l.jsx)("div",{className:c()("text-h1 font-syne",ba.circleContent),children:N})]})}),(0,l.jsx)("div",{className:ba.content(I),children:(0,l.jsxs)("div",{className:c()("content-box md:content-box-none",!y&&"teair:content-box",k&&"ml-auto"),children:[(!!a||F)&&(0,l.jsx)("span",{className:ba.overlineText,children:x?F:a}),(0,l.jsx)("h2",{className:"text-h2 teair:text-white break-normal",children:t}),n&&(0,l.jsx)(W.ZP,{className:ba.description,body:n}),d?d&&A?(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(mt.Z,(0,i.Z)({},d))}):(0,l.jsx)("div",{className:ba.buttonContainer,children:I?(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},P),{text:d.text,className:"font-semibold"})):(0,l.jsx)(ki.Z,{className:"transition-all",text:d.text})}):null]})})]})};return(0,l.jsx)("div",{className:c()("rich-text"===u&&"bg-black",E&&"teair:bg
1-white",M&&"py-0"),children:(0,l.jsx)("div",{className:c()("md:content-box",k&&"md:ml-auto"),children:d&&!A?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},d),{children:(0,l.jsx)(B,{})})):(0,l.jsx)(B,{})})})})),wa=ja,Na=function(e){var t=e.title,n=e.teasers,a=e.paginationData,o=e.isHistory,c=void 0!==o&&o,d=(0,h.useMemo)((function(){return n}),[n]),u=(0,w.Z)(),m=(0,j.Z)().pageTheme,x=(0,ne.Z)(m),f=(0,h.useState)(a),p=f[0],v=f[1],g=(0,h.useState)(!1),b=g[0],N=g[1],y=(0,h.useState)([]),Z=y[0],k=y[1],S=(0,h.useCallback)((0,J.Z)((function(){var e,t,n,i;return(0,$.__generator)(this,(function(r){switch(r.label){case 0:return N(!0),e=new URLSearchParams({page:(p.currentPage+1).toString(),perPage:p.perPage.toString(),isHistory:c.toString()}),[4,(0,te.Z)((function(){return fetch("/api/sessions?".concat(e))}))];case 1:return t=r.sent(),n=t.data,(i=t.error)&&console.error(i),n&&(k((function(e){return(0,s.Z)(e).concat((0,s.Z)(n.teasers))})),v(n.paginationData)),N(!1),[2]}}))})),[p.currentPage,p.perPage,c]),T=function(e){return(0,l.jsx)("div",{className:"py-8 md:py-14",children:(0,l.jsx)(wa,(0,i.Z)({},e))},e.title)};return(0,l.jsxs)("div",{children:[(0,l.jsx)("h1",{className:"content-box text-h1",children:t}),!n.length&&(0,l.jsx)("div",{className:"content-box mb-8 mt-4 md:mt-8 md:mb-20",children:(0,l.jsx)(W.ZP,{className:"text-lead",body:u["live-sessions-no-live-sessions-text"]})}),!!n.length&&(0,l.jsxs)("div",{className:"md:my-6",children:[d.map(T),!!Z.length&&Z.map(T)]}),b&&(0,l.jsx)("div",{className:"flex justify-center mb-4",children:(0,l.jsx)(C.Z,{className:"h-12 w-12"})}),!p.areAllItemsLoaded&&!b&&(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(ee.Z,(0,r.Z)((0,i.Z)({},x),{text:"Load more",onClick:S}))})]})},ya=n(52997),Za=n(7649),ka=n(43167),Ca={wrapper:"hidden md:block relative",infoWrapper:"absolute top-0 z-50 flex flex-col items-start w-3/5 mt-12 xl:mt-16",cardImgContainer:"relative md:w-4/5 2xl:w-3/4 md:ml-auto",gradient:"absolute inset-y-0 right-0 -left-px aspect aspect-1:1 w-2/3 md:pb-0 bg-gradient-to-t md:bg-gradient-to-r from-black",gradientHover:"group-hover:w-full transition-all"},Sa=function(e){var t=e.background,n=e.children,i=e.className,r=void 0===i?"":i,a=e.hoverEnabled,s=void 0!==a&&a;return(0,l.jsxs)("article",{className:c()(Ca.wrapper,s&&"group",r),children:[(0,l.jsx)("div",{className:Ca.infoWrapper,children:n}),t&&(0,l.jsxs)("div",{className:Ca.cardImgContainer,children:[(0,l.jsx)(T.Z,{src:t.src,fallbackSrc:t.fallbackSrc,alt:t.description,className:"aspect aspect-16-9",basicLoader:t.isExternal}),(0,l.jsx)("div",{className:c()(Ca.gradient,s&&Ca.gradientHover)})]})]})},Ta={wrapper:"md:hidden flex flex-col relative",cardImgContainer:"relative h-2/3 md:ml-auto",cardImg:"aspect aspect-16-9",buttons:"flex mr-4",infoWrapper:"content-box z-20 flex flex-col -mt-12",gradientTop:"absolute inset-0 opacity-70 h-1/6 mb-auto  bg-gradient-to-b from-black",gradientBottom:"absolute inset-0 -bottom-1/6 z-10 h-4/5 mt-auto bg-gradient-to-t from-black from-1/5"},Ia=function(e){var t=e.background,n=e.children,i=e.className,r=void 0===i?"":i;return(0,l.jsxs)("article",{className:c()(Ta.wrapper,r),children:[t&&(0,l.jsxs)("div",{className:Ta.cardImgContainer,children:[(0,l.jsx)(T.Z,{className:Ta.cardImg,src:t.src,fallbackSrc:t.fallbackSrc,alt:t.description,basicLoader:t.isExternal}),(0,l.jsx)("div",{className:Ta.gradientTop}),(0,l.jsx)("div",{className:Ta.gradientBottom})]}),(0,l.jsx)("div",{className:Ta.infoWrapper,children:n})]})},La=function(e){var t=e.children,n=e.background,i=e.backgroundMobile,r=e.className,a=void 0===r?"":r,s=e.hoverEnabled,o=void 0!==s&&s;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Sa,{background:n,hoverEnabled:o,className:a,children:t}),(0,l.jsx)(Ia,{background:null!==i&&void 0!==i?i:n,className:a,children:t})]})},Ea={wrapper:"mb-4 text-h3 lg:text-h4 xl:text-h3 text-pink"},Ma=function(e){var t=e.children;return(0,l.jsx)("span",{className:Ea.wrapper,children:t})},Pa=function(e){return"lotteryFormButton"===(null===e||void 0===e?void 0:e.componentType)},Aa=function(e){var t=e.sliderItem,n=t.title,a=t.description,s=t.background,o=t.backgroundMobile,c=t.link,d=function(){var e=c&&(Pa(c)?(0,l.jsx)(mt.Z,(0,i.Z)({},c)):(0,l.jsx)(ee.Z,{className:"transition-all",text:c.text,color:"white"}));return(0,l.jsxs)(La,{background:s,backgroundMobile:null!==o&&void 0!==o?o:s,hoverEnabled:Boolean(c),children:[(0,l.jsx)(Ma,{children:n}),a&&(0,l.jsx)("div",{className:"mb-4",children:(0,l.jsx)(W.ZP,{body:a})}),c&&(0,l.jsx)("div",{children:e})]})};return c&&!Pa(c)?(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({},c),{children:(0,l.jsx)(d,{})})):(0,l.jsx)(d,{})};function Fa(){var e=(0,I.Z)(["\n  .swiper-pagination {\n    padding-left: 1rem;\n    left: 0;\n    top: 0;\n    bottom: unset;\n    text-align: unset;\n  }\n\n  .swiper-pagination-bullet {\n    background-color: ",";\n    opacity: 1;\n  }\n\n  .swiper-pagination-bullet-active {\n    background-color: ",";\n  }\n\n  @media (min-width: ",") {\n    .swiper-pagination {\n      padding-left: unset;\n    }\n  }\n"]);return Fa=function(){return e},e}var Ba=M().colors,_a=M().screens,Da=(0,L.iv)(Fa(),Ba.red.light,Ba.red.medium,_a.md),Ra={wrapper:"md:content-box w-full md:w-auto ".concat(Da)};de.Z.use([ya.Z,ue.Z,Za.Z,ka.Z]);var za=function(e){var t=e.sliderItems,n=e.deactivateAdSlots;return(0,l.jsx)("div",{className:c()(Ra.wrapper,n&&"md:ml-auto"),children:(0,l.jsx)(xe.t,{tag:"section",wrapperTag:"ul",slidesPerView:1,spaceBetween:0,autoplay:{delay:5e3},loop:!0,speed:400,pagination:{clickable:!0},preloadImages:!1,lazy:{loadOnTransitionStart:!0},children:t.map((function(e,t){return(0,l.jsx)(he.o,{tag:"li",children:(0,l.jsx)(Aa,{sliderItem:e})},t)}))})})},Ha=(0,h.memo)((function(e){var t,n=e.tagIdsToInclude,a=e.filters,s=e.channelFilters,o=e.channelFilter,c=(0,w.Z)(),d=(0,f.v9)(we.FK),u=(0,f.v9)(we.s3),m=Vn({itemsType:"soundpiece",pageSize:11..toString(),tagIdsToInclude:n,publishDateOrderType:"desc",includeChannel:o}),x=m.isLoading,h=m.error,p=m.data,v=m.loadMore,b=m.isAllDataLoaded,j=!(null===p||void 0===p||null===(t=p[0])||void 0===t?void 0:t.length),N=(null===p||void 0===p?void 0:p.flat())||[],y=(0,Pt.Z)({autoPlaylist:N}),Z=y.onPlay,k=y.onPause,S=y.changeEvent,T=y.setIsAutoPlay;return(0,l.jsxs)(ei,{filters:a,channelFilters:s,setAudioPlayerIsAutoPlay:T,children:[h&&(0,l.jsx)("div",{children:(0,g.Z)(c["soundpieces-overview-could-not-load"])||"Could not load content."}),j&&!x&&(0,l.jsx)("div",{children:(0,g.Z)(c["soundpieces-overview-no-content"])||"No content available."}),(0,l.jsx)("ul",{children:N.map((function(e,t){return(0,l.jsx)(Qt.Z,(0,r.Z)((0,i.Z)({},e),{isActive:!!d&&"id"in d&&d.id===e.id&&u,onPlay:function(){return Z(t,e)},onPause:k,audioTimeUpdateEvent:S}),e.id)}))}),x?(0,l.jsx)("div",{className:"flex justify-center mb-4",children:(0,l.jsx)(C.Z,{id:"loading-soundpices-icon",className:"h-12 w-12"})}):b?null:(0,l.jsx)("div",{className:"text-center mb-4",children:(0,l.jsx)(ee.Z,{text:"Load more",onClick:v})})]})})),Wa={small:"h-8",normal:"h-10"},Oa={default:"bg-black-light hover:bg-gray-1",red:"bg-red-medium hover:bg-red",light:"bg-red-light-darker hover:bg-white text-black",disabled:"opacity-50"},Va=function(e){var t=e.size,n=void 0===t?"normal":t,a=e.children,s=e.className,o=void 0===s?"":s,d=e.variant,u=void 0===d?"default":d,m=e.onClick,x=(0,Tn.Z)(e,["size","children","className","variant","onClick"]);return(0,l.jsx)("button",(0,r.Z)((0,i.Z)({onClick:m,className:c()(o,"whitespace-nowrap flex items-center px-4 roun
1ded-full text-body2",Wa[n],Oa[u])},x),{children:a}))},Ua=function(e){var t=e.id,n=e.isActive,i=void 0!==n&&n,r=e.isDisabled,a=void 0!==r&&r,s=e.isSelected,o=void 0!==s&&s,d=e.children,u=e.className,m=void 0===u?"":u,x=e.onClick,h=void 0===x?function(){}:x,f="default";return i?f="light":o?f="red":a&&(f="disabled"),(0,l.jsx)(Va,{id:t,disabled:a,className:c()("whitespace-nowrap flex items-center rounded-full px-4 h-10 bg-black-light text-body2",m),variant:f,onClick:function(){return h(t)},children:d})};function qa(){var e=(0,I.Z)(["\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"]);return qa=function(){return e},e}function Ga(){var e=(0,I.Z)(["\n  &.swiper-slide {\n    width: auto;\n  }\n"]);return Ga=function(){return e},e}var Qa=(0,L.iv)(qa()),Ka=(0,L.iv)(Ga()),Xa={carouselWrapper:"overflow-hidden relative",filterTilesCarousel:c()(Qa,"overflow-auto flex"),swiperSlide:Ka,filterTilesItem:"mr-2 last:mr-0",allFilterChip:"whitespace-nowrap text-black",carouselLeftShadow:"absolute z-10 -left-1.5 inset-y-0 w-12 bg-gradient-to-r from-black pointer-events-none",carouselRightShadow:"absolute z-10 -right-1.5 inset-y-0 w-12 bg-gradient-to-l from-black pointer-events-none",divider:"min-w-px flex mx-2 bg-black-light",previousFilterBtn:"ml-2 hidden xl:block",nextFilterBtn:"ml-2 hidden xl:block"};de.Z.use([me.Z,ue.Z]);var Ya="carousel-navigation-prev-watch-overview-filters",Ja="carousel-navigation-next-watch-overview-filters",$a=function(e){var t=e.filters,n=e.isAllButtonActive,i=e.isFilterSelectedById,r=e.onFilterToggle,a=e.onFiltersReset,s=e.className,o=void 0===s?"":s,d=(0,w.Z)(),u=(0,h.useState)(null),m=u[0],x=u[1],f=(0,h.useState)(!0),p=f[0],v=f[1],b=(0,h.useState)(!1),j=b[0],N=b[1],y=function(e){N(e.isEnd),v(e.isBeginning)},Z=function(e){var n=t.find((function(t){return t.id===e}));n&&r(n)},k=p&&j;return(0,h.useEffect)((function(){var e=function(){m&&y(m)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[m]),(0,l.jsxs)("div",{className:c()("overflow-hidden w-full flex",o),children:[(0,l.jsx)(Ua,{isActive:n,onClick:a,children:(0,g.Z)(d["filter-chip-all-text"])||"Alle"}),(0,l.jsx)("div",{className:Xa.divider}),(0,l.jsxs)("div",{className:Xa.carouselWrapper,children:[!p&&(0,l.jsx)("div",{className:Xa.carouselLeftShadow}),!j&&(0,l.jsx)("div",{className:Xa.carouselRightShadow}),(0,l.jsx)(xe.t,{wrapperTag:"ul",slidesPerView:"auto",spaceBetween:8,navigation:{prevEl:"#".concat(Ya),nextEl:"#".concat(Ja)},noSwiping:k,observeParents:!0,observer:!0,onInit:x,onReachBeginning:y,onReachEnd:y,onSlideChange:y,className:"swiper-no-swiping",focusableElements:".does-not-exist",children:t.map((function(e,t){return(0,l.jsx)(he.o,{tag:"li",className:c()("swiper-no-swiping",Xa.swiperSlide),children:(0,l.jsx)(Ua,{id:e.id,isSelected:i[e.id],onClick:Z,children:e.text})},t)}))})]}),!k&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ua,{isDisabled:p,className:Xa.previousFilterBtn,id:Ya,children:(0,l.jsx)(ht.e0,{className:"transform rotate-180"})}),(0,l.jsx)(Ua,{isDisabled:j,id:Ja,className:Xa.nextFilterBtn,children:(0,l.jsx)(ht.e0,{})})]})]})},es=n(22061),ts="text-pink mb-4 md:mb-6",ns={container:"content-box",textCenter:"text-center",titleH1:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c()("text-h1 ".concat(ts),"tels:text-h4 tels:text-white","tesn:text-h4 tesn:text-white","teair:text-h4","game:text-gray-1",e?"teair:text-white":"teair:text-air-deepBlue")},titleH2:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c()("text-h2 ".concat(ts," tels:normal-case md:teair:mt-18"),"game:text-gray-1","tesn:text-white",e?"teair:text-white":"teair:text-air-deepBlue")},titleSmall:c()("text-body2 text-gray-2 mb-4 md:mb-6","tesn:text-esn-secondary-light","tels:text-els-gold-light","teair:text-air-skyBlue","game:text-gray-1"),descriptionH1:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c()("text-body1 text-gray-3","tesn:text-lead tesn:text-white","tels:text-lead tels:text-white","teair:text-lead","game:text-black-extra",e?"teair:text-white":"teair:text-air-deepBlue")},descriptionSmall:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c()("text-lead","game:text-black-extra",e?"teair:text-white":"teair:text-air-deepBlue")}},is=ns,rs=function(e){var t=e.title,n=e.text,i=e.theme,r=e.position,a=e.hasInvertedThemeColor,s=e.showTitle,o=e.deactivateAdSlots,d=a,u=i===es.j1.Bigger,m=i===es.j1.Medium,x=i===es.j1.Smaller,h=i===e
1s.j1.WideContent;return(0,l.jsx)("div",{className:c()(is.container,o&&"ml-auto",r===es.QB.Center&&is.textCenter),children:(0,l.jsxs)("div",{className:c()(r===es.QB.Left&&!h&&"md:w-1/2 lg:mx-0",h&&"md:w-2/3 lg:mx-0"),children:[s&&(0,l.jsxs)(l.Fragment,{children:[u&&(0,l.jsx)("h1",{className:is.titleH1(d),children:t}),(m||h)&&(0,l.jsx)("h2",{className:is.titleH2(d),children:t}),x&&(0,l.jsx)("h2",{className:is.titleSmall,children:t})]}),n&&(0,l.jsx)("div",{className:c()(u||m||h?is.descriptionH1(d):is.descriptionSmall(d)),children:"string"===typeof n?n:(0,l.jsx)(W.ZP,{body:n})})]})})},as=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,h.useState)({}),n=t[0],s=t[1],l=(0,m.useRouter)(),o=l.query.slug?l.route.replace("[slug]",l.query.slug):l.route.replace("[[...page-slugs]]",l.query["page-slugs"].join("/")),c=Object.values(n).every((function(e){return!e})),d=(0,h.useMemo)((function(){return Object.entries(n).filter((function(e){var t=(0,a.Z)(e,2);t[0];return t[1]})).map((function(e){return(0,a.Z)(e,1)[0]}))}),[n]),u=function(){var e=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});s(e),l.replace(o,void 0,{shallow:!0})},x=function(t){var c=t.id,d=n[c],u=e?(0,r.Z)((0,i.Z)({},n),(0,rt.Z)({},c,!d)):(0,rt.Z)({},c,!d),m=Object.entries(u).filter((function(e){var t=(0,a.Z)(e,2);t[0];return t[1]})).map((function(e){return(0,a.Z)(e,1)[0]})).toString(),x=!!m.length,h=new URLSearchParams({filters:m});l.replace("".concat(o).concat(x?"?".concat(h):""),void 0,{shallow:!0}),s(u)};return(0,h.useEffect)((function(){var e=l.query.filters;if(e){var t=e.split(","),n={};t.forEach((function(e){n[e]=!0})),s(n)}}),[l.query.filters]),{isFilterSelectedById:n,isAllButtonActive:c,selectedFilterIds:d,resetSelectedFilters:u,toggleFilterSelection:x}},ss=function(e){var t=e.channels,n=e.changeFilter,i=e.selectedFilter;return(0,l.jsx)("div",{className:"w-[235px] md:w-fit flex flex-row flex-wrap justify-evenly align-start gap-[10px] p-2 bg-black-light text-gray-2 rounded-[20px] md:rounded-[1000px] cursor-pointer",children:t.map((function(e){return(0,l.jsx)("div",{className:c()("py-[7px] px-3 rounded-[1000px]",i===e.id?"text-black-light bg-red-light-darker hover:bg-white":"hover:bg-gray-1"),onClick:function(){return n(e.id)},children:e.text})}))})},ls=[{id:"basel",text:"Basel",identifier:"BS"},{id:"bern",text:"Bern",identifier:"BE"},{id:"zuerich",text:"Z\xfcrich",identifier:"ZH"}],os=function(e){var t=e.filters,n=e.headerTitle,i=(0,m.useRouter)().query,r=as(!0),a=r.isFilterSelectedById,o=r.isAllButtonActive,c=r.selectedFilterIds,d=r.resetSelectedFilters,u=r.toggleFilterSelection,x=(0,f.v9)(we.pl),p=(0,h.useState)(),v=p[0],g=p[1];(0,h.useEffect)((function(){x&&!v&&g(x)}),[v,x]);var b=(null===i||void 0===i?void 0:i.tagIdsToInclude)?[i.tagIdsToInclude].concat((0,s.Z)(c)):c;return(0,l.jsxs)("div",{children:[n&&(0,l.jsx)(rs,{title:n,theme:es.j1.Bigger,showTitle:!0}),(0,l.jsx)("div",{className:"pt-6 md:pt-6",children:(0,l.jsx)(Ha,{channelFilter:v,channelFilters:(0,l.jsx)(ss,{channels:ls,changeFilter:g,selectedFilter:v}),filters:(null===t||void 0===t?void 0:t.length)?(0,l.jsx)($a,{isAllButtonActive:o,filters:(null===t||void 0===t?void 0:t.filter((function(e){if(e.bmId){var t=ls.find((function(t){var n;return null===(n=e.bmId)||void 0===n?void 0:n.startsWith(t.identifier)}));if(t)return t.id===v}return!0})))||[],isFilterSelectedById:a,onFilterToggle:u,onFiltersReset:d,className:"justify-start"}):null,tagIdsToInclude:b})})]})},cs=n(5381),ds=n(44790),us=n(97490),ms=n(60924),xs=n(14631),hs=n(90265),fs=n(49473),ps="w-full h-full",vs=function(e){var t=e.displayedStationId,n=e.isDisplayedStationPlaying,i=e.onPlaylistClick,r=e.playlistLink,a=(0,f.v9)(we.iW),s=null===a||void 0===a?void 0:a.id;return(0,l.jsxs)("div",{className:"flex justify-center items-center",children:[(0,l.jsx)(fs.Z,{className:"w-10 h-10 bg-white hover:bg-red text-black",iconClassName:"w-8 h-8"}),(0,l.jsx)(hs.Z,{isActive:n,channelId:t,onClick:function(){var e;null===(e=window.dataLayer)||void 0===e||e.push({event:"station_player_page_play",current_channel_id:t||"",old_channel_id:s||""})},playIcon:(0,l.jsx)(ms.Z,{className:ps}),pauseIcon:(0,l.jsx)(us.Z,{className:ps}),className:"w-16 h-16 mx-4"}),(0,l.jsx)(ds.Z,{element:(0,l.jsx)(xs.Z,{className:"w-5 h-5 cursor-pointer"}),isCircle:!0,className:"w-10 h-10 bg-white text-black hover:bg-red",onClick:i,link:r})]})},gs=n(98130),bs=function(e){var t=e.hours,n=e.minutes,i=e.seconds;return(0,l.jsxs)("span",{className:"text-body2 text-gray-1",children:[t>0&&"".concat(t,":"),(0,vt.pM)(n),":",(0,vt.pM)(i)]})},js=n(8817),ws=function(e){var t=function(e){var t=e/1e3;return{seconds:Math.floor(t)%60,minutes:Math.floor(t/60)%60,hours:Math.floor(t/3600)%24}}(e.duration-e.timeLeft),n=t.seconds,i=t.minutes,r=t.hours;return(0,l.jsxs)("span",{className:"text-body2 text-gray-1",children:[r>0&&"".concat(r,":"),(0,vt.pM)(i),":",(0,vt.pM)(n)]})},Ns=function(e){var t=e.from,n=e.to,i=e.className,r=void 0===i?"":i,a=e.onCountdownComplete,s=n-t;return(0,l.jsx)("div",{className:r,children:(0,l.jsx)(gs.ZP,{date:n,renderer:function(e){var t=e.seconds,n=e.minutes,i=e.hours,r=e.total;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-2 mb-1",children:(0,l.jsx)(js.Z,{duration:s,timeLeft:r})}),(0,l.jsxs)("div",{className:"flex md:justify-between justify-end",children:[(0,l.jsx)("div",{className:"hidden md:flex",children:(0,l.jsx)(ws,{duration:s,timeLeft:r})}),(0,l.jsx)(bs,{seconds:t,minutes:n,hours:i})]})]})},onComplete:a},n)})},ys=function(e){var t=e.className,n=void 0===t?"":t,i=e.fill,r=void 0===i?"currentColor":i;return(0,l.jsx)("svg",{width:"14",height:"18",viewBox:"0 0 14 18",fill:"none",className:n,children:(0,l.jsx)("path",{d:"M6.99997 18C5.73691 16.9229 4.56616 15.742 3.49998 14.4697C1.89999 12.5591 8.83658e-07 9.71371 8.83658e-07 7.00227C-0.00141727 4.1704 1.70424 1.61677 4.32105 0.533C6.93786 -0.55077 9.95002 0.0489427 11.9519 2.05229C13.2684 3.36263 14.0058 5.14504 14 7.00227C14 9.71371 12.0999 12.5591 10.4999 14.4697C9.43377 15.742 8.26303 16.9229 6.99997 18ZM6.99997 2.0033C4.23993 2.0066 2.0033 4.24278 1.99999 7.00227C1.99999 8.16803 2.52699 10.1866 5.03498 13.187C5.65311 13.9249 6.30898 14.6304 6.99997 15.3006C7.69101 14.6312 8.3472 13.9267 8.96596 13.19C11.4729 10.1856 11.9999 8.16703 11.9999 7.00227C11.9966 4.24278 9.76 2.0066 6.99997 2.0033ZM6.99997 10.0016C5.34312 10.0016 3.99998 8.65878 3.99998 7.00227C3.99998 5.34576 5.34312 4.00289 6.99997 4.00289C8.65681 4.00289 9.99995 5.34576 9.99995 7.00227C9.99995 7.79775 9.68388 8.56066 9.12128 9.12315C8.55867 9.68565 7.79561 10.0016 6.99997 10.0016Z",fill:r})})},Zs=n(20413);function ks(){var e=(0,I.Z)(["\n  min-width: 200px;\n"]);return ks=function(){return e},e}var Cs=(0,L.iv)(ks()),Ss=function(e){var t=e.activeLinkIndex,n=e.toggleLinksData,i=e.variables,r=e.className,a=void 0===r?"":r;return(0,l.jsx)(Zs.ZP,{renderContent:function(e){return(0,l.jsx)("ul",{className:c()("my-2",Cs),children:n.map((function(n,i){return(0,l.jsx)("li",{children:(0,l.jsx)(Zs.Xi,{isActive:t===i,toggleItem:n,onClick:e})},n.href)}))})},className:a,children:(0,l.jsxs)(Va,{size:"small",children:[(0,l.jsx)(ys,{className:"text-red-light mr-2"}),(0,l.jsx)("span",{className:"text-red-light",children:(0,g.Z)(i["select-station-button-text"])})]})})},Ts=function(e){var t=new Date(e),n=t.getHours(),i=t.getMinutes();return"".concat((0,vt.pM)(n),":").concat((0,vt.pM)(i))},Is=function(e){var t=e.title,n=e.tags,i=e.from,r=e.to;return(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"md:hidden mb-2 text-overline text-red-light",children:[Ts(i)," - ",Ts(r)]}),(0,l.jsx)("div",{className:"mb-4 md:mb-8 mr-4 text-h2 text-pink leading-none",children:t}),!!(null===n||void 0===n?void 0:n.length)&&(0,l.jsx)("div",{className:"flex md:flex-col items-start gap-2 md:gap-4 mb-10",children:n.map((function(e){return(0,l.jsx)(q.Z,{tag:e},e.link.id)}))})]})},Ls=function(){return(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(Lt.Z,{className:"md:hidden mb-2 h-[1.125rem] w-full"}),(0,l.jsx)(Lt.Z,{className:"mb-4 md:mb-8 mr-4 h-[1.75rem] md:h-[2.625rem]"})]})},Es=function(e){var t=e.stationSlug,n=e.stationLogoUrl,i=e.songTitle,r=e.songArtists,a=e.className,s=e.isMetaDataLoaded;return(0,l.jsxs)("div",{className:c()("w-full flex flex-col items-center basis-1/4",a),children:[n&&(0,l.jsx)("div",{className:"overflow-hidden rounded-full mb-6 p-8 xl:p-12 bg-white h-[208px] w-[208px] 2xl:h-[290px] 2xl:w-[290px]",children:(0,l.jsx)(T.Z,{src:n,alt:"Station logo",objectFit:"fill"})}),(0,l.jsxs)("div",{className:"flex flex-col mt-auto",children:[(0,l.jsxs)("div",{className:"relative hidden md:flex justify-center h-16",children:[!s&&(0,l.jsxs)("div",{className:"absolute md:flex md:flex-col md:justify-center md:items-center w-60",children:[(0,l.jsx)(Lt.Z,{className:"h-[1.375rem] w-
150 mb-1"}),(0,l.jsx)(Lt.Z,{className:"h-[1.375rem] w-full"})]}),(i||r)&&(0,l.jsxs)("div",{className:c()("absolute md:flex md:flex-col md:justify-center md:items-center"),children:[i&&(0,l.jsx)("span",{className:"whitespace-nowrap text-body1 font-semibold text-gray-3",children:i}),!!(null===r||void 0===r?void 0:r.length)&&(0,l.jsx)("span",{className:"whitespace-nowrap text-body1 text-gray-3",children:r.join(" - ")})]})]}),(0,l.jsx)("div",{className:"hidden md:flex justify-center items-center",children:(0,l.jsx)(O.Z,{urlToShare:"".concat((0,V.Z)(),"/stations/").concat(t)})})]})]})},Ms=function(e){var t=(0,f.v9)(we.By),n=(0,f.v9)(we.AE),i=(0,f.v9)(we.wp),r=(0,f.v9)(we.pl),a=(0,f.v9)((function(t){return(0,we.Ys)(t,e)})),s=r===e,l=(0,h.useState)({title:null,artists:[]}),o=l[0],c=l[1],d=(0,h.useState)(!1),u=d[0],m=d[1],x=(0,h.useCallback)((function(e){var t,n=function(){var t;return e.artists?null===(t=e.artists)||void 0===t?void 0:t.map((function(e){return e.name})):e.artist?[e.artist]:null}();m(!0),c({title:null!==(t=e.title)&&void 0!==t?t:null,artists:n})}),[]),p=(0,h.useMemo)((function(){return je(t,a||null,x)}),[t,a,x]);return(0,h.useEffect)((function(){return p&&(p.audioElement.volume=0,p.audioElement.muted=!0,p.play()),function(){null===p||void 0===p||p.stop(),null===p||void 0===p||p.detachAudioElement()}}),[p]),{isDisplayedStationPlaying:s,basicPlayoutMetadata:s&&n?i:o,isMetaDataLoaded:u}},Ps=n(1653),As=function(e){var t=e.fill,n=void 0===t?"currentColor":t,i=e.className,r=void 0===i?"":i;return(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:r,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1932 5.46538C18.6985 6.41234 19.8623 7.75994 20.4879 9.33347C20.8209 10.1515 21 11.0169 21 11.9L20.9998 11.9498L21 12C21 16.4183 16.9706 20 12 20C10.3732 20 8.84729 19.6164 7.5304 18.9453L3.33941 19.921C3.18901 19.956 3.05736 19.8146 3.103 19.6671L4.20965 16.09C4.21655 16.0678 4.21939 16.0447 4.21837 16.0219C3.44375 14.8403 3 13.4662 3 12C3 7.58172 7.02944 4 12 4C13.8774 4 15.6837 4.50519 17.1932 5.46538Z",fill:n})})};function Fs(){var e=(0,I.Z)(["\n  min-width: 470px;\n"]);return Fs=function(){return e},e}function Bs(){var e=(0,I.Z)(["\n  border-radius: 4px;\n"]);return Bs=function(){return e},e}var _s=(0,L.iv)(Fs()),Ds=(0,L.iv)(Bs()),Rs=function(e){var t=e.variables,n=e.whatsappNumber,i="https://wa.me/".concat(n),r=function(e){return(0,l.jsxs)("div",{className:"py-12 px-8 text-center",children:[(0,l.jsx)("div",{className:"mb-6",children:(0,l.jsx)("div",{className:c()(Ds,"bg-white w-50 h-50 flex justify-center items-center mx-auto"),children:(0,l.jsx)(Ps.Z,{value:i,size:182,level:"L"})})}),(0,l.jsx)("h2",{className:"text-h4 mb-4",children:(0,g.Z)(t.whatsapp_overlay_title)||"Pers\xf6nliche Nachricht"}),(0,l.jsx)("p",{className:"text-body1 text-gray-3 mb-6",children:(0,g.Z)(t.whatsapp_overlay_description)||"Scanne den QR Code um uns deine pers\xf6nliche Sprachnachricht, von maximal 30 Sekunden, zu senden."}),(0,l.jsx)(ae.Z,{href:"/kontakt",className:"text-body2 text-red-medium underline font-semibold",children:(0,g.Z)(t.whatsapp_overlay_cta)||"Alle Kontaktm\xf6glichkeiten"}),(0,l.jsx)("div",{className:"text-body2 underline mt-2 cursor-pointer font-semibold",onClick:e,children:(0,g.Z)(t.whatsapp_overlay_close)||"Schliessen"})]})},a=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hidden lg:block";return(0,l.jsx)(Zs.ZP,{renderContent:r,className:n,contentClassName:c()(_s,"lg:mt-2"),triangleClassName:"text-black-light teair:text-air-deepBlue tesn:text-esn-secondary-dark -top-2",placement:e,children:(0,l.jsx)(ee.Z,{color:"white",text:(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(As,{}),(0,l.jsx)("span",{children:(0,g.Z)(t["voice-message-button-text"])||"Sprachnachricht"})]}),className:"text-body2"})})};return(0,l.jsxs)("div",{children:[a("bottomLeft","hidden md:block lg:hidden"),a("bottomCenter"),(0,l.jsx)(ds.Z,{isCircle:!0,isButton:!0,element:(0,l.jsx)(As,{fill:M().colors.black.DEFAULT}),className:"md:hidden bg-white p-3",onClick:function(){return window.open(i,"_blank")}})]})};function zs(){var e=(0,I.Z)(["\n  ::after {\n    content: '';\n    flex: 1;\n  }\n"]);return zs=function(){return e},e}var Hs=(0,L.iv)(zs()),Ws=function(e){var t=e.station,n=e.toggleLinksData,i=void 0===n?[]:n,r=e.playlistLink,a=e.className,s=e.whatsappNumber,o=(0,w.Z)(),d=Ms(t.id),u=d.basicPlayoutMetadata,m=d.isDisplayedStationPlaying,x=d.isMetaDataLoaded,h=(0,cs.Z)(t.id),f=h.show,p=h.isLoading,v=i.findIndex((function(e){return e.href.includes(t.id)}));return(0,l.jsxs)("div",{className:c()(a,"py-6 md:py-12"),children:[(0,l.jsxs)("div",{className:"flex justify-between items-center pb-8",children:[i.length>1&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(jt,{activeLinkIndex:v,toggleLinksData:i,className:"hidden md:flex"}),(0,l.jsx)(Ss,{activeLinkIndex:v,toggleLinksData:i,variables:o,className:"md:hidden"})]}),(0,l.jsx)("div",{className:"ml-auto",children:(0,l.jsx)(Rs,{variables:o,whatsappNumber:s})})]}),(0,l.jsxs)("div",{className:c()("flex flex-col-reverse md:flex-row justify-between",Hs),children:[(0,l.jsx)("div",{className:"flex-1",children:p?(0,l.jsx)(Ls,{}):f&&(0,l.jsx)(Is,{title:f.title,tags:f.moderatorTags,from:f.from,to:f.to})}),(0,l.jsx)(Es,{stationSlug:t.slug,stationLogoUrl:t.logoUrl,isMetaDataLoaded:x,songTitle:(null===u||void 0===u?void 0:u.title)||null,songArtists:(null===u||void 0===u?void 0:u.artists)||null})]}),t.frequency&&(0,l.jsx)("span",{className:"text-overline text-gray-3 font-medium",children:t.frequency}),p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-2 mb-1",children:(0,l.jsx)(Lt.Z,{className:"h-4 w-full"})}),(0,l.jsxs)("div",{className:"flex md:justify-between justify-end",children:[(0,l.jsx)(Lt.Z,{className:"hidden md:flex h-4 w-20"}),(0,l.jsx)(Lt.Z,{className:"h-4 w-20"})]})]}):(null===f||void 0===f?void 0:f.from)&&(null===f||void 0===f?void 0:f.to)&&(0,l.jsx)(Ns,{from:f.from,to:f.to,onCountdownComplete:function(){}}),(0,l.jsx)(vs,{displayedStationId:t.id,isDisplayedStationPlaying:m,playlistLink:r})]})},Os=function(e){var t=e.station,n=e.background,i=e.backgroundMobile,r=e.toggleLinksData,a=e.playlistLink,s=e.whatsappNumber;return(0,l.jsx)(pt,{background:n,backgroundMobile:i,backgroundImageHeight:"60%",alt:"Radio station header image",children:(0,l.jsx)(Ws,{station:t,toggleLinksData:r,playlistLink:a,className:"content-box",whatsappNumber:s})})},Vs=n(90450),Us=n(53416),qs=function(e){var t=e.className,n=e.fill,i=void 0===n?"currentColor":n,r=(0,Us.x0)();return(0,l.jsxs)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("g",{clipPath:"url(#".concat(r,"clip0)"),children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.11058 11.068L18.3871 4.81279L15.382 18.2593L13.0278 13.3538L15.1006 10.6814C15.4391 10.2451 15.3597 9.61688 14.9233 9.27839C14.4869 8.9399 13.8588 9.01927 13.5203 9.45567L11.4475 12.128L6.11058 11.068ZM20.7097 3.58992C20.9311 2.59899 19.8985 1.79802 18.9938 2.25899L3.1461 10.3338C2.13144 10.8508 2.34011 12.3582 3.45712 12.58L11.1736 14.1127L14.5775 21.2055C15.0702 22.2322 16.5821 22.0594 16.8304 20.948L20.7097 3.58992Z",fill:i})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"".concat(r,"clip0"),children:(0,l.jsx)("rect",{width:"24",height:"24",fill:i})})})]})},Gs=function(e){var t=e.image,n=e.name,a=e.job,s=e.link;return(0,l.jsxs)("div",{className:"flex flex-col items-center",children:[(0,l.jsxs)("div",{className:"w-full relative",children:[(0,l.jsx)(T.Z,{className:"aspect aspect-1-1 w-full h-full rounded-full overflow-hidden",src:t,basicLoader:!0,objectFit:"cover"}),s&&(0,l.jsx)(ae.Z,(0,r.Z)((0,i.Z)({className:"block absolute top-0 right-0 p-3 bg-black-light bg-opacity-90 hover:bg-opacity-100 rounded-full"}
1,s),{children:(0,l.jsx)(qs,{className:"w-6"})}))]}),(0,l.jsx)("h2",{className:"mt-4 text-body1 text-center",children:n}),(0,l.jsx)("h3",{className:"mt-1 text-overline text-red-medium text-center",children:a})]})},Qs=function(e){var t=e.members,n=e.departments,r=as(),a=r.isFilterSelectedById,s=r.isAllButtonActive,o=r.selectedFilterIds,d=r.resetSelectedFilters,u=r.toggleFilterSelection,m=(0,h.useState)(null),x=m[0],f=m[1];(0,vt.LI)((function(){var e=Vs.Z(t);e.sort((function(){return Math.random()-.5})),f(e)}),[]);var p=!o.length;return(0,l.jsxs)("div",{className:"content-box",children:[(0,l.jsx)("div",{className:c()("pb-4 mb-6 border-b-2 border-gray-1","xl:pb-12 xl:mb-12"),children:(0,l.jsx)($a,{isFilterSelectedById:a,isAllButtonActive:s,onFiltersReset:d,onFilterToggle:u,filters:n})}),(0,l.jsx)("div",{className:c()("grid grid-cols-2 gap-x-4 gap-y-8","sm:grid-cols-3 sm:gap-x-6 sm:gap-y-12","md:grid-cols-4 md:gap-x-6 md:gap-y-10","xl:grid-cols-5 xl:gap-x-6 xl:gap-y-10","3xl:grid-cols-6 3xl:gap-x-8 3xl:gap-y-12"),children:null===x||void 0===x?void 0:x.map((function(e){var t=o.includes(e.department);return p||t?(0,l.jsx)(Gs,(0,i.Z)({},e),e.name):null}))})]})},Ks=n(96225),Xs=function(e){return(0,l.jsx)(Ks.Z,(0,i.Z)({},e))},Ys=n(70131),Js=n(98828);function $s(){var e=(0,I.Z)(["\n  max-width: 335px;\n\n  @media (min-width: ",") {\n    max-width: 570px;\n  }\n"]);return $s=function(){return e},e}var el=(0,L.iv)($s(),E.screens.md),tl=function(e){var t=e.className,n=void 0===t?"":t,i=e.id,r=e.description,a=e.image,s=e.tags,o=e.publishDate,d=e.contentCategories,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(vt.DX).join(" / ")}(o?(0,re.Z)(new Date(o),"dd.MM.yyyy"):null,null===d||void 0===d?void 0:d[0]);return(0,l.jsxs)("div",{className:c()(el,n,"mx-auto"),children:[(0,l.jsx)("div",{className:"bg-black-light",children:(0,l.jsx)(T.Z,{src:a,alt:r,className:"aspect aspect-1-1"})}),(0,l.jsxs)("div",{className:"",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mt-2 md:mt-4",children:[(0,l.jsx)("div",{className:"text-overline text-gray-2",children:u}),(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("div",{className:"flex md:items-center",children:(0,l.jsx)(O.Z,{urlToShare:"".concat((0,V.Z)(),"/watch/memes/").concat(i)})})})]}),(0,l.jsxs)("div",{className:"flex flex-col",children:[r&&(0,l.jsx)("div",{className:"block mt-2 md:mt-4 text-body2",children:r}),!!s.length&&(0,l.jsx)("ul",{className:"flex flex-wrap gap-x-4 gap-y-2 mt-2 md:mt-6",children:s.map((function(e){return(0,l.jsx)("li",{children:(0,l.jsx)(q.Z,{tag:e})},e.name)}))})]})]})]})},nl=function(e,t){return new IntersectionObserver(e,t)},il=function(e,t,n){var a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,c=(0,h.useRef)(!1),d=function(a,s){if(s&&!s.entries.length)return null;var l,c=a+1,d=(0,vt.Xy)(c),u=d.startDate,m=d.endDate,x=(0,vt.Xy)(c-1),h=x.startDate,f=x.endDate,p=new URLSearchParams((0,r.Z)((0,i.Z)({entryType:e,page:"1",perPage:t,pageIndex:null!==(l=String(c))&&void 0!==l?l:""},n&&{entryId:n},u&&m&&{startDate:u,endDate:m},h&&f&&{startDateSponsored:h,endDateSponsored:f}),{tagIdsToIncludeKey:null!==o&&void 0!==o?o:""}));return"/api/taggingtool/entries-detail?".concat(p.toString())},u=(0,Ft.ZP)(d,function(){var e=(0,J.Z)((function(e){var t;return(0,$.__generator)(this,(function(n){switch(n.label){case 0:return t=new URLSearchParams((0,i.Z)({},l&&{idsToExclude:l.join(",")},!c.current&&o&&{tagIdsToInclude:o,fillMissingEntries:"true"})),[4,fetch("".concat(e,"&").concat(t.toString()))];case 1:return[2,n.sent().json()]}}))}));return function(t){return e.apply(this,arguments)}}(),{revalidateOnMount:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateFirstPage:!1}),m=u.data,x=u.size,f=u.setSize,p=u.isValidating,v=u.error,g=(0,h.useCallback)((function(){return f((function(e){return e+1}))}),[f]),b=(0,h.useMemo)((function(){return{defaultEntries:(null===m||void 0===m?void 0:m.flatMap((function(e){return e.entries})).filter(Boolean))||[],entries:(null===m||void 0===m?void 0:m.flatMap((function(e){var t=e.entries,n=e.missingEntries;return(0,s.Z)(t).concat((0,s.Z)(n))}
1)).filter(Boolean))||[],itemsCount:(null===m||void 0===m?void 0:m.flatMap((function(e){return e.itemsCount})).filter(Boolean))||[]}}),[m]),j=null===m||void 0===m?void 0:m[m.length-1],w=j&&j.entries.length<+t,N=!(null===(a=b.itemsCount)||void 0===a?void 0:a[b.itemsCount.length-1]),y=N||j&&j.itemsCount<+t;return(0,h.useEffect)((function(){w&&(c.current=!0)}),[w]),{isLoading:p,data:b.entries,error:v,size:x,setSize:f,loadMore:g,isAllDataLoaded:y}},rl=function(e){return new URLSearchParams(window.location.search).get(e)||""},al=function(){var e=(0,h.useState)([]),t=e[0],n=e[1];return[t,function(e){e&&n((function(t){return t.includes(e)?t:(0,s.Z)(t).concat([e])}))}]},sl=function(e){return e.map((function(e){return e.publishDate&&e.appearInWatchExperience?{meme:{componentType:e.componentType,id:e.id,image:e.image,description:e.description,tags:(null===e||void 0===e?void 0:e.tags)||[],publishDate:e.publishDate,contentCategories:e.contentCategories},teaser:(null===e||void 0===e?void 0:e.teaser)||null}:null})).filter(vt.Nf)},ll=function(e){return(null===e||void 0===e?void 0:e.map((function(e){return e.publishDate&&e.appearInWatchExperience?{video:{componentType:(null===e||void 0===e?void 0:e.componentType)||"video",taggingToolId:e.taggingToolId,url:e.videoUrl,title:e.title,description:e.description,posterUrl:e.videoPreviewImage,tags:e.tags,publishDate:e.publishDate,contentCategories:e.contentCategories,isSponsored:e.isSponsored},teaser:e.teaser}:null})).filter(vt.Nf))||[]},ol=(function(){var e=(0,J.Z)((function(e,t,n){return(0,$.__generator)(this,(function(i){return[2,{contentItemsType:n,id:e,componentType:"watchDetail",layout:"page",entries:"meme"===n?sl(t):ll(t)}]}))}))}(),n(92280)),cl=function(e,t){return"meme"===e?t.meme.id:t.video.taggingToolId},dl=function(e){var t,n=e.contentItemsType,r=e.id,o=e.entries,d=(0,a.Z)(al(),2),u=d[0],m=d[1],x=(0,h.useState)(r),p=x[0],v=x[1],g=(0,h.useState)(!1),b=g[0],j=g[1],w=(0,h.useState)((function(){return o.map((function(e){return cl(n,e)}))})),N=w[0],y=w[1],Z=(0,f.v9)(we.AE),k=(0,D.Z)(),S=k.currentBreakpoint,T=k.isMobile,I="meme"===n,L=rl("filters"),E=(0,h.useRef)({}),M=nl(function(e,t){return function(n){n.forEach((function(e){var n=e.target.getAttribute("data-id");n&&(t.current[n]=e)}));var i=Object.values(t.current).filter((function(e){return e.intersectionRatio})),r=i.reduce((function(e,t){return t.intersectionRatio>e.intersectionRatio||t.intersectionRatio===e.intersectionRatio&&t.boundingClientRect.top>e.boundingClientRect.top?t:e}),i[0]),a=null===r||void 0===r?void 0:r.target.getAttribute("data-id");a&&e(a)}}(v,E),{threshold:Array(10).fill(null).map((function(e,t){return.1*(t+1)}))}),P="10",A=il(n,P,r,N,L),F=A.isLoading,B=A.data,R=A.loadMore,z=A.isAllDataLoaded,H=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return j(e)},W=(0,h.useMemo)((function(){return(null===B||void 0===B?void 0:B.length)?function(e,t){return e?sl(t):ll(t)}(I,B):[]}),[B,I]);(0,h.useEffect)((function(){return!I&&M?(u.forEach((function(e){return M.observe(e)})),function(){return M.disconnect()}):function(){}}),[M,u,I]);var O=null!==(t=(0,f.v9)(ol.Tq))&&void 0!==t?t:_.B_,V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,r){var a,s=cl(n,t),o=e+r+1,d=s===p,u=t,x=t;return"video"in t&&"undefined"===typeof x.video.removePreroll&&(x.video.removePreroll=!1),(0,l.jsxs)("div",{className:"py-8 md:py-12",children:[I?(0,l.jsx)(tl,(0,i.Z)({},u.meme)):(0,l.jsx)(Xs,{videoContainerRef:m,video:x.video,containerClassName:"px-0 py-8 md:px-8 md:py-12",autoPlay:!0,isVideoInView:d,hasAd:!x.video.isSponsored&&!x.video.removePreroll,isUnMutedSection:b,toggleIsVideoMuted:H,isGlobalRadioPlaying:Z,internalAutoPlayCheck:!1,prerollAdIndex:o}),!!(null===t||void 0===t||null===(a=t.teaser)||void 0===a?void 0:a.length)&&(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)(wi,{elements:t.teaser})}),1===o?(0,l.jsx)("div",{className:c()("flex justify-center",T?"pt-16":"pt-24"),children:(0,l.jsx)(Js.ZP,{slot:"top_ad_1"})}):(0,l.jsx)("div",{className:c()("flex justify-center",T?"pt-16":"pt-24"),children:(0,l.jsx)(Js.ZP,{slot:"index_ad_1",slotId:"ad-slot-index_ad_1-".concat(o-1)})})]},s)}};return(0,h.useEffect)((function(){if(W.length){var e=parseInt(P,10);(0,Js.ag)("Watch",T,S,["index_ad_1"],e)}}),[W.length,T,S]),(0,h.useEffect)((function(){if(W.length){var e=parseInt(P,10);if(W.length%e===0){var t,n=W.slice(-1*e),i=n.length-n.map((function(e){return"video"in e&&e.video.isSponsored}
1)).filter(Boolean).length,r=Math.ceil(i*O/100);t=O>=50?O>=70?1:Math.ceil(i/r):Math.floor(i/r);var a=[];n.reverse().map((function(e,n,i){return"video"in e&&(e.video.isSponsored||(n%t===t-1||t===1/0)&&r>0&&(a.push(e.video.taggingToolId),r--)),e})),W.map((function(e,t,n){return"video"in e&&(e.video.removePreroll=!0,a.includes(e.video.taggingToolId)&&(e.video.removePreroll=!1)),e}))}}}),[W,O]),(0,h.useEffect)((function(){if(null===B||void 0===B?void 0:B.length){var e=o.map((function(e){return cl(n,e)})),t=B.map((function(e){return e.id}));y((0,s.Z)(e).concat((0,s.Z)(t)))}}),[n,o,B]),(0,l.jsxs)("div",{className:"content-box",children:[o.map(V()),W.map(V(o.length)),!z&&F&&(0,l.jsx)("div",{className:"flex justify-center mb-4",children:(0,l.jsx)(C.Z,{className:"h-12 w-12"})}),!z&&(0,l.jsx)(Ys.df,{as:"div",rootMargin:"0px 0px 50% 0px",onChange:function(e){e&&!F&&R()},children:(0,l.jsx)("div",{})})]})},ul=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{id:"mobile-medium-rectangle-ad-1",slug:"mobile-medium-rectangle-ad-1",componentType:"mobileMediumRectangleAd",position:1,customPadding:!0,isWatchExperienceAd:e}},ml={id:"medium-rectangle-ad-1",slug:"medium-rectangle-ad-1",componentType:"mediumRectangleAd",position:1,customPadding:!0,isWatchExperienceAd:!0},xl=function(e){return{id:"medium-rectangle-ad-2-".concat(e),slug:"medium-rectangle-ad-2",componentType:"mediumRectangleAd",position:2,customPadding:!0,targetingPos:e,isWatchExperienceAd:!0}},hl=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{id:"mobile-medium-rectangle-ad-2-".concat(e),slug:"mobile-medium-rectangle-ad-2",componentType:"mobileMediumRectangleAd",position:2,customPadding:!0,targetingPos:e,isWatchExperienceAd:t}},fl=n(15973),pl=[6,7,8],vl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e<=0)return"";if(t){var n=t.length,i=t.split(/[12]/g),r=i.slice(-1)[0].length,a=!pl.includes(r),s="";if(a){var l=(0,vt.kd)(pl)-r;s=fl.Z(0,l).map((function(){return"C"})).join("")}var o=vl(e-n-1,"").replace("1","2");return"".concat(t).concat(s,"2").concat(o).slice(0,e)}var c=-1,d=(0,vt.kd)(pl);return Array(e).fill(null).map((function(e,t){if(t===d+c){var n="C".concat(-1===c?"1":"2");return c=t,d=(0,vt.kd)(pl),n}return"C"})).join("")},gl=vl,bl={video:{href:"/watch/videos",teaserGroup:xn.Lz.Videos,text:"Videos"},meme:{href:"/watch/memes",teaserGroup:xn.Lz.Memes,text:"Memes"}},jl=function(e){return!!(null===e||void 0===e?void 0:e.componentType.toLocaleLowerCase().endsWith("ad"))},wl=function(e){var t=e.itemsType,n=e.selectedFilterTags,i=(0,h.useState)(""),r=i[0],a=i[1],o=(0,D.Z)(),c=o.currentBreakpoint,d=o.isMobile,u=Vn({itemsType:t,pageSize:"12",tagIdsToInclude:n,publishDateOrderType:"desc",configuration:{initialSize:0,revalidateOnMount:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateFirstPage:!1}}),m=u.isLoading,x=u.error,f=u.data,p=u.loadMore,v=(0,h.useMemo)((function(){return(null===f||void 0===f?void 0:f.flatMap((function(e){return e.filter((function(e){return e.appearInWatchExperience}))})))||[]}),[f]),g=function(e,t){if(0===t.length)return e;for(var n,i=[],r=0,a=0,l=0;r<t.length;r++){var o;"C"===t.charAt(r)?(i.push(e[a]),a++):((o=i).push.apply(o,(0,s.Z)((n=l,{1:[ml,ul(!0)],2:[xl(n),hl(n,!0)]})[parseInt(t.charAt(r),10)])),l++)}return i}(v,r).filter(vt.DX),b=(0,h.useMemo)((function(){return g.every(jl)?[]:g.map(vn.Z).filter(vt.Nf)}),[g]);return(0,h.useEffect)((function(){var e=gl(v.length,r);e&&a(e)}),[v.length]),(0,h.useEffect)((function(){b.length&&(0,Js.ag)("Watch",d,c)}),[b.length,d,c]),(0,h.useEffect)((function(){m||v.length&&!(v.length<=_.nw)||p()}),[m,v.length]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(pn,{teaserGroup:bl[t].teaserGroup,teasers:b,isEmpty:0===b.length,isLoading:m,isError:!!x}),(0,l.jsx)(Ys.df,{as:"div",rootMargin:"0px 0px 50% 0px",onChange:function(e){e&&!m&&p()},children:(0,l.jsx)("div",{})})]})},Nl={filtersWrapper:"flex flex-col md:flex-row md:justify-between items-start md:items-center mb-5 md:mb-12",filterTiles:"justify-start md:justify-end",divider:"w-full bg-gray-1 h-2px",gridWrapper:"pt-6 md:pt-12"},yl=function(e){var t=e.itemsType,n=e.filters,i=(0,m.useRouter)().query,r=as(!0),a=r.isFilterSelectedById,o=r.isAllButtonActive,c=r.selectedFilterIds,d=r.resetSelectedFilters,u=r.toggleFilterSelection,x=(null===i||void 0===i?void 0:i.tagIdsToInclude)?[i.tagIdsToInclude].concat((0,s.Z)(c)):c;return(0,l.jsxs)("div",{className:"content-box",children:[(0,l.jsxs)("div",{className:Nl.f
1iltersWrapper,children:[(0,l.jsx)(bt,{activeIndex:Object.keys(bl).indexOf(t),className:"mb-4 md:mb-0 md:mr-20 xl:mr-40",children:Object.values(bl).map((function(e){return(0,l.jsx)(ae.Z,{href:e.href,children:e.text},e.href)}))}),!!(null===n||void 0===n?void 0:n.length)&&(0,l.jsx)($a,{isAllButtonActive:o,filters:n,isFilterSelectedById:a,onFilterToggle:u,onFiltersReset:d,className:Nl.filterTiles})]}),(0,l.jsx)("div",{className:Nl.divider}),(0,l.jsx)("div",{className:Nl.gridWrapper,children:(0,l.jsx)(wl,{itemsType:t,selectedFilterTags:x})})]})},Zl=n(99324),kl={wrapper:"content-box",header:"text-h2 text-pink mb-4 md:mb-6",channelsWrapper:"grid auto-cols-max gap-x-6 gap-y-2 md:grid-rows-2 md:grid-flow-col mb-2",channel:"inline-flex items-center text-body2 underline font-semibold text-red-medium hover:text-red"},Cl=function(e){var t=e.title,n=e.showTitle,i=(0,f.v9)(we.g9),r=(0,w.Z)();return(0,l.jsxs)("div",{className:kl.wrapper,children:[n&&(0,l.jsx)("h2",{className:kl.header,children:t}),i.external.length?(0,l.jsx)("div",{className:kl.channelsWrapper,children:i.external.map((function(e){return(0,l.jsx)("div",{children:(0,l.jsxs)("a",{href:e.streamUrl,target:"_blank",className:kl.channel,rel:"noreferrer",children:[(0,l.jsx)(Zl.Z,{className:"mr-2"}),e.name]})},e.id)}))}):(0,l.jsx)(W.ZP,{body:r["no-weitere-channels-text"],className:"text-lead"})]})},Sl=function(e){var t=e.title,n=e.text;return(0,l.jsx)("div",{className:"content-box",children:(0,l.jsxs)("div",{className:"md:w-10/12 mx-auto text-center",children:[(0,l.jsx)("div",{className:"text-body2 text-gray-3",children:t}),n&&(0,l.jsx)("div",{className:"text-lead mt-4 md:mt-6",children:n})]})})},Tl=n(66012),Il={titleWithText:rs,link:vr,slider:za,teaser:wa,image:cr,contentFeed:ni,box:mn.Z,embed:Ue.Z,pageHeader:St,articleImageHeader:H,articleTextIntro:Y,section:Li,richText:pa,watchOverview:yl,articleTeaserContainer:Gt,podcastEmbed:Qr,video:Xs,stationHeader:Os,mediaOverview:Br,galleryContainer:Ei,gallery:$i,hero:rr,dualHero:ci,faq:pi,lotteryHeader:Ar,grid:tt,soundpiecePlaylist:Ha,act:wa,relatedArticles:ce,channelCarousel:Ve,textWithHeader:Sl,wideBoardAd:p.Z.WideBoardAd,mediumRectangleAd:p.Z.MediumRectangleAd,mobileMediumRectangleAd:p.Z.MobileMediumRectangleAd,mobileHalfPageAd:p.Z.MobileHalfPageAd,heroLivestream:lr,jobs:fr,weitereChannels:Cl,newsletter:Ur,team:Qs,categoriesAZ:gn,creatorTags:it,playlist:zt,watchDetail:dl,forms:gr.Z,lotteryFormButton:xt,soundpiecesOverview:os,audioDetail:un,sessions:Na,quiz:xa,homeTiles:R.Z,pageTeaser:qr,musicAward:Or,infoPageContent:dt,infoPageHeader:ut,contactForm:Wn},Ll=(0,Tl.Z)(Il),El=n(49056),Ml={container:"content-box relative",wrapper:"overflow-auto flex items-center py-4 text-overline border-b-2 border-gray-1",backButton:"flex items-center py-1.5 px-2 text-gray-4 hover:text-pink teair:hover:text-air-lemon",backButtonText:"ml-2 text-overline",current:"text-red-medium",shadow:"absolute top-0 right-0 bottom-0 w-10 bg-gradient-to-r from-transparent to-black"},Pl=function(e){var t,n=e.subNav;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"max-w-full bg-black text-white",children:(0,l.jsxs)("div",{className:Ml.container,children:[(0,l.jsxs)("div",{className:Ml.wrapper,children:[n.parentItem&&(0,l.jsx)(ae.Z,{href:n.parentItem.link.href,children:(0,l.jsxs)("button",{className:Ml.backButton,children:[(0,l.jsx)(v.w,{}),(0,l.jsx)("span",{className:Ml.backButtonText,children:n.parentItem.link.text})]})}
1),n.subNavItems.length>0&&(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("div",{className:"w-px h-8 bg-gray-4 mx-4"}),null===(t=n.subNavItems)||void 0===t?void 0:t.map((function(e,t){var i=n.currentAsPath===e.link.href;return(0,l.jsx)(ae.Z,{href:e.link.href,className:c()("py-2 px-4",i&&Ml.current),children:e.link.text},t)}))]})]}),(0,l.jsx)("div",{className:Ml.shadow})]})})})},Al="superchat-widget-script",Fl=function(){return(0,h.useEffect)((function(){var e=document.createElement("script");return e.id=Al,e.src="https://widget.superchat.de/snippet.js?applicationKey=".concat("WCZd6zDLb2aENNyWE85AYGvePV"),e.referrerPolicy="no-referrer-when-downgrade",e.async=!0,document.body.appendChild(e),function(){var e;null===(e=document.getElementById(Al))||void 0===e||e.remove(),document.querySelectorAll('[id*="superchat"], [class*="superchat"]').forEach((function(e){return e.remove()})),document.querySelectorAll('iframe[src*="superchat"]').forEach((function(e){return e.remove()}))}}),[]),null},Bl=function(e){var t,n=e.seo,i=(0,m.useRouter)().asPath;return(0,l.jsxs)(u(),{children:[(0,l.jsx)("title",{children:n.title}),(0,l.jsx)("meta",{name:"title",content:n.title}),(0,l.jsx)("meta",{name:"description",content:n.description}),(0,l.jsx)("meta",{property:"og:site_name",content:n.title},"ogsitename"),(0,l.jsx)("meta",{property:"og:title",content:n.title}),(0,l.jsx)("meta",{property:"og:url",content:"".concat(n.url).concat(i)}),(0,l.jsx)("meta",{property:"og:description",content:n.description}),(0,l.jsx)("meta",{property:"og:type",content:"website"}),(0,l.jsx)("meta",{name:"twitter:title",content:n.title}),(0,l.jsx)("meta",{name:"twitter:description",content:n.description}),(0,l.jsx)("meta",{name:"twitter:site",content:"@energy_ch"}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,l.jsx)("meta",{name:"twitter:creator",content:"@energy_ch"}),(null===(t=n.image)||void 0===t?void 0:t.src)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{property:"og:image",content:n.image.src}),(0,l.jsx)("meta",{name:"twitter:image",content:n.image.src})]})]})},_l=function(e){var t;if("newsletter"!==e.componentType)return!1;var n=e;return"event"===n.newsletterVariant&&Boolean(null===(t=n.background)||void 0===t?void 0:t.src)},Dl=function(e){var t=e.page,n=e.navigation,o=e.themeSettings,d=e.isPreviewModeEnabled,v=e.seo,g=(0,f.v9)(ie.Rg),b=(0,m.useRouter)().asPath,j=(0,f.v9)(Zn.d),w=(0,D.Z)().isMobile,N="eair"===g,y=b.includes("/artikel"),Z=b.includes("/cookie-list"),C=t.hasInvertedThemeColor,T=t.deactivateAdSlots,I=t.sections.some((function(e){return"gallery"===e.componentType})),L=g?_.u9[g]:[],E=x.Z((function(e,t){var n=L.includes(e.componentType),i=L.includes(t.componentType);return n&&i||!n&&!i}),t.sections).map((function(e){return[L.includes(e[0].componentType)?"fullWidth":"default",(0,s.Z)(e)]})),M=t.isIndexed,P=void 0===M||M,A="game"===t.theme;(0,h.useEffect)((function(){window.dataLayer&&(null===j||void 0===j?void 0:j.sub)&&window.dataLayer.push({user_sub:j.sub})}),[b,null===j||void 0===j?void 0:j.sub]);var F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map((function(n,r){var a,s=!_.GZ.includes(n.componentType),o=_l(n),d=r>0?e[r-1]:void 0,u=void 0!==d&&_l(d),m=/Ad$/.test(n.componentType),x=/^mobile.*?Ad$/.test(n.componentType),f=t&&0===r,p=y&&"articleTextIntro"===n.componentType,v=y&&"articleTextIntro"===(null===(a=e[r-1])||void 0===a?void 0:a.componentType),g="articleImageHeader"===n.componentType,b="gallery"===n.componentType,j="relatedArticles"===n.componentType,N="teaser"===n.componentType,Z="video"===n.componentType,k="quiz"===n.componentType,S=j||N||b||C;return m&&x!==w?null:(0,l.jsxs)(h.Fragment,{children:[n.slug&&(0,l.jsx)("div",{id:n.slug,className:"relative -top-12"}),(0,l.jsx)("section",{className:c()("relative","rich-text"===n.layout&&"py-6",!s&&f&&"pt-0 md:pt-0 tels:mb-12 tels:md:mb-0",s&&f&&!o&&"teair:pt-0 md:teair:pt-3",s&&!x&&!o&&"py-12 md:py-14 tesn:py-8 teair:py-8 tels:py-8",u&&s&&!x&&"!pt-0 md:!pt-0 tesn:!pt-0 teair:!pt-0 tels:!pt-0",o&&"overflow-x-hidden",p&&"pb-0 md:pb-0 teair:pb-0 tesn:pb-0 tels:pb-0",v&&"pt-0 md:pt-0 teair:pt-0  tesn:pt-0 tels:pt-0",S&&"teair:bg
1-white teair:text-air-mediumBlue",g&&"teair:text-air-mediumBlue teair:bg-air-lightBlue",(y||C)&&Z&&"teair:text-air-mediumBlue teair:bg-air-lightBlue",A&&"game:md:py-8",k&&"pt-0 pb-20 lg:pb-56 game:md:pt-8 game:md:pb-12"),children:Ll((0,i.Z)({hasInvertedThemeColor:C,deactivateAdSlots:T},n))})]},"".concat(n.id,"-").concat(r))}))};return(0,l.jsxs)(l.Fragment,{children:[v&&(0,l.jsx)(Bl,{seo:v}),!P&&(0,l.jsxs)(u(),{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),(0,l.jsx)("meta",{name:"googlebot",content:"noindex"})]}),(0,l.jsx)("div",{id:"modals"}),(0,l.jsx)("div",{id:"tooltip",className:"relative z-20"}),(0,l.jsxs)(El.Z,(0,r.Z)((0,i.Z)({deactivateAdSlots:T,navigation:n,themeSettings:o,isPreviewModeEnabled:d,hasInvertedThemeColor:!(!N||!I)||C},Z&&{className:"bg-black-light"}),{children:[t.backgroundImage&&(0,l.jsx)(B,(0,i.Z)({},t.backgroundImage)),t.subNavigation&&(0,l.jsx)(Pl,{subNav:t.subNavigation}),t.breadcrumbs&&(0,l.jsx)(k,(0,i.Z)({},t.breadcrumbs)),E.map((function(e,n){var i=(0,a.Z)(e,2),r=i[0],s=i[1];return A?(0,l.jsxs)("div",{className:"bg-game-blue-midnight flex justify-center pb-[5rem] md:pb-[20rem]",children:[!T&&(0,l.jsx)(p.q,{slotType:"left_ad_1",position:"left"}),(0,l.jsx)("div",{className:c()("relative",A?"overflow-hidden lg:overflow-visible":"overflow-hidden"),children:F(s,!1)}),!T&&(0,l.jsx)(p.q,{slotType:"right_ad_1"})]},n):(null===t||void 0===t?void 0:t.deactivateAdSlots)||"fullWidth"===r?F(s,0===n):(0,l.jsxs)("div",{className:c()("flex justify-center",y&&"teair:bg-white"),children:[(0,l.jsx)(p.q,{slotType:"left_ad_1",position:"left"}),(0,l.jsx)("div",{className:"flex flex-col w-full",children:F(s,!1)}),(0,l.jsx)(p.q,{slotType:"right_ad_1"})]},n)})),"/cookie-list"===b&&(0,l.jsx)(S,{}),(null===o||void 0===o?void 0:o.enableEventChatbox)&&(0,l.jsx)(Fl,{})]}))]})}},97486:function(e,t,n){var i=n(67294);t.Z=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1];return(0,i.useEffect)((function(){n(!0)}),[]),t}}}]);
2//# sourceMappingURL=1203-3287f65415039359.js.map

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.