PageSourceSearch

https://www.hr2.de/assets_4.49.0/js//feature/voting.bundle.js

js hr2.de collected 2026-10-02 02:54:05 UTC 7,464 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkhessenschau=self.webpackChunkhessenschau||[]).push([["/feature/voting"],{8836:function(e,n,t){t.d(n,{BX:function(){return h},Ds:function(){return f},Ev:function(){return v},GV:function(){return C},HD:function(){return c},JU:function(){return L},MJ:function(){return O},P2:function(){return d},PN:function(){return i},SG:function(){return l},TD:function(){return g},Tx:function(){return B},Vv:function(){return T},Vx:function(){return p},X_:function(){return k},_U:function(){return a},aM:function(){return b},bv:function(){return s},cQ:function(){return D},cu:function(){return x},kT:function(){return N},lU:function(){return S},oL:function(){return m},oN:function(){return u},pW:function(){return j},ve:function(){return A},xQ:function(){return R}});var r=t(4413),o=t(7247),i=function(e,n){var t=n||document;return e?e.indexOf(",")>0||e.split(" ").length>1||e.split(".").length>1?t.querySelectorAll(e):"."===e[0]?t.getElementsByClassName(e.substring(1)):"#"===e[0]?new Array(document.getElementById(e.substring(1))):t.querySelectorAll(e):t},u=function(e){return!!e&&e.replace(/(<([^>]+)>)/gi,"")},a=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)},c=function(e){return"[object String]"===Object.prototype.toString.call(e)},s=function(e,n){for(;null!==n&&"BODY"!==n.tagName;){if(n.tagName&&n.tagName.toLowerCase()===e)return n;n=n.parentNode}return!1},l=function(e,n){for(var t=n.parentNode;null!==t;){if(t===e)return!0;t=t.parentNode}return!1},f=function(e,n){var t=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(t),t=setTimeout((function(){e.apply(u,o)}),n)}},d=function(e,n,t){var r,o;return n=n||250,function(){for(var i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];var c=t||this,s=+new Date;r&&s<r+n?(clearTimeout(o),o=setTimeout((function(){r=s,e.apply(c,u)}),n)):(r=s,e.apply(c,u))}},m=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t=void 0===t?document:t;var o="touchstart"===e||"touchmove"===e||"wheel"===e,i=Modernizr.passiveeventlisteners&&!r&&o;window.attachEvent?t.attachEvent(e,n):t.addEventListener(e,n,!!i&&{passive:!0})},v=function(e,n,t){t=void 0===t?document:t,window.attachEvent?t.detachEvent(e,n):t.removeEventListener(e,n)},p=function(e,n,t){(t=void 0===t?document:t).addEventListener(e,n,{once:!0})},h=function(e,n,t){var r=document.createEvent("CustomEvent");r.initCustomEvent(e,!0,!0,n),document.dispatchEvent(r),t&&(i("#js-iFrame")[0]&&i("#js-iFrame")[0].contentWindow.document.dispatchEvent(r),w()&&parent.document.dispatchEvent(r))},w=function(){try{return window.self!==window.top}catch(e){return!0}},g=function(e,n,t){y(e,JSON.stringify(n),t)},y=function(e,n,t){var r,o=M();t?((r=new Date).setMilliseconds(r.getMilliseconds()+t),r=r.toUTCString()):r="",document.cookie=e+"="+n+";expires="+r+";domain="+o+";path=/;"},T=function(e){var n;try{n=JSON.parse(E(e))}catch(e){}return n},E=function(e){var n=RegExp(e+"[^;]+").exec(document.cookie);return unescape(n?n.toString().replace(/^[^=]+./,""):"")},N=function(e){var n=M();document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+n+";path=/;"},M=function(){return window.location.hostname.substring(window.location.hostname.indexOf(".")+1)},b=function(e,n){var t=window.requestAnimationFrame||function(e,n){window.setTimeout(e,1e3/60)},r=(new Date).getTime(),o={};return o.value=t((function i(){(new Date).getTime()-r>=n?e.call():o.value=t(i)})),o},L=function(e,n,t,i,u,a,c,s,l){var f="opacity";u=u||800,a=a||.2,c=c||1,s=s||"ease-in-out",l=l||"0.8s",e.style.WebkitTransition=f+" "+l+" "+s,e.style.MozTransition=f+" "+l+" "+s,e.style.transition=f+" "+l+" "+s,e.style[f]=a,b((function(){if(n&&(e.innerHTML=n),e.style[f]=c,t){r.Z.run(e,o.Z);try{hrScriptLoad.rescanForModulesAndVariants(e)}catch(e){}}i&&i()}),u)},k=function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop},j=function(e){var n;return n=Math.round(e.getBoundingClientRect().left),{top:Math.round(e.getBoundingClientRect().top),left
1:n}},C=function(e){r.Z.run(e,o.Z)},S=function(e){var n=document.getElementById(e);n&&n.parentNode.removeChild(n)},A=function(e,n,t,r){if(!document.getElementById(e)){var o=i("script")[0],u=document.createElement("script");u.id=e,u.src=n,t&&u.setAttribute("async",!!t),r&&u.addEventListener("load",(function(e){r(null,e)}),!1),o.parentNode.insertBefore(u,o)}},O=function(e,n,t){if(!document.getElementById(e)){var r=document.createElement("link");r.id=e,r.href=n,t.type&&(r.type=t.type),t.rel&&(r.rel=t.rel),t.title&&(r.title=t.title),t.as&&(r.as=t.as),document.getElementsByTagName("head")[0].appendChild(r)}},x=function(e,n){var t=document.createElement("style");return n&&t.setAttribute("media",n),t.styleSheet?t.styleSheet.cssText=e||"":t.appendChild(document.createTextNode(e||"")),document.head.appendChild(t),t.sheet},B=function(e){e.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))},D=function(e,n){var t=window.requestAnimationFrame||function(e,n){window.setTimeout(e,1e3/60)},r={},o=(new Date).getTime();return r.value=t((function i(){r.value=t(i),(new Date).getTime()-o>=n&&(e.call(),o=(new Date).getTime())})),r},R=function(e){return window.cancelAnimationFrame&&e?window.cancelAnimationFrame(e.value):window.clearInterval(e)}},2414:function(e,n,t){t.r(n);var r=t(8836),o=t(4793),i=t.n(o);t(6374),t(5354);n.default=function(e){var n,t,o=e.options,u=e.element,a=o.jsonURL,c=(0,r.PN)(".js-voting-wrapper",u)[0],s=c.innerHTML,l=(0,r.PN)(".js-votingForm",u)[0],f=l&&l.getAttribute("action"),d=!1,m=function(e){e.preventDefault(),d||(d=!0,l=(0,r.PN)(".js-votingForm",u)[0],v(),i().ajax(n).done((function(e,n,o){if(a)switch(JSON.parse(e).status){case"VALIDATION_ERROR":t=JSON.parse(e).errors,w(t);break;case"SERVER_ERROR":default:(0,r.JU)(c,(0,r.PN)(".js-errorMessage",u)[0].innerHTML,!0,p);break;case"OK":(0,r.JU)(c,(0,r.PN)(".js-successMessage",u)[0].innerHTML,!0,p)}else(0,r.JU)(c,e,!0,p)})).fail((function(e,n,t){(0,r.JU)(c,(0,r.PN)(".js-errorMessage",u)[0].innerHTML,!0,p)})).always((function(){d=!1})))},v=function(){(n={}).timeout=6e4,n.type="POST",n.url=f+"?rf=inline",n.data=i()(l).serialize(),n.contentType="application/x-www-form-urlencoded; charset=UTF-8",n.dataType=""},p=function(e){setTimeout((function(){u.scrollIntoView({behavior:"smooth",block:"center"})}),850)},h=function(e){e.preventDefault(),(0,r.JU)(c,s,!0,p)},w=function(e){!function(){for(var e=(0,r.PN)(".is-invalid",u),n=(0,r.PN)(".c-form__errorMessage",u),t=0;t<e.length;t++)e[t].classList.remove("is-invalid"),n[t].parentNode.removeChild(n[t])}(),function(e){var n,t,r,i;for(r in e){n=u.getElementsByClassName("js-wrapper-"+r)[0],t=document.createElement("p"),i=document.getElementsByName(r);for(var a=0;a<i.length;a++)n.contains(i[a])&&i[a].classList.add("is-invalid");t.innerHTML=o.errorMessages[e[r]],t.classList.add("c-form__errorMessage"),n.insertBefore(t,n.firstChild)}}(e)};l&&(c.style.WebkitTransition="opacity 0.8s ease-in-out",c.style.MozTransition="opacity 0.8s ease-in-out",c.style.transition="opacity 0.8s ease-in-out",a&&(f=a),(0,r.oL)("submit",(function(e){e.target.matches(".js-votingForm")&&m(e)}),u),(0,r.oL)("click",(function(e){e.target.matches(".js-formReload")&&h(e)}),u),(0,r.oL)("keydown",(function(e){e.target.matches(".js-form-email")&&e.stopPropagation()}),u))}}}]);

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.