1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["/feature/tickerAjax"],{1906:function(t,n,e){e.r(n);var r=e(8836),o=e(4793),i=e.n(o),u=e(2820);e(6374),e(5354);n.default=function(t){var n=t.options,e=t.element,o=n.loadButtonSelector,c=n.loadButtonBadgeSelector,a=n.loadButtonCloseSelector,l=n.reloadUrl,s=n.tickerUrl,d=n.tickerId,f=(window.parent.document.documentElement.classList.contains("webview"),e),m=(0,r.PN)(o,e)[0],v=(0,r.PN)(a,e)[0],p=(0,r.PN)(c,e)[0],w=[],h=(0,r.PN)(".js-timeline",document)[0],g=(0,r.PN)(".js-ticker-topnews-list",document)[0],y=(0,r.PN)(".js-ticker-headline",document)[0],T=(0,r.PN)(".js-timeStamp",document)[0],E=(0,r.PN)(".js-autoload-info-wrapper",document)[0],b=(0,r.PN)(".js-load-autoload-badge",document)[0],k=new u.Z,S="ticker_".concat(d),L=function(){var t=B(d);return x(d,"autoload")&&!0===t.autoload},N=function(){w=[]},M=function(){s!==window.location.href&&window.history.pushState("","",s)},j=function(t){var n=(new DOMParser).parseFromString(t.trim(),"text/html"),e=n.getElementById("js-content").innerHTML.trim(),o=n.getElementById("js-title").innerHTML.trim(),i=n.getElementById("js-topnews").firstElementChild.innerHTML.trim(),u=n.getElementById("js-timeStamp").innerHTML.trim();L()?(0,r.JU)(h,e,!0,(function(){!function(){var t=window.pageYOffset||document.documentElement.scrollTop,n=(0,r.PN)(".js-is-latest",h)[0],e=n.offsetHeight;if(t>n.offsetTop+e){var o=t+e;window.scrollTo(0,o)}b.innerHTML=w.length,E.style.display="block",E.classList.add("elementToFadeInAndOut"),setTimeout((function(){E.classList.remove("elementToFadeInAndOut"),E.style.display="none"}),5e3)}(),M()}),0,1,1,"none",0):(0,r.JU)(h,e,!0,(function(){var t;t=(0,r.PN)(".js-is-latest",h)[0].offsetTop,window.userScroll=!1,window.scrollTo(0,t),M()}),0),setTimeout((function(){loadDelayedImages(),L()||m.classList.remove("-loading")}),1e3),y.innerHTML.trim()!==o&&(0,r.JU)(y,o,!0),T.innerHTML.trim()!==u&&(0,r.JU)(T,u,!0),g.innerHTML.trim()!==i&&(0,r.JU)(g,i,!0)},A=function(t){t?(f.style.display="inline-flex",p.innerHTML=w.length):(f.style.display="none",p.innerHTML="")},C=function(t,n,e,r){i().ajax({type:"GET",dataType:"html",url:t,timeout:9e4,cache:r&&!1,beforeSend:function(){m.classList.add("-loading")}}).done((function(t){j(t),A(!1),m.classList.remove("-loading"),N()})).fail((function(){m.classList.remove("-loading")}))},x=function(t,n){return k.isTickerSettingExist(S,n)},B=function(t){return k.getTickerSettingCookie(S)};(0,r.oL)("hr:global:webSocketTickerReceived",(function(t){var n=t.detail.wsData;w.push(n.url),L()?C(l,t.currentTarget):A(!0)})),(0,r.oL)("hr:global:userScrolledToTop",(function(){L()&&N()})),(0,r.oL)("click",(function(t){t.preventDefault(),C(l,t.currentTarget)}),m),(0,r.oL)("click",(function(t){t.preventDefault(),A(!1)}),v)}},2820:function(t,n,e){var r=e(885),o=e(8836);n.Z=function(){var t={},n=function(n){t=(0,o.Vv)(n)||{}};return{setCookieForTickerSetting:function(e,r,i,u){null==u&&(u=!0),n(e),t[i]=u,function(n,e){var r=e?31536e7:6048e5;(0,o.TD)(n,t,r)}(e,r)},isTickerSettingAccepted:function(e){return n(),!0===t[e]},isTickerSettingExist:function(e,r){return n(e),t.hasOwnProperty(r)},getTickerSettingCookie:function(n){return t=(0,o.Vv)(n)},deleteOldTickerSettingCookies:function(){document.cookie.split(";").forEach((function(t){var n=t.split("="),e=(0,r.Z)(n,1)[0].trim();e.startsWith("hessen-am-morgen")&&(0,o.kT)(e)}))}}}},8836:function(t,n,e){e.d(n,{BX:function(){return w},Ds:function(){return d},Ev:function(){return v},GV:function(){return j},HD:function(){return a},JU:function(){return L},MJ:function(){return x},P2:function(){return f},PN:function(){return i},SG:function(){return s},TD:function(){return g},Tx:function(){return O},Vv:function(){return T},Vx:function(){return p},X_:function(){return N},_U:function(){return c},aM:function(){return S},bv:function(){return l},cQ:function(){return D},cu:function(){return B},kT:function(){return b},lU:function(){return A},oL:function(){return m},oN:function(){return u},pW:function(){return M},ve:function(){return C},xQ:function(){return I}});var r=e(4413),o=e(7247),i=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},u=function(t){return!!t&&t.replace(/(<([^>]+)>)/gi,"")},c=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)},a=function(t){return"[object String]"===Object.prototype.toString.call(t)},l=function(t,n){for(;null!==n&&"BODY"!==n.tagName;){if(n.tagName&&n.tagName.toLowerCase()===t)return n;n=n.parentNode}return!1},s=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 r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var u=this;clearTimeout(e),e=setTimeout((function(){t.apply(u,o)}),n)}},f=function(t,n,e){var r,o;return n=n||250,function(){for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];var a=e||this,l=+new Date;r&&l<r+n?(clearTimeout(o),o=setTimeout((function(){r=l,t.apply(a,u)}),n)):(r=l,t.apply(a,u))}},m=function(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=void 0===e?document:e;var o="touchstart"===t||"touchmove"===t||"wheel"===t,i=Modernizr.passiveeventlisteners&&!r&&o;window.attachEvent?e.attachEvent(t,n):e.addEventListener(t,n,!!i&&{passive:!0})},v=function(t,n,e){e=void 0===e?document:e,window.attachEvent?e.detachEvent(t,n):e.removeEventListener(t,n)},p=function(t,n,e){(e=void 0===e?document:e).addEventListener(t,n,{once:!0})},w=function(t,n,e){var r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),document.dispatchEvent(r),e&&(i("#js-iFrame")[0]&&i("#js-iFrame")[0].contentWindow.document.dispatchEvent(r),h()&&parent.document.dispatchEvent(r))},h=function(){try{return window.self!==window.top}catch(t){return!0}},g=function(t,n,e){y(t,JSON.stringify(n),e)},y=function(t,n,e){var r,o=k();e?((r=new Date).setMilliseconds(r.getMilliseconds()+e),r=r.toUTCString()):r="",document.cookie=t+"="+n+";expires="+r+";domain="+o+";path=/;"},T=function(t){var n;try{n=JSON.parse(E(t))}catch(t){}return n},E=function(t){var n=RegExp(t+"[^;]+").exec(document.cookie);return unescape(n?n.toString().replace(/^[^=]+./,""):"")},b=function(t){var n=k();document.cookie=t+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+n+";path=/;"},k=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)},r=(new Date).getTime(),o={};return o.value=e((function i(){(new Date).getTime()-r>=n?t.call():o.value=e(i)})),o},L=function(t,n,e,i,u,c,a,l,s){var d="opacity";u=u||800,c=c||.2,a=a||1,l=l||"ease-in-out",s=s||"0.8s",t.style.WebkitTransition=d+" "+s+" "+l,t.style.MozTransition=d+" "+s+" "+l,t.style.transition=d+" "+s+" "+l,t.style[d]=c,S((function(){if(n&&(t.innerHTML=n),t.style[d]=a,e){r.Z.run(t,o.Z);try{hrScriptLoad.rescanForModulesAndVariants(t)}catch(t){}}i&&i()}),u)},N=function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop},M=function(t){var n;return n=Math.round(t.getBoundingClientRect().left),{top:Math.round(t.getBoundingClientRect().top),left
1:n}},j=function(t){r.Z.run(t,o.Z)},A=function(t){var n=document.getElementById(t);n&&n.parentNode.removeChild(n)},C=function(t,n,e,r){if(!document.getElementById(t)){var o=i("script")[0],u=document.createElement("script");u.id=t,u.src=n,e&&u.setAttribute("async",!!e),r&&u.addEventListener("load",(function(t){r(null,t)}),!1),o.parentNode.insertBefore(u,o)}},x=function(t,n,e){if(!document.getElementById(t)){var r=document.createElement("link");r.id=t,r.href=n,e.type&&(r.type=e.type),e.rel&&(r.rel=e.rel),e.title&&(r.title=e.title),e.as&&(r.as=e.as),document.getElementsByTagName("head")[0].appendChild(r)}},B=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},O=function(t){t.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))},D=function(t,n){var e=window.requestAnimationFrame||function(t,n){window.setTimeout(t,1e3/60)},r={},o=(new Date).getTime();return r.value=e((function i(){r.value=e(i),(new Date).getTime()-o>=n&&(t.call(),o=(new Date).getTime())})),r},I=function(t){return window.cancelAnimationFrame&&t?window.cancelAnimationFrame(t.value):window.clearInterval(t)}},907:function(t,n,e){function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}e.d(n,{Z:function(){return r}})},885:function(t,n,e){e.d(n,{Z:function(){return o}});var r=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 r,o,i,u,c=[],a=!0,l=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;a=!1}else for(;!(a=(r=i.call(e)).done)&&(c.push(r.value),c.length!==n);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,n)||(0,r.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 r=e(907);function o(t,n){if(t){if("string"==typeof t)return(0,r.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,r.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.