Version Description
Download this release
Release Info
Developer | jason_the_adams |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.13.2 |
Comparing to | |
See all releases |
Code changes from version 2.13.1 to 2.13.2
- assets/dist/js/admin.js +1 -1
- give.php +2 -2
- languages/give.pot +4 -4
- output.log +12 -11
- readme.txt +4 -1
- src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js +23 -20
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
assets/dist/js/admin.js
CHANGED
@@ -67,4 +67,4 @@ jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list")
|
|
67 |
* @copyright: Copyright (c) 2016, GiveWP
|
68 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
69 |
*/
|
70 |
-
jQuery(document).ready((function(e){function t(t){var n=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",i=e(".give-export-donations-standard-fields ul");n.length>0&&(i.closest("tr").removeClass("give-hidden"),e(n).each((function(e,t){i.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")})));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",r=e(".give-export-donations-hidden-fields ul");o&&(r.closest("tr").removeClass("give-hidden"),e(o).each((function(e,t){r.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")})))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change((function(){var n,i,o;n=e("form#give-export_donations-form"),i=e(n).find("tr.give-export-donation-form .give-select-chosen"),o=i.prev(),i.find('input[type="text"]'),i.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(n).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(r){e("option",o).remove();var a=[];r.length?(n.find(".give-export-donation-button").prop("disabled",!1),e.each(r,(function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),a.push(t.id)})),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),n.find(".give-export-donation-button").prop("disabled",!0)),n.find(".form_ids").val(a.join()),i.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})})),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change((function(){var n;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(n=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:n,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})}));var n=e('.give-export-option-fields input[type="checkbox"]');e(".give-toggle-checkbox-selection").click((function(){var t,i,o,r;e(this).data("clicked",!e(this).data("clicked")),n.prop("checked",!e(this).data("clicked")),i=e(t=this).val(),o=e(t).attr("data-value"),i=(r=[o,i])[0],o=r[1],e(t).attr("value",i),e(t).attr("data-value",o)}))}))},699:function(e,t){var n,i,o;n=jQuery,i=function(){var e=n('[class*="sequoia[introduction][headline]_field"], [class*="sequoia[introduction][description]_field"], [class*="sequoia[introduction][image]_field"], [class*="sequoia[introduction][donate_label]_field"]');0===n('input[name="sequoia[introduction][enabled]"]').length||n('input[name="sequoia[introduction][enabled]"]').prop("checked")?n(e).show():n(e).hide()},o=function(){var e=n('[class*="sequoia[thank-you][sharing_instruction]_field"], [class*="sequoia[thank-you][twitter_message]_field"]');0===n('input[name="sequoia[thank-you][sharing]"]').length||n('input[name="sequoia[thank-you][sharing]"]').prop("checked")?n(e).show():n(e).hide()},n(document).ready((function(){n("#form_template_options").on("click",".js-template--activate",(function(e){e.preventDefault();var t=n(this).parents(".templates-list"),i=t.parent(),o=n(this).parents(".template-info").attr("data-id");n(".template-info",t).removeClass("active"),i.find(".template-options.".concat(o)).addClass("active"),n(this).text(Give.fn.getGlobalVar("deactivate")),n(this).removeClass("js-template--activate"),n(this).addClass("js-template--deactivate"),n(this).parents(".template-info").addClass("active"),i.addClass("has-activated-template"),i.prev("input[name=_give_form_template]").val(o).trigger("change")})),n("#form_template_options").on("click",".js-template--deactivate",(function(e){e.preventDefault();var t=n(this).parents(".templates-list"),i=t.parent(),o=n(this).parents(".template-info").attr("data-id");n(".template-info",t).removeClass("active"),i.find(".template-options.".concat(o)).removeClass("active"),n(this).text(Give.fn.getGlobalVar("activate")),n(this).removeClass("js-template--deactivate"),n(this).addClass("js-template--activate"),i.removeClass("has-activated-template"),i.prev("input[name=_give_form_template]").val("").trigger("change")})),n(".post-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #save-action input[type=submit]").add(".post-php.post-type-give_forms #save-action input[type=submit]").on("click",(function(){return!!n("input[name=_give_form_template]","#form_template_options").val()||(new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:Give.fn.getGlobalVar("form_template_required").title,desc:Give.fn.getGlobalVar("form_template_required").desc}}).render(),"form_template_options"!==Give.fn.getParameterByName("give_tab")&&n('a[href="#form_template_options"]').trigger("click"),!1)})),i(),n('input[name="sequoia[introduction][enabled]"]').on("change",(function(){i()})),o(),n('input[name="sequoia[thank-you][sharing]"]').on("change",(function(){o()}))}))},700:function(e,t){var n=wp.i18n,i=n.__,o=n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-account-set-default"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t,n=e.target.parentElement.parentElement.parentElement.parentElement,r=n.querySelector(".give-stripe-account-email .give-stripe-connect-data-field"),a=n.querySelector('input[name="setting-page"]').value,s="",l=o("<p><strong>%1$s</strong><br>%2$s</p>",i("Account Name","give"),e.target.parentElement.parentElement.querySelector(".give-stripe-account-name .give-stripe-connect-data-field").textContent);r&&(s=o("<p><strong>%1$s</strong><br>%2$s</p>",i("Account Email","give"),r.textContent));var c=o('<a href="%1$s" target="_blank">%2$s</a>',"https://givewp.com/documentation/core/payment-gateways/stripe-free/using-multiple-stripe-accounts-on-a-single-givewp-site/",i("View Documentation >","give"));t=o(i("global"===a?"Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s":"Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s","give"),c,l,s),new Give.modal.GiveConfirmModal({classes:{modalWrapper:"give-modal--warning give-stripe-modal-new-default"},modalContent:{title:o('<span class="give-stripe-icon stripe-logo-with-circle"></span>%s',i("Confirm New Default Account","give")),desc:t},successConfirm:function(t){var n=new XMLHttpRequest,i=new FormData,o=Give.fn.getGlobalVar("post_id");i.append("action","give_stripe_set_account_default"),i.append("account_slug",e.target.getAttribute("data-account")),i.append("form_id",o),n.open("POST",ajaxurl),n.onload=function(){var e=JSON.parse(n.response);200===n.status&&e.success&&window.location.reload()},n.send(i)}}).render()}))}))}))},701:function(e,t){var n=wp.i18n,i=n.__;n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=i("Disconnect Stripe Account","give"),o=i("Are you sure you want to disconnect this Stripe account?","give");new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:n,desc:o},successConfirm:function(){fetch(t.getAttribute("href")).then((function(e){return e.json()})).then((function(e){e.success&&window.location.reload()}))}}).render()}))}))}))},702:function(e,t){var n=wp.i18n,i=n.__;n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=document.body.classList.contains("post.php")?".post.php":".post-new-php",t=document.querySelector("".concat(e,'.post-type-give_forms form[name="post"]'));t&&t.addEventListener("submit",(function(e){if(e.preventDefault(),"enabled"===document.querySelector('#stripe_form_account_options [name="give_stripe_per_form_accounts"]:checked').value){if(!!!document.querySelector("#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected"))return new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:i("Select Default Stripe Account","give"),desc:i("We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account.","give")}}).render(),void("stripe_form_account_options"!==Give.fn.getParameterByName("give_tab")&&document.querySelector('a[href="#stripe_form_account_options"]').click());t.submit()}else t.submit()}))}))},703:function(e,t){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("div[data-give-dismissible]").forEach((function(e){var t="give-dismissed-".concat(e.dataset.giveDismissible);window.localStorage.getItem(t)||(e.classList.remove("hidden"),e.addEventListener("click",(function(n){n.target.classList.contains("notice-dismiss")&&window.localStorage.setItem(t,Date.now()),n.target.classList.contains("give-donor-dashboard-upgrade-notice__dismiss-link")&&(e.classList.add("hidden"),window.localStorage.setItem(t,Date.now()))})))}))}))},82:function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,i)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},99:function(e,t,n){"use strict";var i,o={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}},r=n(25),a=n.n(r),s=n(13),l=n.n(s),c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},d={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==i&&!i.length)return!1;switch(e){case"attr":n.attr(i,t);break;default:n.data(i,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(i=a()(l.a.mark((function e(t){var n,i,o,r=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}},u={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},f={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}},h={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)h[e[t]].init&&h[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:h.form.fn.getInfo("decimal_separator",n),thousand:h.form.fn.getInfo("thousands_separator",n),precision:h.form.fn.getInfo("number_decimals",n),currency:h.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=accounting.formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=accounting.unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?h.cache["form_"+h.form.fn.getInfo("form-id",n)][e]=t:h.cache[e]=t},getCache:function(e,t){var n,i=h.cache["form_"+h.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":h.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:h.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};h.notice=o,h.form=d,h.donor=u,h.util=c,h.share=f;t.a=h}});
|
67 |
* @copyright: Copyright (c) 2016, GiveWP
|
68 |
* @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
69 |
*/
|
70 |
+
jQuery(document).ready((function(e){function t(t){var n=void 0!==t.standard_fields&&null!==t.standard_fields?t.standard_fields:"",i=e(".give-export-donations-standard-fields ul");n.length>0&&(i.closest("tr").removeClass("give-hidden"),e(n).each((function(e,t){i.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-standard-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-standard-field-'+t+'">'+t+"</label> </li>")})));var o=void 0!==t.hidden_fields&&null!==t.hidden_fields?t.hidden_fields:"",r=e(".give-export-donations-hidden-fields ul");o&&(r.closest("tr").removeClass("give-hidden"),e(o).each((function(e,t){r.append('<li class="give-export-donation-checkbox-remove"><label for="give-give-donations-hidden-field-'+t+'"><input type="checkbox" name="give_give_donations_export_option['+t+']" id="give-give-donations-hidden-field-'+t+'">'+t+"</label> </li>")})))}e(".give-export_donations #give-export_donations-form .give_forms_categories , .give-export_donations #give-export_donations-form .give_forms_tags").change((function(){var n,i,o;n=e("form#give-export_donations-form"),i=e(n).find("tr.give-export-donation-form .give-select-chosen"),o=i.prev(),i.find('input[type="text"]'),i.hasClass("variations"),e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),e.ajax({type:"POST",url:ajaxurl,data:{action:"give_form_search",s:"",fields:e(n).serialize()},beforeSend:function(){o.closest("ul.chosen-results").empty()},success:function(r){e("option",o).remove();var a=[];r.length?(n.find(".give-export-donation-button").prop("disabled",!1),e.each(r,(function(e,t){o.prepend('<option value="'+t.id+'">'+t.name+"</option>"),a.push(t.id)})),o.prepend('<option value="0" selected>'+o.data("placeholder")+"</option>")):(o.prepend('<option value="0">'+o.data("no-form")+"</option>"),n.find(".give-export-donation-button").prop("disabled",!0)),n.find(".form_ids").val(a.join()),i.prev("select.give-select-chosen").trigger("chosen:updated"),t("")}})})),e(".give-export_donations #give-export_donations-form #give_payment_form_select").change((function(){var n;if(e(".give-export-donations-hide").addClass("give-hidden"),e("li.give-export-donation-checkbox-remove").remove(),jQuery(document).trigger("give_export_donations_form_change"),!(n=e(this).val()))return!1;e.ajax({type:"POST",url:ajaxurl,data:{form_id:n,action:"give_export_donations_get_custom_fields"},success:function(e){e?t(e):alert(Give.fn.getGlobalVar("error_message")),jQuery(document).trigger("give_export_donations_form_response",e)}})}));var n=e('.give-export-option-fields input[type="checkbox"]');e(".give-toggle-checkbox-selection").click((function(){var t,i,o,r;e(this).data("clicked",!e(this).data("clicked")),n.prop("checked",!e(this).data("clicked")),i=e(t=this).val(),o=e(t).attr("data-value"),i=(r=[o,i])[0],o=r[1],e(t).attr("value",i),e(t).attr("data-value",o)}))}))},699:function(e,t){var n,i,o;n=jQuery,i=function(){var e=n('[class*="sequoia[introduction][headline]_field"], [class*="sequoia[introduction][description]_field"], [class*="sequoia[introduction][image]_field"], [class*="sequoia[introduction][donate_label]_field"]');0===n('input[name="sequoia[introduction][enabled]"]').length||n('input[name="sequoia[introduction][enabled]"]').prop("checked")?n(e).show():n(e).hide()},o=function(){var e=n('[class*="sequoia[thank-you][sharing_instruction]_field"], [class*="sequoia[thank-you][twitter_message]_field"]');0===n('input[name="sequoia[thank-you][sharing]"]').length||n('input[name="sequoia[thank-you][sharing]"]').prop("checked")?n(e).show():n(e).hide()},n(document).ready((function(){n("#form_template_options").on("click",".js-template--activate",(function(e){e.preventDefault();var t=n(this).parents(".templates-list"),i=t.parent(),o=n(this).parents(".template-info").attr("data-id");n(".template-info",t).removeClass("active"),i.find(".template-options.".concat(o)).addClass("active"),n(this).text(Give.fn.getGlobalVar("deactivate")),n(this).removeClass("js-template--activate"),n(this).addClass("js-template--deactivate"),n(this).parents(".template-info").addClass("active"),i.addClass("has-activated-template"),i.prev("input[name=_give_form_template]").val(o).trigger("change")})),n("#form_template_options").on("click",".js-template--deactivate",(function(e){e.preventDefault();var t=n(this).parents(".templates-list"),i=t.parent(),o=n(this).parents(".template-info").attr("data-id");n(".template-info",t).removeClass("active"),i.find(".template-options.".concat(o)).removeClass("active"),n(this).text(Give.fn.getGlobalVar("activate")),n(this).removeClass("js-template--deactivate"),n(this).addClass("js-template--activate"),i.removeClass("has-activated-template"),i.prev("input[name=_give_form_template]").val("").trigger("change")})),n(".post-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #publishing-action input[type=submit]").add(".post-new-php.post-type-give_forms #save-action input[type=submit]").add(".post-php.post-type-give_forms #save-action input[type=submit]").on("click",(function(){return!!n("input[name=_give_form_template]","#form_template_options").val()||(new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:Give.fn.getGlobalVar("form_template_required").title,desc:Give.fn.getGlobalVar("form_template_required").desc}}).render(),"form_template_options"!==Give.fn.getParameterByName("give_tab")&&n('a[href="#form_template_options"]').trigger("click"),!1)})),i(),n('input[name="sequoia[introduction][enabled]"]').on("change",(function(){i()})),o(),n('input[name="sequoia[thank-you][sharing]"]').on("change",(function(){o()}))}))},700:function(e,t){var n=wp.i18n,i=n.__,o=n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-account-set-default"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t,n=e.target.parentElement.parentElement.parentElement.parentElement,r=n.querySelector(".give-stripe-account-email .give-stripe-connect-data-field"),a=n.querySelector('input[name="setting-page"]').value,s="",l=o("<p><strong>%1$s</strong><br>%2$s</p>",i("Account Name","give"),e.target.parentElement.parentElement.querySelector(".give-stripe-account-name .give-stripe-connect-data-field").textContent);r&&(s=o("<p><strong>%1$s</strong><br>%2$s</p>",i("Account Email","give"),r.textContent));var c=o('<a href="%1$s" target="_blank">%2$s</a>',"https://givewp.com/documentation/core/payment-gateways/stripe-free/using-multiple-stripe-accounts-on-a-single-givewp-site/",i("View Documentation >","give"));t=o(i("global"===a?"Please confirm you’d like to set the account below as the new default Stripe account. All donation forms set to inherit the Global Settings will use this new default account. %1$s<br>%2$s%3$s":"Please confirm you’d like to set the account below as the new default Stripe account for this donation form. All donations will process through this Stripe account rather than the Global default Stripe account. %1$s<br>%2$s%3$s","give"),c,l,s),new Give.modal.GiveConfirmModal({classes:{modalWrapper:"give-modal--warning give-stripe-modal-new-default"},modalContent:{title:o('<span class="give-stripe-icon stripe-logo-with-circle"></span>%s',i("Confirm New Default Account","give")),desc:t},successConfirm:function(t){var n=new XMLHttpRequest,i=new FormData,o=Give.fn.getGlobalVar("post_id");i.append("action","give_stripe_set_account_default"),i.append("account_slug",e.target.getAttribute("data-account")),i.append("form_id",o),n.open("POST",ajaxurl),n.onload=function(){var e=JSON.parse(n.response);200===n.status&&e.success&&window.location.reload()},n.send(i)}}).render()}))}))}))},701:function(e,t){var n=wp.i18n,i=n.__;n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn"));e.length&&e.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=i("Disconnect Stripe Account","give"),o=i("Are you sure you want to disconnect this Stripe account?","give");new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:n,desc:o},successConfirm:function(){fetch(t.getAttribute("href")).then((function(e){return e.json()})).then((function(e){e.success&&window.location.reload()}))}}).render()}))}))}))},702:function(e,t){var n=wp.i18n,i=n.__;n.sprintf;window.addEventListener("DOMContentLoaded",(function(){var e=document.body.classList.contains("post-php")?".post-php":".post-new-php",t=document.querySelector("".concat(e,'.post-type-give_forms form[name="post"]'));t&&t.addEventListener("submit",(function(e){var t=document.querySelector('#stripe_form_account_options [name="give_stripe_per_form_accounts"]:checked');t&&("enabled"===t.value&&(!!document.querySelector("#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected")||(e.preventDefault(),new Give.modal.GiveNoticeAlert({type:"warning",modalContent:{title:i("Select Default Stripe Account","give"),desc:i("We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account.","give")}}).render(),"stripe_form_account_options"!==Give.fn.getParameterByName("give_tab")&&document.querySelector('a[href="#stripe_form_account_options"]').click())))}))}))},703:function(e,t){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("div[data-give-dismissible]").forEach((function(e){var t="give-dismissed-".concat(e.dataset.giveDismissible);window.localStorage.getItem(t)||(e.classList.remove("hidden"),e.addEventListener("click",(function(n){n.target.classList.contains("notice-dismiss")&&window.localStorage.setItem(t,Date.now()),n.target.classList.contains("give-donor-dashboard-upgrade-notice__dismiss-link")&&(e.classList.add("hidden"),window.localStorage.setItem(t,Date.now()))})))}))}))},82:function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,i)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},99:function(e,t,n){"use strict";var i,o={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,i,o;if(n=i=o="",t.length)switch(e){case"bad_minimum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":i=Give.fn.getGlobalVar(e),o=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==i&&(n=i+" "+Give.fn.formatCurrency(o,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},i="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(i,"</span></button>"):"","</p</div>")}}},r=n(25),a=n.n(r),s=n(13),l=n.n(s),c={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div");i.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(i),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},d={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.Give.WINDOW_IS_LOADED?Give.form.fn.__sendBackToForm():window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){c.fn.showOverlay(e)},hideProcessingState:function(){c.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,i){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==i&&!i.length)return!1;switch(e){case"attr":n.attr(i,t);break;default:n.data(i,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,i){i=i instanceof jQuery?i:jQuery(i);var o=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:i.data("price-id"),amount:Give.fn.unFormatCurrency(i.val(),o)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),i=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),o=Give.fn.getCache("amount_"+i,e)?Give.fn.getCache("amount_"+i,e):-1;return t=void 0===t||t,n.length&&-1===o&&(t?(jQuery.each(n,(function(e,t){if(t.amount===i)return o=t.price_id,!1})),-1===o&&this.getMinimumAmount(e)<=i&&this.getMaximumAmount(e)>=i&&this.getMinimumAmount(e)<=i&&(o="custom")):o=jQuery('input[name="give-price-id"]',e).val()),o},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(i){if(!i.success)return n(i);var o=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",i.data.give_form_hash,e,""),o.length&&o.val(i.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[i.data]),t(i)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),i=e.data("price-id");void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i&&(n=Give.fn.getParameterByName("custom-amount")),t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var o=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),o)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,i])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),i=n.find("form.give-form"),o=n.hasClass("give-display-modal"),r=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");i.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),i.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var s=Give.fn.getParameterByName("level-id"),l=i.find('*[data-price-id="'+s+'"]');l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):o||r?give_open_form_modal(n,i):a&&(i.find(".give-btn-reveal").hide(),i.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),i=this.getAmount(e),o=this.getPriceID(e,!0);return 0!==i&&(-1<i&&i>=t&&i<=n||-1!==o)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(i=a()(l.a.mark((function e(t){var n,i,o,r=arguments;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=r.length>1&&void 0!==r[1]?r[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return i=e.sent,e.next=9,i.text();case 9:return o=e.sent,e.abrupt("return",o.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),i=t.find(".card-cvc"),o=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),i.payment("formatCardCVC"),o.payment("formatCardExpiry"))}))}}}},u={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},f={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,i=n.innerHeight/2-126,o=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(i,",left=").concat(o))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,i=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(i))}}},h={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)h[e[t]].init&&h[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var i={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(i={symbol:"",decimal:h.form.fn.getInfo("decimal_separator",n),thousand:h.form.fn.getInfo("thousands_separator",n),precision:h.form.fn.getInfo("number_decimals",n),currency:h.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(i,t)).precision=parseInt(t.precision),"INR"===t.currency){var o,r=accounting.formatNumber(e,{precision:i.precision,decimal:"."}),a=t.precision?".0":"",s="",l="",c="";(r=(r=accounting.unformat(r,".").toString()).toString()).indexOf(".")>0&&(a=r.substring(r.indexOf("."),r.length)),s=(r=Math.floor(r).toString()).substring(r.length-3),""!==(l=r.substring(0,r.length-3))&&(s=i.thousand+s),o=(c=l.replace(/\B(?=(\d{2})+(?!\d))/g,i.thousand)+s+a).lastIndexOf("."),e=c=c.slice(0,o)+(c.slice(o)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?h.cache["form_"+h.form.fn.getInfo("form-id",n)][e]=t:h.cache[e]=t},getCache:function(e,t){var n,i=h.cache["form_"+h.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==i?i[e]:"":h.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(i=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},i)).loadingAnimation?'<span class="is-active spinner"></span>':"",r=null!==i.loadingText?i.loadingText:h.fn.getGlobalVar("loader_translation").updating;return!1===i.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=o.length?"give-has-spinner":"",t=(t+=r.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((r+o).trim(),"</div></div>"),null===i.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var i=encodeURIComponent(t)+"=",o=n[1].split(/[&;]/g),r=o.length;r-- >0;)-1!==o[r].lastIndexOf(i,0)&&o.splice(r,1);return n[0]+(o.length>0?"?"+o.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};h.notice=o,h.form=d,h.donor=u,h.util=c,h.share=f;t.a=h}});
|
give.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
-
* Version: 2.13.
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
@@ -267,7 +267,7 @@ final class Give {
|
|
267 |
private function setup_constants() {
|
268 |
// Plugin version.
|
269 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
270 |
-
define( 'GIVE_VERSION', '2.13.
|
271 |
}
|
272 |
|
273 |
// Plugin Root File.
|
5 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
6 |
* Author: GiveWP
|
7 |
* Author URI: https://givewp.com/
|
8 |
+
* Version: 2.13.2
|
9 |
* Text Domain: give
|
10 |
* Domain Path: /languages
|
11 |
*
|
267 |
private function setup_constants() {
|
268 |
// Plugin version.
|
269 |
if ( ! defined( 'GIVE_VERSION' ) ) {
|
270 |
+
define( 'GIVE_VERSION', '2.13.2' );
|
271 |
}
|
272 |
|
273 |
// Plugin Root File.
|
languages/give.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Give - Donation Plugin 2.13.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2021-08-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: give\n"
|
@@ -17341,11 +17341,11 @@ msgstr ""
|
|
17341 |
msgid "Select an Image"
|
17342 |
msgstr ""
|
17343 |
|
17344 |
-
#: src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js:
|
17345 |
msgid "Select Default Stripe Account"
|
17346 |
msgstr ""
|
17347 |
|
17348 |
-
#: src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js:
|
17349 |
msgid "We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account."
|
17350 |
msgstr ""
|
17351 |
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Give - Donation Plugin 2.13.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-08-26T21:40:02+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: give\n"
|
17341 |
msgid "Select an Image"
|
17342 |
msgstr ""
|
17343 |
|
17344 |
+
#: src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js:42
|
17345 |
msgid "Select Default Stripe Account"
|
17346 |
msgstr ""
|
17347 |
|
17348 |
+
#: src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js:43
|
17349 |
msgid "We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account."
|
17350 |
msgstr ""
|
17351 |
|
output.log
CHANGED
@@ -12,41 +12,42 @@ php-7.2-build2: Pulling from impress-org/givewp/php-actions_composer_givewp
|
|
12 |
4612e05a72cf: Pulling fs layer
|
13 |
f1478d838f46: Pulling fs layer
|
14 |
c88517be8365: Pulling fs layer
|
15 |
-
4612e05a72cf: Waiting
|
16 |
-
f1478d838f46: Waiting
|
17 |
-
c88517be8365: Waiting
|
18 |
142abe9b67c6: Pulling fs layer
|
19 |
181891da1ea0: Pulling fs layer
|
20 |
2a0fa75da19b: Pulling fs layer
|
21 |
136539a47de8: Pulling fs layer
|
|
|
|
|
|
|
22 |
142abe9b67c6: Waiting
|
23 |
181891da1ea0: Waiting
|
24 |
2a0fa75da19b: Waiting
|
25 |
136539a47de8: Waiting
|
26 |
320f26ee9b1c: Verifying Checksum
|
27 |
320f26ee9b1c: Download complete
|
28 |
-
30e209609427: Download complete
|
29 |
801bfaa63ef2: Verifying Checksum
|
30 |
801bfaa63ef2: Download complete
|
|
|
|
|
31 |
4612e05a72cf: Verifying Checksum
|
32 |
4612e05a72cf: Download complete
|
33 |
-
801bfaa63ef2: Pull complete
|
34 |
c88517be8365: Verifying Checksum
|
35 |
c88517be8365: Download complete
|
|
|
36 |
f1478d838f46: Verifying Checksum
|
37 |
f1478d838f46: Download complete
|
|
|
|
|
|
|
|
|
38 |
142abe9b67c6: Verifying Checksum
|
39 |
142abe9b67c6: Download complete
|
40 |
-
181891da1ea0: Download complete
|
41 |
2a0fa75da19b: Verifying Checksum
|
42 |
2a0fa75da19b: Download complete
|
43 |
-
30e209609427: Pull complete
|
44 |
-
136539a47de8: Verifying Checksum
|
45 |
-
136539a47de8: Download complete
|
46 |
-
320f26ee9b1c: Pull complete
|
47 |
-
4612e05a72cf: Pull complete
|
48 |
f1478d838f46: Pull complete
|
49 |
c88517be8365: Pull complete
|
|
|
|
|
50 |
142abe9b67c6: Pull complete
|
51 |
181891da1ea0: Pull complete
|
52 |
2a0fa75da19b: Pull complete
|
12 |
4612e05a72cf: Pulling fs layer
|
13 |
f1478d838f46: Pulling fs layer
|
14 |
c88517be8365: Pulling fs layer
|
|
|
|
|
|
|
15 |
142abe9b67c6: Pulling fs layer
|
16 |
181891da1ea0: Pulling fs layer
|
17 |
2a0fa75da19b: Pulling fs layer
|
18 |
136539a47de8: Pulling fs layer
|
19 |
+
4612e05a72cf: Waiting
|
20 |
+
f1478d838f46: Waiting
|
21 |
+
c88517be8365: Waiting
|
22 |
142abe9b67c6: Waiting
|
23 |
181891da1ea0: Waiting
|
24 |
2a0fa75da19b: Waiting
|
25 |
136539a47de8: Waiting
|
26 |
320f26ee9b1c: Verifying Checksum
|
27 |
320f26ee9b1c: Download complete
|
|
|
28 |
801bfaa63ef2: Verifying Checksum
|
29 |
801bfaa63ef2: Download complete
|
30 |
+
30e209609427: Download complete
|
31 |
+
801bfaa63ef2: Pull complete
|
32 |
4612e05a72cf: Verifying Checksum
|
33 |
4612e05a72cf: Download complete
|
|
|
34 |
c88517be8365: Verifying Checksum
|
35 |
c88517be8365: Download complete
|
36 |
+
30e209609427: Pull complete
|
37 |
f1478d838f46: Verifying Checksum
|
38 |
f1478d838f46: Download complete
|
39 |
+
181891da1ea0: Verifying Checksum
|
40 |
+
181891da1ea0: Download complete
|
41 |
+
320f26ee9b1c: Pull complete
|
42 |
+
4612e05a72cf: Pull complete
|
43 |
142abe9b67c6: Verifying Checksum
|
44 |
142abe9b67c6: Download complete
|
|
|
45 |
2a0fa75da19b: Verifying Checksum
|
46 |
2a0fa75da19b: Download complete
|
|
|
|
|
|
|
|
|
|
|
47 |
f1478d838f46: Pull complete
|
48 |
c88517be8365: Pull complete
|
49 |
+
136539a47de8: Verifying Checksum
|
50 |
+
136539a47de8: Download complete
|
51 |
142abe9b67c6: Pull complete
|
52 |
181891da1ea0: Pull complete
|
53 |
2a0fa75da19b: Pull complete
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, fundraising, crowdfunding, givewp, give
|
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.13.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -231,6 +231,9 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
|
|
231 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
232 |
|
233 |
== Changelog ==
|
|
|
|
|
|
|
234 |
= 2.13.1: August 20th, 2021 =
|
235 |
* Fix: Resolved issue where donations with a custom amount changed after a payment error
|
236 |
* Fix: Customizer is no longer broken
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.13.2
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
231 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
232 |
|
233 |
== Changelog ==
|
234 |
+
= 2.13.2: August 26th, 2021 =
|
235 |
+
* Fix: Resolved issue where donation forms failed to submit when Stripe was disabled
|
236 |
+
|
237 |
= 2.13.1: August 20th, 2021 =
|
238 |
* Fix: Resolved issue where donations with a custom amount changed after a payment error
|
239 |
* Fix: Customizer is no longer broken
|
src/PaymentGateways/resources/js/stripe-account-manager/customize-stripe-account-validation.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
const {__, sprintf} = wp.i18n;
|
9 |
|
10 |
window.addEventListener('DOMContentLoaded', function () {
|
11 |
-
const bodyClass = document.body.classList.contains('post
|
12 |
const form = document.querySelector(`${bodyClass}.post-type-give_forms form[name="post"]`);
|
13 |
|
14 |
if (!form) {
|
@@ -16,34 +16,37 @@ window.addEventListener('DOMContentLoaded', function () {
|
|
16 |
}
|
17 |
|
18 |
form.addEventListener('submit', event => {
|
19 |
-
|
20 |
|
21 |
-
|
|
|
|
|
|
|
22 |
|
|
|
|
|
23 |
if (!isCustomizeStripeAccountOptionSelected) {
|
24 |
-
form.submit()
|
25 |
return;
|
26 |
}
|
27 |
|
|
|
28 |
const hasDefaultStripeAccount = !!document.querySelector('#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected');
|
29 |
-
|
30 |
-
if (!hasDefaultStripeAccount) {
|
31 |
-
new Give.modal.GiveNoticeAlert({
|
32 |
-
type: 'warning',
|
33 |
-
modalContent: {
|
34 |
-
title: __('Select Default Stripe Account', 'give'),
|
35 |
-
desc: __('We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account.', 'give'),
|
36 |
-
},
|
37 |
-
}).render();
|
38 |
-
|
39 |
-
// Open Stripe settings.
|
40 |
-
if ('stripe_form_account_options' !== Give.fn.getParameterByName('give_tab')) {
|
41 |
-
document.querySelector('a[href="#stripe_form_account_options"]').click();
|
42 |
-
}
|
43 |
-
|
44 |
return;
|
45 |
}
|
46 |
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
});
|
49 |
});
|
8 |
const {__, sprintf} = wp.i18n;
|
9 |
|
10 |
window.addEventListener('DOMContentLoaded', function () {
|
11 |
+
const bodyClass = document.body.classList.contains('post-php') ? '.post-php' : '.post-new-php'
|
12 |
const form = document.querySelector(`${bodyClass}.post-type-give_forms form[name="post"]`);
|
13 |
|
14 |
if (!form) {
|
16 |
}
|
17 |
|
18 |
form.addEventListener('submit', event => {
|
19 |
+
const stripeSetting = document.querySelector('#stripe_form_account_options [name="give_stripe_per_form_accounts"]:checked');
|
20 |
|
21 |
+
// Do nothing if Stripe gateawy is not active
|
22 |
+
if( ! stripeSetting ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
|
26 |
+
// Do nothing if Stripe account is not connected
|
27 |
+
const isCustomizeStripeAccountOptionSelected = stripeSetting.value === 'enabled';
|
28 |
if (!isCustomizeStripeAccountOptionSelected) {
|
|
|
29 |
return;
|
30 |
}
|
31 |
|
32 |
+
// Do nothing if default Stripe account is used
|
33 |
const hasDefaultStripeAccount = !!document.querySelector('#stripe_form_account_options .give-stripe-account-manager-list-item.give-stripe-boxshadow-option-wrap__selected');
|
34 |
+
if ( hasDefaultStripeAccount ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
return;
|
36 |
}
|
37 |
|
38 |
+
event.preventDefault();
|
39 |
+
new Give.modal.GiveNoticeAlert({
|
40 |
+
type: 'warning',
|
41 |
+
modalContent: {
|
42 |
+
title: __('Select Default Stripe Account', 'give'),
|
43 |
+
desc: __('We notice that you want to accept donation with other then global default Stripe Account but you did not selected Stripe account.', 'give'),
|
44 |
+
},
|
45 |
+
}).render();
|
46 |
+
|
47 |
+
// Open Stripe settings.
|
48 |
+
if ('stripe_form_account_options' !== Give.fn.getParameterByName('give_tab')) {
|
49 |
+
document.querySelector('a[href="#stripe_form_account_options"]').click();
|
50 |
+
}
|
51 |
});
|
52 |
});
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit4aefccab0275846a55dba808d8c88680::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit11359ae25f4dfa2b527cf7cb3f935e5d
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit4aefccab0275846a55dba808d8c88680
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit4aefccab0275846a55dba808d8c88680', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit4aefccab0275846a55dba808d8c88680', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit4aefccab0275846a55dba808d8c88680::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
@@ -96,9 +96,9 @@ class ComposerStaticInit11359ae25f4dfa2b527cf7cb3f935e5d
|
|
96 |
public static function getInitializer(ClassLoader $loader)
|
97 |
{
|
98 |
return \Closure::bind(function () use ($loader) {
|
99 |
-
$loader->prefixLengthsPsr4 =
|
100 |
-
$loader->prefixDirsPsr4 =
|
101 |
-
$loader->classMap =
|
102 |
|
103 |
}, null, ClassLoader::class);
|
104 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit4aefccab0275846a55dba808d8c88680
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'S' =>
|
96 |
public static function getInitializer(ClassLoader $loader)
|
97 |
{
|
98 |
return \Closure::bind(function () use ($loader) {
|
99 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit4aefccab0275846a55dba808d8c88680::$prefixLengthsPsr4;
|
100 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit4aefccab0275846a55dba808d8c88680::$prefixDirsPsr4;
|
101 |
+
$loader->classMap = ComposerStaticInit4aefccab0275846a55dba808d8c88680::$classMap;
|
102 |
|
103 |
}, null, ClassLoader::class);
|
104 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'pretty_version' => '2.13.
|
4 |
-
'version' => '2.13.
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'impress-org/give',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -41,12 +41,12 @@
|
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
-
'pretty_version' => '2.13.
|
45 |
-
'version' => '2.13.
|
46 |
'type' => 'wordpress-plugin',
|
47 |
'install_path' => __DIR__ . '/../../',
|
48 |
'aliases' => array(),
|
49 |
-
'reference' => '
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
'kjohnson/format-object-list' => array(
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => '2.13.2',
|
4 |
+
'version' => '2.13.2.0',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => 'b3ffa3a4172000f2aa1b6b82bcb90bb84d5d7bc0',
|
9 |
'name' => 'impress-org/give',
|
10 |
'dev' => false,
|
11 |
),
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
+
'pretty_version' => '2.13.2',
|
45 |
+
'version' => '2.13.2.0',
|
46 |
'type' => 'wordpress-plugin',
|
47 |
'install_path' => __DIR__ . '/../../',
|
48 |
'aliases' => array(),
|
49 |
+
'reference' => 'b3ffa3a4172000f2aa1b6b82bcb90bb84d5d7bc0',
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
'kjohnson/format-object-list' => array(
|