1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44448,e=>{"use strict";var t=e.i(37007);e.s(["useImageStore",()=>t.a])},64408,e=>{"use strict";e.i(50461);var t=e.i(91788),n=e.i(94182),r="_ga_HK045CHGFB",i="VklFTEVOIERBTksgREFTUyBTSUUgRUlOIFBVUiBBQk8gQkVTSVRaRU4gLSBNRkcgRU5UV0lDS0xFUlRFQU0=";e.s(["a",0,r,"b",0,i,"c",0,({otId:e,autoblock:o=!0,payOrGoId:a,aboButtonStyle:s,aboButtonClassName:l="!bg-secondary"})=>t.default.createElement(t.default.Fragment,null,t.default.createElement("link",{rel:"preconnect",href:"https://cdn.cookielaw.org"}),t.default.createElement("link",{rel:"preconnect",href:"https://geolocation.onetrust.com"}),o&&t.default.createElement(n.default,{async:!0,src:`https://cdn.cookielaw.org/consent/${e}/OtAutoBlock.js`}),t.default.createElement(n.default,{async:!0,src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":e}),a&&t.default.createElement(n.default,{async:!0,id:"ot-custom"},` 2 var HIDE_ONETRUST_COOKIE_NAME = ${JSON.stringify(r)}; 3 var HIDE_ONETRUST_COOKIE_VALUE = ${JSON.stringify(i)}; 4 var REJECT_BUTTON_STYLE = ${JSON.stringify(s??"")}; 5 var REJECT_BUTTON_CLASSNAME = ${JSON.stringify(l??"")}; 6 7 function getCookie(name) { 8 var match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)')); 9 return match ? match[2] : null; 10 } 11 12 var REQUIRED_CATEGORIES = ['C0004', 'IAB2V2_1', 'V2STACK42']; 13 14 if (!HIDE_ONETRUST_COOKIE_NAME || getCookie(HIDE_ONETRUST_COOKIE_NAME) !== HIDE_ONETRUST_COOKIE_VALUE) { 15 var isInitialLoad = true; 16 17 // OptanonWrapper is called once when OneTrust initializes 18 window.OptanonWrapper = function() { 19 console.log('[OneTrust] OptanonWrapper called - initializing all customizations'); 20 21 // Set up consent change handler 22 if (typeof OneTrust !== 'undefined' && OneTrust.OnConsentChanged) { 23 OneTrust.OnConsentChanged(function(event) { 24 if (isInitialLoad) { 25 isInitialLoad = false; 26 return; 27 } 28 29 var userCategories = event.detail || []; 30 var missingCategories = REQUIRED_CATEGORIES.filter(function(required) { 31 return userCategories.indexOf(required) === -1; 32 }); 33 34 if (missingCategories.length > 0) { 35 var allCategories = userCategories.concat(missingCategories); 36 var consentString = allCategories.map(function(cat) { 37 return cat + ':1'; 38 }).join(','); 39 OneTrust.UpdateConsent("Category", consentString); 40 } 41 }); 42 } 43 44 // Function to customize OneTrust links and buttons 45 function customizeOneTrustLinks() { 46 var buttonGroupParent = document.getElementById('onetrust-button-group-parent'); 47 48 function createLoginLink() { 49 var loginLink = document.createElement('a'); 50 loginLink.className = 'custom-login-link'; 51 loginLink.href = '/auth/login?hidebanner=true'; 52 loginLink.textContent = 'Bereits Abonnent? Hier einloggen'; 53 loginLink.style.cssText = 'display: block !important; text-align: center !important; text-decoration: underline !important; color: #000 !important; font-size: 12px !important; line-height: 1.4 !important; margin: 0 !important; padding: 0 !important; cursor: pointer !important; box-sizing: border-box !important;'; 54 return loginLink; 55 } 56 57 function findExistingAboLink() { 58 var searchRoot = document.getElementById('onetrust-banner-sdk') || 59 document.getElementById('onetrust-pc-sdk') || 60 document.body; 61 var candidates = searchRoot ? searchRoot.querySelectorAll('a, button, span, p') : []; 62 63 var match = null; 64 for (var i = 0; i < candidates.length; i++) { 65 var candidate = candidates[i]; 66 var normalizedText = (candidate.textContent || '').replace(/\\s+/g, ' ').trim().toLowerCase(); 67 if (normalizedText === 'ich habe bereits ein abo') { 68 // Prefer deepest / most specific element (anchor > button > span/p)
69 if (!match || candidate.contains(match) === false) { 70 match = candidate; 71 } 72 if (candidate.tagName === 'A') { 73 return candidate; 74 } 75 } 76 } 77 78 return match; 79 } 80 81 function positionLoginLink(link, rejectBtn, actionsContainer) { 82 var gridParent = actionsContainer.parentElement; 83 var gridCs = gridParent ? window.getComputedStyle(gridParent) : null; 84 var display = gridCs ? gridCs.display : ''; 85 86 link.style.removeProperty('grid-column'); 87 link.style.removeProperty('grid-row'); 88 link.style.removeProperty('order'); 89 link.style.removeProperty('width'); 90 91 function forEachLayoutSibling(root, cb) { 92 Array.prototype.forEach.call(root.children, function (c) { 93 if (c === link) return; 94 if (window.getComputedStyle(c).display === 'contents') { 95 forEachLayoutSibling(c, cb); 96 } else { 97 cb(c); 98 } 99 }); 100 } 101 102 if (display === 'grid') { 103 var colCount = (gridCs.gridTemplateColumns || '').split(' ').filter(
103Boolean).length; 104 var rejectCol = rejectBtn ? window.getComputedStyle(rejectBtn).gridColumnStart : ''; 105 if (colCount >= 2 && /^\\d+$/.test(rejectCol)) { 106 link.style.setProperty('grid-column', rejectCol, 'important'); 107 } else { 108 link.style.setProperty('grid-column', '1 / -1', 'important'); 109 } 110 var maxRow = 0; 111 forEachLayoutSibling(gridParent, function (c) { 112 var n = parseInt(window.getComputedStyle(c).gridRowStart, 10); 113 if (!isNaN(n) && n > maxRow) maxRow = n; 114 }); 115 if (maxRow > 0) link.style.setProperty('grid-row', String(maxRow + 1), 'important'); 116 } else if (display === 'flex' || display === 'inline-flex') { 117 var maxOrder = 0; 118 forEachLayoutSibling(gridParent, function (c) { 119 var o = parseInt(window.getComputedStyle(c).order, 10); 120 if (!isNaN(o) && o > maxOrder) maxOrder = o; 121 }); 122 link.style.setProperty('order', String(maxOrder + 1), 'important'); 123 link.style.setProperty('width', '100%', 'important'); 124 } 125 } 126 127 var bannerRoot = document.getElementById('onetrust-banner-sdk') || 128 document.getElementById('onetrust-pc-sdk'); 129 if (buttonGroupParent && !(bannerRoot && bannerRoot.querySelector('.custom-login-link'))) { 130 var existingAboLink = findExistingAboLink(); 131 if (existingAboLink) { 132 existingAboLink.replaceWith(createLoginLink()); 133 } else { 134 if (!document.getElementById('hide-onetrust-after')) { 135 var style = document.createElement('style'); 136 style.id = 'hide-onetrust-after'; 137 style.textContent = '#onetrust-button-group-parent::after, #onetrust-button-group-parent .banner-actions-container::after { display: none !important; content: none !important; }'; 138 document.head.appendChild(style); 139 } 140 141 var newLink = createLoginLink(); 142 var rejectBtn = document.getElementById('onetrust-reject-all-handler'); 143 var actionsContainer = rejectBtn ? rejectBtn.closest('.banner-actions-container') : null; 144 if (actionsContainer) { 145 actionsContainer.appendChild(newLink); 146 positionLoginLink(newLink, rejectBtn, actionsContainer); 147 if (!window.__otLoginLinkResize) { 148 window.__otLoginLinkResize = function () { 149 var link = document.querySelector('.custom-login-link'); 150 var rb = document.getElementById('onetrust-reject-all-handler'); 151 var ac = rb ? rb.closest('.banner-actions-container') : null; 152 if (link && ac) positionLoginLink(link, rb, ac); 153 }; 154 window.addEventListener('resize', window.__otLoginLinkResize); 155 } 156 } else { 157 buttonGroupParent.appendChild(newLink); 158 } 159 } 160 } 161 162 var aboButton = document.getElementById('onetrust-reject-all-handler'); 163 // Only attach handler if it's the banner button, not an accordion button 164 if (aboButton && !aboButton.closest('.ot-accordion-layout')) { 165 if (!aboButton.getAttribute('data-custom-handler')) { 166 aboButton.setAttribute('data-custom-handler', 'true'); 167 aboButton.addEventListener('click', function(e) { 168 e.preventDefault(); 169 e.stopPropagation(); 170 e.stopImmediatePropagation(); 171 window.location.href = '/abo/checkout/${a}?hidebanner=true'; 172 }, true); 173 } 174 if (REJECT_BUTTON_STYLE && aboButton.getAttribute('data-custom-style') !== REJECT_BUTTON_STYLE) { 175 aboButton.setAttribute('data-custom-style', REJECT_BUTTON_STYLE); 176 aboButton.style.cssText += ';' + REJECT_BUTTON_STYLE; 177 } 178 if (REJECT_BUTTON_CLASSNAME && aboButton.getAttribute('data-custom-class') !== REJECT_BUTTON_CLASSNAME) { 179 var prev = aboButton.getAttribute('data-custom-class'); 180 if (prev) {
181 prev.split(/\\s+/).filter(Boolean).forEach(function(c) { aboButton.classList.remove(c); }); 182 } 183 REJECT_BUTTON_CLASSNAME.split(/\\s+/).filter(Boolean).forEach(function(c) { aboButton.classList.add(c); }); 184 aboButton.setAttribute('data-custom-class', REJECT_BUTTON_CLASSNAME); 185 } 186 } 187 } 188 189 // Set up MutationObserver to watch for OneTrust elements 190 var observer = new MutationObserver(function(mutations) { 191 if (document.getElementById('onetrust-button-group-parent') || 192 document.getElementById('onetrust-reject-all-handler')) { 193 customizeOneTrustLinks(); 194 } 195 }); 196 197 observer.observe(document.body, { childList: true, subtree: true }); 198 199 // Run initial customization 200 customizeOneTrustLinks(); 201 }; 202 } 203 `))])},7723,e=>{"use strict";var t=e.i(6974),n=e.i(57242),r=e.i(80887),i=e.i(91788);e.s(["LoadingIndicator",0,({visible:e,classProps:o})=>{let a=(0,n.a)({root:"w-full place-items-center min-h-[30vh]",visible:"grid"},o);return i.default.createElement("div",{role:"status",className:(0,r.a)(a.root,e?a.visible:"hidden")},i.default.createElement(t.a,null))}],7723)},25016,(e,t,n)=>{var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u=e.g&&e.g.Object===Object&&e.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,g=Math.max,m=Math.min,p=function(){return d.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(h(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=h(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}t.exports=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function b(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function w(){var e,n,r,i=p();if(b(i))return E(i);s=setTimeout(w,(e=i-l,n=i-u,r=t-e,d?m(r,o-n):r))}function E(e){return(s=void 0,f&&r)?y(e):(r=i=void 0,a)}function C(){var e,n=p(),o=b(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(w,t),c?y(e):a;if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,h(n)&&(c=!!n.leading,o=(d="maxWait"in n)?g(v(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),C.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},C.flush=function(){return void 0===s?a:E(p())},C}},65777,(e,t,n)=>{t.exports=e.r(79466)},79466,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let r=e.r(31640),i=e.r(91398),o=r._(e.r(91788)),a=e.r(89129);async function s({Component:e,ctx:t}){return{pageProps:await (0,a.loadGetInitialProps)(e,t)}}class l extends o.default.Component{static{this.origGetInitialProps=s}static{this.getInitialProps=s}render(){let{Component:e,pageProps:t}=this.props;return(0,i.jsx)(e,{...t})}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},3828,(e,t,n)=>{t.exports=e.r(26990)},66353,e=>{"use strict";var t=e.i(91788),n=e.i(25016),r="u">typeof window?t.useLayoutEffect:t.useEffect;function i(e,n,i,o){let a=(0,t.useRef)(n);r(()=>{a.current=n},[n]),(0,t.useEffect)(()=>{let t=(null==i?void 0:i.current)??window;if(!(t&&t.addEventListener))return;let n=e=>{a.current(e)};return t.addEventListener(e,n,o),()=>{t.removeEventListener(e,n,o)}},[e,i,o])}var o="u"<typeof window;function a(e,r=500,i){var o;let s,l=(0,t.useRef)();o=()=>{l.current&&l.current.cancel()},(s=(0,t.useRef)(o)).current=o,(0,t.useEffect)(()=>()=>{s.current()},[]);let u=(0,t.useMemo)(()=>{let t=(0,n.default)(e,r,i),o=(...e)=>t(...e);return o.cancel=()=>{t.cancel()},o.isPending=()=>!!l.current,o.flush=()=>t.flush(),o},[e,r,i]);return(0,t.useEffect)(()=>{l.current=(0,n.default)(e,r,i)},[e,r,i]),u}var s={width:void 0,height:void 0};function l(e,t,n){return e[t]?Array.isArray(e[t])?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}var u="u"<typeof window,c="u"<typeof window;e.s(["useDebounceCallback",0,a,"useEventListener",0,i,"useHover",0,function(e){let[n,r]=(0,t.useState)(!1);return i("mouseenter",()=>{r(!0)},e),i("mouseleave",()=>{r(!1)},e),n},"useIsomorphicLayoutEffect",0,r,"useMediaQuery",0,function(e,{defaultValue:n=!1,initializeWithValue:i=!0}={}){let a=e=>o?n:window.matchMedia(e).matches,[s,l]=(0,t.useState)(()=>i?a(e):n);function u(){l(a(e))}return r(()=>{let t=window.matchMedia(e);return u(),t.addListener?t.addListener(u):t.addEventListener("change",u),()=>{t.removeListener?t.removeListener(u):t.removeEventListener("change",u)}},[e]),s},"useOnClickOutside",0,function(e,t,n="mousedown",r={}){i(n,n=>{let r=n.target;r&&r.isConnected&&(Array.isArray(e)?e.filter(e=>!!e.current).every(e=>e.current&&!e.current.contains(r)):e.current&&!e.current.contains(r))&&t(n)},void 0,r)},"useResizeObserver",0,function(e){let n,{ref:r,box:i="content-box"}=e,[{width:o,height:a},u]=(0,t.useState)(s),c=(n=(0,t.useRef)(!1),(0,t.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,t.useCallback)(()=>n.current,[])),d=(0,t.useRef)({...s}),f=(0,t.useRef)(void 0);return f.current=e.onResize,(0,t.useEffect)(()=>
203{if(!r.current||"u"<typeof window||!("ResizeObserver"in window))return;let e=new ResizeObserver(([e])=>{let t="border-box"===i?"borderBoxSize":"device-pixel-content-box"===i?"devicePixelContentBoxSize":"contentBoxSize",n=l(e,t,"inlineSize"),r=l(e,t,"blockSize");if(d.current.width!==n||d.current.height!==r){let e={width:n,height:r};d.current.width=n,d.current.height=r,f.current?f.current(e):c()&&u(e)}});return e.observe(r.current,{box:i}),()=>{e.disconnect()}},[i,r,c]),{width:o,height:a}},"useScrollLock",0,function(e={}){let{autoLock:n=!0,lockTarget:i,widthReflow:o=!0}=e,[a,s]=(0,t.useState)(!1),l=(0,t.useRef)(null),c=(0,t.useRef)(null),d=()=>{if(l.current){let{overflow:e,paddingRight:t}=l.current.style;if(c.current={overflow:e,paddingRight:t},o){let e=l.current===document.body?window.innerWidth:l.current.offsetWidth,t=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,n=e-l.current.scrollWidth;l.current.style.paddingRight=`${n+t}px`}l.current.style.overflow="hidden",s(!0)}},f=()=>{l.current&&c.current&&(l.current.style.overflow=c.current.overflow,o&&(l.current.style.paddingRight=c.current.paddingRight)),s(!1)};return r(()=>{if(!u)return i&&(l.current="string"==typeof i?document.querySelector(i):i),l.current||(l.current=document.body),n&&d(),()=>{f()}},[n,i,o]),{isLocked:a,lock:d,unlock:f}},"useTimeout",0,function(e,n){let i=(0,t.useRef)(e);r(()=>{i.current=e},[e]),(0,t.useEffect)(()=>{if(!n&&0!==n)return;let e=setTimeout(()=>{i.current()},n);return()=>{clearTimeout(e)}},[n])},"useWindowSize",0,function(e={}){let{initializeWithValue:n=!0}=e;c&&(n=!1);let[o,s]=(0,t.useState)(()=>n?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),l=a(s,e.debounceDelay);function u(){(e.debounceDelay?l:s)({width:window.innerWidth,height:window.innerHeight})}return i("resize",u),r(()=>{u()},[]),o}])},3115,e=>{"use strict";var t=e.i(50461),n=e.i(91398),r=e.i(91788),i=e.i(65777),o=e.i(3828),a=e.i(94182);function s({gtmId:e,customSource:t}){let n=t||"https://www.googletagmanager.com/gtm.js?id=",i=n.substring(0,n.lastIndexOf("/")+1);return r.default.createElement(r.default.Fragment,null,r.default.createElement("link",{rel:"preconnect",href:i}),r.default.createElement(a.default,{async:!0,id:"google-tag-manager",strategy:"afterInteractive"},`(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); 204 var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.setAttributeNode(d.createAttribute('data-ot-ignore')); 205 j.async = true;j.src = '${n}' + i + dl; 206 f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', '${t?e.split("GTM-")[1]:e}');`),r.default.createElement("noscript",null,r.default.createElement("iframe",{title:"gtm-noscript",src:`${i}/ns.html?id=${e}`,height:"0",width:"0",style:{display:"none",visibility:"hidden"}})))}var l=()=>{let[e,t]=(0,r.useState)(""),n=()=>fetch("/api/addefend").then(e=>e.json()).then(e=>t(e.script));return(0,r.useEffect)(()=>{let e=setInterval(n,3e5);return n(),()=>clearInterval(e)},[]),r.default.createElement("script",{id:"adDefend"},`${e}`)},u=e.i(64408),u=u,c=e.i(7136),d=({settings:e,children:t})=>{let n=(0,c.a)(e=>e.initSettings);return(0,r.useEffect)(()=>{n(e)},[n,e]),t},f=e.i(44448),g=e.i(88922),g=g,m=e.i(86533);function p(){let{data:e}=(0,m.useSession)(),t=e?.error;return(0,r.useEffect)(()=>{"RefreshAccessTokenError"===t&&(0,m.signOut)({redirect:!1})},[t]),null}function h({children:e,session:t}){return r.default.createElement(m.SessionProvider,{session:t,refetchInterval:3600,refetchOnWindowFocus:!0},r.default.createElement(p,null),e)}var v=e.i(46530),v=v,v=v,y=e.i(98919),b=e.i(7723),w=e.i(87428),E=e.i(97011);let C=({visible:e=!0,classProps:t})=>{let[i,a]=(0,r.useState)(!1),s=(0,o.useRouter)();if((0,r.useEffect)(()=>{let e=(e,{shallow:t})=>{t||a(!0)},t=()=>{a(!1)};return s?.events?.on("routeChangeStart",e),s?.events?.on("beforeHistoryChange",t),s?.events?.on("hashChangeComplete",t),s?.events?.on("routeChangeComplete",t),()=>{s?.events?.off("routeChangeStart",e),s?.events?.off("beforeHistoryChange",t),s?.events?.off("hashChangeComplete",t),s?.events?.off("routeChangeComplete",t)}},[s?.events]),!e)return null;let l={root:(0,E.twMerge)("fixed inset-0 z-20 pointer-events-none transition-opacity duration-300 opacity-0",i&&"opacity-100"),loadingElement:"w-full h-full text-white bg-white/80 min-h-0 "},u=(0,w.composeStyles)(l,t);return(0,n.jsx)("div",{role:"presentation",className:u.root,children:(0,n.jsx)(b.LoadingIndicator,{visible:!0,classProps:{root:u.loadingElement}})})};var L=e.i(79695),L=L;let T=()=>(0,L.a)()?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{id:"teadsInit",dangerouslySetInnerHTML:{__html:` 207 window.teads_analytics = window.teads_analytics || {}; 208 window.teads_analytics.analytics_tag_id = "PUB_7551"; 209 window.teads_analytics.share = window.teads_analytics.share || function() { 210 ;(window.teads_analytics.shared_data = window.teads_analytics.shared_data || []).push(arguments) 211 };`},strategy:"beforeInteractive"}),(0,n.jsx)(a.default,{type:"text/javascript",async:!0,className:"optanon-category-C0004",src:"https://a.teads.tv/analytics/tag.js",
211strategy:"beforeInteractive"})]}):(0,n.jsx)(n.Fragment,{});var S=e.i(55237),_=e.i(77358);let O={avatarFallbackUrl:"/assets/author-transparent.svg",logoUrl:"/assets/logos/news-logo.svg"};var R=e.i(32237);let k={id:"401013250",permission:"news:pur",alertMessage:"Wir speichern keine personenbezogenen Cookies von Ihnen, da Sie ein PUR-Abo besitzen"};function I({Component:e,pageProps:t}){let{navigations:i,magazines:a,paywall:c,ressorts:m,authors:p,gtmId:b,otId:w,globals:E,errorStatus:L}=t,B=e.PageLayout||_.Empty,x=(0,o.useRouter)();(0,S.useFilter)(),(0,g.c)({pageProps:t,ssrCache:y.ssrCache});let[j,P]=(0,r.useState)(!1),[A,U]=(0,r.useState)(!1),[N,z]=(0,r.useState)(!1),D=(0,f.useImageStore)(e=>e.resetImageStore);(0,r.useEffect)(()=>{let e=()=>{z(!1),U(!1),D()};return x.events.on("routeChangeStart",e),()=>x.events.off("routeChangeStart",e)},[x]),(0,r.useEffect)(()=>{P(!("container"in document.documentElement.style))},[]),(0,S.useScript)("https://cdn.jsdelivr.net/npm/container-query-polyfill@1/dist/container-query-polyfill.modern.js",{removeOnUnmount:!1,shouldPreventLoad:!j});let M=(0,r.useMemo)(()=>({navigations:i,magazines:a,paywall:c,searchOverlay:{visible:A,setVisible:U},ressorts:m,authors:p,globals:E,menuOverlay:{visible:N,setVisible:z}}),[E,a,c,m,p,N,i,A]);return(0,n.jsx)(h,{session:t.session,clearCache:y.clearCache,children:(0,n.jsx)(R.default.Provider,{value:M,children:(0,n.jsx)(d,{settings:O,children:(0,n.jsxs)(v.Provider,{value:y.client,children:[(0,n.jsx)(l,{}),(0,n.jsx)(T,{}),(0,n.jsx)(C,{}),(0,n.jsxs)(B,{children:[w&&!x.query["live-preview"]&&(0,n.jsx)(u.c,{autoblock:!1,otId:w,payOrGoId:k.id,aboButtonClassName:""}),b&&(0,n.jsx)(s,{gtmId:b}),(0,n.jsx)(e,{...t,statusCode:L})]})]})})})})}I.getInitialProps=async e=>{let{res:n}=e.ctx,r=await i.default.getInitialProps(e);r.pageProps?.errorStatus&&n&&(n.statusCode=r.pageProps.errorStatus);let o={};try{let e=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/ressorts").then(e=>e.json()),n=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/authors").then(e=>e.json()),r=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/magazines").then(e=>e.json()),i=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/globals").then(e=>e.json()),a=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/navigations").then(e=>e.json()),s=await fetch(t.default.env.NEXT_PUBLIC_APP_URL+"/api/paywall").then(e=>e.json());o={navigations:Object.assign({},...a),ressorts:e||null,authors:n||null,globals:i||null,magazines:r||null,paywall:s||null}}catch{}return{pageProps:{...o,gtmId:t.default.env.NEXT_PUBLIC_GTM_ID||null,otId:t.default.env.NEXT_PUBLIC_ONETRUST_ID||null,errorStatus:n?.statusCode}}},e.s(["PAY_OR_GO_SETTINGS",0,k,"default",0,I],3115)},32237,e=>{"use strict";let t=(0,e.i(91788).createContext)(null);e.s(["default",0,t])},55237,e=>{"use strict";var t=e.i(91788),n=e.i(87168),r=e.i(70467),i=e.i(94609),o=e.i(66353);let a={};e.s(["formatDate",0,(e,t,o="de-AT",a=!1)=>{if(a){if((0,n.isToday)(new Date(e)))return"Heute";else if((0,r.isTomorrow)(new Date(e)))return"Morgen";else if((0,i.isYesterday)(new Date(e)))return"Gestern"}return new Intl.DateTimeFormat(o,t||{}).format((e=>{try{return new Date(e.replace(/-/g,"/"))}catch{return new Date}})(e))},"useFilter",0,function(){let n=(0,t.useRef)(0);(0,o.useEventListener)("keydown",t=>{let r=["ArrowUp","ArrowUp","ArrowDown","ArrowDown","ArrowLeft","ArrowRight","ArrowLeft","ArrowRight","KeyB","KeyA"];n.current=t.code==r[n.current]?n.current+1:0,n.current==r.length&&e.A(58260).then(e=>{e.enable({contrast:120,sepia:50,grayscale:100})})})},"useScript",0,function(e,n){let[r,i]=(0,t.useState)(()=>!e||n?.shouldPreventLoad?"idle":a[e]??"loading");return(0,t.useEffect)(()=>{let t,r;if(!e||n?.shouldPreventLoad)return;let o=a[e];if("ready"===o||"error"===o)return void i(o);let s=(t=document.querySelector(`script[src="${e}"]`),r=t?.getAttribute("data-status"),{node:t,status:r}),l=s.node;if(l)i(s.status??o??"loading");else{(l=document.createElement("script")).src=e,l.async=!0,l.setAttribute("data-status","loading"),document.body.appendChild(l);let t=e=>{let t="load"===e.type?"ready":"error";l?.setAttribute("data-status",t)};l.addEventListener("load",t),l.addEventListener("error",t)}let u=t=>{let n="load"===t.type?"ready":"error";i(n),a[e]=n};return l.addEventListener("load",u),l.addEventListener("error",u),()=>{l&&(l.removeEventListener("load",u),l.removeEventListener("error",u)),l&&n?.removeOnUnmount&&l.remove()}},[e,n?.shouldPreventLoad,n?.removeOnUnmount]),r}])}]);
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.