PageSourceSearch

https://www.vrsfoundation.us/assets/js/templates/donate.js?id=2180c037c07fe3e14d73e69b492b9ee0

js vrsfoundation.us collected 2026-10-05 09:47:02 UTC 3,081 bytes, 2 lines download raw bytes

1(self.webpackChunkivinteractive_rca_vrsf=self.webpackChunkivinteractive_rca_vrsf||[]).push([[333],{507:()=>{var e=document.getElementById("form-message");[].slice.call(document.querySelectorAll(".ajax-form")).forEach((function(e){e.addEventListener("submit",a)}));var t={is_corp:{1:["corp_input"],0:["corp_input"]},is_honor:{1:["honor_input"],0:["honor_input"]}},o=function(e){var o=function(o){var n=document.getElementById(e);n&&n.addEventListener("change",(function(){return function(e,t,o){for(var n=0;n<o.length;n++){var r=document.getElementById(o[n]);if(r){var a=r.closest(".hidden"),s=window.getComputedStyle(a);if(e.value===t)"none"===s.display&&(Velocity(a,"slideDown",{duration:200}),r.setAttribute("required",""),document.querySelector("label[for='".concat(o,"']")).innerHTML+="<span class='required-field'>*</span>");else if("block"===s.display){Velocity(a,"slideUp",{duration:200}),r.removeAttribute("required");var i=document.querySelector("label[for='".concat(o,"']"));i.removeChild(i.children[0])}}}}(n,o,t[e][o])}))};for(var n in t[e])o(n)};for(var n in t)o(n);function r(t,o){o?(e.classList.add("success"),e.classList.remove("error")):(e.classList.add("error"),e.classList.remove("success")),e.innerHTML=t}function a(t){if("performance"in window==!1)return!0;t.preventDefault();var o=this,n=new FormData(o),a=this.querySelector('button[type="submit"]');a.classList.add("disabled"),n.append("c_time",performance.now()>=7e3?0:1),axios.post(o.action,n).then((function(e){var t,n,a,c,l,d;o.classList.add("hidden"),s(o),r(e.data.message.value,!0),i(e.data.title.value,!0),e.data.lightbox&&((d=document.querySelector(".form-content"))&&Velocity(d,"slideUp",{duration:200}),t=e.data.update_url,n=e.data.lightbox,a=e.data.uuid,c={ssl_txn_auth_token:n},l={onError:function(e){console.log("error"),console.log(e)},onCancelled:function(){console.log("cancelled"),console.log(response)},onDeclined:function(e){console.log("payment declined"),console.log(e)},onApproval:function(e){axios.post(t,{registration:a,paid:e.ssl_amount}).then((function(e){r(e.data.message.value,!0)})).catch((function(e){r(e.data.message.value,!1)}))}},window.PayWithConverge.open(c,l))})).catch((function(t){console.log(t),setTimeout((function(){a.classList.remove("disabled")}),500),r(t.response.data.message.value,!1),422===t.response.status&&(s(o),function(t,o){var n=o.errors;"none"!==window.getComputedStyle(e).display&&(e.classList.add("error"),e.innerHTML=o.message.value);for(var r in n){var a=t.querySelector('label[for="'+r+'"]');a&&a.parentNode.classList.add("error"),"g-recaptcha-response"==r&&document.querySelector(".g-recaptcha").classList.add("error")}}(o,t.response.data)),i(t.response.data.title.value,!1)}))}function s(t){for(var o=t.getElementsByClassName("error"),n=o.length-1;n>=0;n--)o[n].classList.remove("error");Velocity(e,"scroll",{duration:500,offset:-1*(header.offsetHeight+50)})}function i(e,t){var o={event:"FormSubmission",formTitle:e,formSuccess:t};"undefined"!=typeof dataLayer&&dataLayer.push(o)}}},e=>{var t;t=507,e(e.s=t)}]);
2//# sourceMappingURL=donate.js.map

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.