PageSourceSearch

https://www.politico.eu/wp-content/themes/politico/dist/js/politic…-confirmation.9d258f3ba203bcd55c44.chunk.js

js politico.eu collected 2026-09-24 06:03:39 UTC 1,816 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpolitico_theme=self.webpackChunkpolitico_theme||[]).push([[2697],{1126:function(e,t,a){var n=a(8987),r=a(3932);t.default=()=>{const e=document.querySelector("#resend-email-confirmation");if(!e)return;const t=n.A.get(r.Rx),a=e.querySelector('input[name="resend-email-token"]');t&&t.length||a.insertAdjacentHTML("beforebegin",'<div class="form__group"><label class="form__label" for="email-address"><span>Email Address</span><input type="email" name="resend-email" id="pl-resend-email" value="" placeholder="Enter your email address..." required="required"></label></div>');const i=e.querySelector(".form__error .form__notification"),l=e.querySelector("#btn__resend_email");e.addEventListener("submit",(async t=>{t.preventDefault();const s=document.querySelector('[name="cf-turnstile-response"]');if(!s||!s.value)return;const o={token:a.value,"turnstile-response":s.value},d=n.A.get(r.Rx);if(d&&d.length)o.accRef=d;else{const t=e.querySelector("#pl-resend-email");o.email=t?t.value:""}l.disabled=!0;const c=await fetch(`/wp-json/politico/v1/resend-confirmation?${new URLSearchParams(o).toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}}),u=await c.json();u.result?"invalid_token"===u.result||"invalid_captcha"===u.result||"invalid_email"===u.result?(i.innerHTML=`<p>${"invalid_token"===u.result?"Security check failed. Please try again.":"Failed to authenticate request. Please try again."}</p>`,i.parentElement.setAttribute("aria-hidden","false"),l.disabled=!1):"fail"===u.result?window.location.href="/confirm-registration/?token_redeemed=true":window.location.href="/registration/?email-resend=success":(i.innerHTML="<p>Failed to process the request. Refresh the page and try again.</p>",i.parentElement.setAttribute("aria-hidden","false"),l.disabled=!1)}))}}}]);

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.