1jQuery(document).ready((function(e){var i=[],n=[];e('input[type="submit"].give-submit').each((function(n,a){var t=(a=e(a)).parents("form"),r=e('input[name="give-form-id"]',t).val();i[r]=a.val()})),e("form[id^=give-form]").on("submit",(function(i){var n=e(this);return!t(n)||"function"==typeof n[0].checkValidity&&!1===n[0].checkValidity()||(i.preventDefault(),!1)}));var a=function(){window.frameElement&&(window.frameElement.style.maxHeight="unset")};function t(i){return"razorpay"===e('input[name="give-gateway"]',i).val()||"new-razorpay"===e('input[name="give-gateway"]',i).val()}e(document).on("give_form_validation_passed",(function(r){var o=e(r.target),d=o.find('input[type="submit"]'),u=o.find("#_give_is_donation_recurring").val(),m=e('input[name="give-form-id"]',o).val(),c=o.find('input[name="give-price-id"]').val(),p=o.find('input[name="give_last"]'),f=(o.find('input[name="give_first"]').val().trim()+" "+(p.length?p.val().trim():"")).trim(),l=o.find('input[name="give_email"]').val(),v=o.find('input[name="give_razorpay_phone"]').val(),s=o.find('input[name="give-form-title"]').val(),g=o.find(".give-final-total-amount").attr("data-total"),_=o.find('input[name="give_razorpay_form_merchant_id"]').val(),y=Give.form.fn.getInfo("currency_code",o),h=Give.form.fn.getNonce(o),b="",z={},w={key:_,name:s,currency:y,image:give_razorpay_vars.popup.image||"",handler:function(e){a(),o.prepend('<input type="hidden" name="give_razorpay_response" value="'+encodeURI(JSON.stringify(e))+'" />'),o.prepend('<input type="hidden" name="give_razorpay_customer_id" value="'+b+'" />'),o.find(".give-loading-animation").hide(),d.prop("disabled",!1).val(i[m]),o.get(0).submit()},prefill:{name:f,email:l,contact:v},notes:{name:f,address:o.find('input[name="card_address"]').val(),address_2:o.find('input[name="card_address_2"]').val(),city:o.find('input[name="card_city"]').val(),state:o.find('input[name="card_state"]').val(),country:o.find('input[name="billing_country"]').val(),zipcode:o.find('input[name="card_zip"]').val()},modal:{ondismiss:function(){a(),o.find(".give-loading-animation").hide(),d.prop("disabled",!1).val(i[m])}},theme:{color:give_razorpay_vars.popup.color}};if(!t(o)||"function"==typeof o[0].checkValidity&&!1===o[0].checkValidity())return!1;if("1"===u){var k=o.find('input[name="_give_is_donation_recurring"]').attr("data-_give_recurring");z={action:"give_razorpay_setup_subscription",amount:g,currency:y,name:f,email:l,phone:v,formId:m,recurringType:k,priceId:c,donorChoice:o.find(".give-recurring-donors-choice-period").val(),nonce:h}}else z={action:"give_razorpay_setup_order",form:m,amount:g,currency:y,nonce:h};e.post(give_global_vars.ajaxurl,z).done((function(i){if(!i.success)return function(e,i){var n=e.find('input[type="submit"]');return e.find(".give_errors").remove(),n.before(i.data.error_msg),e.find('input[type="submit"].give-submit + .give-loading-animation').fadeOut(),n.val(n.attr("data-before-validation-label")),Give.form.fn.disable(e,!1),!1}(o,i);window.frameElement&&(window.frameElement.style.maxHeight="100vh"),e(".razorpay-container").css("z-index","2150483543"),"undefined"!==n[m]&&("1"===u?(w.subscription_id=i.data.id,b=i.data.customer_id):w.order_id=i.data.order_id,w.amount=i.data.amount,n[m]=new Razorpay(w)),n[m].open({})})).fail((function(){})).always((function(){document.querySelector(".razorpay-checkout-frame")&&setTimeout((function(){document.body.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}),100),Give.form.fn.resetAllNonce(o),d.prop("disabled",!1)})),r.preventDefault()}))}));
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.