PageSourceSearch

https://www.hr-inforadio.de/assets_4.48.0/js//feature/tickerSettings.bundle.js

js hr-inforadio.de collected 2026-09-24 17:21:18 UTC 13,648 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["/feature/tickerSettings"],{4064:function(t,n,e){e.d(n,{AF:function(){return s},BV:function(){return f},LR:function(){return d},pi:function(){return l},wM:function(){return a},xG:function(){return o}});var i=e(8471),o=function(){var t=new i.Z;return!t.isSettingsCookieExistent("ati")||t.isSettingsCookieAccepted("ati")},r=function(t,n){"undefined"!=typeof pa&&void 0!==pa&&o()&&pa.sendEvent(t,n)},c=function(t,n){return{click:t,site_level2_id:u(n)}},u=function(t){return void 0!==t?t:void 0!==pageDisplayConfig?pageDisplayConfig.site_level2_id:99},a=function(t,n){return r("click.action",c(t,n))},s=function(t,n){return r("click.navigation",c(t,n))},l=function(){return r("page.display",pageDisplayConfig)},d=function(t,n){return r("click.download",c(t,n))},f=function(t){r("page.scroll",{scroll_depth:t,page:void 0!==pageDisplayConfig?pageDisplayConfig.page:"unknown",hr_document_type:void 0!==pageDisplayConfig?pageDisplayConfig.hr_document_type:"unknown",hr_sophora_id:void 0!==pageDisplayConfig?pageDisplayConfig.hr_sophora_id:"unknown"})}},8471:function(t,n,e){var i=e(8836);n.Z=function(){var t={},n=function(){(0,i.TD)("hrSettings",t,31536e7)},e=function(){t=(0,i.Vv)("hrSettings")||{}};return{setCookieForOptions:function(i,o){null==o&&(o=!0),e(),t[i]=o,n()},isSettingsCookieExistent:function(n){return e(),t.hasOwnProperty(n)},isSettingsCookieAccepted:function(n){return e(),!0===t[n]}}}},2820:function(t,n,e){var i=e(885),o=e(8836);n.Z=function(){var t={},n=function(n){t=(0,o.Vv)(n)||{}};return{setCookieForTickerSetting:function(e,i,r,c){null==c&&(c=!0),n(e),t[r]=c,function(n,e){var i=e?31536e7:6048e5;(0,o.TD)(n,t,i)}(e,i)},isTickerSettingAccepted:function(e){return n(),!0===t[e]},isTickerSettingExist:function(e,i){return n(e),t.hasOwnProperty(i)},getTickerSettingCookie:function(n){return t=(0,o.Vv)(n)},deleteOldTickerSettingCookies:function(){document.cookie.split(";").forEach((function(t){var n=t.split("="),e=(0,i.Z)(n,1)[0].trim();e.startsWith("hessen-am-morgen")&&(0,o.kT)(e)}))}}}},3030:function(t,n,e){e.r(n),e.d(n,{default:function(){return l}});var i=e(8836),o=e(4064),r=e(2820),c=function(){return!!window.Notification},u=function(){return c()?Notification.permission:"no-notification-feature"},a=function(){return"granted"===u()},s=function(){return"denied"===u()},l=function(t){var n,e=t.options,l=e.tickerId,d=(e.isWebview,e.isLongtimeTicker),f="ticker_".concat(l),p=(0,i.PN)(".js-push-settings-wrapper")[0],m=(0,i.PN)(".js-push-settings-radio-wrapper")[0],g=(0,i.PN)("[type = 'radio']",m),v=(0,i.PN)(".js-timeline-body",document)[0],h=(0,i.PN)("[type = 'checkbox'][name='autoload']",document),w=(0,i.PN)(".js-autoload-info-wrapper",document)[0],k=((0,i.PN)(".js-autoload")[0],(0,i.PN)(".js-autoload-toggle-switch")[0],(0,i.PN)(".js-top-news-link")),y=new r.Z,b=(0,i.PN)(".js-askForNotificationsButton")[0],N=(0,i.PN)(".js-ticker-settings-overlay")[0],T=((0,i.PN)(".c-ticker__mainheader")[0],void 0!==document.querySelector("#headerWrapper")?(0,i.PN)("#headerWrapper",document)[0]:(0,i.PN)(".page__header",document)[0]),S={wrapper:(0,i.PN)(".js-ticker-topnews-nav")[0]},E={isOpen:!1,button:(0,i.PN)(".js-pushSettingsButton")[0],wrapper:(0,i.PN)(".js-pushSettingsWrapper")[0],trackingName:"settings-menu"},C={isOpen:!1,button:(0,i.PN)(".js-tickerTopNewsButton")[0],button2:(0,i.PN)(".js-tickerTopNewsDisplayButton")[0],wrapper:(0,i.PN)(".js-topNewsWrapper")[0],trackingName:"topnews-menu"},L=function(t){(0,i.Ev)("click",D,document);var n=t.trackingName+"isOpen";S.wrapper.classList.remove(n),t.isOpen=!1,C.button.removeAttribute("disabled")},D=function(){L(E),L(C)},A=function(t){window.innerWidth<1024&&((0,i.oL)("click",D,document),(0,i.oL)("click",(function(t){t.stopPropagation()}),E.wrapper));var n=t.trackingName+"isOpen";S.wrapper.classList.add(n),t.isOpen=!0},O=function(t,n){t.isOpen&&n!==C.button2?(L(t),window.innerWidth>=1024&&A(C),(0,i.BX)("hr:global:recalculateSitebar"),(0,o.wM)("ticker::"+t.trackingName+"-close")):(A(t),(0,i.BX)("hr:global:recalculateSitebar"),(0,o.wM)("ticker::"+t.trackingName+"-open"))},P=function(t){t.stopPropagation(),t.currentTarget===E.button?(L(C),C.button.setAttribute("disabled",""),O(E,t.currentTarget)):(L(E),C.button.removeAttribute("disabled"),O(C,t.currentTarget))}
1,j=function(t,n,e){"nopush"!==n.value&&(a()||s()||I(!1)),y.setCookieForTickerSetting(f,d,"push",n.value)},M=function(t,n){(0,i.oL)("change",(function(){return j(0,n)}),n)},B=function(t,n,e){e?(0,o.wM)("ticker::set-autoload-settings-init"+n.checked):(0,o.wM)("ticker::set-autoload-settings-"+n.checked),y.setCookieForTickerSetting(f,d,"autoload",n.checked);for(var i=0;i<h.length;++i)!0===n.checked?h[i].checked=!0:h[i].checked=!1},_=function(t,n){(0,i.oL)("change",(function(){return B(0,n,!1)}),n)},x=function(t,n){return y.isTickerSettingExist(f,n)},Z=function(t){return y.getTickerSettingCookie(f)},F=function(){for(var t=0;t<g.length;++t)g[t].disabled=!0},W=function(t){a()&&(t&&(0,o.wM)("ticker::ask-for-notifications-granted"),p.classList.add("-isGranted"),p.classList.remove("-isDenied","-isDefault","-noNotification"),function(){for(var t=0;t<g.length;++t)g[t].disabled=!1}()),s()&&(t&&(0,o.wM)("ticker::ask-for-notifications-denied"),p.classList.add("-isDenied"),p.classList.remove("-isGranted","-isDefault","-noNotification"),F()),"default"===u()&&(t&&(0,o.wM)("ticker::ask-for-notifications-default"),p.classList.add("-isDefault"),p.classList.remove("-isGranted","-isDenied","-noNotification"),F()),c()||(p.classList.add("-noNotification"),p.classList.remove("-isGranted","-isDenied","-isDefault"),F())},I=function(t){(0,o.wM)("ticker::ask-for-notifications-clicked"),N.classList.add("-isOverlayed"),Notification.requestPermission().then((function(n){N.classList.remove("-isOverlayed"),t&&W(!0)})).catch(void 0).finally(void 0)},G=function(){(0,i.oL)("click",P,C.button),(0,i.oL)("click",P,C.button2),(0,i.oL)("click",P,E.button),(0,i.oL)("click",(function(){I(!0)}),b)};return W(),G(),function(){if(x(0,"push"))for(var t=Z(),n=0;n<g.length;++n)M(0,g[n]),g[n].id===t.push&&(g[n].checked=!0);else for(var e=0;e<g.length;++e)M(0,g[e]),"checked"===g[e].getAttribute("initial")&&(g[e].checked=!0,j(0,g[e]))}(),function(){if(x(0,"autoload"))for(var t=Z(),n=0;n<h.length;++n)_(0,h[n]),!0===t.autoload&&(h[n].checked=!0);else for(var e=0;e<h.length;++e)_(0,h[e]),"checked"===h[e].getAttribute("initial")&&(h[e].checked=!0,B(0,h[e],!0))}(),function(){for(var t=function(t){(0,i.oL)("click",(function(){(0,o.wM)("ticker::top-news-menu-item-clicked-"+(t+1)),window.userScroll=!1}),k[t])},n=0;n<k.length;n++)t(n)}(),n=0,(0,i.oL)("scroll",(function(){var t=window.pageYOffset||document.documentElement.scrollTop,e=(window.innerHeight||(document.documentElement||document.body).clientHeight,v.offsetTop);t>n||(w.classList.remove("elementToFadeInAndOut"),t<e&&(0,i.BX)("hr:global:userScrolledToTop")),n=t<=0?0:t}),document),void 0!==T&&window.location.hash&&(window.userScroll=!1),y.deleteOldTickerSettingCookies(),{initializeSettingsButton:G}}},8836:function(t,n,e){e.d(n,{BX:function(){return v},Ds:function(){return d},Ev:function(){return m},GV:function(){return D},HD:function(){return a},JU:function(){return E},MJ:function(){return P},P2:function(){return f},PN:function(){return r},SG:function(){return l},TD:function(){return w},Tx:function(){return M},Vv:function(){return y},Vx:function(){return g},X_:function(){return C},_U:function(){return u},aM:function(){return S},bv:function(){return s},cQ:function(){return B},cu:function(){return j},kT:function(){return N},lU:function(){return A},oL:function(){return p},oN:function(){return c},pW:function(){return L},ve:function(){return O},xQ:function(){return _}});var i=e(4413),o=e(7247),r=function(t,n){var e=n||document;return t?t.indexOf(",")>0||t.split(" ").length>1||t.split(".").length>1?e.querySelectorAll(t):"."===t[0]?e.getElementsByClassName(t.substring(1)):"#"===t[0]?new Array(document.getElementById(t.substring(1))):e.querySelectorAll(t):e},c=function(t){return!!t&&t.replace(/(<([^>]+)>)/gi,"")},u=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)},a=function(t){return"[object String]"===Object.prototype.toString.call(t)},s=function(t,n){for(;null!==n&&"BODY"!==n.tagName;){if(n.tagName&&n.tagName.toLowerCase()===t)return n;n=n.parentNode}return!1},l=function(t,n){for(var e=n.parentNode;null!==e;){if(e===t)return!0;e=e.parentNode}return!1},d=function(t,n){var e=null;return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var c=this;clearTimeout(e),e=setTimeout((function(){t.apply(c,o)}),n)}},f=function(t,n,e){var i,o;return n=n||250,function(){for(var r=arguments.length,c=new Array(r),u=0;u<r;u++)c[u]=arguments[u];var a=e||this,s=+new Date;i&&s<i+n?(clearTimeout(o),o=setTimeout((function(){i=s,t.apply(a,c)}),n)):(i=s,t.apply(a,c))}},p=function(t,n,e){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=void 0===e?document:e;
1var o="touchstart"===t||"touchmove"===t||"wheel"===t,r=Modernizr.passiveeventlisteners&&!i&&o;window.attachEvent?e.attachEvent(t,n):e.addEventListener(t,n,!!r&&{passive:!0})},m=function(t,n,e){e=void 0===e?document:e,window.attachEvent?e.detachEvent(t,n):e.removeEventListener(t,n)},g=function(t,n,e){(e=void 0===e?document:e).addEventListener(t,n,{once:!0})},v=function(t,n,e){var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),document.dispatchEvent(i),e&&(r("#js-iFrame")[0]&&r("#js-iFrame")[0].contentWindow.document.dispatchEvent(i),h()&&parent.document.dispatchEvent(i))},h=function(){try{return window.self!==window.top}catch(t){return!0}},w=function(t,n,e){k(t,JSON.stringify(n),e)},k=function(t,n,e){var i,o=T();e?((i=new Date).setMilliseconds(i.getMilliseconds()+e),i=i.toUTCString()):i="",document.cookie=t+"="+n+";expires="+i+";domain="+o+";path=/;"},y=function(t){var n;try{n=JSON.parse(b(t))}catch(t){}return n},b=function(t){var n=RegExp(t+"[^;]+").exec(document.cookie);return unescape(n?n.toString().replace(/^[^=]+./,""):"")},N=function(t){var n=T();document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+n+";path=/;"},T=function(){return window.location.hostname.substring(window.location.hostname.indexOf(".")+1)},S=function(t,n){var e=window.requestAnimationFrame||function(t,n){window.setTimeout(t,1e3/60)},i=(new Date).getTime(),o={};return o.value=e((function r(){(new Date).getTime()-i>=n?t.call():o.value=e(r)})),o},E=function(t,n,e,r,c,u,a,s,l){var d="opacity";c=c||800,u=u||.2,a=a||1,s=s||"ease-in-out",l=l||"0.8s",t.style.WebkitTransition=d+" "+l+" "+s,t.style.MozTransition=d+" "+l+" "+s,t.style.transition=d+" "+l+" "+s,t.style[d]=u,S((function(){if(n&&(t.innerHTML=n),t.style[d]=a,e){i.Z.run(t,o.Z);try{hrScriptLoad.rescanForModulesAndVariants(t)}catch(t){}}r&&r()}),c)},C=function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop},L=function(t){var n;return n=Math.round(t.getBoundingClientRect().left),{top:Math.round(t.getBoundingClientRect().top),left
1:n}},D=function(t){i.Z.run(t,o.Z)},A=function(t){var n=document.getElementById(t);n&&n.parentNode.removeChild(n)},O=function(t,n,e,i){if(!document.getElementById(t)){var o=r("script")[0],c=document.createElement("script");c.id=t,c.src=n,e&&c.setAttribute("async",!!e),i&&c.addEventListener("load",(function(t){i(null,t)}),!1),o.parentNode.insertBefore(c,o)}},P=function(t,n,e){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.href=n,e.type&&(i.type=e.type),e.rel&&(i.rel=e.rel),e.title&&(i.title=e.title),e.as&&(i.as=e.as),document.getElementsByTagName("head")[0].appendChild(i)}},j=function(t,n){var e=document.createElement("style");return n&&e.setAttribute("media",n),e.styleSheet?e.styleSheet.cssText=t||"":e.appendChild(document.createTextNode(t||"")),document.head.appendChild(e),e.sheet},M=function(t){t.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))},B=function(t,n){var e=window.requestAnimationFrame||function(t,n){window.setTimeout(t,1e3/60)},i={},o=(new Date).getTime();return i.value=e((function r(){i.value=e(r),(new Date).getTime()-o>=n&&(t.call(),o=(new Date).getTime())})),i},_=function(t){return window.cancelAnimationFrame&&t?window.cancelAnimationFrame(t.value):window.clearInterval(t)}},907:function(t,n,e){function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=t[e];return i}e.d(n,{Z:function(){return i}})},885:function(t,n,e){e.d(n,{Z:function(){return o}});var i=e(181);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var i,o,r,c,u=[],a=!0,s=!1;try{if(r=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;a=!1}else for(;!(a=(i=r.call(e)).done)&&(u.push(i.value),u.length!==n);a=!0);}catch(t){s=!0,o=t}finally{try{if(!a&&null!=e.return&&(c=e.return(),Object(c)!==c))return}finally{if(s)throw o}}return u}}(t,n)||(0,i.Z)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(t,n,e){e.d(n,{Z:function(){return o}});var i=e(907);function o(t,n){if(t){if("string"==typeof t)return(0,i.Z)(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?(0,i.Z)(t,n):void 0}}}}]);

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.