diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js
index 2a54a785cccd69c2c6b8cc74b7b4950f782fd268..02daaf85c0d1e528c390ac4a90eaa062a47cdcc0 100644
--- a/js/civicrm_stripe.js
+++ b/js/civicrm_stripe.js
@@ -483,6 +483,10 @@ CRM.$(function($) {
     return submit;
   }
 
+  /**
+   * Get the total amount on the form
+   * @returns {number}
+   */
   function getTotalAmount() {
     var totalFee = 0.0;
     if (isEventAdditionalParticipants()) {
@@ -512,11 +516,15 @@ CRM.$(function($) {
     return totalFee;
   }
 
-  // This is calculated in CRM/Contribute/Form/Contribution.tpl and is used to calculate the total
-  //   amount with tax on backend submit contribution forms.
-  // The only way we can get the amount is by parsing the text field and extracting the final bit after the space.
-  // eg. "Amount including Tax: $ 4.50" gives us 4.50.
-  // The PHP side is responsible for converting money formats (we just parse to cents and remove any ,. chars).
+  /**
+   * This is calculated in CRM/Contribute/Form/Contribution.tpl and is used to calculate the total
+   *   amount with tax on backend submit contribution forms.
+   *   The only way we can get the amount is by parsing the text field and extracting the final bit after the space.
+   *   eg. "Amount including Tax: $ 4.50" gives us 4.50.
+   *   The PHP side is responsible for converting money formats (we just parse to cents and remove any ,. chars).
+   *
+   * @returns {string|prototype.value|number}
+   */
   function calculateTaxAmount() {
     var totalTaxAmount = 0;
     if (document.getElementById('totalTaxAmount') === null) {
@@ -534,6 +542,10 @@ CRM.$(function($) {
     return totalTaxAmount;
   }
 
+  /**
+   * Are we creating a recurring contribution?
+   * @returns {boolean}
+   */
   function getIsRecur() {
     var isRecur = false;
     // Auto-renew contributions for CiviCRM Webforms.
@@ -614,6 +626,9 @@ CRM.$(function($) {
     validator.settings.ignore = '.select2-offscreen, [readonly], :hidden:not(.crm-select2)';
   }
 
+  /**
+   * @returns {boolean}
+   */
   function isEventAdditionalParticipants() {
     if ((document.getElementById('additional_participants') !== null) &&
       (document.getElementById('additional_participants').value.length !== 0)) {
@@ -640,7 +655,7 @@ CRM.$(function($) {
 
   /**
    * Get the selected payment processor on the form
-   * @returns int
+   * @returns {null|number}
    */
   function getPaymentProcessorSelectorValue() {
     if ((typeof form === 'undefined') || (!form)) {
diff --git a/js/civicrm_stripe.min.js b/js/civicrm_stripe.min.js
index f02fb4bf680980b2e89d088ca4617ef98f3469a3..21be8764e78ece5461ab1749edbe10f89a3f733c 100644
--- a/js/civicrm_stripe.min.js
+++ b/js/civicrm_stripe.min.js
@@ -1 +1 @@
-CRM.$(function(e){h("civicrm_stripe loaded, dom-ready function firing.");if(window.civicrmStripeHandleReload){h("calling existing civicrmStripeHandleReload.");window.civicrmStripeHandleReload();return}var t;var b;var c;var x;var r=false;window.onbeforeunload=null;window.civicrmStripeHandleReload=function(){h("civicrmStripeHandleReload");var E=document.getElementById("card-element");if((typeof E!=="undefined")&&(E)){if(!E.children.length){h("checkAndLoad from document.ready");p()}}d("crmBillingFormReloadComplete")};window.civicrmStripeHandleReload();function y(G,E){h(G+": success - submitting form");var F=document.createElement("input");F.setAttribute("type","hidden");F.setAttribute("name",G);F.setAttribute("value",E.id);c.appendChild(F);c.submit()}function s(){for(i=0;i<x.length;++i){x[i].setAttribute("disabled",true)}return c.submit()}function k(F){h("error: "+F.message);var E=document.getElementById("card-errors");E.style.display="block";E.textContent=F.message;document.querySelector("#billing-payment-block").scrollIntoView();window.scrollBy(0,-50);c.dataset.submitted=false;for(i=0;i<x.length;++i){x[i].removeAttribute("disabled")}d("crmBillingFormNotValid")}function C(){h("handle card payment");t.createPaymentMethod("card",b).then(function(E){if(E.error){k(E.error)}else{if(j()||a()){y("paymentMethodID",E.paymentMethod)}else{var F=CRM.url("civicrm/stripe/confirm-payment");e.post(F,{payment_method_id:E.paymentMethod.id,amount:u().toFixed(2),currency:CRM.vars.stripe.currency,id:CRM.vars.stripe.id,description:document.title,csrfToken:CRM.vars.stripe.csrfToken}).then(function(G){z(G)})}}})}function z(E){h("handleServerResponse");if(E.error){k(E.error)}else{if(E.requires_action){v(E)}else{y("paymentIntentID",E.paymentIntent)}}}function v(E){t.handleCardAction(E.payment_intent_client_secret).then(function(F){if(F.error){k(F.error)}else{y("paymentIntentID",F.paymentIntent)}})}e(document).ajaxComplete(function(G,H,F){if((F.url.match("civicrm(/|%2F)payment(/|%2F)form")!==null)||(F.url.match("civicrm(/|%2F)contact(/|%2F)view(/|%2F)participant")!==null)){if(typeof CRM.vars.stripe==="undefined"){return}var E=n();if(E!==null){if(E!==parseInt(CRM.vars.stripe.id)){h("payment processor changed to id: "+E);if(E===0){return o()}CRM.api3("PaymentProcessor","getvalue",{"return":"user_name",id:E,payment_processor_type_id:CRM.vars.stripe.paymentProcessorTypeID}).done(function(I){var J=I.result;if(J){h("Setting new stripe key to: "+J);CRM.vars.stripe.publishableKey=J}else{return o()}h("checkAndLoad from ajaxComplete");p()})}}}});function o(){h("New payment processor is not Stripe, clearing CRM.vars.stripe");if((typeof b!=="undefined")&&(b)){h("destroying card element");b.destroy();b=undefined}delete (CRM.vars.stripe)}function p(){if(typeof CRM.vars.stripe==="undefined"){h("CRM.vars.stripe not defined! Not a Stripe processor?");return}if(typeof Stripe==="undefined"){if(r){return}r=true;h("Stripe.js is not loaded!");e.getScript("https://js.stripe.com/v3",function(){h("Script loaded and executed.");r=false;g()})}else{g()}}function g(){h("loadStripeBillingBlock");if(typeof t==="undefined"){t=Stripe(CRM.vars.stripe.publishableKey)}var L=t.elements({locale:CRM.vars.stripe.locale});var I={base:{fontSize:"20px"}};var F=document.getElementById("billing_postal_code-"+CRM.vars.stripe.billingAddressID).value;h("existing postcode: "+F);b=L.create("card",{style:I,value:{postalCode:F}});b.mount("#card-element");h("created new card element",b);if(document.getElementById("billing_postal_code-5").value){document.getElementById("billing_postal_code-5").setAttribute("disabled",true)}else{document.getElementsByClassName("billing_postal_code-"+CRM.vars.stripe.billingAddressID+"-section")[0].setAttribute("hidden",true)}b.addEventListener("change",function(M){l(M)});c=m();if(typeof c.length==="undefined"||c.length===0){h("No billing form!");return}f();x=D();c.dataset.submitdontprocess=false;var E=c.querySelectorAll('[type="submit"][formnovalidate="1"], [type="submit"][formnovalidate="formnovalidate"], [type="submit"].cancel, [type="submit"].webform-previous'),H;for(H=0;H<E.length;++H){E[H].addEventListener("click",K())}function K(){h("adding submitdontprocess");c.dataset.submitdontprocess=true}for(H=0;H<x.length;++H){x[H].addEventListener("click",G)}function G(M){if(c.dataset.submitted===true){return}c.dataset.submitted=true;if(typeof CRM.vars.stripe==="undefined"){return s()}h("clearing submitdontprocess");c.dataset.submitdontprocess=false;return J(M)}for(H=0;H<x.length;++H){x[H].removeAttribute("onclick")}q();if(B()){e("[type=submit]").click(function(){w(this.value)});c.addEventListener("keydown",function(M){if(M.keyCode===13){w(this.value);J(event)}});e("#billingcheckbox:input").hide();e('label[for="billingcheckbox"]').hide()}function J(O){O.preventDefault();h("submit handler");if(e(c).valid()===false){h("Form not valid");e("div#card-errors").hide();document.querySelector("#billing-payment-block").scrollIntoView();window.scrollBy(0,-50);d("crmBillingFormNotValid");return false}if(typeof CRM.vars.stripe==="undefined"){h("Submitting - not a stripe processor");return true}if(c.dataset.submitted===true){h("form already submitted");return false}var Q=parseInt(CRM.vars.stripe.id);var N=null;if(B()){if(!e('input[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]').length){N=Q}else{N=parseInt(c.querySelector('input[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]:checked').value)}}else{if((c.querySelector(".crm-section.payment_processor-section")!==null)||(c.querySelector(".crm-section.credit_card_info-section")!==null)){Q=CRM.vars.stripe.id;if(c.querySelector('input[name="payment_processor_id"]:checked')!==null){N=parseInt(c.querySelector('input[name="payment_processor_id"]:checked').value)}}}if((N===0)||(Q===null)||((N===null)&&(Q===null))){h("Not a Stripe transaction, or pay-later");return s()}else{h("Stripe is the selected payprocessor")}if(typeof CRM.vars.stripe.publishableKey==="undefined"){h("submit missing stripe-pub-key element or value");return true}if(c.dataset.submitdontprocess===true){h("non-payment submit detected - not submitting payment");return true}if(B()){if(e("#billing-payment-block").is(":hidden")){h("no payment processor on webform");return true}var P=e('[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]');if(P.length){if(P.filter(":checked").val()==="0"||P.filter(":checked").val()===0){h("no payment processor selected");return true}}}var M=u();if(M===0){h("Total amount is 0");return s()}if(c.dataset.submitted===true){alert("Form already submitted. Please wait.");return false}else{c.dataset.submitted=true}for(H=0;H<x.length;++H){x[H].setAttribute("disabled",true)}C();return true}}function B(){if(c!==null){return c.classList.contains("webform-client-form")||c.classList.contains("webform-submission-form")}return false}function m(){var E=e("div#card-element").closest("form").prop("id");if((typeof E==="undefined")||(!E.length)){E=e("input[name=hidden_processor]").closest("form").prop("id")}return document.getElementById(E)}function D(){var E=null;if(B()){E=c.querySelectorAll('[type="submit"].webform-submit');if(!E){E=c.querySelectorAll('[type="submit"].webform-button--submit')}}else{E=c.querySelectorAll('[type="submit"].validate')}return E}function u(){var E=0;if(a()){E=null}else{if(document.getElementById("totalTaxAmount")!==null){E=parseFloat(A());h("Calculated amount using internal calculateTaxAmount()")}else{if(typeof calculateTotalFee=="function"){E=parseFloat(calculateTotalFee())}else{if(B()){e(".line-item:visible","#wf-crm-billing-items").each(function(){E+=parseFloat(e(this).data("amount"))})}else{if(document.getElementById("total_amount")){E=parseFloat(document.getElementById("total_amount").value)}}}}}h("getTotalAmount: "+E);return E}function A(){var E=0;if(document.getElementById("totalTaxAmount")===null){return E}if(document.getElementById("totalTaxAmount").textContent.length===0){E=document.getElementById("total_amount").value}else{E=document.getElementById("totalTaxAmount").textContent.split(" ").pop()}return E}function j(){var E=false;if(B()){if(e('input[id$="contribution-installments"]').length!==0&&e('input[id$="contribution-installments"]').val()>1){E=true}}if(document.getElementById("is_recur")!==null){if(document.getElementById("is_recur").type=="hidden"){E=(document.getElementById("is_recur").value==1)}else{E=Boolean(document.getElementById("is_recur").checked)}}else{if(e('input[name="auto_renew"]').length!==0){if(e('input[name="auto_renew"]').prop("checked")){E=true}else{if(document.getElementById("auto_renew").type=="hidden"){E=(document.getElementById("auto_renew").value==1)}else{E=Boolean(document.getElementById("auto_renew").checked)}}}}h("isRecur is "+E);return E}function l(F){if(F.empty){e("div#card-errors").hide()}else{if(F.error){k(F.error)}else{if(F.complete){e("div#card-errors").hide();var E=document.getElementById("billing_postal_code-"+CRM.vars.stripe.billingAddressID);if(E){E.value=F.value.postalCode}}}}}function q(){cividiscountElements=c.querySelectorAll("input#discountcode");var E=function(F){if(F.keyCode===13){F.preventDefault();h("adding submitdontprocess");c.dataset.submitdontprocess=true}};for(i=0;i<cividiscountElements.length;++i){cividiscountElements[i].addEventListener("keydown",E)}}function f(){e("div.label span.crm-marker").each(function(){e(this).closest("div").next("div").find("input").addClass("required")});var E=e(c).validate();E.settings.errorClass="crm-inline-error alert alert-danger";E.settings.ignore=".select2-offscreen, [readonly], :hidden:not(.crm-select2)"}function a(){if((document.getElementById("additional_participants")!==null)&&(document.getElementById("additional_participants").value.length!==0)){h("We don't know the final price - registering additional participants");return true}return false}function h(E){if((typeof(CRM.vars.stripe)==="undefined")||(Boolean(CRM.vars.stripe.jsDebug)===true)){console.log(new Date().toISOString()+" civicrm_stripe.js: "+E)}}function d(E){h("Firing Event: "+E);e(c).trigger(E)}function w(F){var E=null;if(document.getElementById("action")!==null){E=document.getElementById("action")}else{E=document.createElement("input")}E.setAttribute("type","hidden");E.setAttribute("name","op");E.setAttribute("id","action");E.setAttribute("value",F);c.appendChild(E)}function n(){if((typeof c==="undefined")||(!c)){c=m();if(!c){return null}}var E=c.querySelector('input[name="payment_processor_id"]:checked');if(E!==null){return parseInt(E.value)}return null}});
\ No newline at end of file
+CRM.$(function(e){h("civicrm_stripe loaded, dom-ready function firing.");if(window.civicrmStripeHandleReload){h("calling existing civicrmStripeHandleReload.");window.civicrmStripeHandleReload();return}var u;var b;var c;var y;var s=false;window.onbeforeunload=null;window.civicrmStripeHandleReload=function(){h("civicrmStripeHandleReload");var F=document.getElementById("card-element");if((typeof F!=="undefined")&&(F)){if(!F.children.length){h("checkAndLoad from document.ready");q()}}d("crmBillingFormReloadComplete")};window.civicrmStripeHandleReload();function z(H,F){h(H+": success - submitting form");var G=document.createElement("input");G.setAttribute("type","hidden");G.setAttribute("name",H);G.setAttribute("value",F.id);c.appendChild(G);c.submit()}function t(){for(i=0;i<y.length;++i){y[i].setAttribute("disabled",true)}return c.submit()}function k(G){h("error: "+G.message);var F=document.getElementById("card-errors");F.style.display="block";F.textContent=G.message;document.querySelector("#billing-payment-block").scrollIntoView();window.scrollBy(0,-50);c.dataset.submitted=false;for(i=0;i<y.length;++i){y[i].removeAttribute("disabled")}d("crmBillingFormNotValid");l("error",ts("Oops..."),result.error.message)}function D(){h("handle card payment");u.createPaymentMethod("card",b).then(function(F){if(F.error){k(F.error)}else{if(j()||a()){z("paymentMethodID",F.paymentMethod)}else{var G=CRM.url("civicrm/stripe/confirm-payment");e.post(G,{payment_method_id:F.paymentMethod.id,amount:v().toFixed(2),currency:CRM.vars.stripe.currency,id:CRM.vars.stripe.id,description:document.title,csrfToken:CRM.vars.stripe.csrfToken}).then(function(H){A(H)})}}})}function A(F){h("handleServerResponse");if(F.error){k(F.error)}else{if(F.requires_action){w(F)}else{z("paymentIntentID",F.paymentIntent)}}}function w(F){u.handleCardAction(F.payment_intent_client_secret).then(function(G){if(G.error){k(G.error)}else{z("paymentIntentID",G.paymentIntent)}})}e(document).ajaxComplete(function(H,I,G){if((G.url.match("civicrm(/|%2F)payment(/|%2F)form")!==null)||(G.url.match("civicrm(/|%2F)contact(/|%2F)view(/|%2F)participant")!==null)){if(typeof CRM.vars.stripe==="undefined"){return}var F=o();if(F!==null){if(F!==parseInt(CRM.vars.stripe.id)){h("payment processor changed to id: "+F);if(F===0){return p()}CRM.api3("PaymentProcessor","getvalue",{"return":"user_name",id:F,payment_processor_type_id:CRM.vars.stripe.paymentProcessorTypeID}).done(function(J){var K=J.result;if(K){h("Setting new stripe key to: "+K);CRM.vars.stripe.publishableKey=K}else{return p()}h("checkAndLoad from ajaxComplete");q()})}}}});function p(){h("New payment processor is not Stripe, clearing CRM.vars.stripe");if((typeof b!=="undefined")&&(b)){h("destroying card element");b.destroy();b=undefined}delete (CRM.vars.stripe)}function q(){if(typeof CRM.vars.stripe==="undefined"){h("CRM.vars.stripe not defined! Not a Stripe processor?");return}if(typeof Stripe==="undefined"){if(s){return}s=true;h("Stripe.js is not loaded!");e.getScript("https://js.stripe.com/v3",function(){h("Script loaded and executed.");s=false;g()})}else{g()}}function g(){h("loadStripeBillingBlock");if(typeof u==="undefined"){u=Stripe(CRM.vars.stripe.publishableKey)}var M=u.elements({locale:CRM.vars.stripe.locale});var J={base:{fontSize:"20px"}};var G=document.getElementById("billing_postal_code-"+CRM.vars.stripe.billingAddressID).value;h("existing postcode: "+G);b=M.create("card",{style:J,value:{postalCode:G}});b.mount("#card-element");h("created new card element",b);if(document.getElementById("billing_postal_code-5").value){document.getElementById("billing_postal_code-5").setAttribute("disabled",true)}else{document.getElementsByClassName("billing_postal_code-"+CRM.vars.stripe.billingAddressID+"-section")[0].setAttribute("hidden",true)}b.addEventListener("change",function(N){m(N)});c=n();if(typeof c.length==="undefined"||c.length===0){h("No billing form!");return}f();y=E();c.dataset.submitdontprocess=false;var F=c.querySelectorAll('[type="submit"][formnovalidate="1"], [type="submit"][formnovalidate="formnovalidate"], [type="submit"].cancel, [type="submit"].webform-previous'),I;for(I=0;I<F.length;++I){F[I].addEventListener("click",L())}function L(){h("adding submitdontprocess");c.dataset.submitdontprocess=true}for(I=0;I<y.length;++I){y[I].addEventListener("click",H)}function H(N){if(c.dataset.submitted===true){return}c.dataset.submitted=true;if(typeof CRM.vars.stripe==="undefined"){return t()}h("clearing submitdontprocess");c.dataset.submitdontprocess=false;return K(N)}for(I=0;I<y.length;++I){y[I].removeAttribute("onclick")}r();if(C()){e("[type=submit]").click(function(){x(this.value)});c.addEventListener("keydown",function(N){if(N.code==="Enter"){x(this.value);K(N)}});e("#billingcheckbox:input").hide();e('label[for="billingcheckbox"]').hide()}function K(P){P.preventDefault();h("submit handler");if(e(c).valid()===false){h("Form not valid");e("div#card-errors").hide();document.querySelector("#billing-payment-block").scrollIntoView();window.scrollBy(0,-50);d("crmBillingFormNotValid");l("error",ts("Oops..."),ts("Please correct the errors on the form and submit again"));return false}if(typeof CRM.vars.stripe==="undefined"){h("Submitting - not a stripe processor");return true}if(c.dataset.submitted===true){h("form already submitted");return false}var R=parseInt(CRM.vars.stripe.id);var O=null;if(C()){if(!e('input[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]').length){O=R}else{O=parseInt(c.querySelector('input[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]:checked').value)}}else{if((c.querySelector(".crm-section.payment_processor-section")!==null)||(c.querySelector(".crm-section.credit_card_info-section")!==null)){R=CRM.vars.stripe.id;if(c.querySelector('input[name="payment_processor_id"]:checked')!==null){O=parseInt(c.querySelector('input[name="payment_processor_id"]:checked').value)}}}if((O===0)||(R===null)||((O===null)&&(R===null))){h("Not a Stripe transaction, or pay-later");return t()}else{h("Stripe is the selected payprocessor")}if(typeof CRM.vars.stripe.publishableKey==="undefined"){h("submit missing stripe-pub-key element or value");return true}if(c.dataset.submitdontprocess===true){h("non-payment submit detected - not submitting payment");return true}if(C()){if(e("#billing-payment-block").is(":hidden")){h("no payment processor on webform");return true}var Q=e('[name="submitted[civicrm_1_contribution_1_contribution_payment_processor_id]"]');if(Q.length){if(Q.filter(":checked").val()==="0"||Q.filter(":checked").val()===0){h("no payment processor selected");return true}}}var N=v();if(N===0){h("Total amount is 0");return t()}if(c.dataset.submitted===true){alert("Form already submitted. Please wait.");return false}else{c.dataset.submitted=true}for(I=0;I<y.length;++I){y[I].setAttribute("disabled",true)}D();return true}}function C(){if(c!==null){return c.classList.contains("webform-client-form")||c.classList.contains("webform-submission-form")}return false}function n(){var F=e("div#card-element").closest("form").prop("id");if((typeof F==="undefined")||(!F.length)){F=e("input[name=hidden_processor]").closest("form").prop("id")}return document.getElementById(F)}function E(){var F=null;if(C()){F=c.querySelectorAll('[type="submit"].webform-submit');if(!F){F=c.querySelectorAll('[type="submit"].webform-button--submit')}}else{F=c.querySelectorAll('[type="submit"].validate')}return F}function v(){var F=0;if(a()){F=null}else{if(document.getElementById("totalTaxAmount")!==null){F=parseFloat(B());h("Calculated amount using internal calculateTaxAmount()")}else{if(typeof calculateTotalFee=="function"){F=parseFloat(calculateTotalFee())}else{if(C()){e(".line-item:visible","#wf-crm-billing-items").each(function(){F+=parseFloat(e(this).data("amount"))})}else{if(document.getElementById("total_amount")){F=parseFloat(document.getElementById("total_amount").value)}}}}}h("getTotalAmount: "+F);return F}function B(){var F=0;if(document.getElementById("totalTaxAmount")===null){return F}if(document.getElementById("totalTaxAmount").textContent.length===0){F=document.getElementById("total_amount").value}else{F=document.getElementById("totalTaxAmount").textContent.split(" ").pop()}return F}function j(){var F=false;if(C()){if(e('input[id$="contribution-installments"]').length!==0&&e('input[id$="contribution-installments"]').val()>1){F=true}}if(document.getElementById("is_recur")!==null){if(document.getElementById("is_recur").type=="hidden"){F=(document.getElementById("is_recur").value==1)}else{F=Boolean(document.getElementById("is_recur").checked)}}else{if(e('input[name="auto_renew"]').length!==0){if(e('input[name="auto_renew"]').prop("checked")){F=true}else{if(document.getElementById("auto_renew").type=="hidden"){F=(document.getElementById("auto_renew").value==1)}else{F=Boolean(document.getElementById("auto_renew").checked)}}}}h("isRecur is "+F);return F}function m(G){if(G.empty){e("div#card-errors").hide()}else{if(G.error){k(G.error)}else{if(G.complete){e("div#card-errors").hide();var F=document.getElementById("billing_postal_code-"+CRM.vars.stripe.billingAddressID);if(F){F.value=G.value.postalCode}}}}}function r(){cividiscountElements=c.querySelectorAll("input#discountcode");var F=function(G){if(G.code==="Enter"){G.preventDefault();h("adding submitdontprocess");c.dataset.submitdontprocess=true}};for(i=0;i<cividiscountElements.length;++i){cividiscountElements[i].addEventListener("keydown",F)}}function f(){e("div.label span.crm-marker").each(function(){e(this).closest("div").next("div").find("input").addClass("required")});var F=e(c).validate();F.settings.errorClass="crm-inline-error alert alert-danger";F.settings.ignore=".select2-offscreen, [readonly], :hidden:not(.crm-select2)"}function a(){if((document.getElementById("additional_participants")!==null)&&(document.getElementById("additional_participants").value.length!==0)){h("We don't know the final price - registering additional participants");return true}return false}function x(G){var F=null;if(document.getElementById("action")!==null){F=document.getElementById("action")}else{F=document.createElement("input")}F.setAttribute("type","hidden");F.setAttribute("name","op");F.setAttribute("id","action");F.setAttribute("value",G);c.appendChild(F)}function o(){if((typeof c==="undefined")||(!c)){c=n();if(!c){return null}}var F=c.querySelector('input[name="payment_processor_id"]:checked');if(F!==null){return parseInt(F.value)}return null}function h(F){if((typeof(CRM.vars.stripe)==="undefined")||(Boolean(CRM.vars.stripe.jsDebug)===true)){console.log(new Date().toISOString()+" civicrm_stripe.js: "+F)}}function d(F){h("Firing Event: "+F);e(c).trigger(F)}function l(F,H,G){if(typeof Swal==="function"){Swal.fire({icon:F,title:H,text:G})}}});
\ No newline at end of file