PageSourceSearch

https://www.politico.eu/wp-content/themes/politico/dist/js/politic…ount-activate.cc1e24fb4107b5127fb5.chunk.js

js politico.eu collected 2026-09-24 06:03:33 UTC 3,214 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpolitico_theme=self.webpackChunkpolitico_theme||[]).push([[1476],{9514:function(e,t,r){r.d(t,{$O:function(){return c},Ho:function(){return u},bb:function(){return f}});var i=r(8987);const n="plnlreg",o=e=>btoa(e),l=(e,t)=>{if(!e.length)return!1;if("function"!==typeof window.btoa||"object"!==typeof s)return!1;const r=i.A.get(n);if(void 0===r)return!0;const l=o(e),a=JSON.parse(r);return!a||!a.id||a.id!==l||(!a.events||!Array.isArray(a.events)||!a.events.includes(t))},a=(e,t)=>{if("function"!==typeof window.btoa)return;const s=o(e),r={id:s},l=i.A.get(n);if(void 0===l)r.events=[t];else{const e=JSON.parse(l);e&&e.events&&Array.isArray(e.events)&&s===e.id?(e.events.push(t),r.events=e.events):r.events=[t]}i.A.set(n,JSON.stringify(r),{expires:30})},c=(e,t)=>{l(e,t)&&(s.events=t,s.tl(!0,"o","User Registration"),a(e,t))},u=(e,t)=>{let r=null;switch(t){case 1:r="event15";break;case 2:r="event16";break;case 3:r="event17";break;case 4:r="event18";break;default:r=t>=25&&t<=29?`event${t}`:null}r&&!l(e,r)||(s.events=r,s.tl(!0,"o","User Registration"),a(e,r))},f=()=>{const e=new URLSearchParams(window.location.search).get("newsletter"),t={newsletters:"",filteredNewsletters:"",count:0};if(e&&e.length){t.newsletters=e;const s=e.split(",");t.count=s.length,t.filteredNewsletters=s.filter((e=>!e.includes("ealert"))).sort(),t.count=t.filteredNewsletters.length,t.filteredNewsletters=t.filteredNewsletters.join(",")}return t}},103:function(e,t,s){var r=s(6045),i=s(3824),n=s(9514);t.default=()=>new r.A({formEl:i.em,trackSubmitEmail:n.$O,trackEventId:"event28",emailField:'input[name="user_email"]'})},6045:function(e,t,s){s.d(t,{A:function(){return r}});class r{constructor(e){this.settings={customEventErrorName:"formError",isFieldmanagerForm:!1,...e},this.formEl=this.settings.formEl,"string"===typeof this.formEl&&(this.formEl=document.querySelector(this.settings.formEl)),this.formEl&&(this.setup(),this.onFocus=this.onFocus.bind(this))}setup(){this.formEl.addEventListener("submit",(e=>{const t=this.formEl.querySelectorAll("[required]"),s=[];let r=!1;if(t.forEach((e=>{let t=e.parentNode;if(this.settings.isFieldmanagerForm){const s=e.closest(".form__fields--field");s&&(t=s)}const i=t.querySelector(".form__fields--error-message");let n=""===e.value;"email"===e.type&&(n=!this.validateEmail(e.value)),n?(t.classList.add("form__fields--empty"),e.addEventListener("focus",this.onFocus),i&&s.push(i.textContent),r=!0):(t.classList.remove("form__fields--empty"),e.removeEventListener("focus",this.onFocus)),i&&i.setAttribute("aria-hidden",!n)})),r){e.preventDefault(),this.formEl.scrollIntoView();const t=new CustomEvent(this.settings.customEventErrorName,{detail:s.toString()});return this.formEl.dispatchEvent(t),!1}if(this.settings.trackSubmitEmail&&this.settings.trackEventId&&this.settings.emailField){const e=this.formEl.querySelector(this.settings.emailField);e&&this.settings.trackSubmitEmail(e.value,this.settings.trackEventId)}return!0}))}onFocus({target:e}){const t=e.parentNode,s=t.querySelector(".form__fields--error-message");t.classList.remove("form__fields--empty"),s.setAttribute("aria-hidden",!0)}validateEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}}}}]);

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.