1window.onload=function(){if(!document.getElementById("stripe-card-element"))return;const e=Stripe(stripe_checkout_params.key),t=e.elements({locale:stripe_checkout_params.locale}).create("card",{style:{base:{color:"#32325d",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}});t.mount("#stripe-card-element"),t.addEventListener("change",(function(e){const t=document.getElementById("stripe-card-errors");e.error?t.textContent=e.error.message:t.textContent=""}));let n=!1;const a=document.getElementById("stripe-checkout-form"),r=document.getElementById("stripe-cardholder-name");a.addEventListener("submit",(function(s){if(n)return!0;s.preventDefault();const o=document.getElementById("stripe-card-errors"),c=this.querySelector(".spinner"),i=this.querySelectorAll("input[type=submit]");i.forEach((function(e){e.classList.add("disabled"),e.addEventListener("click",(function(t){return!e.classList.contains("disabled")||(t.preventDefault(),!1)}))})),c.classList.add("is-active"),o.textContent="";const d=a.dataset.secret;e.handleCardPayment(d,t,{payment_method_data:{billing_details:{name:r.value}}}).then((function(e){e.error?(c.classList.remove("is-active"),i.forEach((function(e){e.classList.remove("disabled")})),o.textContent=e.error.message):e.paymentIntent&&"succeeded"===e.paymentIntent.status?(n=!0,a.submit()):o.textContent=stripe_checkout_params.unknown_error_message}))}))};
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.