Give – Donation Plugin and Fundraising Platform - Version 2.11.0

Version Description

Download this release

Release Info

Developer jason_the_adams
Plugin Icon 128x128 Give – Donation Plugin and Fundraising Platform
Version 2.11.0
Comparing to
See all releases

Code changes from version 2.10.4 to 2.11.0

Files changed (53) hide show
  1. .phpstorm.meta.php +12 -0
  2. assets/dist/js/admin.js +3 -3
  3. assets/dist/js/donor-dashboards-app.js +1 -1
  4. assets/dist/js/give-sequoia-template.js +1 -1
  5. assets/dist/js/give.js +1 -1
  6. give.php +4 -4
  7. includes/admin/admin-actions.php +3 -2
  8. includes/country-functions.php +3 -1
  9. includes/gateways/stripe/class-give-stripe.php +2 -6
  10. includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php +1 -19
  11. includes/gateways/stripe/includes/class-give-stripe-customer.php +60 -36
  12. includes/gateways/stripe/includes/class-give-stripe-webhooks.php +1 -4
  13. includes/gateways/stripe/includes/give-stripe-helpers.php +0 -19
  14. languages/give.pot +240 -249
  15. readme.txt +12 -1
  16. src/DonorDashboards/App.php +9 -1
  17. src/DonorDashboards/resources/js/app/components/annual-receipt-table/annual-receipt-row/index.js +0 -1
  18. src/DonorDashboards/resources/js/app/components/avatar-control/index.js +2 -1
  19. src/DonorDashboards/resources/js/app/components/currency-control/index.js +0 -1
  20. src/DonorDashboards/resources/js/app/components/donation-row/index.js +1 -1
  21. src/DonorDashboards/resources/js/app/components/select-control/index.js +0 -1
  22. src/DonorDashboards/resources/js/app/components/subscription-manager/amount-control/index.js +1 -1
  23. src/DonorDashboards/resources/js/app/components/subscription-manager/index.js +0 -1
  24. src/DonorDashboards/resources/js/app/components/subscription-receipt/index.js +0 -2
  25. src/DonorDashboards/resources/js/app/components/subscription-row/index.js +1 -1
  26. src/DonorDashboards/resources/js/app/components/subscription-table/index.js +0 -1
  27. src/DonorDashboards/resources/js/app/components/tab-menu/index.js +0 -1
  28. src/DonorDashboards/resources/js/app/tabs/annual-receipts/content.js +0 -1
  29. src/DonorDashboards/resources/js/app/tabs/annual-receipts/index.js +2 -1
  30. src/DonorDashboards/resources/js/app/tabs/dashboard/index.js +2 -1
  31. src/DonorDashboards/resources/js/app/tabs/donation-history/content.js +0 -1
  32. src/DonorDashboards/resources/js/app/tabs/donation-history/dashboard-content.js +0 -1
  33. src/DonorDashboards/resources/js/app/tabs/donation-history/index.js +0 -1
  34. src/DonorDashboards/resources/js/app/tabs/donation-history/stats/index.js +0 -1
  35. src/DonorDashboards/resources/js/app/tabs/donation-history/utils/index.js +1 -1
  36. src/DonorDashboards/resources/js/app/tabs/edit-profile/address-controls/index.js +1 -1
  37. src/DonorDashboards/resources/js/app/tabs/edit-profile/address-fields/index.js +0 -1
  38. src/DonorDashboards/resources/js/app/tabs/edit-profile/content.js +5 -5
  39. src/DonorDashboards/resources/js/app/tabs/edit-profile/email-controls/index.js +1 -1
  40. src/DonorDashboards/resources/js/app/tabs/edit-profile/index.js +2 -1
  41. src/DonorDashboards/resources/js/app/tabs/recurring-donations/content.js +0 -1
  42. src/DonorDashboards/resources/js/app/tabs/recurring-donations/index.js +4 -2
  43. src/Onboarding/LocaleCollection.php +10 -0
  44. src/Onboarding/Setup/templates/section.html +2 -2
  45. src/ValueObjects/Money.php +57 -75
  46. src/Views/Form/Templates/Sequoia/Actions.php +9 -2
  47. src/Views/Form/Templates/Sequoia/assets/js/form.js +35 -0
  48. src/Views/Form/Templates/Sequoia/optionConfig.php +11 -0
  49. vendor/autoload.php +1 -1
  50. vendor/composer/InstalledVersions.php +6 -6
  51. vendor/composer/autoload_real.php +4 -4
  52. vendor/composer/autoload_static.php +4 -4
  53. vendor/composer/installed.php +6 -6
.phpstorm.meta.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace PHPSTORM_META {
4
+ // Allow PhpStorm IDE to resolve return types when calling give( Object_Type::class ) or give( `Object_Type` ).
5
+ override(
6
+ \give( 0 ),
7
+ map( [
8
+ '' => '@',
9
+ '' => '@Class',
10
+ ] )
11
+ );
12
+ }
assets/dist/js/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=694)}({100: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(12),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.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");if(void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;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}},cache:{}};h.notice=o,h.form=d,h.donor=u,h.util=c,h.share=f;t.a=h},1009:function(e,t,n){"use strict";n.r(t);n(696),n(567),n(697),n(698),n(699);var i,o=n(19),r=n.n(o);(i=jQuery).extend({giveAjaxifyFields:function(e){var t,n,o=i.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},e||{});switch(o.type){case"country_state":if(t=i('select[name="'+o.countryFieldName+'"]'),n=t.closest(o.parentWrapper),!t.length||"Country_state"===t.data("give-ajaxify-field"))return;t.data("give-ajaxify-field","country_state"),t.change((function(){var e=i(this),t=e.closest(o.parentWrapper).find('[name="'+o.stateFieldName+'"]'),a=t.closest(o.stateFieldWrapper),s=i("label",a);o.stateFieldWrapper||(s=i('label[for="'+o.stateFieldName+'"]',n),a=t.parent());var l={action:"give_get_states",country:e.val(),field_name:o.stateFieldName};i.post(ajaxurl,l,(function(e){e.show_field?(s.length&&s.text(e.states_label),o.chosenState&&t.chosen("destroy"),o.stateFieldWrapper?a.removeClass("give-hidden"):t.removeClass("give-hidden"),void 0!==r()(e.states_found)&&!0===e.states_found?(t.replaceWith(e.data),t=i('[name="'+o.stateFieldName+'"]',a),o.chosenState&&t.chosen()):(t.replaceWith('<input type="text" name="'+o.stateFieldName+'" value="'+e.default_state+'" class="medium-text"/>'),t=i('[name="'+o.stateFieldName+'"]',a))):o.stateFieldWrapper?a.addClass("give-hidden"):t.addClass("give-hidden")}))}))}return this}});n(700);var a=n(38);!function(e){e.fn.repeatable_fields=function(t){var n={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:r,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},i=e.extend({},n,t);function o(e,t){var n=e.parents(i.row).first();"function"==typeof i.before_remove&&i.before_remove(t,n),n.remove(),"function"==typeof i.after_remove&&i.after_remove(t)}function r(t,n){var o=e(t).attr("data-rf-row-count");o++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace(i.row_count_placeholder,o-1)}))})),e(t).attr("data-rf-row-count",o)}!function t(n){e(i.wrapper,n).each((function(n,s){var l=e(this).children(i.container);e(l).children(i.template).hide().find(":input").each((function(){e(this).prop("disabled",!0)}));var c=e(l).children(i.row).filter((function(){return!e(this).hasClass(i.template.replace(".",""))})).length;if(e(l).attr("data-rf-row-count",c),e(this).on("click",i.add,(function(n){n.stopImmediatePropagation();var o=e(e(l).children(i.template).clone().removeClass(i.template.replace(".",""))[0].outerHTML);e(o).find(":input").each((function(){e(this).prop("disabled",!1)})),"function"==typeof i.before_add&&i.before_add(l);var a=e(o).show().appendTo(l);"function"==typeof i.after_add&&i.after_add(l,a,r),t(a)})),e(this).on("click",i.remove,(function(t){t.stopImmediatePropagation();var n=e(this);return i.confirm_before_remove_row&&i.confirm_before_remove_row_text||o(n,l),new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:i.confirm_before_remove_row_text},successConfirm:function(){o(n,l)}}).render(),!1})),!0===i.is_sortable&&void 0!==e.ui&&void 0!==e.ui.sortable){var d=null!==i.sortable_options?i.sortable_options:{};d.handle=i.move,e(this).find(i.container).sortable(d)}}))}(this)}}(jQuery);n(572),n(701);var s=n(100),l=n(404);n(702),n(703);
2
  /*!
3
  * Give Admin Forms JS
4
  *
@@ -9,7 +9,7 @@
9
  * @copyright: Copyright (c) 2016, GiveWP
10
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
  */
12
- jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();e("body").on("change","#give-mainform #currency",(function(){var t=e("#give-mainform #currency option:selected").val(),n=JSON.parse(e(this).attr("data-formatting-setting")),i=afterText={},o=n[t],r=e("#thousands_separator","#give-mainform"),a=e("#decimal_separator","#give-mainform"),s=e("#number_decimals","#give-mainform");i=e("#give-mainform #currency_position").data("before-template").replace("{currency_pos}",o.symbol),e('#give-mainform #currency_position option[value="before"]').text(i),afterText=e("#give-mainform #currency_position").data("after-template").replace("{currency_pos}",o.symbol),e('#give-mainform #currency_position option[value="after"]').text(afterText),r.val(o.setting.thousands_separator).trigger("blur"),a.val(o.setting.decimal_separator).trigger("blur"),s.val(o.setting.number_decimals).trigger("blur")})),"disabled"!==e('input[name="name_title_prefix"]:checked').val()&&e(".give-title-prefixes-settings-wrap").show(),e('input[name="name_title_prefix"]').on("change",(function(){"disabled"!==e(this).val()?e(".give-title-prefixes-settings-wrap").show():e(".give-title-prefixes-settings-wrap").hide()})),e("a.give-repeat-setting-field").on("click",(function(t){t.preventDefault();var n=e(this).parents("td"),i=e("p:first-child",n).clone(),o=e("p",n).not(".give-field-description").length,r=e(this).data("id")+"_"+ ++o,a=e(this).prev();return e("input",a).val()&&(e(this).before(i),a=e(this).prev(),e("input",a).attr("id",r),e("input",a).val("")),!1})),e(".give-settings-page").on("click","span.give-remove-setting-field",(function(t){e(this).parents("p").remove()})),e(".give-email-notification-status","table.giveemailnotifications").on("click",(function(){var t=e(this),n=e("i",t),i=e(this).next(),o=e(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",r=e(this).data("id");if(!parseInt(t.data("edit")))return e("div.give-email-notification-status-notice").remove(),e("hr.wp-header-end").after('<div class="updated error give-email-notification-status-notice"><p>'+e(this).closest(".give-email-notification-status").data("notice")+"</p></div>"),e("html, body").animate({scrollTop:e("div.give-email-notification-status-notice").position().top},"slow"),!1;e.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:o,notification_id:r},beforeSend:function(){t.hide(),i.addClass("is-active")},success:function(e){e.success&&(t.removeClass("give-email-notification-"+t.data("status")),t.addClass("give-email-notification-"+o),t.data("status",o),"enabled"===o?(n.removeClass("dashicons-no-alt"),n.addClass("dashicons-yes")):(n.removeClass("dashicons-yes"),n.addClass("dashicons-no-alt")),i.removeClass("is-active"),t.show())}})})),e("#give-clear-cache").on("click",(function(){e.ajax({url:ajaxurl,type:"GET",data:{action:"give_cache_flush"}}).done((function(e){e.success?new Give.modal.GiveSuccessAlert({modalContent:{title:Give.fn.getGlobalVar("flush_success"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render():new Give.modal.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("flush_error"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}))}));var n=Give.fn.getGlobalVar("decimal_separator"),i=Give.fn.getGlobalVar("thousands_separator"),o=/\(([^)]+)\)/,r={position:Give.fn.getGlobalVar("currency_pos"),symbol:Give.fn.getGlobalVar("currency_sign"),precision:Give.fn.getGlobalVar("number_decimals"),decimal:Give.fn.getGlobalVar("decimal_separator"),thousand:Give.fn.getGlobalVar("thousands_separator")};e("#number_decimals, #decimal_separator, #thousands_separator, #currency_position, #currency").on("input blur change",(function(t){var a=e("#currency_preview"),s=e("#decimal_separator"),l=e("#thousands_separator"),c=t.target.name,d=t.target.value;if("number_decimals"!==c||"input"!==t.type&&"blur"!==t.type||(d&&!isNaN(d)||"blur"!==t.type||(t.target.value=Give.fn.getGlobalVar("number_decimals")),r.precision=isNaN(parseInt(d))?Give.fn.getGlobalVar("number_decimals"):parseInt(d)),"decimal_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=n),r.decimal=d,r.hasOwnProperty("thousand")&&"input"===t.type?r.decimal===r.thousand&&(r.thousand=n,l.val(n),n=d,i=l.val()):r.decimal===Give.fn.getGlobalVar("thousands_separator")&&"input"===t.type&&(r.thousand=n,l.val(n),n=d,i=l.val())),"thousands_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=i),r.thousand=d,r.hasOwnProperty("decimal")&&"input"===t.type?r.decimal===r.thousand&&(r.decimal=i,s.val(i),i=d,n=s.val()):r.thousand===Give.fn.getGlobalVar("decimal_separator")&&"input"===t.type&&(r.decimal=i,s.val(i),i=d,n=s.val())),"currency_position"===c&&"change"===t.type&&(r.position=d),"currency"===c&&"change"===t.type){r.currency=d;var u=o.exec(t.target[t.target.selectedIndex].text);r.symbol=u[1]}a.val(Give.fn.formatCurrency("123456.12345",r,{}))}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".give-settings-section-content");if(null!==e){var t=e.querySelector(".give-settings-section-group-menu");if(null!==t){var n=Array.prototype.slice.call(e.querySelectorAll(".give-settings-section-group")),i=Array.from(t.querySelectorAll("ul li a")).concat(Array.from(e.querySelectorAll("ul.give-subsubsub li a")));null!==i&&i.forEach((function(t){t.addEventListener("click",(function(t){var o,r;if(t.target.hasAttribute("data-subgroup")){var a=t.target.parentElement.parentElement,s=a.parentElement;o=t.target.getAttribute("data-subgroup"),r=e.querySelector("#give-settings-section-subgroup-".concat(o)),a.querySelectorAll("a").forEach((function(e){e.classList.remove("current")})),s.querySelectorAll(".give-settings-section-subgroup ").forEach((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("current")}else o=t.target.getAttribute("data-group"),r=e.querySelector("#give-settings-section-group-".concat(o)),i.forEach((function(e){e.classList.remove("active")})),n.map((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("active");return r.classList.remove("give-hidden"),history.pushState({urlPath:t.target.getAttribute("href")},"",t.target.getAttribute("href")),t.preventDefault(),!1}))}))}}}));n(704);var c=n(23),d=n.n(c),u=n(32),f=n.n(u),h=n(16),p=n.n(h),m=n(40),g=n.n(m),v=n(69),_=n.n(v),b=n(46),y=n.n(b),w=function(){function e(t){d()(this,e),this.root=t,this.buttonText=this.root.textContent.trim(),this.iconPosition="before",this._buttonTextWithWrapper=this.root.querySelector(".give-button-text")?'<span class="give-button-text">'.concat(this.buttonText,"</span>"):this.buttonText;var n=this.root.querySelector(".dashicons");n&&(this.iconClassName=n.className)}return f()(e,[{key:"enable",value:function(){this.root.disabled=!1}},{key:"disable",value:function(){this.root.disabled=!0}},{key:"setBusyState",value:function(){this.root.innerHTML="".concat('<span class="dashicons dashicons-marker"></span>'," ").concat(this._buttonTextWithWrapper),this.disable()}},{key:"removeBusyState",value:function(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}},{key:"updateIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n='<span class="'.concat(e,'"></span>');this.root.innerHTML="after"===t?"".concat(this._buttonTextWithWrapper," ").concat(n):"".concat(n," ").concat(this._buttonTextWithWrapper),this.iconClassName=e,this.iconPosition=t}},{key:"updateButtonText",value:function(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}}]),e}(),x=n(674),k=n.n(x);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _()(this,n)}}var S=function(e){g()(n,e);var t=C(n);function n(e){var i;return d()(this,n),(i=t.call(this,e)).shortcode=i.root.dataset.giveShortcode,i.clipboard=new k.a(i.root,{text:function(e){return e.dataset.giveShortcode}}),i.reset=i.reset.bind(p()(i)),i}return f()(n,[{key:"init",value:function(){this.registerEventHandlers()}},{key:"registerEventHandlers",value:function(){var e=this;this.clipboard.on("success",(function(){return e.handleSuccessClick()})),this.clipboard.on("error",(function(){return e.handleErrorClick()}))}},{key:"handleSuccessClick",value:function(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}},{key:"handleErrorClick",value:function(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}},{key:"reset",value:function(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}]),n}(w),T=n(542);function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}
13
  /**
14
  * Give Admin JS
15
  *
@@ -25,7 +25,7 @@ jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list")
25
  * @subpackage: Assets/JS
26
  * @copyright: Copyright (c) 2016, GiveWP
27
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
28
- */();s=s.filter((function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+r.tab));return t&&(n=e),!t})),n.length&&(s.unshift(a.pop()),a.push(n))}new Promise((function(e,t){a.length&&jQuery.each(a,(function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")})),e(!0)})).then((function(e){s.length?(o.html(""),jQuery.each(s,(function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)})),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(i),i.show()):i.hide()}))}))}!function(e){var t=function(t,n){var i=(n=jQuery.extend({wrapper:!0,show:!1},n)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(n.show)return i.length&&i.addClass("is-active"),void o.addClass("is-active");i.length&&i.removeClass("is-active"),o.removeClass("is-active")},n=function(e){var t=document.location.href,n=t.split("?");e=void 0===e?"":e.replace("give-","");if(n.length>=2){for(var i=n.shift(),o=n.join("?"),r=encodeURIComponent("give-message")+"=",a=o.split(/[&;]/g),s=a.length;s-- >0;)(-1!==a[s].lastIndexOf(r,0)||""!==e&&-1!==a[s].lastIndexOf("give-messages",0)&&a[s].match(e+"$"))&&a.splice(s,1);t=i+"?"+a.join("&"),window.history.pushState("",document.title,t)}return t};function i(e,t){return e=accounting.unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var o={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new a.GiveConfirmModal({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new a.GiveConfirmModal({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},s={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,n,(function(n){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),void 0!==r()(n.states_found)&&!0===n.states_found?(i.append(n.data),i.find("select").chosen()):(i.append('<input type="text" name="give-payment-address[0][state]" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==r()(n.show_field)&&!1===n.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))})),!1}))},add_note:function(){e("#give-add-payment-note").on("click",(function(t){function n(){e.ajax({type:"POST",data:a,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),i.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).always((function(){o.prop("disabled",!1),i.prop("disabled",!1)}))}t.preventDefault();var i=e(this),o=e("#give-payment-note"),r=e("#donation_note_type"),a={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:r.val()};if(a.note)"donor"===a.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){n()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():n();else{var s=o.css("border-color");o.css("border-color","red"),setTimeout((function(){o.css("border-color",s)}),500)}}))},remove_note:function(){e("body").on("click",".give-delete-payment-note",(function(t){t.preventDefault();var n=this;new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var i={action:"give_delete_payment_note",payment_id:e(n).data("payment-id"),note_id:e(n).data("note-id")};e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}}).render()}))},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",(function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)}))},resend_receipt:function(){e("body").on("click","#give-resend-receipt",(function(t){var n=this;t.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(n).attr("href"))}}).render()}))},variable_price_list:function(){e("#give_payment_form_select").chosen().change((function(){var t,n=e(".give-donation-level");return!!(t=e(this).val())&&(!!n.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(n.html(t),e('select[name="give-variable-price"]').chosen().change()):n.html("")}}))})),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',(function(){var t=jQuery(this).data("prices"),n=e("#give-payment-total");""!==t&&e(this).val()in t&&(n.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout((function(){n.css("background-color","white")}),1e3))}))}},l={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",(function(){var t=e(this).prev(".gateways-radio"),n=(this.checked,e(".gateways-checkbox:checked"));1===n.length?(n.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")}))},setting_change_country:function(){e('select[name="base_country"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,n,(function(i){t.closest("tr").next().show(),e("#base_state_chosen").remove(),void 0!==r()(i.states_found)&&1==i.states_found?(e(':input[name="base_state"]').replaceWith(i.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(void 0!==r()(i.show_field)&&0==i.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+n.field_name+'" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'))})),!1}))},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())})).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())})).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()})).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())})).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",(function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())})).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),n=e(this).closest("table");"enabled"===t?e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").hide()})).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout((function(){t.slideUp()}),5e3)},verify_settings:function(){var t=e("#success_page"),n=e("#failure_page");t.add(n).change((function(){if(t.val()===n.val()){var i='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(i),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click((function(){o.remove()}))}})).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",(function(){e(window).unbind("beforeunload")}))},changeAlert:function(){e(window).bind("beforeunload",(function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if(M)return(e||window.event).returnValue=t,t}))},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var n=e("#give-mainform").serialize();t.on("change keyup blur","form",(function(t){if(!e(t.target).closest(".js-fields-has-custom-saving-logic").length){var i=e("#give-mainform").serialize();M=n!==i}}))}},sequentialDonationIDPreview:function(){var t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",(function(){var e=jQuery("#sequential-ordering_number_prefix").val(),n=jQuery("#sequential-ordering_number").val().trim()||"1",i=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),r="".concat(e).concat(n.padStart(i,"0")).concat(o);t.val(r)})),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",(function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))})))}},c={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change((function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()}))},donors_export:function(){e("#give_donor_export_form").change((function(){var t=e(this),n=e("option:selected",t).val(),i=e("#give_customer_export_option");"0"===t.val()?i.show():i.hide();var o=e(".give_price_options_select");if(0!=parseInt(n)){var r={action:"give_check_for_form_price_variations",form_id:n,all_prices:!0};e.post(ajaxurl,r,(function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)}))}else o.remove()}))},recount_stats:function(){e("body").on("change","#recount-stats-type",(function(){var t=e("#give-tools-recount-form"),n=e("option:selected",this).data("type"),i=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),r=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),i.removeClass("button-disabled").attr("disabled",!1),o.hide(),r.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===n)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===n){r.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var a=e(".tools-form-dropdown-"+n);a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+n).show()})),e("body").on("change","#confirm-reset",(function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")})),e("#give-tools-recount-form").submit((function(t){var n=e("#recount-stats-type").val(),i=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;a=!0}i.find(".notice-wrap").remove(),i.append('<div class="notice-wrap"></div>');var r=i.find(".notice-wrap"),a=!1;(null!==n&&0!==n||(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),a=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),a=!0));if(a)return i.find(".button-disabled").removeClass("button-disabled"),!1}))}},d={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",(function(n){n.preventDefault();var i=e(this).find('input[type="submit"]');if(!i.hasClass("button-disabled")){var o=e(this).serialize();i.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var r=e(this);e(this).find(".add-notices").length>0&&(r=e(this).find(".add-notices")),r.find(".notice-wrap").remove(),r.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}}))},process_step:function(t,n,i,o,r){M=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:n,action:"give_do_ajax_export",step:t,file_name:r},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){M=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,(function(){})),i.process_step(parseInt(t.step),n,i,o,t.file_name);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail((function(t){M=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)}))},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",(function(){e("#give-batch-success").parent().slideUp("fast")}))}},u={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3),window.setTimeout(u.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",(function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")})),e("#give-db-updates").on("click","a.give-run-update-button",(function(n){return n.preventDefault(),e(this).hasClass("active")||(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),u.start_db_update(),window.setTimeout(u.get_db_updates_info,500,t)),!1})))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always((function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3)}))},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(n){var i=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(n))?n.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),n.data.message?(t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-error is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3)):n&&-1!==e.inArray("percentage",Object.keys(n.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(n.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:n.data.percentage+"%"},50,(function(){})),window.setTimeout(u.get_db_updates_info,1e3,t)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3))}})},process_step:function(t,n,i){M=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(n)},dataType:"json",success:function(t){M=!1;var n=Give_Selector_Cache.get(".notice-wrap",i.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,(function(){})),-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",i.el.heading.data("update-count"))+"</strong>"),i.process_step(parseInt(t.data.step),t.data.update,i)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3))}}).fail((function(e){M=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)})).always((function(){}))},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",(function(){e(this).parent().slideUp("fast")}))}},f={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",(function(e){var t=this;e.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()}))}},h={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),h.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,n;e(".give-donor-name").each((function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(n=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var i=e("<img>");i.attr("src",I.url(n)),i.attr("width","60"),i.attr("height","60"),e(this).find(".give-donor__image").html(i)}t.addClass("gravatar-loaded")}}))},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",(function(e){new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()}))},editDonor:function(){e("body").on("click","#edit-donor",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")}))},removeUser:function(){e("body").on("click","#disconnect-donor",(function(t){return t.preventDefault(),new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("disconnect_user")},successConfirm:function(){var t={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,t,(function(e){window.location.href=e.redirect}),"json")}}).render(),!1}))},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")}))},add_note:function(){e("body").on("click","#add-donor-note",(function(t){t.preventDefault();var n={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(n.donor_note)e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)}));else{var i=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout((function(){e("#donor-note").css("border-color",i)}),500)}}))},delete_checked:function(){e("#give-donor-delete-confirm").change((function(){var t=e("#give-donor-delete-records"),n=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),n.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),n.attr("disabled",!0))}))},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",(function(t){t.preventDefault();var n=e(this),i=n.parent();i.parent().find(".notice-wrap").remove(),i.find(".spinner").css("visibility","visible"),n.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:i.find('input[name="donor-id"]').val(),email:i.find('input[name="additional-email"]').val(),primary:i.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:i.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,(function(e){!0===e.success?window.location.href=e.redirect:(n.attr("disabled",!1),i.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),i.find(".spinner").css("visibility","hidden"))}),"json")}))},addressesAction:function(){var n=this,i=e("#donor-address-wrapper"),o=e(".all-address",i),r=e(".give-no-address-message",i),a=e(o).parent(),s=e(".address-form",i),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",i),u=parseInt(e('input[name="donor-id"]').val());c.on("change",(function(){e(this).trigger("chosen:updated")})),o.on("click",".js-edit",(function(t){var i=e(this).closest(".address");t.preventDefault(),e(".notice",a).remove(),n.__set_address_form_val(i),n.__set_address_form_action("update",i.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")})),o.on("click",".js-remove",(function(t){t.preventDefault();var i=e(this).closest(".address");e(".notice",a).remove(),s.data("changed",!0),n.__set_address_form_val(i),n.__set_address_form_action("remove",i.data("address-id")),s.trigger("submit")})),d.on("click",(function(t){t.preventDefault(),e(".notice",a).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),n.__set_address_form_action("add"),n.__set_address_form_action()})),l.on("click",(function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),s.on("change",(function(){e(this).data("changed",!0)})).on("submit",(function(n){n.preventDefault();var l=e(this);return e(".notice",a).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(i,{show:!0})},success:function(n){if(t(i),n.success){var s;switch(n.data.action){case"add":e(".give-grid-row",o).append(n.data.address_html),!r.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&r.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,(function(){s.remove(),r.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&r.removeClass("give-hidden")}));break;case"update":var l=(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(n.data.address_html):(l.length&&(l.after(n.data.address_html),d=!0),d||(c=s.next()).length&&c.before(n.data.address_html)),s.remove()}a.prepend(n.data.success_msg)}else a.prepend(n.data.error_msg)},dataType:"json"}).always((function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)}))},__set_address_form_action:function(t,n){var i=e("#donor-address-wrapper"),o=e(".address-form",i),r=e('input[name="address-action"]',o),a=e('input[name="address-id"]',o);t=t||"add",n=n||"billing",r.val(t),a.val(n)},__set_address_form_val:function(t){var n=e("#donor-address-wrapper"),i=e(".address-form",n),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',i).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',i).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout((function(){e('[name="state"]',i).val(o).trigger("chosen:updated")}),500)):e('[name="state"]',i).val(o).trigger("chosen:updated"),e('input[name="line1"]',i).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',i).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',i).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',i).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",(function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()})),t.on("click","#cb-select-all-1, #cb-select-all-2",(function(){var t=e(this);e.each(e(".donor-selector"),(function(){var n=e(this).val(),i=e(this).data("name"),o='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+n).remove()}))})),t.on("click",".donor-selector",(function(){var t=e(this).val(),n=e(this).data("name"),i='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(i):e("#give-bulk-donors").find("#give-donor-"+t).remove()})),t.on("click","#give-bulk-delete .give-donor-delete-confirm",(function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))})),t.on("click","#give-bulk-delete .give-donor-delete-records",(function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))})),t.on("click",".give-skip-donor",(function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")})),t.on("click",".give-single-donor-delete",(function(t){var n=e(this).data("id"),i=e("tr#donor-"+n).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),r=e("#give-bulk-donors"),a=i.data("name"),s='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+a+"</div>";r.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),i.attr("checked","checked"),0===e("#give-donor-"+n).length&&(r.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()}))},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=[],o=e("#current-page-selector").val(),r=h.onLoadPageNumber!==o,s=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),l=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!r||(e.each(e(".donor-selector:checked"),(function(){i.push(e(this).val())})),"-1"===n?(new a.GiveWarningAlert({modalContent:{title:s.title,desc:s.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(i)?("delete"===n&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new a.GiveWarningAlert({modalContent:{title:l.title,desc:l.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},p={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",(function(t){t.preventDefault();var n=e(this).attr("href");return new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("revoke_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",(function(t){var n=e(this).attr("href");return new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("regenerate_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))}},m={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_template_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",(function(n){n.preventDefault();var i=e(this);t.activate_tab(i),t.update_query(i)}))},activate_tab:function(t){var n=t.data("tab-id"),i=t.parent(),o=e("ul.give-metabox-sub-tabs",i),r=o.length,a=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(n),r){i.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),a.not(i).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),a.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):a.each((function(t,n){(n=e(n)).removeClass("active"),n.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",n).addClass("give-hidden")}));t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var n=t.data("tab-id"),i=e.query.set("give_tab",n).remove("message").toString();history.replaceState&&history.replaceState(null,null,i)},setup_colorpicker_fields:function(){e(document).ready((function(){var t=e(".give-colorpicker");t.length&&t.each((function(t,n){var i=e(n);i.parents(".give-template").length||i.wpColorPicker()}))}))},setup_media_fields:function(){var t,n,i=e("body");i.on("click",".give-upload-button",(function(o){o.preventDefault();var r={};switch(n=e(this),e(this).data("field-type")){case"media":r={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:r={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1}}void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var a=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==a&&""!==a&&(r.library={type:a}),(t=wp.media(r)).on("select",(function(){var e=t.state().get("selection").first().toJSON(),o=n.prev(),r="id"===n.data("fvalue")?e.id:e.url;if(i.trigger("give_media_inserted",[e,o]),o.val(r),"id"!==n.data("fvalue")){var a='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(a).length&&o.closest("tr").next("tr").find(a).val(e.id)}})),t.open()})),i.on("give_media_inserted",(function(t,i){var o=n.parents(".give-field-wrap"),r=e(".give-image-thumb",o);return!!r.length&&("image"!==i.type?(r.addClass("give-hidden"),e("img",r).attr("src",""),!1):(r.find("img").attr("src",i.url),void r.removeClass("give-hidden")))})),e("span.give-delete-image-thumb",".give-image-thumb").on("click",(function(t){t.preventDefault();var n=e(this).parents(".give-field-wrap"),i=e(this).parent(),o=e('input[type="text"]',n);i.addClass("give-hidden"),o.val(""),e("img",i).attr("src","")}))},setup_repeatable_fields:function(){jQuery((function(){jQuery(".give-repeatable-field-section").each((function(){var t=e(this),n={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:g,before_remove:null,after_remove:v,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template");o.length&&o.each((function(t,n){var i=e('input[type="radio"].give-field',e(n));i.length&&i.each((function(){e(this).attr("data-give-checked",e(this).is(":checked"))}))})),e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item),e("body").trigger("repeater_field_sorting_stop",[n.item])},update:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template"),r=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var a=1;o.each((function(t,n){var i=e(".give-field, label",e(n));i.length&&i.each((function(){var t=e(this).parents(".give-field-wrap"),n=e(this);e.each(this.attributes,(function(e,i){var o,r=this.value.replace(/\[/g,"_").replace(/]/g,""),s=r+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(a-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),r==n.attr("id")&&n.attr("id",o))}))})),a++})),window.setTimeout((function(){e("input[data-give-checked]",r).each((function(t,n){(n=e(n)).prop("checked","true"===n.attr("data-give-checked"))}))}),100),t.trigger("repeater_field_row_reordered",[i.item])}}}};jQuery(this).repeatable_fields(n)}))}))},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),n=e("body");n.on("click",".give-row-head .give-handlediv",(function(){var t=e(this).closest(".give-row");t.toggleClass("closed"),e(".give-row-body",t).toggle()})),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",(function(){_(e(this))})),n.on("repeater_field_sorting_start",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(n).attr("id"))}),300)}))})),n.on("repeater_field_sorting_stop",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){var t=e(n).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout((function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")}),100)}),300)}))})),t.each((function(t,n){var i=e(n);_(i),parseInt(i.data("close-tabs"))&&(e(".give-row-head button",i).trigger("click"),e(".give-template",i).removeClass("closed"),e(".give-template .give-row-body",i).show())})),t.on("repeater_field_new_row_added",(function(t,n,i){e(".give-colorpicker",e(this)).each((function(t,n){var i=e(n);i.parents(".wp-picker-container").length||i.parents(".give-template").length||i.wpColorPicker()}));var o=e("div[data-wp-editor]",i);o.length&&o.each((function(t,n){var i=e(n),o=e(".wp-editor-wrap",i),r=e("textarea",i),a="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();r.attr("id",a),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:i.data("wp-editor"),wp_editor_id:a,textarea_name:e("textarea",i).attr("name")},(function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[r.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:a}),tinyMCEPreInit.mceInit[a]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:a+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+a}),tinymce.init(tinyMCEPreInit.mceInit[a]),quicktags(tinyMCEPreInit.qtInit[a]),QTags._buttonsInit(),window.setTimeout((function(){switchEditors.go(a,"html"),e("#"+a+"-tmce").trigger("click")}),100),window.wpActiveEditor||(window.wpActiveEditor=a)}))}))}))},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",(function(){var t=e(this).closest("tr"),n=e(".give-row-head h2 span",t),i=n.data("header-title");if(e(this).val()&&e(this).val()===n.html())return!1;e(this).val()?n.html(i+": "+e(this).val()):n.html(i)})),e(".give-multilevel-text-field").each((function(t,n){if(t){var i=e(n),o=i.closest("tr"),r=e(".give-row-head h2 span",o),a=r.data("header-title");if(i.val()&&i.val()===r.html())return!1;i.val()?r.html(a+": "+i.val()):r.html(a)}})),t.on("repeater_field_row_deleted",(function(){var t=e(this);window.setTimeout((function(){var n=e(".give-row",t).not(".give-template"),i=e(".give-give_default_radio_inline",n);1===n.length&&i.prop("checked",!0)}),200)})),t.on("repeater_field_new_row_added",(function(t,n,i){var o=e(this),r=0;window.setTimeout((function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)}),200),e('input[type="hidden"].give-levels_id',o).each((function(t,n){var i=e(n),o=parseInt(i.val());r<o&&(r=o)})),e('input[type="hidden"].give-levels_id',i).val(++r)}))}},g=function(t,n){var i=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");i++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",i-1)}))})),e(t).attr("data-rf-row-count",i),o.trigger("repeater_field_new_row_added",[t,n])},v=function(t){var n=e(t),i=n.parents(".give-repeatable-field-section"),o=e(t).prop("data-rf-row-count");n.prop("data-rf-row-count",--o),i.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var n=e(".give-row-head h2 span",t),i=n.data("header-title");n.each((function(t,n){var o=e(n);o.parents(".give-template").length||o.html(i+": "+t)}))}},b={onLoadPageNumber:"",init:function(){b.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+n+'"]').text(),o=e('input[name="payment[]"]:checked').length,r=-1!==n.indexOf("set-status-"),s="",l="",c=e("#current-page-selector").val();if(b.onLoadPageNumber!==c)return!0;if("-1"===(n=r?"set-to-status":n))return new a.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(l in Give.fn.getGlobalVar("donations_bulk_action"))if(l===n){if(s=r?Give.fn.getGlobal().donations_bulk_action[n].zero.replace("{status}",i.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[n].zero,!parseInt(o))return new a.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:s,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;s=1<o?Give.fn.getGlobal().donations_bulk_action[n].multiple:Give.fn.getGlobal().donations_bulk_action[n].single,t.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:s.replace("{payment_count}",o).replace("{status}",i.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},y=function(){var e=document.querySelectorAll(".js-give-shortcode-button");if(e){var t,n=j(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;new S(i).init()}}catch(e){n.e(e)}finally{n.f()}}},w=function(){e(".give-select-chosen[multiple]").each((function(t,n){e(n).chosen().change((function(t,n){var i=e(this),o=i.attr("id"),r=[];e("#".concat(o,"_chosen li.search-choice span")).each((function(e,t){var i=t.textContent;i!==n.deselected&&r.push({value:i,selected:!0})})),Array.from(t.target.options).map((function(e){r.filter((function(t){return t.value===e.value})).length||r.push({value:e.value,selected:e.selected})})),i.empty(),r.map((function(t){return i.append(e("<option>",{value:t.value,text:t.value,selected:t.selected}))}))}))}))};e((function(){var t;e("body").on("click","button.notice-dismiss",(function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&n(jQuery(this).closest("div.give-notice").attr("id"))})),function(){var t,n=e(".give_datepicker");if(n.length){var i={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(n,(function(o,r){r=e(r),t=void 0!==r.attr("data-standard-date")?r.attr("data-standard-date"):r.attr("value"),r.attr("name").length&&(i=r.clone(),n[o]=i,i.attr("name",""),r.before(i),r.hide(),r.attr("class",""),r.attr("id",""),r.val(t),r.prop("readonly",!0))})),n.length>0&&e.each(n,(function(t,n){n=e(n),o.altField=n.next(),n.datepicker(o)}))}}(),e('select[name="give-payment-status"]').on("change",(function(){var t=e(this).val();e(".give-donation-status").removeClass((function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")})).addClass("status-"+t)})),(t=e(".give-select-chosen")).hasClass("give-chosen-settings")?t.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",(function(t,n){e(n.chosen.container).on("keydown",(function(i){var o=n.chosen.get_search_text(),r=jQuery(n.chosen.form_field);13!==i.keyCode||r.find('option[value="'+o+'"]').length||"true"!==r.attr("data-allows-new-values")||(e(n.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),n.chosen.result_highlight=n.chosen.search_results.find("li.active-result").lasteturn,n.chosen.result_select(t))}))})):Object(T.a)(t),e(".chosen-container").each((function(){0===e(this).width()&&e(this).css("width","100%")})),e("#post").on("click",".give-thickbox",(function(){e(".give-select-chosen","#choose-give-form").css("width","100%")})),e.giveAjaxifyFields({type:"country_state",debug:!0}),o.init(),s.init(),l.init(),c.init(),h.init(),p.init(),d.init(),u.init(),f.init(),m.init(),b.init(),y(),w(),e("a.give-rating-link").click((function(){jQuery(this).parent().text(jQuery(this).data("rated"))})),e(".give-ajax-user-search").on("keyup",(function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:n},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})})),e("body").on("click.giveSelectUser",".give_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".give-ajax-user-search").val(n),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")})),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",(function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}));var r=e("#poststuff"),a=Give.fn.getGlobalVar("thousands_separator"),g=Give.fn.getGlobalVar("decimal_separator"),v="",_="",x="",k=g===a?1:0;r.on("keyup","input.give-money-field, input.give-price-field",(function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};v=(e(this).val().match(new RegExp(a,"g"))||[]).length,_=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(a)&&k<v||_?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),v=_=""})),r.on("focusout","input.give-money-field, input.give-price-field",(function(){if(x=i(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),i("0",!1)===i(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(x=x.replace(".",g)).indexOf("-")&&(x=x.replace("-","")),e(this).val(x)})),r.on("focusout","#_give_number_of_donation_goal",(function(){1>e(this).val()&&e(this).val(1)})),e(".give-settings-page").on("click","#give-show-sub-nav",(function(t){t.preventDefault();var n=e(this).next();return n.is(":hover")||n.toggleClass("give-hidden"),!1})).on("blur","#give-show-sub-nav",(function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")})),e(".give_email_api_notification_status_setting input").change((function(){var t=e(this).val(),n="enabled"===t,i={};return e(this).closest(".give_options_panel").length?i=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(i=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!i.length&&void(n?i.show():i.hide()))})),e(".give_email_api_notification_status_setting input:checked").change(),G()}))}(jQuery),jQuery(window).resize((function(){G()}));function A(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,n=!1,i=!1,o=!1,r=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach((function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")}));var a=Array.from(document.querySelectorAll("table.step-2 tbody select")).map((function(e){return e.value}));a.includes("email")&&(n=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),a.includes("first_name")&&(i=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),a.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(a.includes("form_id")||a.includes("form_title"))&&(r=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),n&&i&&o&&r&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}jQuery((function(){window.onload=function(){var e,t;A(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",(function(){A()})),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&function e(){var t=jQuery("form.tools-setting-page-import");!0;var n=t.find(".give-progress"),i=jQuery(n).data("total_ajax"),o=jQuery(n).data("current"),r=jQuery(n).data("start"),s=jQuery(n).data("end"),l=jQuery(n).data("next"),c=jQuery(n).data("total"),d=jQuery(n).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:i,current:o,start:r,end:s,next:l,total:c,per_page:d,fields:t.serialize()},dataType:"json",success:function(t){jQuery(n).data("current",t.current),jQuery(n).find("div").width(t.percentage+"%"),1==t.next?(jQuery(n).data("start",t.start),jQuery(n).data("end",t.end),1==t.last&&jQuery(n).data("next",!1),e()):(!1,window.location=t.url)},error:function(){!1,new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}));n(705);function O(e,t){var n="",i=document.querySelector(".give-save-button");try{n=JSON.parse(t),e.value=JSON.stringify(n,void 0,2),e.style.border="none",i.removeAttribute("disabled")}catch(t){e.style.border="1px solid red",i.setAttribute("disabled","disabled")}}function P(e){null!==e&&(O(e,e.value),e.addEventListener("blur",(function(t){O(e,t.target.value)})))}window.addEventListener("DOMContentLoaded",(function(){document.querySelector(".stripe-cc-field-format-settings");var e=document.querySelectorAll('input[name="stripe_fonts"]'),t=document.getElementById("stripe_styles_base"),n=document.getElementById("stripe_styles_empty"),i=document.getElementById("stripe_styles_invalid"),o=document.getElementById("stripe_styles_complete"),r=document.getElementById("stripe_custom_fonts"),s=document.getElementById("give-payment-status"),l=(document.querySelector(".give-stripe-disconnect"),document.querySelectorAll('input[name="stripe_checkout_type"]')),c=Array.from(document.querySelectorAll(".stripe-checkout-field")),d=document.getElementById("give-stripe-connected"),u=Array.from(document.querySelectorAll('input[name="stripe_hide_icon"]')),f=document.querySelector(".stripe-icon-style"),h=Array.from(document.querySelectorAll(' input[name="stripe_mandate_acceptance_option"]')),p=document.querySelector(".stripe-mandate-acceptance-text"),m=Array.from(document.querySelectorAll('input[name="stripe_becs_hide_icon"]')),g=document.querySelector(".stripe-becs-icon-style"),v=Array.from(document.querySelectorAll(' input[name="stripe_becs_mandate_acceptance_option"]')),_=document.querySelector(".stripe-becs-mandate-acceptance-text"),b=Array.from(document.querySelectorAll(".give-stripe-account-type-manual")),y=document.querySelector(".give-stripe-account-type-connect"),w=Array.from(document.querySelectorAll('input[name="stripe_connection_type"]')),x=document.querySelector('input[name="stripe_connection_type"]:checked'),k=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn")),C=Array.from(document.querySelectorAll(".give-stripe-account-set-default")),S=Array.from(document.querySelectorAll('input[name="give_stripe_per_form_accounts"]')),T=document.querySelector(".give-stripe-per-form-default-account"),j=Array.from(document.querySelectorAll(".give-stripe-account-edit-name")),E=Array.from(document.querySelectorAll(".give-stripe-account-update-name")),M=Array.from(document.querySelectorAll(".give-stripe-account-cancel-name")),I=document.getElementById("give-stripe-account-manager-errors");function G(e){"connect"===e?(b.map((function(e){e.classList.add("give-hidden")})),y.classList.remove("give-hidden")):(b.map((function(e){e.classList.remove("give-hidden")})),y.classList.add("give-hidden"))}if(P(t),P(n),P(i),P(o),P(r),null!==M&&M.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode,i=n.querySelector(".give-stripe-account-update-name"),o=n.querySelector(".give-stripe-account-edit-name"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector('input[name="account_name"]'),s=n.querySelector(".give-stripe-account-default > a");r.textContent=a.value,t.classList.add("give-hidden"),i.classList.add("give-hidden"),a.classList.add("give-hidden"),o.classList.remove("give-hidden"),null!==s&&s.classList.remove("give-hidden")}))})),null!==j&&j.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode,i=n.querySelector(".give-stripe-account-update-name"),o=n.querySelector(".give-stripe-account-cancel-name"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector(".give-stripe-account-default > a"),s=r.textContent.trim(),l=document.createElement("input");l.type="text",l.name="account_name",l.value=s,r.textContent="",r.append(l),t.classList.add("give-hidden"),i.classList.remove("give-hidden"),o.classList.remove("give-hidden"),null!==a&&a.classList.add("give-hidden")}))})),null!==E&&E.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode.parentNode,i=n.querySelector(".give-stripe-disconnect-account-btn"),o=t.getAttribute("data-account"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector(".give-stripe-account-cancel-name"),s=n.querySelector(".give-stripe-account-default > a"),l=n.querySelector('input[name="account_name"]').value,c=new XMLHttpRequest,d=new FormData,u=e.target.previousElementSibling;d.append("action","give_stripe_update_account_name"),d.append("account_slug",o),d.append("new_account_name",l),c.open("POST",ajaxurl),c.onload=function(){var e=JSON.parse(c.response),n="";if(200===c.status&&e.success){var o=e.data.slug;n='<div class="give-notice notice inline success notice-success"><p>'.concat(e.data.message,"</p></div>"),r.innerHTML=e.data.name,t.classList.add("give-hidden"),a.classList.add("give-hidden"),t.setAttribute("data-account",o),u.classList.remove("give-hidden"),null!==i&&i.setAttribute("data-account",o),null!==s&&s.classList.remove("give-hidden")}else n='<div class="give-notice notice inline error notice-error"><p>'.concat(e.data.message,"</p></div>");I.innerHTML=n},c.send(d)}))})),null!==S&&S.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?T.classList.remove("give-hidden"):T.classList.add("give-hidden")}))})),null!==C&&C.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=new XMLHttpRequest,n=new FormData;n.append("action","give_stripe_set_account_default"),n.append("account_slug",e.target.getAttribute("data-account")),t.open("POST",ajaxurl),t.onload=function(){var n=JSON.parse(t.response);200===t.status&&n.success&&(window.location.href=e.target.getAttribute("data-url"))},t.send(n)}))})),null!==w&&null!==x&&(G(x.value),w.forEach((function(e){e.addEventListener("change",(function(e){G(e.target.value)}))}))),null!==u&&u.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?f.classList.remove("give-hidden"):f.classList.add("give-hidden")}))})),null!==h&&h.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?p.classList.remove("give-hidden"):p.classList.add("give-hidden")}))})),null!==m&&m.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?g.classList.remove("give-hidden"):g.classList.add("give-hidden")}))})),null!==v&&v.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?_.classList.remove("give-hidden"):_.classList.add("give-hidden")}))})),null!==d){var A=d.getAttribute("data-status"),O=d.getAttribute("data-redirect-url"),L=d.getAttribute("data-display"),z=d.getAttribute("data-title"),N=d.getAttribute("data-first-detail"),q=d.getAttribute("data-second-detail");"connected"===A&&"0"===L&&(new a.GiveConfirmModal({modalWrapper:"give-stripe-connected-modal give-modal--success",type:"confirm",modalContent:{title:z,desc:"<span>".concat(N,'</span><span class="give-field-description">').concat(q,"</span>")},successConfirm:function(e){window.location.href=O}}).render(),d.setAttribute("data-display","1"),history.pushState({urlPath:O},"",O))}null!==l&&l.forEach((function(e){e.addEventListener("change",(function(e){"modal"===e.target.value?c.map((function(e){return e.classList.remove("give-hidden")})):c.map((function(e){return e.classList.add("give-hidden")}))}))})),null!==k&&k.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target;new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:Give.fn.getGlobalVar("disconnect_stripe_title"),desc:t.getAttribute("data-disconnect-message")},successConfirm:function(){window.location.href="".concat(t.getAttribute("href"),"&account=").concat(t.getAttribute("data-account"))}}).render()}))})),null!==s&&s.addEventListener("change",(function(e){var t=document.getElementById("give-stripe-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-stripe-opt-refund-wrap").style.display="block":document.getElementById("give-stripe-opt-refund-wrap").style.display="none")})),null!==e&&e.forEach((function(e){var t=document.querySelector(".give-stripe-google-fonts-wrap"),n=document.querySelector(".give-stripe-custom-fonts-wrap");e.addEventListener("change",(function(e){"custom_fonts"===e.target.value?(t.style.display="none",n.style.display="table-row"):"google_fonts"===e.target.value&&(t.style.display="table-row",n.style.display="none")}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("give-payment-status"),t=document.getElementById("js-give-paypal-on-boarding-handler"),n=document.getElementById("js-give-paypal-disconnect-paypal-account"),i=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .connection-setting"),o=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .disconnection-setting"),r=document.getElementById("paypal_commerce_account_country"),s=new MutationObserver((function(e){e.forEach((function(e){e.removedNodes.forEach((function(e){if("PPMiniWin"===e.getAttribute("id")){var t=document.getElementById("give-paypal-onboarding-trouble-notice");t&&t.classList.remove("give-hidden")}}))}))}));if(e&&e.addEventListener("change",(function(e){var t=document.getElementById("give-paypal-commerce-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="block":document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="none")})),window.location.search.match(/paypal-commerce-account-connected=1/i)){var l=window.givePayPalCommerce.translations.pciComplianceInstructions.map((function(e){return"<li>".concat(e,"</li>")})).join(""),c=window.givePayPalCommerce.translations.liveWarning?'<p class="give-modal__description__warning">'.concat(window.givePayPalCommerce.translations.liveWarning,"</p>"):"";new Give.modal.GiveSuccessAlert({classes:{modalWrapper:"paypal-commerce-connect",cancelBtn:"give-button--primary"},modalContent:{title:window.givePayPalCommerce.translations.connectSuccessTitle,body:'\n\t\t\t\t\t<div class="give-modal__description">\n\t\t\t\t\t\t'.concat(c,"\n\t\t\t\t\t\t<p>").concat(window.givePayPalCommerce.translations.pciWarning,"</p>\n\t\t\t\t\t\t<ul>").concat(l,"</ul>\n\t\t\t\t\t</div>\n\t\t\t\t").trim(),cancelBtnTitle:Give.fn.getGlobalVar("confirm")},closeOnBgClick:!0}).render()}function d(){var e=document.querySelector(".paypal-message-template");e&&e.parentElement.remove()}t&&t.addEventListener("click",(function(e){e.preventDefault(),d();var n=r.value,i=function(){t.disabled=!1,e.target.innerText=t.getAttribute("data-initial-label")};(function(){t.hasAttribute("data-initial-label")||t.setAttribute("data-initial-label",t.innerText),t.disabled=!0,e.target.innerText=Give.fn.getGlobalVar("loader_translation").processing})();var o=document.getElementById("give-paypal-onboarding-trouble-notice");return o&&o.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_get_partner_url&countryCode=".concat(n)).then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector("[data-paypal-button]");t.href="".concat(e.data.partnerLink,"&displayMode=minibrowser"),t.click(),s.observe(document.querySelector("body"),{attributes:!0,childList:!0})}i()})).then((function(){fetch(ajaxurl+"?action=give_paypal_commerce_onboarding_trouble_notice").then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector(".connect-button-wrap");o&&o.remove(),t.append((n=e.data,(i=document.createElement("div")).innerHTML=n.trim(),i.firstChild))}var n,i}))})),!1})),n&&n.addEventListener("click",(function(e){return e.preventDefault(),d(),new a.GiveConfirmModal({modalContent:{title:givePayPalCommerce.translations.confirmPaypalAccountDisconnection,desc:givePayPalCommerce.translations.disconnectPayPalAccount},successConfirm:function(){i.classList.remove("give-hidden"),o.classList.add("give-hidden"),r.parentElement.parentElement.classList.remove("hide-with-position"),fetch(ajaxurl+"?action=give_paypal_commerce_disconnect_account")}}).render(),!1}))}));n(706);s.a.modal=a;var L=s.a.init,z=s.a.fn,N=s.a.cache,q=s.a.modal,F=s.a.notice;window.Give={init:L,fn:z,cache:N,modal:q,notice:F,initializeIframeResize:l.a}},12:function(e,t,n){e.exports=n(306)},16:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},19:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},23:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},25:function(e,t){function n(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var a=e.apply(t,i);function s(e){n(a,o,r,s,l,"next",e)}function l(e){n(a,o,r,s,l,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},306:function(e,t,n){var i=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof u?t:u,r=Object.create(o.prototype),a=new k(i||[]);return r._invoke=function(e,t,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return S()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=y(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function u(){}function f(){}function h(){}var p={};p[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(p=g);var v=h.prototype=u.prototype=Object.create(p);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var i;this._invoke=function(o,r){function a(){return new t((function(i,a){!function i(o,r,a,s){var l=c(e[o],e,r);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(u).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}(o,r,i,a)}))}return i=i?i.then(a,a):a()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=v.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[r]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new b(l(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},32:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0},38:function(e,t,n){"use strict";n.r(t),n.d(t,"GiveModal",(function(){return p})),n.d(t,"GiveErrorAlert",(function(){return m})),n.d(t,"GiveWarningAlert",(function(){return g})),n.d(t,"GiveNoticeAlert",(function(){return v})),n.d(t,"GiveSuccessAlert",(function(){return _})),n.d(t,"GiveConfirmModal",(function(){return b})),n.d(t,"GiveFormModal",(function(){return y}));var i=n(40),o=n.n(i),r=n(69),a=n.n(r),s=n(46),l=n.n(s),c=n(23),d=n.n(c),u=n(32),f=n.n(u);n(418),n(419);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=l()(e);if(t){var o=l()(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a()(this,n)}}var p=function(){function e(t){if(d()(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return f()(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),m=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--error",i.init(),i}return n}(p),g=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--warning",i.init(),i}return n}(p),v=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--notice",i.init(),i}return n}(p),_=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper+=" give-modal--success",i.init(),i}return n}(p),b=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="confirm",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return f()(n,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),n}(p),y=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="form",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return f()(n,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),n}(p);window.addDynamicEventListener(document,"click",".give-popup-close-button",p.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",b.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",y.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",p.__ajaxModalHandle,{})},388:function(e,t){e.exports=jQuery},40:function(e,t,n){var i=n(82);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},404:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(417),o=function(e){return new i.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var i=setTimeout((function(){o()}),400);e.setAttribute("data-contentLoaded","1");var o=function(){clearTimeout(i),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)}},417:function(e,t,n){e.exports=n(569)},418:function(e,t,n){var i,o,r;
29
  /*! Magnific Popup - v1.1.0 - 2016-02-20
30
  * http://dimsemenov.com/plugins/magnific-popup/
31
  * Copyright (c) 2016 Dmitry Semenov; */o=[n(388)],void 0===(r="function"==typeof(i=function(e){var t,n,i,o,r,a,s=function(){},l=!!window.jQuery,c=e(window),d=function(e,n){t.ev.on("mfp"+e+".mfp",n)},u=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},f=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},h=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},p=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=u("bg").on("click.mfp",(function(){t.close()})),t.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=u("container",t.wrap)),t.contentContainer=u("content"),t.st.preloader&&(t.preloader=u("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}f("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",(function(e,t,n,i){n.close_replaceWith=h(i.type)})),r+=" mfp-close-btn-in"):t.wrap.append(h())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",(function(e){27===e.keyCode&&t.close()})),c.on("resize.mfp",(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var m=t.wH=c.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(m)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var _=t.st.mainClass;return t.isIE7&&(_+=" mfp-ie7"),_&&t._addClassToMFP(_),t.updateItemHTML(),f("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(m),f("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(f("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){f("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,f("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),f("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(f("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;f("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,f("Change",n),o=n.type,t.container.prepend(t.contentContainer),f("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(h()):t.content=e:t.content="",f("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,f("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(c.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};f("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),f("MarkupParse",[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(".mfp-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return p(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){p();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=l?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var m,g,v,_=function(){v&&(g.after(v.addClass(m)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",(function(){_()}))},getInline:function(n,i){if(_(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(g||(m=o.hiddenClass,g=u(m),m="mfp-"+m),v=r.after(g).detach().removeClass(m)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var b,y=function(){b&&e(document.body).removeClass(b)},w=function(){y(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,d("Close.ajax",w),d("BeforeChange.ajax",w)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};f("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,y(),t._setFocus(),setTimeout((function(){t.wrap.addClass("mfp-ready")}),16),t.updateStatus("ready"),f("AjaxContentAdded")},error:function(){y(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k,C=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),d("Open"+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),d("Close"+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")})),d("Resize"+i,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){x&&clearInterval(x),x=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3==++n?o(10):40===n?o(50):100===n&&o(500))}),r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,f("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:C(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(r=s(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){l(),setTimeout((function(){r.remove(),e=r=null,f("ZoomAnimationEnded")}),16)}),a)}),16)}})),d("BeforeClose"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),d("Close"+i,(function(){t._allowZoom()&&(l(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-a-r};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var S=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",(function(e,t,n){t!==n&&("iframe"===t?S():"iframe"===n&&S(!0))})),d("Close.iframe",(function(){S()}))},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var T=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},j=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",d("Open"+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),d("UpdateStatus"+o,(function(e,n){n.text&&(n.text=j(n.text,t.currItem.index,t.items.length))})),d("MarkupParse"+o,(function(e,i,o,r){var a=t.items.length;o.counter=a>1?j(n.tCounter,r.index,a):""})),d("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(o.add(r))}})),d("Change"+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),d("Close"+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=T(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=T(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=T(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),f("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,f("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(d("ImageHasSize.retina",(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),d("ElementParse.retina",(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),p()})?i.apply(t,o):i)||(e.exports=r)},419:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},46:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},542:function(e,t,n){"use strict";function i(e){e.on("chosen:ready",(function(){jQuery(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')})),e.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),e.on("chosen:no_results",(function(){var e=jQuery(this).next(".chosen-container"),t=e.find("li.no-results"),n="",i=Give.fn.getGlobalVar("chosen");n=e.hasClass("give-select-chosen-ajax")&&t.length?i.ajax_search_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'):i.no_results_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'),t.html(n);jQuery(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",(function(e){var t=jQuery(this).val(),n=jQuery(this).closest(".give-select-chosen"),i=n.prev(),o=n.find('input[type="text"]'),r=(n.hasClass("variations"),e.which),a="give_form_search",s=this;if(n.prev().data("search-type")){if("no_ajax"===i.data("search-type"))return;a="give_"+i.data("search-type")+"_search"}t.length>0&&t.length<=3||!a.length||9===r||13===r||16===r||17===r||18===r||19===r||20===r||27===r||33===r||34===r||35===r||36===r||37===r||38===r||39===r||40===r||44===r||45===r||144===r||145===r||91===r||93===r||224===r||112<=r&&123>=r||(clearTimeout(Give.cache.chosenSearchTypingTimer),n.addClass("give-select-chosen-ajax"),Give.cache.chosenSearchTypingTimer=setTimeout((function(){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:a,s:t,fields:jQuery(s).closest("form").serialize()},dataType:"json",beforeSend:function(){i.closest("ul.chosen-results").empty(),o.prop("disabled",!0)},success:function(e){n.removeClass("give-select-chosen-ajax"),jQuery("option:not(:selected)",i).remove(),e.length?(jQuery.each(e,(function(e,n){jQuery('option[value="'+n.id+'"]',i).length||(0===t.length?i.append('<option value="'.concat(n.id,'">').concat(n.name,"</option>")):i.prepend('<option value="'.concat(n.id,'">').concat(n.name,"</option>")))})),n.prev("select.give-select-chosen").trigger("chosen:updated")):n.prev("select.give-select-chosen").trigger("chosen:no_results"),o.prop("disabled",!1),o.val(t).focus()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){o.prop("disabled",!1)}))}),342))})),jQuery(".give-select-chosen .chosen-search input").each((function(){var e=jQuery(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),t="";"form"===e?t=Give.fn.getGlobalVar("search_placeholder"):(e="search_placeholder_"+e,Give.fn.getGlobalVar(e)&&(t=Give.fn.getGlobalVar(e))),jQuery(this).attr("placeholder",t)}))}))}n.d(t,"a",(function(){return i}))},55:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},567:function(e,t,n){(function(t){e.exports=t.accounting=n(568)}).call(this,n(55))},568:function(e,t,n){
1
+ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=694)}({100: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(12),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.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");if(void 0===i&&(i=e.find("option:selected").data("price-id")),"custom"===i)return t.find(".give-amount-top").val("").focus(),!1;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},1009:function(e,t,n){"use strict";n.r(t);n(696),n(567),n(697),n(698),n(699);var i,o=n(19),r=n.n(o);(i=jQuery).extend({giveAjaxifyFields:function(e){var t,n,o=i.extend({},{type:"",parentWrapper:"form",countryFieldName:"country",stateFieldName:"state",stateFieldWrapper:".give-field-wrap",chosenState:!0},e||{});switch(o.type){case"country_state":if(t=i('select[name="'+o.countryFieldName+'"]'),n=t.closest(o.parentWrapper),!t.length||"Country_state"===t.data("give-ajaxify-field"))return;t.data("give-ajaxify-field","country_state"),t.change((function(){var e=i(this),t=e.closest(o.parentWrapper).find('[name="'+o.stateFieldName+'"]'),a=t.closest(o.stateFieldWrapper),s=i("label",a);o.stateFieldWrapper||(s=i('label[for="'+o.stateFieldName+'"]',n),a=t.parent());var l={action:"give_get_states",country:e.val(),field_name:o.stateFieldName};i.post(ajaxurl,l,(function(e){e.show_field?(s.length&&s.text(e.states_label),o.chosenState&&t.chosen("destroy"),o.stateFieldWrapper?a.removeClass("give-hidden"):t.removeClass("give-hidden"),void 0!==r()(e.states_found)&&!0===e.states_found?(t.replaceWith(e.data),t=i('[name="'+o.stateFieldName+'"]',a),o.chosenState&&t.chosen()):(t.replaceWith('<input type="text" name="'+o.stateFieldName+'" value="'+e.default_state+'" class="medium-text"/>'),t=i('[name="'+o.stateFieldName+'"]',a))):o.stateFieldWrapper?a.addClass("give-hidden"):t.addClass("give-hidden")}))}))}return this}});n(700);var a=n(38);!function(e){e.fn.repeatable_fields=function(t){var n={wrapper:".wrapper",container:".container",row:".row",add:".add",remove:".remove",confirm_before_remove_row:!1,confirm_before_remove_row_text:"",move:".move",template:".template",is_sortable:!0,before_add:null,after_add:r,before_remove:null,after_remove:null,sortable_options:null,row_count_placeholder:"{{row-count-placeholder}}"},i=e.extend({},n,t);function o(e,t){var n=e.parents(i.row).first();"function"==typeof i.before_remove&&i.before_remove(t,n),n.remove(),"function"==typeof i.after_remove&&i.after_remove(t)}function r(t,n){var o=e(t).attr("data-rf-row-count");o++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace(i.row_count_placeholder,o-1)}))})),e(t).attr("data-rf-row-count",o)}!function t(n){e(i.wrapper,n).each((function(n,s){var l=e(this).children(i.container);e(l).children(i.template).hide().find(":input").each((function(){e(this).prop("disabled",!0)}));var c=e(l).children(i.row).filter((function(){return!e(this).hasClass(i.template.replace(".",""))})).length;if(e(l).attr("data-rf-row-count",c),e(this).on("click",i.add,(function(n){n.stopImmediatePropagation();var o=e(e(l).children(i.template).clone().removeClass(i.template.replace(".",""))[0].outerHTML);e(o).find(":input").each((function(){e(this).prop("disabled",!1)})),"function"==typeof i.before_add&&i.before_add(l);var a=e(o).show().appendTo(l);"function"==typeof i.after_add&&i.after_add(l,a,r),t(a)})),e(this).on("click",i.remove,(function(t){t.stopImmediatePropagation();var n=e(this);return i.confirm_before_remove_row&&i.confirm_before_remove_row_text||o(n,l),new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:i.confirm_before_remove_row_text},successConfirm:function(){o(n,l)}}).render(),!1})),!0===i.is_sortable&&void 0!==e.ui&&void 0!==e.ui.sortable){var d=null!==i.sortable_options?i.sortable_options:{};d.handle=i.move,e(this).find(i.container).sortable(d)}}))}(this)}}(jQuery);n(572),n(701);var s=n(100),l=n(404);n(702),n(703);
2
  /*!
3
  * Give Admin Forms JS
4
  *
9
  * @copyright: Copyright (c) 2016, GiveWP
10
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
11
  */
12
+ jQuery(document).ready((function(e){var t=jQuery("ul.give-payment-gatways-list");t.length&&t.sortable();e("body").on("change","#give-mainform #currency",(function(){var t=e("#give-mainform #currency option:selected").val(),n=JSON.parse(e(this).attr("data-formatting-setting")),i=afterText={},o=n[t],r=e("#thousands_separator","#give-mainform"),a=e("#decimal_separator","#give-mainform"),s=e("#number_decimals","#give-mainform");i=e("#give-mainform #currency_position").data("before-template").replace("{currency_pos}",o.symbol),e('#give-mainform #currency_position option[value="before"]').text(i),afterText=e("#give-mainform #currency_position").data("after-template").replace("{currency_pos}",o.symbol),e('#give-mainform #currency_position option[value="after"]').text(afterText),r.val(o.setting.thousands_separator).trigger("blur"),a.val(o.setting.decimal_separator).trigger("blur"),s.val(o.setting.number_decimals).trigger("blur")})),"disabled"!==e('input[name="name_title_prefix"]:checked').val()&&e(".give-title-prefixes-settings-wrap").show(),e('input[name="name_title_prefix"]').on("change",(function(){"disabled"!==e(this).val()?e(".give-title-prefixes-settings-wrap").show():e(".give-title-prefixes-settings-wrap").hide()})),e("a.give-repeat-setting-field").on("click",(function(t){t.preventDefault();var n=e(this).parents("td"),i=e("p:first-child",n).clone(),o=e("p",n).not(".give-field-description").length,r=e(this).data("id")+"_"+ ++o,a=e(this).prev();return e("input",a).val()&&(e(this).before(i),a=e(this).prev(),e("input",a).attr("id",r),e("input",a).val("")),!1})),e(".give-settings-page").on("click","span.give-remove-setting-field",(function(t){e(this).parents("p").remove()})),e(".give-email-notification-status","table.giveemailnotifications").on("click",(function(){var t=e(this),n=e("i",t),i=e(this).next(),o=e(this).hasClass("give-email-notification-enabled")?"disabled":"enabled",r=e(this).data("id");if(!parseInt(t.data("edit")))return function(t){e("div.give-email-notification-status-notice").remove(),e(".wp-heading-inline").after('<div class="updated error give-email-notification-status-notice"><p>'.concat(t.data("notice"),"</p></div>"));var n=e("div.give-email-notification-status-notice");n.length&&e("html, body").animate({scrollTop:n.position().top},"slow")}(t),!1;e.ajax({url:ajaxurl,method:"POST",data:{action:"give_set_notification_status",status:o,notification_id:r},beforeSend:function(){t.hide(),i.addClass("is-active")},success:function(e){e.success&&(t.removeClass("give-email-notification-"+t.data("status")),t.addClass("give-email-notification-"+o),t.data("status",o),"enabled"===o?(n.removeClass("dashicons-no-alt"),n.addClass("dashicons-yes")):(n.removeClass("dashicons-yes"),n.addClass("dashicons-no-alt")),i.removeClass("is-active"),t.show())}})})),e("#give-clear-cache").on("click",(function(){e.ajax({url:ajaxurl,type:"GET",data:{action:"give_cache_flush"}}).done((function(e){e.success?new Give.modal.GiveSuccessAlert({modalContent:{title:Give.fn.getGlobalVar("flush_success"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render():new Give.modal.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("flush_error"),desc:e.data.message,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}))}));var n=Give.fn.getGlobalVar("decimal_separator"),i=Give.fn.getGlobalVar("thousands_separator"),o=/\(([^)]+)\)/,r={position:Give.fn.getGlobalVar("currency_pos"),symbol:Give.fn.getGlobalVar("currency_sign"),precision:Give.fn.getGlobalVar("number_decimals"),decimal:Give.fn.getGlobalVar("decimal_separator"),thousand:Give.fn.getGlobalVar("thousands_separator")};e("#number_decimals, #decimal_separator, #thousands_separator, #currency_position, #currency").on("input blur change",(function(t){var a=e("#currency_preview"),s=e("#decimal_separator"),l=e("#thousands_separator"),c=t.target.name,d=t.target.value;if("number_decimals"!==c||"input"!==t.type&&"blur"!==t.type||(d&&!isNaN(d)||"blur"!==t.type||(t.target.value=Give.fn.getGlobalVar("number_decimals")),r.precision=isNaN(parseInt(d))?Give.fn.getGlobalVar("number_decimals"):parseInt(d)),"decimal_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=n),r.decimal=d,r.hasOwnProperty("thousand")&&"input"===t.type?r.decimal===r.thousand&&(r.thousand=n,l.val(n),n=d,i=l.val()):r.decimal===Give.fn.getGlobalVar("thousands_separator")&&"input"===t.type&&(r.thousand=n,l.val(n),n=d,i=l.val())),"thousands_separator"!==c||"input"!==t.type&&"blur"!==t.type||(d||"blur"!==t.type||(t.target.value=i),r.thousand=d,r.hasOwnProperty("decimal")&&"input"===t.type?r.decimal===r.thousand&&(r.decimal=i,s.val(i),i=d,n=s.val()):r.thousand===Give.fn.getGlobalVar("decimal_separator")&&"input"===t.type&&(r.decimal=i,s.val(i),i=d,n=s.val())),"currency_position"===c&&"change"===t.type&&(r.position=d),"currency"===c&&"change"===t.type){r.currency=d;var u=o.exec(t.target[t.target.selectedIndex].text);r.symbol=u[1]}a.val(Give.fn.formatCurrency("123456.12345",r,{}))}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".give-settings-section-content");if(null!==e){var t=e.querySelector(".give-settings-section-group-menu");if(null!==t){var n=Array.prototype.slice.call(e.querySelectorAll(".give-settings-section-group")),i=Array.from(t.querySelectorAll("ul li a")).concat(Array.from(e.querySelectorAll("ul.give-subsubsub li a")));null!==i&&i.forEach((function(t){t.addEventListener("click",(function(t){var o,r;if(t.target.hasAttribute("data-subgroup")){var a=t.target.parentElement.parentElement,s=a.parentElement;o=t.target.getAttribute("data-subgroup"),r=e.querySelector("#give-settings-section-subgroup-".concat(o)),a.querySelectorAll("a").forEach((function(e){e.classList.remove("current")})),s.querySelectorAll(".give-settings-section-subgroup ").forEach((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("current")}else o=t.target.getAttribute("data-group"),r=e.querySelector("#give-settings-section-group-".concat(o)),i.forEach((function(e){e.classList.remove("active")})),n.map((function(e){return e.classList.add("give-hidden")})),t.target.classList.add("active");return r.classList.remove("give-hidden"),history.pushState({urlPath:t.target.getAttribute("href")},"",t.target.getAttribute("href")),t.preventDefault(),!1}))}))}}}));n(704);var c=n(23),d=n.n(c),u=n(32),f=n.n(u),h=n(16),p=n.n(h),m=n(40),g=n.n(m),v=n(69),_=n.n(v),b=n(46),y=n.n(b),w=function(){function e(t){d()(this,e),this.root=t,this.buttonText=this.root.textContent.trim(),this.iconPosition="before",this._buttonTextWithWrapper=this.root.querySelector(".give-button-text")?'<span class="give-button-text">'.concat(this.buttonText,"</span>"):this.buttonText;var n=this.root.querySelector(".dashicons");n&&(this.iconClassName=n.className)}return f()(e,[{key:"enable",value:function(){this.root.disabled=!1}},{key:"disable",value:function(){this.root.disabled=!0}},{key:"setBusyState",value:function(){this.root.innerHTML="".concat('<span class="dashicons dashicons-marker"></span>'," ").concat(this._buttonTextWithWrapper),this.disable()}},{key:"removeBusyState",value:function(){this.enable(),this.iconClassName&&this.updateIcon(this.iconClassName)}},{key:"updateIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"before",n='<span class="'.concat(e,'"></span>');this.root.innerHTML="after"===t?"".concat(this._buttonTextWithWrapper," ").concat(n):"".concat(n," ").concat(this._buttonTextWithWrapper),this.iconClassName=e,this.iconPosition=t}},{key:"updateButtonText",value:function(e){this.buttonText=e,this.iconClassName?this.updateIcon(this.iconClassName,this.iconPosition):this.root.textContent=e}}]),e}(),x=n(674),k=n.n(x);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _()(this,n)}}var S=function(e){g()(n,e);var t=C(n);function n(e){var i;return d()(this,n),(i=t.call(this,e)).shortcode=i.root.dataset.giveShortcode,i.clipboard=new k.a(i.root,{text:function(e){return e.dataset.giveShortcode}}),i.reset=i.reset.bind(p()(i)),i}return f()(n,[{key:"init",value:function(){this.registerEventHandlers()}},{key:"registerEventHandlers",value:function(){var e=this;this.clipboard.on("success",(function(){return e.handleSuccessClick()})),this.clipboard.on("error",(function(){return e.handleErrorClick()}))}},{key:"handleSuccessClick",value:function(e){this.updateIcon("dashicons dashicons-yes"),this.root.setAttribute("aria-label",give_vars.copied),this.root.addEventListener("mouseout",this.reset)}},{key:"handleErrorClick",value:function(e){this.updateIcon("dashicons dashicons-warning"),this.root.setAttribute("aria-label","Shortcode could not be copied.")}},{key:"reset",value:function(e){this.updateIcon("dashicons dashicons-admin-page"),this.root.setAttribute("aria-label",this.shortcode),this.root.removeEventListener("mouseout",this.reset)}}]),n}(w),T=n(542);function j(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}
13
  /**
14
  * Give Admin JS
15
  *
25
  * @subpackage: Assets/JS
26
  * @copyright: Copyright (c) 2016, GiveWP
27
  * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License
28
+ */();s=s.filter((function(e){var t=-1!==parseInt(e.attr("href").indexOf("&tab="+r.tab));return t&&(n=e),!t})),n.length&&(s.unshift(a.pop()),a.push(n))}new Promise((function(e,t){a.length&&jQuery.each(a,(function(e,t){(t=jQuery(t)).hasClass("give-hidden")&&t.removeClass("give-hidden")})),e(!0)})).then((function(e){s.length?(o.html(""),jQuery.each(s,(function(e,t){(t=jQuery(t)).hasClass("nav-tab-active")||t.addClass("give-hidden"),t.clone().removeClass().appendTo(o)})),jQuery(".give-sub-nav-tab-wrapper",t).length||t.append(i),i.show()):i.hide()}))}))}!function(e){var t=function(t,n){var i=(n=jQuery.extend({wrapper:!0,show:!1},n)).wrapper?e(".give-spinner-wrapper",t):{},o=e(".give-spinner",t);if(n.show)return i.length&&i.addClass("is-active"),void o.addClass("is-active");i.length&&i.removeClass("is-active"),o.removeClass("is-active")},n=function(e){var t=document.location.href,n=t.split("?");e=void 0===e?"":e.replace("give-","");if(n.length>=2){for(var i=n.shift(),o=n.join("?"),r=encodeURIComponent("give-message")+"=",a=o.split(/[&;]/g),s=a.length;s-- >0;)(-1!==a[s].lastIndexOf(r,0)||""!==e&&-1!==a[s].lastIndexOf("give-messages",0)&&a[s].match(e+"$"))&&a.splice(s,1);t=i+"?"+a.join("&"),window.history.pushState("",document.title,t)}return t};function i(e,t){return e=accounting.unformat(e,Give.fn.getGlobalVar("decimal_separator")).toString(),e=!1!==(t="undefined"!==t&&t)?parseFloat(e).toFixed(t):parseFloat(e).toFixed(Give.fn.getGlobalVar("currency_decimals"))}var o={init:function(){this.deleteSingleDonation(),this.resendSingleDonationReceipt()},deleteSingleDonation:function(){new a.GiveConfirmModal({triggerSelector:".delete-single-donation",modalWrapper:"give-modal--warning",modalContent:{title:Give.fn.getGlobalVar("confirm_delete_donation"),desc:Give.fn.getGlobalVar("delete_payment")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})},resendSingleDonationReceipt:function(){new a.GiveConfirmModal({triggerSelector:".resend-single-donation-receipt",modalContent:{title:Give.fn.getGlobalVar("confirm_resend"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(e){window.location.assign(e.el.attr("href"))}})}},s={init:function(){this.edit_address(),this.add_note(),this.remove_note(),this.new_donor(),this.resend_receipt(),this.variable_price_list()},edit_address:function(){e('select[name="give-payment-address[0][country]"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"give-payment-address[0][state]"};return e.post(ajaxurl,n,(function(n){t.closest(".column-container").find("#give-order-address-state-wrap").removeClass("give-hidden"),t.closest(".column-container").find(".give-column").removeClass("column-full"),t.closest(".column-container").find(".give-column").addClass("column");var i=e("#give-order-address-state-wrap");i.find("*").not(".order-data-address-line").remove(),void 0!==r()(n.states_found)&&!0===n.states_found?(i.append(n.data),i.find("select").chosen()):(i.append('<input type="text" name="give-payment-address[0][state]" value="'+n.default_state+'" class="give-edit-toggles medium-text"/>'),void 0!==r()(n.show_field)&&!1===n.show_field&&(t.closest(".column-container").find("#give-order-address-state-wrap").addClass("give-hidden"),t.closest(".column-container").find(".give-column").addClass("column-full"),t.closest(".column-container").find(".give-column").removeClass("column")))})),!1}))},add_note:function(){e("#give-add-payment-note").on("click",(function(t){function n(){e.ajax({type:"POST",data:a,url:ajaxurl,beforeSend:function(){o.prop("disabled",!0),i.prop("disabled",!0)},success:function(t){e("#give-payment-notes-inner").append(t),e(".give-no-payment-notes").hide(),e("#give-payment-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).always((function(){o.prop("disabled",!1),i.prop("disabled",!1)}))}t.preventDefault();var i=e(this),o=e("#give-payment-note"),r=e("#donation_note_type"),a={action:"give_insert_payment_note",payment_id:e(this).data("payment-id"),note:o.val(),type:r.val()};if(a.note)"donor"===a.type&&give_vars.email_notification.donor_note.status?new Give.modal.GiveConfirmModal({successConfirm:function(){n()},modalContent:{desc:give_vars.donor_note_confirm_msg}}).render():n();else{var s=o.css("border-color");o.css("border-color","red"),setTimeout((function(){o.css("border-color",s)}),500)}}))},remove_note:function(){e("body").on("click",".give-delete-payment-note",(function(t){t.preventDefault();var n=this;new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_deletion"),desc:Give.fn.getGlobalVar("delete_payment_note")},successConfirm:function(t){var i={action:"give_delete_payment_note",payment_id:e(n).data("payment-id"),note_id:e(n).data("note-id")};e.ajax({type:"POST",data:i,url:ajaxurl,success:function(t){return e("#give-payment-note-"+i.note_id).remove(),e(".give-payment-note").length||e(".give-no-payment-notes").show(),!1}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}}).render()}))},new_donor:function(){e("#give-donor-details").on("click",".give-payment-new-donor, .give-payment-new-donor-cancel",(function(t){t.preventDefault(),e(".donor-info").toggle(),e(".new-donor").toggle(),e(".new-donor").is(":visible")?e("#give-new-donor").val(1):e("#give-new-donor").val(0)}))},resend_receipt:function(){e("body").on("click","#give-resend-receipt",(function(t){var n=this;t.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("resend_receipt")},successConfirm:function(){window.location.assign(e(n).attr("href"))}}).render()}))},variable_price_list:function(){e("#give_payment_form_select").chosen().change((function(){var t,n=e(".give-donation-level");return!!(t=e(this).val())&&(!!n.length&&void e.ajax({type:"POST",url:ajaxurl,data:{form_id:t,payment_id:e('input[name="give_payment_id"]').val(),action:"give_check_for_form_price_variations_html"},success:function(t){(t=t.trim())?(n.html(t),e('select[name="give-variable-price"]').chosen().change()):n.html("")}}))})),e("#give-donation-overview").on("change",'select[name="give-variable-price"]',(function(){var t=jQuery(this).data("prices"),n=e("#give-payment-total");""!==t&&e(this).val()in t&&(n.val(t[e(this).val()]).css("background-color","yellow"),window.setTimeout((function(){n.css("background-color","white")}),1e3))}))}},l={init:function(){this.toggle_gateways(),this.setting_change_country(),this.toggle_options(),this.main_setting_update_notice(),this.verify_settings(),this.saveButtonTriggered(),this.changeAlert(),this.detectSettingsChange(),this.sequentialDonationIDPreview()},toggle_gateways:function(){e(".gateways-checkbox").on("click",(function(){var t=e(this).prev(".gateways-radio"),n=(this.checked,e(".gateways-checkbox:checked"));1===n.length?(n.prev(".gateways-radio").attr("checked","checked"),this.checked?t.removeAttr("disabled"):t.attr("disabled","disabled")):this.checked?(t.removeAttr("disabled"),t.removeAttr("checked")):t.attr("disabled","disabled")}))},setting_change_country:function(){e('select[name="base_country"]').change((function(){var t=e(this),n={action:"give_get_states",country:t.val(),field_name:"base_state"};return e.post(ajaxurl,n,(function(i){t.closest("tr").next().show(),e("#base_state_chosen").remove(),void 0!==r()(i.states_found)&&1==i.states_found?(e(':input[name="base_state"]').replaceWith(i.data).addClass("give-select-chosen"),e(':input[name="base_state"]').chosen()):(void 0!==r()(i.show_field)&&0==i.show_field&&t.closest("tr").next().hide(),e(':input[name="base_state"]').replaceWith('<input type="text" name="'+n.field_name+'" value="'+i.default_state+'" class="give-edit-toggles medium-text"/>'))})),!1}))},toggle_options:function(){e('input[name="email_access"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t?(e('input[name="enable_recaptcha"]').parents("tr").show(),"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide(),e('input[name="enable_recaptcha"]').parents("tr").hide())})).change(),e('input[name="enable_recaptcha"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="email_access"]:checked',".give-setting-tab-body-general").val(),n=e('input[name="enable_recaptcha"]:checked',".give-setting-tab-body-general").val();"enabled"===t&&"enabled"===n?(e("#recaptcha_key").parents("tr").show(),e("#recaptcha_secret").parents("tr").show()):(e("#recaptcha_key").parents("tr").hide(),e("#recaptcha_secret").parents("tr").hide())})).change(),e('input[name="form_featured_img"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="form_featured_img"]:checked',".give-setting-tab-body-display").val()?e("#featured_image_size").parents("tr").show():e("#featured_image_size").parents("tr").hide()})).change(),e('input[name="terms"]',".give-setting-tab-body-display").on("change",(function(){"enabled"===e('input[name="terms"]:checked',".give-setting-tab-body-display").val()?(e("#agree_to_terms_label").parents("tr").show(),e("#wp-agreement_text-wrap").parents("tr").show()):(e("#agree_to_terms_label").parents("tr").hide(),e("#wp-agreement_text-wrap").parents("tr").hide())})).change(),e('input[name="admin_notices"]',".give-setting-tab-body-emails").on("change",(function(){"enabled"===e('input[name="admin_notices"]:checked',".give-setting-tab-body-emails").val()?(e("#donation_notification_subject").parents("tr").show(),e("#wp-donation_notification-wrap").parents("tr").show(),e("#admin_notice_emails").parents("tr").show()):(e("#donation_notification_subject").parents("tr").hide(),e("#wp-donation_notification-wrap").parents("tr").hide(),e("#admin_notice_emails").parents("tr").hide())})).change(),e('input[name="sequential-ordering_status"]',".give-setting-tab-body-general").on("change",(function(){var t=e('input[name="sequential-ordering_status"]:checked',".give-setting-tab-body-general").val(),n=e(this).closest("table");"enabled"===t?e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").show():e("input",n).not('input[name="sequential-ordering_status"]').parents("tr").hide()})).change()},main_setting_update_notice:function(){var t=e("#setting-error-give-setting-updated");t.length&&window.setTimeout((function(){t.slideUp()}),5e3)},verify_settings:function(){var t=e("#success_page"),n=e("#failure_page");t.add(n).change((function(){if(t.val()===n.val()){var i='<div id="setting-error-give-matched-success-failure-page" class="updated settings-error notice is-dismissible"> <p><strong>'+Give.fn.getGlobalVar("matched_success_failure_page")+'</strong></p> <button type="button" class="notice-dismiss"><span class="screen-reader-text">'+Give.fn.getGlobalVar("dismiss_notice_text")+"</span></button> </div>",o=e("#setting-error-give-matched-success-failure-page");if(e(this).val(""),o.length)return!1;e("h1","#give-mainform").after(i),o=e("#setting-error-give-matched-success-failure-page"),e(".notice-dismiss",o).click((function(){o.remove()}))}})).change()},saveButtonTriggered:function(){e(".give-settings-setting-page").on("click",".give-save-button",(function(){e(window).unbind("beforeunload")}))},changeAlert:function(){e(window).bind("beforeunload",(function(e){var t=Give.fn.getGlobalVar("setting_not_save_message");if(M)return(e||window.event).returnValue=t,t}))},detectSettingsChange:function(){var t=e(".give-settings-setting-page");if(t.length>0){var n=e("#give-mainform").serialize();t.on("change keyup blur","form",(function(t){if(!e(t.target).closest(".js-fields-has-custom-saving-logic").length){var i=e("#give-mainform").serialize();M=n!==i}}))}},sequentialDonationIDPreview:function(){var t=jQuery("#sequential-ordering_preview");t.length&&(jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number, #sequential-ordering_number_padding, #sequential-ordering_number_suffix").on("keyup change",(function(){var e=jQuery("#sequential-ordering_number_prefix").val(),n=jQuery("#sequential-ordering_number").val().trim()||"1",i=jQuery("#sequential-ordering_number_padding").val().trim(),o=jQuery("#sequential-ordering_number_suffix").val(),r="".concat(e).concat(n.padStart(i,"0")).concat(o);t.val(r)})),jQuery("#sequential-ordering_number_prefix").trigger("keyup"),jQuery("#sequential-ordering_number_prefix, #sequential-ordering_number_suffix").on("blur",(function(){e(this).val(e(this).val().replace(new RegExp(" ","g"),"-"))})))}},c={init:function(){this.date_options(),this.donors_export(),this.recount_stats()},date_options:function(){e("#give-graphs-date-options").change((function(){"other"===e(this).val()?e("#give-date-range-options").show():e("#give-date-range-options").hide()}))},donors_export:function(){e("#give_donor_export_form").change((function(){var t=e(this),n=e("option:selected",t).val(),i=e("#give_customer_export_option");"0"===t.val()?i.show():i.hide();var o=e(".give_price_options_select");if(0!=parseInt(n)){var r={action:"give_check_for_form_price_variations",form_id:n,all_prices:!0};e.post(ajaxurl,r,(function(t){o.remove(),e("#give_donor_export_form_chosen").after(t)}))}else o.remove()}))},recount_stats:function(){e("body").on("change","#recount-stats-type",(function(){var t=e("#give-tools-recount-form"),n=e("option:selected",this).data("type"),i=e("#recount-stats-submit"),o=e(".tools-form-dropdown"),r=e(".tools-date-dropdown-delete-donations");if(t.find(".notice-wrap").remove(),i.removeClass("button-disabled").attr("disabled",!1),o.hide(),r.hide(),e(".give-recount-stats-descriptions span").hide(),"reset-stats"===n)t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("reset_stats_warn")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled");else if("delete-test-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_test_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-import-donors"===n){t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_import_donor")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else if("delete-donations"===n){r.show(),t.append('<div class="notice-wrap"></div>'),t.find(".notice-wrap").html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+Give.fn.getGlobalVar("delete_donations_only")+"</label></p></div>"),i.addClass("button-disabled").attr("disabled","disabled")}else o.hide(),o.val(0);var a=e(".tools-form-dropdown-"+n);a.show(),a.find(".give-select-chosen").css({width:"auto","min-width":"250px"}),e("#"+n).show()})),e("body").on("change","#confirm-reset",(function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")})),e("#give-tools-recount-form").submit((function(t){var n=e("#recount-stats-type").val(),i=e(this),o=e("option:selected",this).data("type");if("reset-stats"===o){if(e("#confirm-reset").is(":checked"))return!0;a=!0}i.find(".notice-wrap").remove(),i.append('<div class="notice-wrap"></div>');var r=i.find(".notice-wrap"),a=!1;(null!==n&&0!==n||(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_class")+"</p></div>"),a=!0),"recount-form"===o)&&(0==e('select[name="form_id"]').val()&&(r.html('<div class="updated error"><p>'+Give.fn.getGlobalVar("batch_export_no_reqs")+"</p></div>"),a=!0));if(a)return i.find(".button-disabled").removeClass("button-disabled"),!1}))}},d={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".give-export-form",(function(n){n.preventDefault();var i=e(this).find('input[type="submit"]');if(!i.hasClass("button-disabled")){var o=e(this).serialize();i.addClass("button-disabled"),e("form.give-export-form select").attr("disabled",!0).trigger("chosen:updated");var r=e(this);e(this).find(".add-notices").length>0&&(r=e(this).find(".add-notices")),r.find(".notice-wrap").remove(),r.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.process_step(1,o,t,this)}}))},process_step:function(t,n,i,o,r){M=!0;var a=!1;e.ajax({type:"POST",url:ajaxurl,data:{form:n,action:"give_do_ajax_export",step:t,file_name:r},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){M=!1,a=!0;var r=e(o).parent().find(".notice-wrap");r.find(".give-progress");if(e(o).find(".button-disabled").removeClass("button-disabled"),e(o).find("select").attr("disabled",!1).trigger("chosen:updated"),t.error){var s=t.message;r.html('<div class="updated error"><p>'+s+"</p></div>")}else if(t.success){var l=t.message;r.html('<div id="give-batch-success" class="updated notice is-dismissible"><p>'+l+'<span class="notice-dismiss"></span></p></div>')}else r.remove(),window.location=t.url}else e(".give-progress div").animate({width:t.percentage+"%"},50,(function(){})),i.process_step(parseInt(t.step),n,i,o,t.file_name);!0===a&&e("#give-tools-recount-form").length>0&&(e("#give-tools-recount-form")[0].reset(),e("#give-tools-recount-form .tools-form-dropdown").hide(),e("#give-tools-recount-form .tools-date-dropdown").hide(),e("#give-tools-recount-form .tools-form-dropdown-recount-form-select").val("0").trigger("chosen:updated"))}}).fail((function(t){M=!1,window.console&&window.console.log&&console.log(t),e(".notice-wrap").append(t.responseText)}))},dismiss_message:function(){e("body").on("click","#give-batch-success .notice-dismiss",(function(){e("#give-batch-success").parent().slideUp("fast")}))}},u={el:{},init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;t.el.main_container=Give_Selector_Cache.get("#give-db-updates"),t.el.update_link=Give_Selector_Cache.get(".give-update-now",t.el.main_container),t.el.run_upload_container=Give_Selector_Cache.get(".give-run-database-update",t.el.progress_main_container),t.el.progress_main_container=Give_Selector_Cache.get(".progress-container",t.el.main_container),t.el.heading=Give_Selector_Cache.get(".update-message",t.el.progress_main_container),t.el.progress_container=Give_Selector_Cache.get(".progress-content",t.el.progress_main_container),t.el.update_progress_counter=Give_Selector_Cache.get(e(".give-update-progress-count")),t.el.main_container.data("resume-update")&&(t.el.update_link.addClass("active").hide().removeClass("give-hidden"),e("#give-restart-upgrades").length||(Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3),window.setTimeout(u.get_db_updates_info,1e3,t))),t.el.update_link.hasClass("active")||(t.el.update_link.on("click","",(function(e){e.preventDefault(),t.el.run_upload_container.find(".notice").remove(),t.el.run_upload_container.append('<div class="notice notice-error non-dismissible give-run-update-containt"><p> <a href="#" class="give-run-update-button button">'+Give.fn.getGlobalVar("db_update_confirmation_msg_button")+"</a> "+Give.fn.getGlobalVar("db_update_confirmation_msg")+"</p></div>")})),e("#give-db-updates").on("click","a.give-run-update-button",(function(n){return n.preventDefault(),e(this).hasClass("active")||(e(this).addClass("active").fadeOut(),t.el.update_link.addClass("active").fadeOut(),e("#give-db-updates .give-run-update-containt").slideUp(),t.el.progress_container.find(".notice-wrap").remove(),t.el.progress_container.append('<div class="notice-wrap give-clearfix"><span class="spinner is-active"></span><div class="give-progress"><div></div></div></div>'),t.el.progress_main_container.removeClass("give-hidden"),u.start_db_update(),window.setTimeout(u.get_db_updates_info,500,t)),!1})))},start_db_update:function(){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_run_db_updates",run_db_update:1,nonce:Give.fn.getGlobalVar("db_update_nonce")},dataType:"json",success:function(e){}}).always((function(){Give.fn.getGlobalVar("ajax").length||window.setTimeout(u.start_db_update,1e3)}))},get_db_updates_info:function(t){e.ajax({type:"POST",url:ajaxurl,data:{action:"give_db_updates_info"},dataType:"json",success:function(n){var i=Give_Selector_Cache.get(".notice-wrap",t.el.progress_container,!0);-1!==e.inArray("success",Object.keys(n))?n.success?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text("100%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-success is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),n.data.message?(t.el.update_link.closest("p").remove(),i.html('<div class="notice notice-error is-dismissible"><p>'+n.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3)):n&&-1!==e.inArray("percentage",Object.keys(n.data))?(t.el.update_progress_counter.length&&t.el.update_progress_counter.text(n.data.total_percentage+"%"),-1!==e.inArray("heading",Object.keys(n.data))&&t.el.heading.html("<strong>"+n.data.heading+"</strong>"),e(".give-progress div","#give-db-updates").animate({width:n.data.percentage+"%"},50,(function(){})),window.setTimeout(u.get_db_updates_info,1e3,t)):(i.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){t.el.update_link.removeClass("active").show(),t.el.progress_main_container.addClass("give-hidden")}),1e3))}})},process_step:function(t,n,i){M=!0,e.ajax({type:"POST",url:ajaxurl,data:{action:"give_do_ajax_updates",step:parseInt(t),update:parseInt(n)},dataType:"json",success:function(t){M=!1;var n=Give_Selector_Cache.get(".notice-wrap",i.el.progress_container,!0);-1!==e.inArray("success",Object.keys(t))?t.success?(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),i.el.update_link.closest("p").remove(),n.html('<div class="notice notice-success is-dismissible"><p>'+t.data.message+'</p><button type="button" class="notice-dismiss"></button></div>')):(-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading+"</strong>"),n.html('<div class="notice notice-error"><p>'+t.data.message+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3)):t&&-1!==e.inArray("percentage",Object.keys(t.data))?(e(".give-progress div","#give-db-updates").animate({width:t.data.percentage+"%"},50,(function(){})),-1!==e.inArray("heading",Object.keys(t.data))&&i.el.heading.html("<strong>"+t.data.heading.replace("{update_count}",i.el.heading.data("update-count"))+"</strong>"),i.process_step(parseInt(t.data.step),t.data.update,i)):(n.html('<div class="notice notice-error"><p>'+Give.fn.getGlobal().updates.ajax_error+"</p></div>"),setTimeout((function(){i.el.update_link.removeClass("active").show(),i.el.progress_main_container.addClass("give-hidden")}),5e3))}}).fail((function(e){M=!1,window.console&&window.console.log&&console.log(e),Give_Selector_Cache.get(".notice-wrap",self.el.progress_container).append(e.responseText)})).always((function(){}))},dismiss_message:function(){e("body").on("click","#poststuff .notice-dismiss",(function(){e(this).parent().slideUp("fast")}))}},f={init:function(){this.restartUpgrade(),this.stopUpgrade(),this.restartUpdater()},restartUpgrade:function(){jQuery("#give-restart-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").show(),jQuery(".give-update-paused-text-p").hide(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},stopUpgrade:function(){jQuery("#give-pause-upgrades").click("click",(function(e){var t=this;e.preventDefault(),jQuery(".give-doing-update-text-p").hide(),jQuery(".give-update-paused-text-p").show(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("stop_upgrade")},successConfirm:function(){window.location.assign(jQuery(t).data("redirect-url"))}}).render()}))},restartUpdater:function(){jQuery(".give-restart-updater-btn,.give-run-update-now").click("click",(function(e){var t=this;e.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_action"),desc:Give.fn.getGlobalVar("restart_update")},successConfirm:function(){window.location.assign(jQuery(t).attr("href"))}}).render()}))}},h={onLoadPageNumber:"",init:function(){this.loadGravatar(),this.unlockDonorFields(),this.editDonor(),this.add_email(),this.removeUser(),this.cancelEdit(),this.add_note(),this.delete_checked(),this.addressesAction(),this.bulkDeleteDonor(),h.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-donors-filter .bulkactions input[type="submit"]',this.handleBulkActions)},loadGravatar:function(){var t,n;e(".give-donor-name").each((function(){if(!(t=e(this).find(".give-donor__image")).hasClass("gravatar-loaded")){if(n=t.attr("data-donor_email"),"1"===t.attr("data-has-valid-gravatar")){var i=e("<img>");i.attr("src",I.url(n)),i.attr("width","60"),i.attr("height","60"),e(this).find(".give-donor__image").html(i)}t.addClass("gravatar-loaded")}}))},unlockDonorFields:function(t){e("body").on("click",".give-lock-block",(function(e){new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("unlock_donor_fields_title"),desc:Give.fn.getGlobalVar("unlock_donor_fields_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),e.preventDefault()}))},editDonor:function(){e("body").on("click","#edit-donor",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .editable").hide(),e("#give-donor-card-wrapper .edit-item").fadeIn().css("display","block")}))},removeUser:function(){e("body").on("click","#disconnect-donor",(function(t){return t.preventDefault(),new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("disconnect_user")},successConfirm:function(){var t={give_action:"disconnect-userid",customer_id:e('input[name="donor_info[id]"]').val(),_wpnonce:e("#edit-donor-info #_wpnonce").val()};e.post(ajaxurl,t,(function(e){window.location.href=e.redirect}),"json")}}).render(),!1}))},cancelEdit:function(){e("body").on("click","#give-edit-donor-cancel",(function(t){t.preventDefault(),e("#give-donor-card-wrapper .edit-item").hide(),e("#give-donor-card-wrapper .editable").show(),e(".give_user_search_results").html("")}))},add_note:function(){e("body").on("click","#add-donor-note",(function(t){t.preventDefault();var n={give_action:"add-donor-note",customer_id:e("#donor-id").val(),donor_note:e("#donor-note").val(),add_donor_note_nonce:e("#add_donor_note_nonce").val()};if(n.donor_note)e.ajax({type:"POST",data:n,url:ajaxurl,success:function(t){e("#give-donor-notes").prepend(t),e(".give-no-donor-notes").hide(),e("#donor-note").val("")}}).fail((function(e){window.console&&window.console.log&&console.log(e)}));else{var i=e("#donor-note").css("border-color");e("#donor-note").css("border-color","red"),setTimeout((function(){e("#donor-note").css("border-color",i)}),500)}}))},delete_checked:function(){e("#give-donor-delete-confirm").change((function(){var t=e("#give-donor-delete-records"),n=e("#give-delete-donor");e(this).prop("checked")?(t.attr("disabled",!1),n.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),n.attr("disabled",!0))}))},add_email:function(){e("#add-donor-email").length&&e(document.body).on("click","#add-donor-email",(function(t){t.preventDefault();var n=e(this),i=n.parent();i.parent().find(".notice-wrap").remove(),i.find(".spinner").css("visibility","visible"),n.attr("disabled",!0);var o={give_action:"add_donor_email",customer_id:i.find('input[name="donor-id"]').val(),email:i.find('input[name="additional-email"]').val(),primary:i.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:i.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,o,(function(e){!0===e.success?window.location.href=e.redirect:(n.attr("disabled",!1),i.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),i.find(".spinner").css("visibility","hidden"))}),"json")}))},addressesAction:function(){var n=this,i=e("#donor-address-wrapper"),o=e(".all-address",i),r=e(".give-no-address-message",i),a=e(o).parent(),s=e(".address-form",i),l=e(".js-cancel",s),c=e('select[name="country"]',s),d=e(".add-new-address",i),u=parseInt(e('input[name="donor-id"]').val());c.on("change",(function(){e(this).trigger("chosen:updated")})),o.on("click",".js-edit",(function(t){var i=e(this).closest(".address");t.preventDefault(),e(".notice",a).remove(),n.__set_address_form_val(i),n.__set_address_form_action("update",i.data("address-id")),d.hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),s.data("process","update")})),o.on("click",".js-remove",(function(t){t.preventDefault();var i=e(this).closest(".address");e(".notice",a).remove(),s.data("changed",!0),n.__set_address_form_val(i),n.__set_address_form_action("remove",i.data("address-id")),s.trigger("submit")})),d.on("click",(function(t){t.preventDefault(),e(".notice",a).remove(),e(this).hide(),o.addClass("give-hidden"),s.removeClass("add-new-address-form-hidden"),n.__set_address_form_action("add"),n.__set_address_form_action()})),l.on("click",(function(e){e.preventDefault(),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),s.on("change",(function(){e(this).data("changed",!0)})).on("submit",(function(n){n.preventDefault();var l=e(this);return e(".notice",a).remove(),e(this).data("changed")?(e.ajax({type:"POST",url:ajaxurl,data:{action:"donor_manage_addresses",donorID:u,form:e("form",s).serialize()},beforeSend:function(){t(i,{show:!0})},success:function(n){if(t(i),n.success){var s;switch(n.data.action){case"add":e(".give-grid-row",o).append(n.data.address_html),!r.hasClass("give-hidden")&&e("div.give-grid-col-4",o).length&&r.addClass("give-hidden");break;case"remove":(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).length&&s.animate({"margin-left":"-999"},1e3,(function(){s.remove(),r.hasClass("give-hidden")&&!e("div.give-grid-col-4",o).length&&r.removeClass("give-hidden")}));break;case"update":var l=(s=o.find('div[data-address-id*="'+n.data.id+'"]').parent()).prev(),c={},d=!1;parseInt(e(".give-grid-row>div",o).length)<2?e(".give-grid-row",o).append(n.data.address_html):(l.length&&(l.after(n.data.address_html),d=!0),d||(c=s.next()).length&&c.before(n.data.address_html)),s.remove()}a.prepend(n.data.success_msg)}else a.prepend(n.data.error_msg)},dataType:"json"}).always((function(){l.data("changed",!1),s.find('input[type="text"]').val(""),d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden")})),!1):(d.show(),o.removeClass("give-hidden"),s.addClass("add-new-address-form-hidden"),!1)}))},__set_address_form_action:function(t,n){var i=e("#donor-address-wrapper"),o=e(".address-form",i),r=e('input[name="address-action"]',o),a=e('input[name="address-id"]',o);t=t||"add",n=n||"billing",r.val(t),a.val(n)},__set_address_form_val:function(t){var n=e("#donor-address-wrapper"),i=e(".address-form",n),o=e('[data-address-type="state"]',t).text().substr(2).trim();e('select[name="country"]',i).val().trim()!==e('[data-address-type="country"]',t).text().trim()?(e('select[name="country"]',i).val(e('[data-address-type="country"]',t).text().trim()).trigger("chosen:updated").change(),window.setTimeout((function(){e('[name="state"]',i).val(o).trigger("chosen:updated")}),500)):e('[name="state"]',i).val(o).trigger("chosen:updated"),e('input[name="line1"]',i).val(e('[data-address-type="line1"]',t).text().trim()),e('input[name="line2"]',i).val(e('[data-address-type="line2"]',t).text().trim()),e('input[name="city"]',i).val(e('[data-address-type="city"]',t).text().trim()),e('input[name="zip"]',i).val(e('[data-address-type="zip"]',t).text().trim())},bulkDeleteDonor:function(){var t=e("body");t.on("click","#give-bulk-delete-cancel",(function(t){e(this).closest("tr").hide(),e(".give-skip-donor").trigger("click"),t.preventDefault()})),t.on("click","#cb-select-all-1, #cb-select-all-2",(function(){var t=e(this);e.each(e(".donor-selector"),(function(){var n=e(this).val(),i=e(this).data("name"),o='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+i+"</div>";t.is(":checked")&&!e(this).is(":checked")?e("#give-bulk-donors").append(o):t.is(":checked")||e("#give-bulk-donors").find("#give-donor-"+n).remove()}))})),t.on("click",".donor-selector",(function(){var t=e(this).val(),n=e(this).data("name"),i='<div id="give-donor-'+t+'" data-id="'+t+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+n+"</div>";e(this).is(":checked")?e("#give-bulk-donors").prepend(i):e("#give-bulk-donors").find("#give-donor-"+t).remove()})),t.on("click","#give-bulk-delete .give-donor-delete-confirm",(function(){e(this).is(":checked")?e("#give-bulk-delete-button").removeAttr("disabled"):(e("#give-bulk-delete-button").attr("disabled",!0),e("#give-bulk-delete .give-donor-delete-records").removeAttr("checked"))})),t.on("click","#give-bulk-delete .give-donor-delete-records",(function(){e(this).is(":checked")&&(e("#give-bulk-delete .give-donor-delete-confirm").attr("checked","checked"),e("#give-bulk-delete-button").removeAttr("disabled"))})),t.on("click",".give-skip-donor",(function(){var t=e(this).closest("div").data("id");e("#give-donor-"+t).remove(),e("#donor-"+t).find('input[type="checkbox"]').removeAttr("checked")})),t.on("click",".give-single-donor-delete",(function(t){var n=e(this).data("id"),i=e("tr#donor-"+n).find(".donor-selector"),o=e('[id^="cb-select-all-"]'),r=e("#give-bulk-donors"),a=i.data("name"),s='<div id="give-donor-'+n+'" data-id="'+n+'"><a class="give-skip-donor" title="'+Give.fn.getGlobalVar("remove_from_bulk_delete")+'">X</a>'+a+"</div>";r.html(""),o.is(":checked")&&o.removeAttr("checked"),e(".donor-selector").removeAttr("checked"),i.attr("checked","checked"),0===e("#give-donor-"+n).length&&(r.prepend(s),e("#give-bulk-delete").slideDown()),t.preventDefault()}))},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=[],o=e("#current-page-selector").val(),r=h.onLoadPageNumber!==o,s=Give.fn.getGlobalVar("donors_bulk_action.no_action_selected"),l=Give.fn.getGlobalVar("donors_bulk_action.no_donor_selected");return!!r||(e.each(e(".donor-selector:checked"),(function(){i.push(e(this).val())})),"-1"===n?(new a.GiveWarningAlert({modalContent:{title:s.title,desc:s.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1):parseInt(i)?("delete"===n&&e("#give-bulk-delete").slideDown(),void t.preventDefault()):(new a.GiveWarningAlert({modalContent:{title:l.title,desc:l.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1))}},p={init:function(){this.revoke_api_key(),this.regenerate_api_key()},revoke_api_key:function(){e("body").on("click",".give-revoke-api-key",(function(t){t.preventDefault();var n=e(this).attr("href");return new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("revoke_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))},regenerate_api_key:function(){e("body").on("click",".give-regenerate-api-key",(function(t){var n=e(this).attr("href");return new a.GiveConfirmModal({modalWrapper:"give-modal--warning",modalContent:{desc:Give.fn.getGlobalVar("regenerate_api_key")},successConfirm:function(){window.location.assign(n)}}).render(),!1}))}},m={init:function(){var t=e.query.get("give_tab").length?e.query.get("give_tab"):"form_template_options";this.handle_metabox_tab_click(),this.setup_colorpicker_fields(),this.setup_media_fields(),this.setup_repeatable_fields(),this.handle_repeater_group_events(),this.handle_multi_levels_repeater_group_events(),this.activate_tab(e('a[href="#'+t+'"]'))},handle_metabox_tab_click:function(){var t=this;e(".give-metabox-tabs a").on("click",(function(n){n.preventDefault();var i=e(this);t.activate_tab(i),t.update_query(i)}))},activate_tab:function(t){var n=t.data("tab-id"),i=t.parent(),o=e("ul.give-metabox-sub-tabs",i),r=o.length,a=e(".give-metabox-tabs a").parents("li"),s=e("ul.give-metabox-sub-tabs"),l=t.parents("ul.give-metabox-sub-tabs").length;if(e("#give_form_active_tab").val(n),r){i.toggleClass("active"),o.removeClass("give-hidden");var c=e("li.active","ul.give-metabox-sub-tabs");s.not(o).addClass("give-hidden"),a.not(i).removeClass("active"),c.addClass("active")}else l?l&&(e("ul.give-metabox-sub-tabs").addClass("give-hidden"),a.removeClass("active"),t.parents("ul.give-metabox-sub-tabs").removeClass("give-hidden").children("li").removeClass("active"),t.parents("li.has-sub-fields").addClass("active")):a.each((function(t,n){(n=e(n)).removeClass("active"),n.hasClass("has-sub-fields")&&e("ul.give-metabox-sub-tabs",n).addClass("give-hidden")}));t.parent().addClass("active"),e(".give_options_panel").removeClass("active"),e(t.attr("href")).addClass("active")},update_query:function(t){var n=t.data("tab-id"),i=e.query.set("give_tab",n).remove("message").toString();history.replaceState&&history.replaceState(null,null,i)},setup_colorpicker_fields:function(){e(document).ready((function(){var t=e(".give-colorpicker");t.length&&t.each((function(t,n){var i=e(n);i.parents(".give-template").length||i.wpColorPicker()}))}))},setup_media_fields:function(){var t,n,i=e("body");i.on("click",".give-upload-button",(function(o){o.preventDefault();var r={};switch(n=e(this),e(this).data("field-type")){case"media":r={title:Give.fn.getGlobal().metabox_fields.media.button_title,button:{text:Give.fn.getGlobal().metabox_fields.media.button_title},multiple:!1,library:{type:"image"}};break;default:r={title:Give.fn.getGlobal().metabox_fields.file.button_title,button:{text:Give.fn.getGlobal().metabox_fields.file.button_title},multiple:!1}}void 0!==jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("editing")&&(wp.media.controller.Library.prototype.defaults.contentUserSetting=!1);var a=jQuery(this).closest(".give-field-wrap").find(".give-input-field").attr("library");void 0!==a&&""!==a&&(r.library={type:a}),(t=wp.media(r)).on("select",(function(){var e=t.state().get("selection").first().toJSON(),o=n.prev(),r="id"===n.data("fvalue")?e.id:e.url;if(i.trigger("give_media_inserted",[e,o]),o.val(r),"id"!==n.data("fvalue")){var a='input[name="'+o.attr("name")+'_id"]';o.closest("tr").next("tr").find(a).length&&o.closest("tr").next("tr").find(a).val(e.id)}})),t.open()})),i.on("give_media_inserted",(function(t,i){var o=n.parents(".give-field-wrap"),r=e(".give-image-thumb",o);return!!r.length&&("image"!==i.type?(r.addClass("give-hidden"),e("img",r).attr("src",""),!1):(r.find("img").attr("src",i.url),void r.removeClass("give-hidden")))})),e("span.give-delete-image-thumb",".give-image-thumb").on("click",(function(t){t.preventDefault();var n=e(this).parents(".give-field-wrap"),i=e(this).parent(),o=e('input[type="text"]',n);i.addClass("give-hidden"),o.val(""),e("img",i).attr("src","")}))},setup_repeatable_fields:function(){jQuery((function(){jQuery(".give-repeatable-field-section").each((function(){var t=e(this),n={wrapper:".give-repeatable-fields-section-wrapper",container:".container",row:".give-row",add:".give-add-repeater-field-section-row",remove:".give-remove",move:".give-move",template:".give-template",confirm_before_remove_row:!0,confirm_before_remove_row_text:Give.fn.getGlobalVar("confirm_before_remove_row_text"),is_sortable:!0,before_add:null,after_add:g,before_remove:null,after_remove:v,sortable_options:{placeholder:"give-ui-placeholder-state-highlight",start:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template");o.length&&o.each((function(t,n){var i=e('input[type="radio"].give-field',e(n));i.length&&i.each((function(){e(this).attr("data-give-checked",e(this).is(":checked"))}))})),e("body").trigger("repeater_field_sorting_start",[i.item])},stop:function(t,n){n.item.next().hasClass("give-template")&&n.item.next().after(n.item),e("body").trigger("repeater_field_sorting_stop",[n.item])},update:function(n,i){i.item.next().hasClass("give-template")&&i.item.next().after(i.item);var o=e(".give-row",t).not(".give-template"),r=e(this).closest(".give-repeatable-fields-section-wrapper");if(o.length){var a=1;o.each((function(t,n){var i=e(".give-field, label",e(n));i.length&&i.each((function(){var t=e(this).parents(".give-field-wrap"),n=e(this);e.each(this.attributes,(function(e,i){var o,r=this.value.replace(/\[/g,"_").replace(/]/g,""),s=r+"_field",l="";this.value&&(this.value=this.value.replace(/\[\d+\]/g,"["+(a-1)+"]"),o=this.value.replace(/\[/g,"_").replace(/]/g,""),t.hasClass(s)&&(l=o+"_field",t.removeClass(s).addClass(l)),r==n.attr("id")&&n.attr("id",o))}))})),a++})),window.setTimeout((function(){e("input[data-give-checked]",r).each((function(t,n){(n=e(n)).prop("checked","true"===n.attr("data-give-checked"))}))}),100),t.trigger("repeater_field_row_reordered",[i.item])}}}};jQuery(this).repeatable_fields(n)}))}))},handle_repeater_group_events:function(){var t=e(".give-repeatable-field-section"),n=e("body");n.on("click",".give-row-head .give-handlediv",(function(){var t=e(this).closest(".give-row");t.toggleClass("closed"),e(".give-row-body",t).toggle()})),t.on("repeater_field_new_row_added repeater_field_row_deleted repeater_field_row_reordered",(function(){_(e(this))})),n.on("repeater_field_sorting_start",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){tinyMCE.execCommand("mceRemoveEditor",!0,e(n).attr("id"))}),300)}))})),n.on("repeater_field_sorting_stop",(function(t,n){var i=e(".wp-editor-area",n);i.length&&i.each((function(t,n){window.setTimeout((function(){var t=e(n).attr("id");tinyMCE.execCommand("mceAddEditor",!0,t),window.setTimeout((function(){switchEditors.go(t,"html"),e("#"+t+"-tmce").trigger("click")}),100)}),300)}))})),t.each((function(t,n){var i=e(n);_(i),parseInt(i.data("close-tabs"))&&(e(".give-row-head button",i).trigger("click"),e(".give-template",i).removeClass("closed"),e(".give-template .give-row-body",i).show())})),t.on("repeater_field_new_row_added",(function(t,n,i){e(".give-colorpicker",e(this)).each((function(t,n){var i=e(n);i.parents(".wp-picker-container").length||i.parents(".give-template").length||i.wpColorPicker()}));var o=e("div[data-wp-editor]",i);o.length&&o.each((function(t,n){var i=e(n),o=e(".wp-editor-wrap",i),r=e("textarea",i),a="give_wysiwyg_unique_"+Math.random().toString().replace(".","_"),s=o.prev();r.attr("id",a),e.post(ajaxurl,{action:"give_load_wp_editor",wp_editor:i.data("wp-editor"),wp_editor_id:a,textarea_name:e("textarea",i).attr("name")},(function(t){o.remove(),s.after(t),tinyMCEPreInit.qtInit[r.attr("id")]=e.extend(!0,tinyMCEPreInit.qtInit._give_agree_text,{id:a}),tinyMCEPreInit.mceInit[a]=e.extend(!0,tinyMCEPreInit.mceInit._give_agree_text,{body_class:a+" post-type-give_forms post-status-publish locale-"+tinyMCEPreInit.mceInit._give_agree_text.wp_lang_attr.toLowerCase(),selector:"#"+a}),tinymce.init(tinyMCEPreInit.mceInit[a]),quicktags(tinyMCEPreInit.qtInit[a]),QTags._buttonsInit(),window.setTimeout((function(){switchEditors.go(a,"html"),e("#"+a+"-tmce").trigger("click")}),100),window.wpActiveEditor||(window.wpActiveEditor=a)}))}))}))},handle_multi_levels_repeater_group_events:function(){var t=e("#_give_donation_levels_field");e("body").on("keyup",".give-multilevel-text-field",(function(){var t=e(this).closest("tr"),n=e(".give-row-head h2 span",t),i=n.data("header-title");if(e(this).val()&&e(this).val()===n.html())return!1;e(this).val()?n.html(i+": "+e(this).val()):n.html(i)})),e(".give-multilevel-text-field").each((function(t,n){if(t){var i=e(n),o=i.closest("tr"),r=e(".give-row-head h2 span",o),a=r.data("header-title");if(i.val()&&i.val()===r.html())return!1;i.val()?r.html(a+": "+i.val()):r.html(a)}})),t.on("repeater_field_row_deleted",(function(){var t=e(this);window.setTimeout((function(){var n=e(".give-row",t).not(".give-template"),i=e(".give-give_default_radio_inline",n);1===n.length&&i.prop("checked",!0)}),200)})),t.on("repeater_field_new_row_added",(function(t,n,i){var o=e(this),r=0;window.setTimeout((function(){!1===e(".give-give_default_radio_inline",o).is(":checked")&&e(".give-row",o).not(".give-template").first().find(".give-give_default_radio_inline").prop("checked",!0)}),200),e('input[type="hidden"].give-levels_id',o).each((function(t,n){var i=e(n),o=parseInt(i.val());r<o&&(r=o)})),e('input[type="hidden"].give-levels_id',i).val(++r)}))}},g=function(t,n){var i=e(t).attr("data-rf-row-count"),o=e(t).parents(".give-repeatable-field-section");i++,e("*",n).each((function(){e.each(this.attributes,(function(e,t){this.value=this.value.replace("{{row-count-placeholder}}",i-1)}))})),e(t).attr("data-rf-row-count",i),o.trigger("repeater_field_new_row_added",[t,n])},v=function(t){var n=e(t),i=n.parents(".give-repeatable-field-section"),o=e(t).prop("data-rf-row-count");n.prop("data-rf-row-count",--o),i.trigger("repeater_field_row_deleted")},_=function(t){if(parseInt(t.data("group-numbering"))){var n=e(".give-row-head h2 span",t),i=n.data("header-title");n.each((function(t,n){var o=e(n);o.parents(".give-template").length||o.html(i+": "+t)}))}},b={onLoadPageNumber:"",init:function(){b.onLoadPageNumber=e("#current-page-selector").val(),e("body").on("click",'#give-payments-filter input[type="submit"]',this.handleBulkActions)},handleBulkActions:function(t){var n=e(this).closest(".tablenav").find("select").val(),i=e(this).closest(".tablenav").find('option[value="'+n+'"]').text(),o=e('input[name="payment[]"]:checked').length,r=-1!==n.indexOf("set-status-"),s="",l="",c=e("#current-page-selector").val();if(b.onLoadPageNumber!==c)return!0;if("-1"===(n=r?"set-to-status":n))return new a.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donors_bulk_action.no_action_selected.title,desc:Give.fn.getGlobal().donors_bulk_action.no_action_selected.desc,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;if(Object.keys(Give.fn.getGlobalVar("donations_bulk_action")).length)for(l in Give.fn.getGlobalVar("donations_bulk_action"))if(l===n){if(s=r?Give.fn.getGlobal().donations_bulk_action[n].zero.replace("{status}",i.replace("Set To ","")):Give.fn.getGlobal().donations_bulk_action[n].zero,!parseInt(o))return new a.GiveWarningAlert({modalContent:{title:Give.fn.getGlobal().donations_bulk_action.titles.zero,desc:s,cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render(),!1;s=1<o?Give.fn.getGlobal().donations_bulk_action[n].multiple:Give.fn.getGlobal().donations_bulk_action[n].single,t.preventDefault(),new a.GiveConfirmModal({modalContent:{title:Give.fn.getGlobalVar("confirm_bulk_action"),desc:s.replace("{payment_count}",o).replace("{status}",i.replace("Set To ",""))},successConfirm:function(t){e("#give-payments-filter").submit()}}).render()}return!0}},y=function(){var e=document.querySelectorAll(".js-give-shortcode-button");if(e){var t,n=j(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;new S(i).init()}}catch(e){n.e(e)}finally{n.f()}}},w=function(){e(".give-select-chosen[multiple]").each((function(t,n){e(n).chosen().change((function(t,n){var i=e(this),o=i.attr("id"),r=[];e("#".concat(o,"_chosen li.search-choice span")).each((function(e,t){var i=t.textContent;i!==n.deselected&&r.push({value:i,selected:!0})})),Array.from(t.target.options).map((function(e){r.filter((function(t){return t.value===e.value})).length||r.push({value:e.value,selected:e.selected})})),i.empty(),r.map((function(t){return i.append(e("<option>",{value:t.value,text:t.value,selected:t.selected}))}))}))}))};e((function(){var t;e("body").on("click","button.notice-dismiss",(function(){"give-invalid-license"!==jQuery(this).closest("div.give-notice").data("notice-id")&&n(jQuery(this).closest("div.give-notice").attr("id"))})),function(){var t,n=e(".give_datepicker");if(n.length){var i={},o={altFormat:"yy-mm-dd",onClose:function(e,t){e.length||t.input.next().val("")}};e.each(n,(function(o,r){r=e(r),t=void 0!==r.attr("data-standard-date")?r.attr("data-standard-date"):r.attr("value"),r.attr("name").length&&(i=r.clone(),n[o]=i,i.attr("name",""),r.before(i),r.hide(),r.attr("class",""),r.attr("id",""),r.val(t),r.prop("readonly",!0))})),n.length>0&&e.each(n,(function(t,n){n=e(n),o.altField=n.next(),n.datepicker(o)}))}}(),e('select[name="give-payment-status"]').on("change",(function(){var t=e(this).val();e(".give-donation-status").removeClass((function(e,t){return(t.match(/\bstatus-\S+/g)||[]).join(" ")})).addClass("status-"+t)})),(t=e(".give-select-chosen")).hasClass("give-chosen-settings")?t.chosen({no_results_text:Give.fn.getGlobalVar("chosen_add_title_prefix")+" ",width:"30%"}).on("chosen:no_results",(function(t,n){e(n.chosen.container).on("keydown",(function(i){var o=n.chosen.get_search_text(),r=jQuery(n.chosen.form_field);13!==i.keyCode||r.find('option[value="'+o+'"]').length||"true"!==r.attr("data-allows-new-values")||(e(n.chosen.form_field).append('<option value="'+o+'" selected>'+o+"</option>").trigger("chosen:updated"),n.chosen.result_highlight=n.chosen.search_results.find("li.active-result").lasteturn,n.chosen.result_select(t))}))})):Object(T.a)(t),e(".chosen-container").each((function(){0===e(this).width()&&e(this).css("width","100%")})),e("#post").on("click",".give-thickbox",(function(){e(".give-select-chosen","#choose-give-form").css("width","100%")})),e.giveAjaxifyFields({type:"country_state",debug:!0}),o.init(),s.init(),l.init(),c.init(),h.init(),p.init(),d.init(),u.init(),f.init(),m.init(),b.init(),y(),w(),e("a.give-rating-link").click((function(){jQuery(this).parent().text(jQuery(this).data("rated"))})),e(".give-ajax-user-search").on("keyup",(function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".give-ajax").show(),data={action:"give_search_users",user_name:t,exclude:n},document.body.style.cursor="wait",e.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(t){e(".give-ajax").hide(),e(".give_user_search_results").removeClass("hidden"),e(".give_user_search_results span").html(""),e(t.results).appendTo(".give_user_search_results span"),document.body.style.cursor="default"}})})),e("body").on("click.giveSelectUser",".give_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".give-ajax-user-search").val(n),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")})),e("body").on("click.giveCancelUserSearch",".give_user_search_results a.give-ajax-user-cancel",(function(t){t.preventDefault(),e(".give-ajax-user-search").val(""),e(".give_user_search_results").addClass("hidden"),e(".give_user_search_results span").html("")}));var r=e("#poststuff"),a=Give.fn.getGlobalVar("thousands_separator"),g=Give.fn.getGlobalVar("decimal_separator"),v="",_="",x="",k=g===a?1:0;r.on("keyup","input.give-money-field, input.give-price-field",(function(){var t={label:Give.fn.getGlobalVar("price_format_guide").trim()};v=(e(this).val().match(new RegExp(a,"g"))||[]).length,_=(e(this).val().match(new RegExp("[a-z]","g"))||[]).length,-1!==e(this).val().indexOf(a)&&k<v||_?e(this).giveHintCss("show",t):e(this).giveHintCss("hide",t),v=_=""})),r.on("focusout","input.give-money-field, input.give-price-field",(function(){if(x=i(e(this).val(),!1),e(this).giveHintCss("hide",{label:Give.fn.getGlobalVar("price_format_guide").trim()}),i("0",!1)===i(e(this).val(),!1)){var t=e(this).attr("placeholder");return t=t||"0",e(this).val(t),!1}-1!==(x=x.replace(".",g)).indexOf("-")&&(x=x.replace("-","")),e(this).val(x)})),r.on("focusout","#_give_number_of_donation_goal",(function(){1>e(this).val()&&e(this).val(1)})),e(".give-settings-page").on("click","#give-show-sub-nav",(function(t){t.preventDefault();var n=e(this).next();return n.is(":hover")||n.toggleClass("give-hidden"),!1})).on("blur","#give-show-sub-nav",(function(){var t=e(this).next();t.is(":hover")||t.addClass("give-hidden")})),e(".give_email_api_notification_status_setting input").change((function(){var t=e(this).val(),n="enabled"===t,i={};return e(this).closest(".give_options_panel").length?i=e(this).closest(".give_options_panel").children(".give-field-wrap:not(.give_email_api_notification_status_setting), .give-repeatable-field-section"):e(this).closest("table").length&&(i=e(this).closest("table").find("tr:not(.give_email_api_notification_status_setting)")),-1!==jQuery.inArray(t,["enabled","disabled","global"])&&(!!i.length&&void(n?i.show():i.hide()))})),e(".give_email_api_notification_status_setting input:checked").change(),G()}))}(jQuery),jQuery(window).resize((function(){G()}));function A(){var e=document.querySelector(".give-tools-setting-page-import table.step-2 .give-import-donation-required-fields");if("undefined"!==e&&null!==e){var t=!0,n=!1,i=!1,o=!1,r=!1;document.querySelectorAll(".give-import-donation-required-fields li").forEach((function(e){e.querySelector(".dashicons").classList.remove("dashicons-yes"),e.querySelector(".dashicons").classList.add("dashicons-no-alt")}));var a=Array.from(document.querySelectorAll("table.step-2 tbody select")).map((function(e){return e.value}));a.includes("email")&&(n=!0,document.querySelector(".give-import-donation-required-email .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-email .dashicons").classList.add("dashicons-yes")),a.includes("first_name")&&(i=!0,document.querySelector(".give-import-donation-required-first .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-first .dashicons").classList.add("dashicons-yes")),a.includes("amount")&&(o=!0,document.querySelector(".give-import-donation-required-amount .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-amount .dashicons").classList.add("dashicons-yes")),(a.includes("form_id")||a.includes("form_title"))&&(r=!0,document.querySelector(".give-import-donation-required-form .dashicons").classList.remove("dashicons-no-alt"),document.querySelector(".give-import-donation-required-form .dashicons").classList.add("dashicons-yes")),n&&i&&o&&r&&(t=!1),document.getElementById("recount-stats-submit").disabled=t}}document.addEventListener("DOMContentLoaded",(function(e){window.onload=function(){var e,t;A(),"undefined"!==(e=document.querySelector(".give-tools-setting-page-import table.step-2 tbody select"))&&null!==e&&jQuery(".give-tools-setting-page-import table.step-2 tbody").on("change","select",(function(){A()})),jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-3").length>0&&function e(){var t=jQuery("form.tools-setting-page-import");!0;var n=t.find(".give-progress"),i=jQuery(n).data("total_ajax"),o=jQuery(n).data("current"),r=jQuery(n).data("start"),s=jQuery(n).data("end"),l=jQuery(n).data("next"),c=jQuery(n).data("total"),d=jQuery(n).data("per_page");jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("give_donation_import"),total_ajax:i,current:o,start:r,end:s,next:l,total:c,per_page:d,fields:t.serialize()},dataType:"json",success:function(t){jQuery(n).data("current",t.current),jQuery(n).find("div").width(t.percentage+"%"),1==t.next?(jQuery(n).data("start",t.start),jQuery(n).data("end",t.end),1==t.last&&jQuery(n).data("next",!1),e()):(!1,window.location=t.url)},error:function(){!1,new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}(),t="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-1 .is_csv_valid",jQuery(t).length>0&&(window.location=jQuery(t).val()),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-donations-form table.step-2 .csv_not_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}(),function(){if(jQuery("body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-2").length>0){var e=jQuery("form.tools-setting-page-import"),t=e.find(".give-progress");!0,jQuery.ajax({type:"POST",url:ajaxurl,data:{action:Give.fn.getGlobalVar("core_settings_import"),fields:e.serialize()},dataType:"json",success:function(e){!1,!0===e.success?(jQuery(t).find("div").width(e.percentage+"%"),window.location=e.url):new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()},error:function(){!1,new a.GiveErrorAlert({modalContent:{title:Give.fn.getGlobalVar("import_failed"),desc:Give.fn.getGlobalVar("error_message"),cancelBtnTitle:Give.fn.getGlobalVar("ok")}}).render()}})}}(),function(){var e="body.give_forms_page_give-tools .give-tools-import-tab #give-import-core-settings-form table.step-1 .is_json_valid";jQuery(e).length>0&&(window.location=jQuery(e).val())}()}}));n(705);function O(e,t){var n="",i=document.querySelector(".give-save-button");try{n=JSON.parse(t),e.value=JSON.stringify(n,void 0,2),e.style.border="none",i.removeAttribute("disabled")}catch(t){e.style.border="1px solid red",i.setAttribute("disabled","disabled")}}function P(e){null!==e&&(O(e,e.value),e.addEventListener("blur",(function(t){O(e,t.target.value)})))}window.addEventListener("DOMContentLoaded",(function(){document.querySelector(".stripe-cc-field-format-settings");var e=document.querySelectorAll('input[name="stripe_fonts"]'),t=document.getElementById("stripe_styles_base"),n=document.getElementById("stripe_styles_empty"),i=document.getElementById("stripe_styles_invalid"),o=document.getElementById("stripe_styles_complete"),r=document.getElementById("stripe_custom_fonts"),s=document.getElementById("give-payment-status"),l=(document.querySelector(".give-stripe-disconnect"),document.querySelectorAll('input[name="stripe_checkout_type"]')),c=Array.from(document.querySelectorAll(".stripe-checkout-field")),d=document.getElementById("give-stripe-connected"),u=Array.from(document.querySelectorAll('input[name="stripe_hide_icon"]')),f=document.querySelector(".stripe-icon-style"),h=Array.from(document.querySelectorAll(' input[name="stripe_mandate_acceptance_option"]')),p=document.querySelector(".stripe-mandate-acceptance-text"),m=Array.from(document.querySelectorAll('input[name="stripe_becs_hide_icon"]')),g=document.querySelector(".stripe-becs-icon-style"),v=Array.from(document.querySelectorAll(' input[name="stripe_becs_mandate_acceptance_option"]')),_=document.querySelector(".stripe-becs-mandate-acceptance-text"),b=Array.from(document.querySelectorAll(".give-stripe-account-type-manual")),y=document.querySelector(".give-stripe-account-type-connect"),w=Array.from(document.querySelectorAll('input[name="stripe_connection_type"]')),x=document.querySelector('input[name="stripe_connection_type"]:checked'),k=Array.from(document.querySelectorAll(".give-stripe-disconnect-account-btn")),C=Array.from(document.querySelectorAll(".give-stripe-account-set-default")),S=Array.from(document.querySelectorAll('input[name="give_stripe_per_form_accounts"]')),T=document.querySelector(".give-stripe-per-form-default-account"),j=Array.from(document.querySelectorAll(".give-stripe-account-edit-name")),E=Array.from(document.querySelectorAll(".give-stripe-account-update-name")),M=Array.from(document.querySelectorAll(".give-stripe-account-cancel-name")),I=document.getElementById("give-stripe-account-manager-errors");function G(e){"connect"===e?(b.map((function(e){e.classList.add("give-hidden")})),y.classList.remove("give-hidden")):(b.map((function(e){e.classList.remove("give-hidden")})),y.classList.add("give-hidden"))}if(P(t),P(n),P(i),P(o),P(r),null!==M&&M.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode,i=n.querySelector(".give-stripe-account-update-name"),o=n.querySelector(".give-stripe-account-edit-name"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector('input[name="account_name"]'),s=n.querySelector(".give-stripe-account-default > a");r.textContent=a.value,t.classList.add("give-hidden"),i.classList.add("give-hidden"),a.classList.add("give-hidden"),o.classList.remove("give-hidden"),null!==s&&s.classList.remove("give-hidden")}))})),null!==j&&j.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode,i=n.querySelector(".give-stripe-account-update-name"),o=n.querySelector(".give-stripe-account-cancel-name"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector(".give-stripe-account-default > a"),s=r.textContent.trim(),l=document.createElement("input");l.type="text",l.name="account_name",l.value=s,r.textContent="",r.append(l),t.classList.add("give-hidden"),i.classList.remove("give-hidden"),o.classList.remove("give-hidden"),null!==a&&a.classList.add("give-hidden")}))})),null!==E&&E.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target,n=t.parentNode.parentNode.parentNode,i=n.querySelector(".give-stripe-disconnect-account-btn"),o=t.getAttribute("data-account"),r=n.querySelector(".give-stripe-account-name"),a=n.querySelector(".give-stripe-account-cancel-name"),s=n.querySelector(".give-stripe-account-default > a"),l=n.querySelector('input[name="account_name"]').value,c=new XMLHttpRequest,d=new FormData,u=e.target.previousElementSibling;d.append("action","give_stripe_update_account_name"),d.append("account_slug",o),d.append("new_account_name",l),c.open("POST",ajaxurl),c.onload=function(){var e=JSON.parse(c.response),n="";if(200===c.status&&e.success){var o=e.data.slug;n='<div class="give-notice notice inline success notice-success"><p>'.concat(e.data.message,"</p></div>"),r.innerHTML=e.data.name,t.classList.add("give-hidden"),a.classList.add("give-hidden"),t.setAttribute("data-account",o),u.classList.remove("give-hidden"),null!==i&&i.setAttribute("data-account",o),null!==s&&s.classList.remove("give-hidden")}else n='<div class="give-notice notice inline error notice-error"><p>'.concat(e.data.message,"</p></div>");I.innerHTML=n},c.send(d)}))})),null!==S&&S.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?T.classList.remove("give-hidden"):T.classList.add("give-hidden")}))})),null!==C&&C.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=new XMLHttpRequest,n=new FormData;n.append("action","give_stripe_set_account_default"),n.append("account_slug",e.target.getAttribute("data-account")),t.open("POST",ajaxurl),t.onload=function(){var n=JSON.parse(t.response);200===t.status&&n.success&&(window.location.href=e.target.getAttribute("data-url"))},t.send(n)}))})),null!==w&&null!==x&&(G(x.value),w.forEach((function(e){e.addEventListener("change",(function(e){G(e.target.value)}))}))),null!==u&&u.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?f.classList.remove("give-hidden"):f.classList.add("give-hidden")}))})),null!==h&&h.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?p.classList.remove("give-hidden"):p.classList.add("give-hidden")}))})),null!==m&&m.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?g.classList.remove("give-hidden"):g.classList.add("give-hidden")}))})),null!==v&&v.forEach((function(e){e.addEventListener("change",(function(e){"enabled"===e.target.value?_.classList.remove("give-hidden"):_.classList.add("give-hidden")}))})),null!==d){var A=d.getAttribute("data-status"),O=d.getAttribute("data-redirect-url"),L=d.getAttribute("data-display"),z=d.getAttribute("data-title"),N=d.getAttribute("data-first-detail"),q=d.getAttribute("data-second-detail");"connected"===A&&"0"===L&&(new a.GiveConfirmModal({modalWrapper:"give-stripe-connected-modal give-modal--success",type:"confirm",modalContent:{title:z,desc:"<span>".concat(N,'</span><span class="give-field-description">').concat(q,"</span>")},successConfirm:function(e){window.location.href=O}}).render(),d.setAttribute("data-display","1"),history.pushState({urlPath:O},"",O))}null!==l&&l.forEach((function(e){e.addEventListener("change",(function(e){"modal"===e.target.value?c.map((function(e){return e.classList.remove("give-hidden")})):c.map((function(e){return e.classList.add("give-hidden")}))}))})),null!==k&&k.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.target;new Give.modal.GiveConfirmModal({type:"alert",classes:{modalWrapper:"give-modal--warning"},modalContent:{title:Give.fn.getGlobalVar("disconnect_stripe_title"),desc:t.getAttribute("data-disconnect-message")},successConfirm:function(){window.location.href="".concat(t.getAttribute("href"),"&account=").concat(t.getAttribute("data-account"))}}).render()}))})),null!==s&&s.addEventListener("change",(function(e){var t=document.getElementById("give-stripe-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-stripe-opt-refund-wrap").style.display="block":document.getElementById("give-stripe-opt-refund-wrap").style.display="none")})),null!==e&&e.forEach((function(e){var t=document.querySelector(".give-stripe-google-fonts-wrap"),n=document.querySelector(".give-stripe-custom-fonts-wrap");e.addEventListener("change",(function(e){"custom_fonts"===e.target.value?(t.style.display="none",n.style.display="table-row"):"google_fonts"===e.target.value&&(t.style.display="table-row",n.style.display="none")}))}))})),window.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("give-payment-status"),t=document.getElementById("js-give-paypal-on-boarding-handler"),n=document.getElementById("js-give-paypal-disconnect-paypal-account"),i=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .connection-setting"),o=document.querySelector("#give-paypal-commerce-account-manager-field-wrap .disconnection-setting"),r=document.getElementById("paypal_commerce_account_country"),s=new MutationObserver((function(e){e.forEach((function(e){e.removedNodes.forEach((function(e){if("PPMiniWin"===e.getAttribute("id")){var t=document.getElementById("give-paypal-onboarding-trouble-notice");t&&t.classList.remove("give-hidden")}}))}))}));if(e&&e.addEventListener("change",(function(e){var t=document.getElementById("give-paypal-commerce-opt-refund");null!==t&&(t.checked=!1,"refunded"===e.target.value?document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="block":document.getElementById("give-paypal-commerce-opt-refund-wrap").style.display="none")})),window.location.search.match(/paypal-commerce-account-connected=1/i)){var l=window.givePayPalCommerce.translations.pciComplianceInstructions.map((function(e){return"<li>".concat(e,"</li>")})).join(""),c=window.givePayPalCommerce.translations.liveWarning?'<p class="give-modal__description__warning">'.concat(window.givePayPalCommerce.translations.liveWarning,"</p>"):"";new Give.modal.GiveSuccessAlert({classes:{modalWrapper:"paypal-commerce-connect",cancelBtn:"give-button--primary"},modalContent:{title:window.givePayPalCommerce.translations.connectSuccessTitle,body:'\n\t\t\t\t\t<div class="give-modal__description">\n\t\t\t\t\t\t'.concat(c,"\n\t\t\t\t\t\t<p>").concat(window.givePayPalCommerce.translations.pciWarning,"</p>\n\t\t\t\t\t\t<ul>").concat(l,"</ul>\n\t\t\t\t\t</div>\n\t\t\t\t").trim(),cancelBtnTitle:Give.fn.getGlobalVar("confirm")},closeOnBgClick:!0}).render()}function d(){var e=document.querySelector(".paypal-message-template");e&&e.parentElement.remove()}t&&t.addEventListener("click",(function(e){e.preventDefault(),d();var n=r.value,i=function(){t.disabled=!1,e.target.innerText=t.getAttribute("data-initial-label")};(function(){t.hasAttribute("data-initial-label")||t.setAttribute("data-initial-label",t.innerText),t.disabled=!0,e.target.innerText=Give.fn.getGlobalVar("loader_translation").processing})();var o=document.getElementById("give-paypal-onboarding-trouble-notice");return o&&o.classList.add("give-hidden"),fetch(ajaxurl+"?action=give_paypal_commerce_get_partner_url&countryCode=".concat(n)).then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector("[data-paypal-button]");t.href="".concat(e.data.partnerLink,"&displayMode=minibrowser"),t.click(),s.observe(document.querySelector("body"),{attributes:!0,childList:!0})}i()})).then((function(){fetch(ajaxurl+"?action=give_paypal_commerce_onboarding_trouble_notice").then((function(e){return e.json()})).then((function(e){if(!0===e.success){var t=document.querySelector(".connect-button-wrap");o&&o.remove(),t.append((n=e.data,(i=document.createElement("div")).innerHTML=n.trim(),i.firstChild))}var n,i}))})),!1})),n&&n.addEventListener("click",(function(e){return e.preventDefault(),d(),new a.GiveConfirmModal({modalContent:{title:givePayPalCommerce.translations.confirmPaypalAccountDisconnection,desc:givePayPalCommerce.translations.disconnectPayPalAccount},successConfirm:function(){i.classList.remove("give-hidden"),o.classList.add("give-hidden"),r.parentElement.parentElement.classList.remove("hide-with-position"),fetch(ajaxurl+"?action=give_paypal_commerce_disconnect_account")}}).render(),!1}))}));n(706);s.a.modal=a;var L=s.a.init,z=s.a.fn,N=s.a.cache,q=s.a.modal,F=s.a.notice;window.Give={init:L,fn:z,cache:N,modal:q,notice:F,initializeIframeResize:l.a}},12:function(e,t,n){e.exports=n(306)},16:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},19:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},23:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},25:function(e,t){function n(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var a=e.apply(t,i);function s(e){n(a,o,r,s,l,"next",e)}function l(e){n(a,o,r,s,l,"throw",e)}s(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},306:function(e,t,n){var i=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var o=t&&t.prototype instanceof u?t:u,r=Object.create(o.prototype),a=new k(i||[]);return r._invoke=function(e,t,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return S()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=y(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function u(){}function f(){}function h(){}var p={};p[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,o)&&(p=g);var v=h.prototype=u.prototype=Object.create(p);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var i;this._invoke=function(o,r){function a(){return new t((function(i,a){!function i(o,r,a,s){var l=c(e[o],e,r);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(u).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,s)}))}s(l.arg)}(o,r,i,a)}))}return i=i?i.then(a,a):a()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=v.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},_(b.prototype),b.prototype[r]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new b(l(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(v),s(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=C,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},32:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0},38:function(e,t,n){"use strict";n.r(t),n.d(t,"GiveModal",(function(){return p})),n.d(t,"GiveErrorAlert",(function(){return m})),n.d(t,"GiveWarningAlert",(function(){return g})),n.d(t,"GiveNoticeAlert",(function(){return v})),n.d(t,"GiveSuccessAlert",(function(){return _})),n.d(t,"GiveConfirmModal",(function(){return b})),n.d(t,"GiveFormModal",(function(){return y}));var i=n(40),o=n.n(i),r=n(69),a=n.n(r),s=n(46),l=n.n(s),c=n(23),d=n.n(c),u=n(32),f=n.n(u);n(418),n(419);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=l()(e);if(t){var o=l()(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a()(this,n)}}var p=function(){function e(t){if(d()(this,e),e===this.constructor)throw new Error("Abstract classes can't be instantiated.");this.config=Object.assign({type:"",triggerSelector:"",externalPlugin:"magnificPopup",classes:{modalWrapper:"",cancelBtn:""},modalContent:{}},t),this.config.mainClass="".concat(this.config.mainClass?this.config.mainClass:""," modal-fade-slide").trim()}return f()(e,[{key:"init",value:function(){this.setupTemplate(),this.popupConfig(),this.__setupClickEvent()}},{key:"getTemplate",value:function(){var e='<div class="give-hidden"></div>';return this.config.type.length&&(e='<div class="give-modal give-modal--zoom '.concat(this.config.classes.modalWrapper?"".concat(this.config.classes.modalWrapper).trim():"",'">\n\n\t\t\t\t<div class="give-modal__body">\n\t\t\t\t\t').concat(this.config.modalContent.title?'<h2 class="give-modal__title">'.concat(this.config.modalContent.title,"</h2>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.desc?'<p class="give-modal__description">'.concat(this.config.modalContent.desc,"</p>"):"","\n\t\t\t\t\t").concat(this.config.modalContent.body?this.config.modalContent.body:"",'\n\t\t\t\t</div>\n\n\t\t\t\t<div class="give-modal__controls">\n\n\t\t\t\t\t').concat("form"===this.config.type?'<div class="spinner"></div>':"","\n\t\t\t\t\t").concat("form"===this.config.type?'<a class="give-modal--additional-link" href="'.concat(this.config.modalContent.link,'">').concat(this.config.modalContent.link_text,"</a>"):"",'\n\n\t\t\t\t\t<button class="give-button give-popup-close-button').concat(this.config.classes.cancelBtn?" ".concat(this.config.classes.cancelBtn):" give-button--secondary",'">\n\t\t\t\t\t\t').concat(this.config.modalContent.cancelBtnTitle?this.config.modalContent.cancelBtnTitle:"confirm"===this.config.type?Give.fn.getGlobalVar("cancel"):Give.fn.getGlobalVar("close"),"\n\t\t\t\t\t</button>\n\n\t\t\t\t\t").concat("confirm"!==this.config.type&&"form"!==this.config.type?"":'<button class="give-button give-button--primary give-popup-'.concat(this.config.type,'-button">\n\n\t\t\t\t\t\t').concat(this.config.modalContent.confirmBtnTitle?this.config.modalContent.confirmBtnTitle:Give.fn.getGlobalVar("confirm"),"\n\t\t\t\t\t</button>"),"\n\t\t\t\t</div>\n\n\t\t\t</div>")),e}},{key:"setupTemplate",value:function(){this.config.template=this.getTemplate()}},{key:"__setupClickEvent",value:function(){this.config.triggerSelector.length&&jQuery(this.config.triggerSelector).magnificPopup(this.config)}},{key:"popupConfig",value:function(){"magnificPopup"===this.config.externalPlugin&&(this.config.items=this.config.items||{src:this.config.template,type:"inline"},this.config=Object.assign({removalDelay:300,fixedContentPos:!0,fixedBgPos:!0,alignTop:!0,showCloseBtn:!1,closeOnBgClick:!1,enableEscapeKey:!0,focus:".give-popup-close-button"},this.config))}},{key:"render",value:function(){switch(this.config.externalPlugin){case"magnificPopup":this.config.triggerSelector||jQuery.magnificPopup.open(this.config)}return this}}],[{key:"__closePopup",value:function(e){e.preventDefault(),jQuery.magnificPopup.instance.close()}},{key:"__ajaxModalHandle",value:function(e){var t=jQuery(e.target),n=t.attr("data-cache");if(e.preventDefault(),void 0!==n)return n=decodeURI(n),void new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:n},closeOnBgClick:!0}).render();jQuery.ajax({url:t.attr("href"),method:"GET",beforeSend:function(){new Give.modal.GiveSuccessAlert({modalContent:{desc:Give.fn.loader({},{show:null,loadingText:Give.fn.getGlobalVar("loader_translation").loading})},closeOnBgClick:!0}).render()},success:function(e){e.length&&t.attr("data-cache",encodeURI(e)),jQuery(".mfp-wrap").length&&new Give.modal.GiveSuccessAlert({modalContent:{title:t.attr("title"),desc:e},closeOnBgClick:!0}).render()}})}}]),e}(),m=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--error",i.init(),i}return n}(p),g=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--warning",i.init(),i}return n}(p),v=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper="give-modal--notice",i.init(),i}return n}(p),_=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="alert",(i=t.call(this,e)).config.classes.modalWrapper+=" give-modal--success",i.init(),i}return n}(p),b=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="confirm",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return f()(n,null,[{key:"__confirmPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&(jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el}),jQuery.magnificPopup.close())}}]),n}(p),y=function(e){o()(n,e);var t=h(n);function n(e){var i;return d()(this,n),e.type="form",i=t.call(this,e),void 0!==e.modalWrapper&&""!==e.modalWrapper&&(i.config.classes.modalWrapper=e.modalWrapper),i.init(),i}return f()(n,null,[{key:"__submitPopup",value:function(){"function"==typeof jQuery.magnificPopup.instance.st.successConfirm&&jQuery.magnificPopup.instance.st.successConfirm({el:jQuery.magnificPopup.instance.st.el})}}]),n}(p);window.addDynamicEventListener(document,"click",".give-popup-close-button",p.__closePopup,{}),window.addDynamicEventListener(document,"click",".give-popup-confirm-button",b.__confirmPopup,{}),window.addDynamicEventListener(document,"click",".give-popup-form-button",y.__submitPopup,{}),window.addDynamicEventListener(document,"click",".give-ajax-modal",p.__ajaxModalHandle,{})},388:function(e,t){e.exports=jQuery},40:function(e,t,n){var i=n(82);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},404:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(417),o=function(e){return new i.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var i=setTimeout((function(){o()}),400);e.setAttribute("data-contentLoaded","1");var o=function(){clearTimeout(i),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)}},417:function(e,t,n){e.exports=n(569)},418:function(e,t,n){var i,o,r;
29
  /*! Magnific Popup - v1.1.0 - 2016-02-20
30
  * http://dimsemenov.com/plugins/magnific-popup/
31
  * Copyright (c) 2016 Dmitry Semenov; */o=[n(388)],void 0===(r="function"==typeof(i=function(e){var t,n,i,o,r,a,s=function(){},l=!!window.jQuery,c=e(window),d=function(e,n){t.ev.on("mfp"+e+".mfp",n)},u=function(t,n,i,o){var r=document.createElement("div");return r.className="mfp-"+t,i&&(r.innerHTML=i),o?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},f=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},h=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},p=function(){e.magnificPopup.instance||((t=new s).init(),e.magnificPopup.instance=t)};s.prototype={constructor:s,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(o=0;o<s.length;o++)if((a=s[o]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=u("bg").on("click.mfp",(function(){t.close()})),t.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=u("container",t.wrap)),t.contentContainer=u("content"),t.st.preloader&&(t.preloader=u("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}f("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",(function(e,t,n,i){n.close_replaceWith=h(i.type)})),r+=" mfp-close-btn-in"):t.wrap.append(h())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",(function(e){27===e.keyCode&&t.close()})),c.on("resize.mfp",(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var m=t.wH=c.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(m)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var _=t.st.mainClass;return t.isIE7&&(_+=" mfp-ie7"),_&&t._addClassToMFP(_),t.updateItemHTML(),f("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(m),f("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(f("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){f("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,f("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),f("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(f("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var r=!!t.st[i]&&t.st[i].markup;f("FirstMarkupParse",r),t.currTemplate[i]=!r||e(r)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,f("Change",n),o=n.type,t.container.prepend(t.contentContainer),f("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(h()):t.content=e:t.content="",f("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var r=t.types,a=0;a<r.length;a++)if(o.el.hasClass("mfp-"+r[a])){i=r[a];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,f("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(c.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};f("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),f("MarkupParse",[t,n,i]),e.each(n,(function(n,i){if(void 0===i||!1===i)return!0;if((o=n.split("_")).length>1){var r=t.find(".mfp-"+o[0]);if(r.length>0){var a=o[1];"replaceWith"===a?r[0]!==i[0]&&r.replaceWith(i):"img"===a?r.is("img")?r.attr("src",i):r.replaceWith(e("<img>").attr("src",i).attr("class",r.attr("class"))):r.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(t,n){return p(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){p();var i=e(this);if("string"==typeof n)if("open"===n){var o,r=l?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),t._openClick({mfpEl:o},i,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var m,g,v,_=function(){v&&(g.after(v.addClass(m)).detach(),v=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",(function(){_()}))},getInline:function(n,i){if(_(),n.src){var o=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(g||(m=o.hiddenClass,g=u(m),m="mfp-"+m),v=r.after(g).detach().removeClass(m)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),r=e("<div>");return n.inlineElement=r,r}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var b,y=function(){b&&e(document.body).removeClass(b)},w=function(){y(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,d("Close.ajax",w),d("BeforeChange.ajax",w)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,r){var a={data:i,xhr:r};f("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,y(),t._setFocus(),setTimeout((function(){t.wrap.addClass("mfp-ready")}),16),t.updateStatus("ready"),f("AjaxContentAdded")},error:function(){y(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,k,C=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),d("Open"+i,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),d("Close"+i,(function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")})),d("Resize"+i,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(r){x&&clearInterval(x),x=setInterval((function(){i.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3==++n?o(10):40===n?o(50):100===n&&o(500))}),r)};o(1)},getImage:function(n,i){var o=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,f("ImageLoadComplete")):++o<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",r).on("error.mfploader",a),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),(c=n.img[0]).naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:C(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();(r=s(e)).css(t._getOffset()),t.wrap.append(r),o=setTimeout((function(){r.css(t._getOffset(!0)),o=setTimeout((function(){l(),setTimeout((function(){r.remove(),e=r=null,f("ZoomAnimationEnded")}),16)}),a)}),16)}})),d("BeforeClose"+i,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),d("Close"+i,(function(){t._allowZoom()&&(l(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i,o=(i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-r;var s={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-a-r};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var S=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",(function(e,t,n){t!==n&&("iframe"===t?S():"iframe"===n&&S(!0))})),d("Close.iframe",(function(){S()}))},getIframe:function(n,i){var o=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var a={};return r.srcAction&&(a[r.srcAction]=o),t._parseMarkup(i,a,n),t.updateStatus("ready"),i}}});var T=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},j=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",d("Open"+o,(function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),i.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),d("UpdateStatus"+o,(function(e,n){n.text&&(n.text=j(n.text,t.currItem.index,t.items.length))})),d("MarkupParse"+o,(function(e,i,o,r){var a=t.items.length;o.counter=a>1?j(n.tCounter,r.index,a):""})),d("BuildControls"+o,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(o.add(r))}})),d("Change"+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),d("Close"+o,(function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=T(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=T(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=T(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),f("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,f("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(d("ImageHasSize.retina",(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),d("ElementParse.retina",(function(t,i){i.src=e.replaceSrc(i,n)})))}}}}),p()})?i.apply(t,o):i)||(e.exports=r)},419:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,i,o){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,i),o)}}(window)},46:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},542:function(e,t,n){"use strict";function i(e){e.on("chosen:ready",(function(){jQuery(this).next(".chosen-container").find("input.chosen-search-input").after('<span class="spinner"></span>')})),e.chosen({inherit_select_classes:!0,placeholder_text_single:Give.fn.getGlobalVar("one_option"),placeholder_text_multiple:Give.fn.getGlobalVar("one_or_more_option")}),e.on("chosen:no_results",(function(){var e=jQuery(this).next(".chosen-container"),t=e.find("li.no-results"),n="",i=Give.fn.getGlobalVar("chosen");n=e.hasClass("give-select-chosen-ajax")&&t.length?i.ajax_search_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'):i.no_results_msg.replace("{search_term}",'"'+jQuery("input",e).val()+'"'),t.html(n);jQuery(document.body).on("keyup",".give-select.chosen-container .chosen-search input, .give-select.chosen-container .search-field input",(function(e){var t=jQuery(this).val(),n=jQuery(this).closest(".give-select-chosen"),i=n.prev(),o=n.find('input[type="text"]'),r=(n.hasClass("variations"),e.which),a="give_form_search",s=this;if(n.prev().data("search-type")){if("no_ajax"===i.data("search-type"))return;a="give_"+i.data("search-type")+"_search"}t.length>0&&t.length<=3||!a.length||9===r||13===r||16===r||17===r||18===r||19===r||20===r||27===r||33===r||34===r||35===r||36===r||37===r||38===r||39===r||40===r||44===r||45===r||144===r||145===r||91===r||93===r||224===r||112<=r&&123>=r||(clearTimeout(Give.cache.chosenSearchTypingTimer),n.addClass("give-select-chosen-ajax"),Give.cache.chosenSearchTypingTimer=setTimeout((function(){jQuery.ajax({type:"POST",url:ajaxurl,data:{action:a,s:t,fields:jQuery(s).closest("form").serialize()},dataType:"json",beforeSend:function(){i.closest("ul.chosen-results").empty(),o.prop("disabled",!0)},success:function(e){n.removeClass("give-select-chosen-ajax"),jQuery("option:not(:selected)",i).remove(),e.length?(jQuery.each(e,(function(e,n){jQuery('option[value="'+n.id+'"]',i).length||(0===t.length?i.append('<option value="'.concat(n.id,'">').concat(n.name,"</option>")):i.prepend('<option value="'.concat(n.id,'">').concat(n.name,"</option>")))})),n.prev("select.give-select-chosen").trigger("chosen:updated")):n.prev("select.give-select-chosen").trigger("chosen:no_results"),o.prop("disabled",!1),o.val(t).focus()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){o.prop("disabled",!1)}))}),342))})),jQuery(".give-select-chosen .chosen-search input").each((function(){var e=jQuery(this).parent().parent().parent().prev("select.give-select-chosen").data("search-type"),t="";"form"===e?t=Give.fn.getGlobalVar("search_placeholder"):(e="search_placeholder_"+e,Give.fn.getGlobalVar(e)&&(t=Give.fn.getGlobalVar(e))),jQuery(this).attr("placeholder",t)}))}))}n.d(t,"a",(function(){return i}))},55:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},567:function(e,t,n){(function(t){e.exports=t.accounting=n(568)}).call(this,n(55))},568:function(e,t,n){
assets/dist/js/donor-dashboards-app.js CHANGED
@@ -2,7 +2,7 @@
2
  /*!
3
  * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
4
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
5
- */function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ACTIVE_TAB":return X(X({},e),{},{activeTab:t.payload.tab});case"ADD_TAB":var n=Object.assign({},e.tabs);return n[t.payload.tab.slug]=t.payload.tab,X(X({},e),{},{tabs:n});case"SET_PROFILE":return X(X({},e),{},{profile:t.payload.profile});case"SET_APPLICATION_ERROR":return X(X({},e),{},{applicationError:t.payload.error});case"SET_STATES":return X(X({},e),{},{states:t.payload.states});case"SET_FETCHING_STATES":return X(X({},e),{},{fetchingStates:t.payload.fetchingStates});default:return e}})),ee=n(679),te=n.n(ee);n(635),te()(console.error);var ne,ce,ae,re,oe=n(15);ne={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ce=["(","?"],ae={")":["("],":":["?","?:"]},re=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var ie={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function le(e){var t=function(e){for(var t,n,c,a,r=[],o=[];t=e.match(re);){for(n=t[0],(c=e.substr(0,t.index).trim())&&r.push(c);a=o.pop();){if(ae[n]){if(ae[n][0]===a){n=ae[n][1]||n;break}}else if(ce.indexOf(a)>=0||ne[a]<ne[n]){o.push(a);break}r.push(a)}ae[n]||o.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&r.push(e),r.concat(o.reverse())}(e);return function(e){return function(e,t){var n,c,a,r,o,i,l=[];for(n=0;n<e.length;n++){if(o=e[n],r=ie[o]){for(c=r.length,a=Array(c);c--;)a[c]=l.pop();try{i=r.apply(null,a)}catch(e){return e}}else i=t.hasOwnProperty(o)?t[o]:+o;l.push(i)}return l[0]}(t,e)}}var se={contextDelimiter:"",onMissingKey:null};function ue(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},se)this.options[n]=void 0!==t&&n in t?t[n]:se[n]}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){Object(oe.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ue.prototype.getPluralForm=function(e,t){var n,c,a,r,o=this.pluralForms[e];return o||("function"!=typeof(a=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(c=function(e){var t,n,c;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(c=t[n].trim()).indexOf("plural="))return c.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),r=le(c),a=function(e){return+r({n:e})}),o=this.pluralForms[e]=a),o(t)},ue.prototype.dcnpgettext=function(e,t,n,c,a){var r,o,i;return r=void 0===a?0:this.getPluralForm(e,a),o=n,t&&(o=t+this.options.contextDelimiter+n),(i=this.data[e][o])&&i[r]?i[r]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===r?n:c)};var pe={"":{plural_forms:function(e){return 1===e?0:1}}},de=/^i18n\.(n?gettext|has_translation)(_|$)/,me=n(27);var ve=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var ge=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var be=function(e,t){return function(n,c,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(ge(n)&&ve(c))if("function"==typeof a)if("number"==typeof r){var i={callback:a,priority:r,namespace:c};if(o[n]){var l,s=o[n].handlers;for(l=s.length;l>0&&!(r>=s[l-1].priority);l--);l===s.length?s[l]=i:s.splice(l,0,i),o.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else o[n]={handlers:[i],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,c,a,r)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c,a){var r=e[t];if(ge(c)&&(n||ve(a))){if(!r[c])return 0;var o=0;if(n)o=r[c].handlers.length,r[c]={runs:r[c].runs,handlers:[]};else for(var i=r[c].handlers,l=function(e){i[e].namespace===a&&(i.splice(e,1),o++,r.__current.forEach((function(t){t.name===c&&t.currentIndex>=e&&t.currentIndex--})))},s=i.length-1;s>=0;s--)l(s);return"hookRemoved"!==c&&e.doAction("hookRemoved",c,a),o}}};var ze=function(e,t){return function(n,c){var a=e[t];return void 0!==c?n in a&&a[n].handlers.some((function(e){return e.namespace===c})):n in a}};n(310);var Ce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c){var a=e[t];a[c]||(a[c]={handlers:[],runs:0}),a[c].runs++;var r=a[c].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];if(!r||!r.length)return n?i[0]:void 0;var s={name:c,currentIndex:0};for(a.__current.push(s);s.currentIndex<r.length;){var u=r[s.currentIndex],f=u.callback.apply(null,i);n&&(i[0]=f),s.currentIndex++}return a.__current.pop(),n?i[0]:void 0}};var xe=function(e,t){return function(){var n,c,a=e[t];return null!==(n=null===(c=a.__current[a.__current.length-1])||void 0===c?void 0:c.name)&&void 0!==n?n:null}};var Me=function(e,t){return function(n){var c=e[t];return void 0===n?void 0!==c.__current[0]:!!c.__current[0]&&n===c.__current[0].name}};var Le=function(e,t){return function(n){var c=e[t];if(ge(n))return c[n]&&c[n].runs?c[n].runs:0}},we=function e(){Object(me.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=be(this,"actions"),this.addFilter=be(this,"filters"),this.removeAction=ye(this,"actions"),this.removeFilter=ye(this,"filters"),this.hasAction=ze(this,"actions"),this.hasFilter=ze(this,"filters"),this.removeAllActions=ye(this,"actions",!0),this.removeAllFilters=ye(this,"filters",!0),this.doAction=Ce(this,"actions"),this.applyFilters=Ce(this,"filters",!0),this.currentAction=xe(this,"actions"),this.currentFilter=xe(this,"filters"),this.doingAction=Me(this,"actions"),this.doingFilter=Me(this,"filters"),this.didAction=Le(this,"actions"),this.didFilter=Le(this,"filters")};var He=function(){return new we}(),Ve=(He.addAction,He.addFilter,He.removeAction,He.removeFilter,He.hasAction,He.hasFilter,He.removeAllActions,He.removeAllFilters,He.doAction,He.applyFilters,He.currentAction,He.currentFilter,He.doingAction,He.doingFilter,He.didAction,He.didFilter,He.actions,He.filters,function(e,t,n){var c=new ue({}),a=new Set,r=function(){a.forEach((function(e){return e()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";c.data[t]=he(he(he({},pe),c.data[t]),e),c.data[t][""]=he(he({},pe[""]),c.data[t][""])},i=function(e,t){o(e,t),r()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return c.data[e]||o(void 0,e),c.dcnpgettext(e,t,n,a,r)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,c){var a=l(c,t,e);return n?(a=n.applyFilters("i18n.gettext_with_context",a,e,t,c),n.applyFilters("i18n.gettext_with_context_"+s(c),a,e,t,c)):a};if(e&&i(e,t),n){var f=function(e){de.test(e)&&r()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return c.data[e]},setLocaleData:i,subscribe:function(e){return a.add(e),function(){return a.delete(e)}},__:function(e,t){var c=l(t,void 0,e);return n?(c=n.applyFilters("i18n.gettext",c,e,t),n.applyFilters("i18n.gettext_"+s(t),c,e,t)):c},_x:u,_n:function(e,t,c,a){var r=l(a,void 0,e,t,c);return n?(r=n.applyFilters("i18n.ngettext",r,e,t,c,a),n.applyFilters("i18n.ngettext_"+s(a),r,e,t,c,a)):r},_nx:function(e,t,c,a,r){var o=l(r,a,e,t,c);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,c,a,r),n.applyFilters("i18n.ngettext_with_context_"+s(r),o,e,t,c,a,r)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,a){var r,o,i=t?t+""+e:e,l=!(null===(r=c.data)||void 0===r||null===(o=r[null!=a?a:"default"])||void 0===o||!o[i]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,a),l=n.applyFilters("i18n.has_translation_"+s(a),l,e,t,a)),l}}}(void 0,void 0,He)),Ee=(Ve.getLocaleData.bind(Ve),Ve.setLocaleData.bind(Ve),Ve.subscribe.bind(Ve),Ve.__.bind(Ve));Ve._x.bind(Ve),Ve._n.bind(Ve),Ve._nx.bind(Ve),Ve.isRTL.bind(Ve),Ve.hasTranslation.bind(Ve);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _e(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Re(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function Pe(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,c=t.indexOf(":"),a=Re(t.slice(0,c)),r=t.slice(c+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=r:e[a]=r,e}),{})}var Te=!1;try{Te=!0}catch(e){}function je(e){return _.c.icon?_.c.icon(e):null===e?null:"object"===Se(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function De(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ne({},e,t):{}}function Ie(e){var t=e.forwardedRef,n=Ae(e,["forwardedRef"]),c=n.icon,a=n.mask,r=n.symbol,o=n.className,i=n.title,l=n.titleId,s=je(c),u=De("classes",[].concat(_e(function(e){var t,n=e.spin,c=e.pulse,a=e.fixedWidth,r=e.inverse,o=e.border,i=e.listItem,l=e.flip,s=e.size,u=e.rotation,f=e.pull,h=(Ne(t={"fa-spin":n,"fa-pulse":c,"fa-fw":a,"fa-inverse":r,"fa-border":o,"fa-li":i,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(s),null!=s),Ne(t,"fa-rotate-".concat(u),null!=u&&0!==u),Ne(t,"fa-pull-".concat(f),null!=f),Ne(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(n)),_e(o.split(" ")))),f=De("transform","string"==typeof n.transform?_.c.transform(n.transform):n.transform),h=De("mask",je(a)),p=Object(_.a)(s,Oe({},u,{},f,{},h,{symbol:r,title:i,titleId:l}));if(!p)return function(){var e;!Te&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var d=p.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Ie.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),Fe(d[0],m)}Ie.displayName="FontAwesomeIcon",Ie.propTypes={border:s.a.bool,className:s.a.string,mask:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),fixedWidth:s.a.bool,inverse:s.a.bool,flip:s.a.oneOf(["horizontal","vertical","both"]),icon:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),listItem:s.a.bool,pull:s.a.oneOf(["right","left"]),pulse:s.a.bool,rotation:s.a.oneOf([0,90,180,270]),size:s.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:s.a.bool,symbol:s.a.oneOfType([s.a.bool,s.a.string]),title:s.a.string,transform:s.a.oneOfType([s.a.string,s.a.object]),swapOpacity:s.a.bool},Ie.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Fe=function e(t,n){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),r=Object.keys(n.attributes||{}).reduce((function(e,t){var c=n.attributes[t];switch(t){case"class":e.attrs.className=c,delete n.attributes.class;break;case"style":e.attrs.style=Pe(c);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=c:e.attrs[Re(t)]=c}return e}),{attrs:{}}),o=c.style,i=void 0===o?{}:o,l=Ae(c,["style"]);return r.attrs.style=Oe({},r.attrs.style,{},i),t.apply(void 0,[n.tag,Oe({},r.attrs,{},l)].concat(_e(a)))}.bind(null,i.a.createElement),Ue=(n(963),function(e){var t=e.icon,n=e.children;return React.createElement("div",{className:"give-donor-dashboard-heading"},t&&React.createElement(Ie,{icon:t,className:"spinner"===t?"give-donor-dashboard-heading__spinner":""}),n)}),Be=n(4),Ze=n.n(Be),We=(n(964),function(e){var t=e.header,n=e.rows,c=e.footer;return React.createElement("div",{className:"give-donor-dashboard-table"},React.createElement("div",{className:"give-donor-dashboard-table__header"},t),React.createElement("div",{className:"give-donor-dashboard-table__rows"},n),React.createElement("div",{className:"give-donor-dashboard-table__footer"},c))}),$e=function(e){var t=e.annualReceipt[1],n=t.year,c=t.amount,a=t.count,r=t.statementUrl;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},n.label),React.createElement("div",{className:"give-donor-dashboard-table__column"},c.formatted),React.createElement("div",{className:"give-donor-dashboard-table__column"},a),React.createElement("div",{className:"give-donor-dashboard-table__column"},React.createElement("a",{href:r,onClick:function(e){return function(e){e.preventDefault(),window.parent.open(e.target.href,"_blank")}(e)}},Ee("View Receipt","give")," ",React.createElement(Ie,{icon:"arrow-right"}))))},qe=(n(965),function(e){var t=e.annualReceipts,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(s=Object.entries(t),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement($e,{key:n,annualReceipt:t})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Year","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Count","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Statement","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Receipts","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),Ge={annualReceipts:null,querying:!1,error:null};function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ANNUAL_RECEIPTS":return Ye(Ye({},e),{},{annualReceipts:t.payload.annualReceipts});case"SET_QUERYING":return Ye(Ye({},e),{},{querying:t.payload.querying});case"SET_ERROR":return Ye(Ye({},e),{},{error:t.payload.error});default:return e}})),Xe=function(e){var t=Object(o.useState)(e(Qe.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Qe.subscribe((function(){a(e(Qe.getState()))}));return function(){t()}}),[]),c},Je=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},et=function(){var e=Xe((function(e){return e.annualReceipts})),t=Xe((function(e){return e.querying})),n=Xe((function(e){return e.error})),c=e?Object.entries(e).length:0;return Object(o.useEffect)((function(){var e;e=Qe.dispatch,W()&&(e(Je(!0)),q.post("annual-receipts",{},{}).then((function(e){return e.data})).then((function(t){var n=t.receipts;e({type:"SET_ANNUAL_RECEIPTS",payload:{annualReceipts:n}}),e(Je(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}})})).catch((function(){e(Je(!1))})))}),[]),n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):!0===t&&null===e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(qe,null)):React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(c," ").concat(Ee("Total Annual Receipts","give"))),React.createElement(qe,{annualReceipts:e,perPage:5}))},tt=function(){return window.giveDonorDashboard.utils.registerTab({label:"Annual Receipts",icon:"receipt",slug:"annual-receipts",content:et})},nt=(n(966),function(){var e=O((function(e){return e.tabs})),t=Object(o.useState)([]),n=Ze()(t,2),c=n[0],a=n[1],r=Object(o.useState)([]),i=Ze()(r,2),l=i[0],s=i[1];Object(o.useEffect)((function(){a(Object.entries(e))}),[e]),Object(o.useEffect)((function(){c.length>2&&s(u(c))}),[c]);var u=function(e){return e.reduce((function(e,t,n){if(t[1].dashboardContent){var c=t[1].dashboardContent;e.push(React.createElement(c,{key:n}))}return e}),[])};return React.createElement("div",{className:"give-donor-dashboard-dashboard-content"},l)}),ct=function(){return React.createElement(nt,null)},at=n(26),rt=(n(967),function(e){var t=e.icon,n=e.children,c=e.onClick,a=e.href,r=e.type;return a?React.createElement("a",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:function(e){return function(e){e.preventDefault(),window.parent.location=a}(e)},href:a},n,t&&React.createElement(Ie,{icon:t})):React.createElement("button",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:c?function(){return c()}:null,type:r},n,t&&React.createElement(Ie,{icon:t}))}),ot=(n(968),function(e){var t=e.donation;return void 0===t?null:t.receipt.map((function(e,t){var n=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Ie,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},n)}))}),it=function(){return O((function(e){return e.accentColor}))},lt=function(){var e=Object(o.useState)({width:void 0,height:void 0}),t=Ze()(e,2),n=t[0],c=t[1];return Object(o.useEffect)((function(){function e(){c({width:window.top.innerWidth,height:window.top.innerHeight})}return window.top.addEventListener("resize",e),e(),function(){return window.top.removeEventListener("resize",e)}}),[]),n},st=function(e){var t=e.donation,n=t.id,a=t.form,r=t.payment,o=lt().width;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},r.amount)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Form","give")),a.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-date"},r.date),React.createElement("div",{className:"give-donor-dashboard-table__donation-time"},r.time)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:r.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},r.status.label)),"test"===r.mode&&React.createElement("div",{className:"give-donor-dashboard-table__donation-test-tag"},Ee("Test Donation","give"))),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",r.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/donation-history/".concat(n)},Ee("View Receipt","give")," ",React.createElement(Ie,{icon:"arrow-right"})))))},ut=(n(969),function(e){var t=e.donations,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(st,{key:n,donation:t})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Donation","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Campaign","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Status","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Donations","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),ft={donations:null,querying:!1,count:null,revenue:null,average:null,currency:null,error:null};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_DONATIONS":return pt(pt({},e),{},{donations:t.payload.donations});case"SET_QUERYING":return pt(pt({},e),{},{querying:t.payload.querying});case"SET_ERROR":return pt(pt({},e),{},{error:t.payload.error});case"SET_COUNT":return pt(pt({},e),{},{count:t.payload.count});case"SET_AVERAGE":return pt(pt({},e),{},{average:t.payload.average});case"SET_REVENUE":return pt(pt({},e),{},{revenue:t.payload.revenue});case"SET_CURRENCY":return pt(pt({},e),{},{currency:t.payload.currency});default:return e}})),mt=function(e){var t=Object(o.useState)(e(dt.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=dt.subscribe((function(){a(e(dt.getState()))}));return function(){t()}}),[]),c},vt=(n(970),function(){var e=mt((function(e){return e.donations})),t=mt((function(e){return e.querying})),n=mt((function(e){return e.error})),a=Object(at.f)(),r=a?a.pathname.split("/")[2]:null,i=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};return n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):r?t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__donation-history-link"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Donation History","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Donation Receipt","give")," #",i(r).payment.serialCode),React.createElement(ot,{donation:i(r)}),React.createElement("div",{className:"give-donor-dashboard__donation-history-footer"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Donation History","give")),i(r).payment.pdfReceiptUrl.length>0&&React.createElement(rt,{icon:"file-pdf",href:i(r).payment.pdfReceiptUrl},Ee("Download Receipt","give")))):t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(ut,null)):React.createElement(o.Fragment,null,e?React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(e?Object.entries(e).length:0," ").concat(Ee("Total Donations","give"))),React.createElement(ut,{donations:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Donations","give"))))}),gt=(n(971),function(){var e=it(),t=mt((function(e){return e.count})),n=mt((function(e){return e.revenue})),c=mt((function(e){return e.average})),a=mt((function(e){return e.currency}));return React.createElement("div",{className:"give-donor-dashboard-dashboard__stats"},t&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},t),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Number of donations","give"))),n&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),n):React.createElement(o.Fragment,null,n,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Lifetime donations","give"))),c&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),c):React.createElement(o.Fragment,null,c,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))," "),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Average donation","give"))))}),bt=function(){var e=mt((function(e){return e.donations})),t=mt((function(e){return e.querying})),n=mt((function(e){return e.error}));return t?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"spinner"},Ee("Loading...","give"))):n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):e?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"chart-line"},Ee("Your Giving Stats","give")),React.createElement(gt,null),React.createElement(Ue,{icon:"calendar-alt"},Ee(t?"Loading...":"Recent Donations","give")),!t&&React.createElement(ut,{donations:e,perPage:3})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Donations","give")))},yt=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},zt=function(){var e,t;e=dt.dispatch,t=J.dispatch,W()&&(e(yt(!0)),q.post("donations",{},{}).then((function(e){return e.data})).then((function(t){var n=t.status,c=t.body_response;if(200===n){var a=c[0],r=a.donations,o=a.count,i=a.revenue,l=a.average,s=a.currency;e(function(e){return{type:"SET_DONATIONS",payload:{donations:e}}}(r)),e(function(e){return{type:"SET_COUNT",payload:{count:e}}}(o)),e(function(e){return{type:"SET_REVENUE",payload:{revenue:e}}}(i)),e(function(e){return{type:"SET_AVERAGE",payload:{average:e}}}(l)),e(function(e){return{type:"SET_CURRENCY",payload:{currency:e}}}(s))}400===n&&e({type:"SET_ERROR",payload:{error:c.message}}),e(yt(!1))})).catch((function(n){var c=n.response,a=c.status,r=c.data;403===a&&"rest_cookie_invalid_nonce"===r.code&&t({type:"SET_APPLICATION_ERROR",payload:{error:Ee("Request was attempted with an invalid nonce. Try refreshing the page, and if the problem persists contact the site administrator and alert them of this error.","give")}}),e(yt(!1))}))),window.giveDonorDashboard.utils.registerTab({label:Ee("Donation History","give"),icon:"calendar-alt",slug:"donation-history",content:vt,dashboardContent:bt})},Ct=n(25),xt=n.n(Ct),Mt=n(12),Lt=n.n(Mt),wt=(n(972),function(){return React.createElement("div",{className:"give-donor-dashboard-divider"})}),Ht=n(9),Vt=n.n(Ht);function Et(e,t,n,c){return new(n||(n=Promise))((function(a,r){function o(e){try{l(c.next(e))}catch(e){r(e)}}function i(e){try{l(c.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}l((c=c.apply(e,t||[])).next())}))}function St(e,t){var n,c,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,c&&(a=2&r[0]?c.return:r[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,r[1])).done)return a;switch(c=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,c=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){o.label=r[1];break}if(6===r[0]&&o.label<a[1]){o.label=a[1],a=r;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(r);break}a[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],c=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}}Object.create;function Nt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var c,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(c=r.next()).done;)o.push(c.value)}catch(e){a={error:e}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}Object.create;var kt=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function Ot(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),c=kt.get(n);c&&Object.defineProperty(e,"type",{value:c,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var c=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof c&&c.length>0?c:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var At=[".DS_Store","Thumbs.db"];function _t(e){return(null!==e.target&&e.target.files?Tt(e.target.files):[]).map((function(e){return Ot(e)}))}function Rt(e,t){return Et(this,void 0,void 0,(function(){var n;return St(this,(function(c){switch(c.label){case 0:return e.items?(n=Tt(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(jt))]):[3,2];case 1:return[2,Pt(Dt(c.sent()))];case 2:return[2,Pt(Tt(e.files).map((function(e){return Ot(e)})))]}}))}))}function Pt(e){return e.filter((function(e){return-1===At.indexOf(e.name)}))}function Tt(e){for(var t=[],n=0;n<e.length;n++){var c=e[n];t.push(c)}return t}function jt(e){if("function"!=typeof e.webkitGetAsEntry)return It(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Ut(t):It(e)}function Dt(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Nt(arguments[t]));return e}(e,Array.isArray(t)?Dt(t):[t])}),[])}function It(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Ot(t);return Promise.resolve(n)}function Ft(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,e.isDirectory?Ut(e):Bt(e)]}))}))}function Ut(e){var t=e.createReader();return new Promise((function(e,n){var c=[];!function a(){var r=this;t.readEntries((function(t){return Et(r,void 0,void 0,(function(){var r,o,i;return St(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(c)];case 2:return r=l.sent(),e(r),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(Ft)),c.push(i),a(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Bt(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var c=Ot(n,e.fullPath);t(c)}),(function(e){n(e)}))}))]}))}))}var Zt=n(680),Wt=n.n(Zt);function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Gt=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Kt=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," bytes")}},Yt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," bytes")}},Qt={code:"too-many-files",message:"Too many files"};function Xt(e,t){var n="application/x-moz-file"===e.type||Wt()(e,t);return[n,n?null:Gt(t)]}function Jt(e,t,n){if(en(e.size))if(en(t)&&en(n)){if(e.size>n)return[!1,Kt(n)];if(e.size<t)return[!1,Yt(t)]}else{if(en(t)&&e.size<t)return[!1,Yt(t)];if(en(n)&&e.size>n)return[!1,Kt(n)]}return[!0,null]}function en(e){return null!=e}function tn(e){var t=e.files,n=e.accept,c=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles;return!(!r&&t.length>1||r&&o>=1&&t.length>o)&&t.every((function(e){var t=$t(Xt(e,n),1)[0],r=$t(Jt(e,c,a),1)[0];return t&&r}))}function nn(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function cn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function an(e){e.preventDefault()}function rn(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function on(e){return-1!==e.indexOf("Edge/")}function ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return rn(e)||on(e)}function sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,c=new Array(n>1?n-1:0),a=1;a<n;a++)c[a-1]=arguments[a];return t.some((function(t){return!nn(e)&&t&&t.apply(void 0,[e].concat(c)),nn(e)}))}}function un(e){return function(e){if(Array.isArray(e))return pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||hn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||hn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(e,t){if(e){if("string"==typeof e)return pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var bn=Object(o.forwardRef)((function(e,t){var n=e.children,c=Cn(gn(e,["children"])),a=c.open,r=gn(c,["open"]);return Object(o.useImperativeHandle)(t,(function(){return{open:a}}),[a]),i.a.createElement(o.Fragment,null,n(mn(mn({},r),{},{open:a})))}));bn.displayName="Dropzone";var yn={disabled:!1,getFilesFromEvent:function(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?Rt(e.dataTransfer,e.type):_t(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};bn.defaultProps=yn,bn.propTypes={children:s.a.func,accept:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string)]),multiple:s.a.bool,preventDropOnDocument:s.a.bool,noClick:s.a.bool,noKeyboard:s.a.bool,noDrag:s.a.bool,noDragEventsBubbling:s.a.bool,minSize:s.a.number,maxSize:s.a.number,maxFiles:s.a.number,disabled:s.a.bool,getFilesFromEvent:s.a.func,onFileDialogCancel:s.a.func,onDragEnter:s.a.func,onDragLeave:s.a.func,onDragOver:s.a.func,onDrop:s.a.func,onDropAccepted:s.a.func,onDropRejected:s.a.func,validator:s.a.func};var zn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=mn(mn({},yn),e),n=t.accept,c=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.preventDropOnDocument,b=t.noClick,y=t.noKeyboard,z=t.noDrag,C=t.noDragEventsBubbling,x=t.validator,M=Object(o.useRef)(null),L=Object(o.useRef)(null),w=Object(o.useReducer)(xn,zn),H=fn(w,2),V=H[0],E=H[1],S=V.isFocused,N=V.isFileDialogActive,k=V.draggedFiles,O=Object(o.useCallback)((function(){L.current&&(E({type:"openDialog"}),L.current.value=null,L.current.click())}),[E]),A=function(){N&&setTimeout((function(){L.current&&(L.current.files.length||(E({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(o.useEffect)((function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}}),[L,N,v]);var _=Object(o.useCallback)((function(e){M.current&&M.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),O()))}),[M,L]),R=Object(o.useCallback)((function(){E({type:"focus"})}),[]),P=Object(o.useCallback)((function(){E({type:"blur"})}),[]),T=Object(o.useCallback)((function(){b||(ln()?setTimeout(O,0):O())}),[L,b]),j=Object(o.useRef)([]),D=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),j.current=[])};Object(o.useEffect)((function(){return g&&(document.addEventListener("dragover",an,!1),document.addEventListener("drop",D,!1)),function(){g&&(document.removeEventListener("dragover",an),document.removeEventListener("drop",D))}}),[M,g]);var I=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[].concat(un(j.current),[e.target]),cn(e)&&Promise.resolve(a(e)).then((function(t){nn(e)&&!C||(E({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,C]),F=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=cn(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1}),[h,C]),U=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=j.current.filter((function(e){return M.current&&M.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),j.current=t,t.length>0||(E({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),cn(e)&&f&&f(e))}),[M,f,C]),B=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[],cn(e)&&Promise.resolve(a(e)).then((function(t){if(!nn(e)||C){var c=[],a=[];t.forEach((function(e){var t=fn(Xt(e,n),2),o=t[0],l=t[1],s=fn(Jt(e,i,r),2),u=s[0],f=s[1],h=x?x(e):null;if(o&&u&&!h)c.push(e);else{var p=[l,f];h&&(p=p.concat(h)),a.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&c.length>1||l&&s>=1&&c.length>s)&&(c.forEach((function(e){a.push({file:e,errors:[Qt]})})),c.splice(0)),E({acceptedFiles:c,fileRejections:a,type:"setFiles"}),p&&p(c,a,e),a.length>0&&m&&m(a,e),c.length>0&&d&&d(c,e)}})),E({type:"reset"})}),[l,n,i,r,s,a,p,d,m,C]),Z=function(e){return c?null:e},W=function(e){return y?null:Z(e)},$=function(e){return z?null:Z(e)},q=function(e){C&&e.stopPropagation()},G=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onKeyDown,r=e.onFocus,o=e.onBlur,i=e.onClick,l=e.onDragEnter,s=e.onDragOver,u=e.onDragLeave,f=e.onDrop,h=gn(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return mn(mn(vn({onKeyDown:W(sn(a,_)),onFocus:W(sn(r,R)),onBlur:W(sn(o,P)),onClick:Z(sn(i,T)),onDragEnter:$(sn(l,I)),onDragOver:$(sn(s,F)),onDragLeave:$(sn(u,U)),onDrop:$(sn(f,B))},n,M),c||y?{}:{tabIndex:0}),h)}}),[M,_,R,P,T,I,F,U,B,y,z,c]),K=Object(o.useCallback)((function(e){e.stopPropagation()}),[]),Y=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,c=void 0===t?"ref":t,a=e.onChange,r=e.onClick,o=gn(e,["refKey","onChange","onClick"]),i=vn({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(sn(a,B)),onClick:Z(sn(r,K)),autoComplete:"off",tabIndex:-1},c,L);return mn(mn({},i),o)}}),[L,n,l,B,c]),Q=k.length,X=Q>0&&tn({files:k,accept:n,minSize:i,maxSize:r,multiple:l,maxFiles:s}),J=Q>0&&!X;return mn(mn({},V),{},{isDragAccept:X,isDragReject:J,isFocused:S&&!c,getRootProps:G,getInputProps:Y,rootRef:M,inputRef:L,open:Z(O)})}function xn(e,t){switch(t.type){case"focus":return mn(mn({},e),{},{isFocused:!0});case"blur":return mn(mn({},e),{},{isFocused:!1});case"openDialog":return mn(mn({},e),{},{isFileDialogActive:!0});case"closeDialog":return mn(mn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,c=t.draggedFiles;return mn(mn({},e),{},{draggedFiles:c,isDragActive:n});case"setFiles":return mn(mn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mn(mn({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}n(973);var Mn=function(e){var t=e.url,n=e.file,c=e.onChange,a=Cn({onDrop:Object(o.useCallback)((function(e){c(e[0])}),[]),accept:"image/jpeg, image/png, image/gif",maxFiles:1}),r=a.getRootProps,i=a.getInputProps,l=a.isDragActive,s=Object(o.useState)(t),u=Ze()(s,2),f=u[0],h=u[1];return Object(o.useEffect)((function(){if(n){var e=new window.FileReader;e.readAsDataURL(n),e.onloadend=function(){h(e.result)}}}),[n]),React.createElement("div",{className:"give-donor-dashboard-avatar-control"},React.createElement("label",{className:"give-donor-dashboard-avatar-control__label"},"Avatar"),React.createElement("div",Vt()({className:"give-donor-dashboard-avatar-control__input"},r()),React.createElement("input",i()),React.createElement("div",{className:"give-donor-dashboard-avatar-control__preview"},React.createElement("img",{src:f})),React.createElement("div",{className:"give-donor-dashboard-avatar-control__dropzone".concat(l?" give-donor-dashboard-avatar-control__dropzone--highlight":"")},React.createElement("div",{className:"give-donor-dashboard-avatar-control__instructions"},l?React.createElement("p",null,"Drop the image here..."):React.createElement("p",null,"Drag image here to set ",React.createElement("br",null),"avatar or ",React.createElement("span",{className:"give-donor-dashboard-avatar-control__select-link"},"find image"))))))},Ln=(n(974),function(e){var t=e.children;return React.createElement("div",{className:"give-donor-dashboard-field-row"},t)}),wn=n(384);n(975);function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=function(e){var t=e.label,n=e.value,c=e.isLoading,a=e.onChange,r=e.options,o=e.placeholder,i=e.width,l=e.isClearable;if(r&&r.length<2)return null;var s=it(),u=K(t),f=null!==r?r.filter((function(e){return e.value===n})):null,h={control:function(e){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2",boxSizing:"border-box",marginTop:"8px",border:"1px solid #b8b8b8",borderRadius:"4px"})},input:function(e){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"})},valueContainer:function(e){return Vn(Vn({},e),{},{padding:"7px 12px"})},clearIndicator:function(e){return Vn(Vn({},e),{},{padding:"0px"})},dropdownIndicator:function(e){return Vn(Vn({},e),{},{padding:"0 8px 0 0"})},option:function(e,t){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:t.isSelected?"#fff":"#333",lineHeight:"1.2"})},indicatorSeparator:function(){return{display:"none"}}};return React.createElement("div",{className:"give-donor-dashboard-select-control",style:i?{maxWidth:i}:null},t&&React.createElement("label",{className:"give-donor-dashboard-select-control__label",htmlFor:u},t),React.createElement(wn.a,{placeholder:o,isLoading:c,inputId:u,value:f,onChange:function(e){return a(e?e.value:"")},options:r,styles:h,maxMenuHeight:"200px",isDisabled:c,isClearable:l,theme:function(e){return Vn(Vn({},e),{},{colors:Vn(Vn({},e.colors),{},{primary:s})})}}))};En.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.string,width:s.a.string,isClearable:s.a.bool},En.defaultProps={label:null,value:null,onChange:null,options:null,placeholder:Ee("Select...","give"),width:null,isClearable:!1};var Sn=En,Nn=(n(976),function(e){var t=e.label,n=e.value,c=e.onChange,a=e.icon,r=e.type,o=K(t);return React.createElement("div",{className:"give-donor-dashboard-text-control"},t&&React.createElement("label",{className:"give-donor-dashboard-text-control__label",htmlFor:o},t),React.createElement("div",{className:"give-donor-dashboard-text-control__input"},a&&React.createElement(Ie,{icon:a}),React.createElement("input",{id:o,type:r,value:n,onChange:function(e){return c(e.target.value)}})))});Nn.defaultProps={label:null,value:"",onChange:null,icon:null,type:"text"};var kn=Nn,On=(n(977),function(e){var t=e.label,n=e.description,c=e.options,a=e.value,r=e.onChange,o=c.map((function(e,t){var n=G(e.value);return React.createElement("div",{className:"give-donor-dashboard-radio-control__option",key:t},React.createElement("input",{type:"radio",name:"format",id:n,value:e.value,checked:e.value===a,onChange:function(e){return r(e.target.value)}}),React.createElement("label",{htmlFor:n},e.label))}));return React.createElement("fieldset",{className:"give-donor-dashboard-radio-control"},t&&React.createElement("legend",{className:"give-donor-dashboard-radio-control__legend"},t),n&&React.createElement("div",{className:"give-donor-dashboard-radio-control__description"},n),o)}),An=function(){var e=xt()(Lt.a.mark((function e(t){var n,c,a,r,o,i,l,s,u,f,h,p,d,m,v;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.titlePrefix,c=t.firstName,a=t.lastName,r=t.company,o=t.primaryEmail,i=t.additionalEmails,l=t.primaryAddress,s=t.additionalAddresses,u=t.avatarFile,f=t.isAnonymous,h=t.id,p=J.getState(),d=p.profile,m=d.avatarId,!u){e.next=7;break}return e.next=6,_n(u);case 6:m=e.sent;case 7:return v=J.dispatch,e.abrupt("return",q.post("profile",{data:JSON.stringify({titlePrefix:n,firstName:c,lastName:a,company:r,primaryEmail:o,additionalEmails:i,primaryAddress:l,additionalAddresses:s,avatarId:m,isAnonymous:f}),id:h},{}).then((function(e){return e.data})).then((function(e){return v(I(e.profile)),e})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_n=function(e){var t=new window.FormData;return t.append("file",e),q.post("avatar",t).then((function(e){return e.data})).then((function(e){return e.id}))},Rn=function(e){return q.post("location",{countryCode:e},{}).then((function(e){return e.data})).then((function(e){return e.states.map((function(e){return{value:e.value,label:Pn(e.label)}}))}))},Pn=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},Tn=function(e){var t=e.primaryEmail,n=e.additionalEmails,c=e.onChangePrimaryEmail,a=e.onChangeAdditionalEmails,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=xt()(Lt.a.mark((function e(n,c){var a;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n.map((function(e,t){return React.createElement(Ln,{key:t},React.createElement(kn,{label:0===t?Ee("Additional Emails","give"):null,value:e,onChange:function(e){return r(e,t)},icon:"envelope"}),React.createElement("div",{className:"give-donor-dashboard__email-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-email",onClick:function(){return l(e,t)}},Ee("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-email",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},Ee("Delete","give"))))}));return React.createElement(o.Fragment,null,React.createElement(kn,{label:Ee("Primary Email","give"),value:t,onChange:function(e){return i(e)},icon:"envelope"}),s,React.createElement(rt,{onClick:function(){return e="",t=n.concat(e),void a(t);var e,t},icon:"plus"},Ee("Add Email","give")))},jn=function(e){var t=e.address,n=e.onChange;Object(o.useEffect)((function(){u(t.country),d(t.line1),b(t.line2),x(t.city),H(t.state),k(t.zip)}),[t]);var c=E(),a=O((function(e){return e.countries})),r=O((function(e){return e.states})),i=Object(o.useState)(t.country),l=Ze()(i,2),s=l[0],u=l[1],f=Object(o.useState)(t.line1),h=Ze()(f,2),p=h[0],d=h[1],m=Object(o.useState)(t.line2),v=Ze()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.city),z=Ze()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.state),L=Ze()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.zip),S=Ze()(V,2),N=S[0],k=S[1],A=function(){var e=xt()(Lt.a.mark((function e(t){var n;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,Rn(t);case 3:n=e.sent,c({type:"SET_STATES",payload:{states:n}});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.useEffect)((function(){A(s)}),[s]),Object(o.useEffect)((function(){n({country:s,line1:p,line2:g,state:w,city:C,zip:N})}),[s,p,g,w,C,N]),React.createElement(o.Fragment,null,React.createElement(Sn,{label:Ee("Country","give"),value:s,onChange:function(e){return u(e)},options:a,width:null}),React.createElement(kn,{label:Ee("Address 1","give"),value:p,onChange:function(e){return d(e)}}),React.createElement(kn,{label:Ee("Address 2","give"),value:g,onChange:function(e){return b(e)}}),React.createElement(kn,{label:Ee("City","give"),value:C,onChange:function(e){return x(e)}}),React.createElement(Ln,null,React.createElement(Sn,{label:Ee("State","give"),value:w,onChange:function(e){return H(e)},options:r}),React.createElement(kn,{label:Ee("Zip","give"),value:N,onChange:function(e){return k(e)}})))},Dn=function(e){var t=e.primaryAddress,n=e.additionalAddresses,c=e.onChangePrimaryAddress,a=e.onChangeAdditionalAddresses,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=xt()(Lt.a.mark((function e(n,c){var a;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Object.assign({},t),i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n?n.map((function(e,t){return React.createElement(o.Fragment,{key:t},React.createElement(Ln,null,React.createElement(Ue,null,Ee("Additional Address","give")),React.createElement("div",{className:"give-donor-dashboard__address-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-address",onClick:function(){return l(e,t)}},Ee("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-address",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},Ee("Delete","give")))),React.createElement(wt,null),React.createElement(jn,{address:e,onChange:function(e){return r(e,t)}}))})):null;return t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Primary Address","give")),React.createElement(wt,null),React.createElement(jn,{address:t,onChange:function(e){return i(e)}}),s,React.createElement(rt,{onClick:function(){return e={},t=n.concat(e),void a(t);var e,t},icon:"plus"},Ee("Add Address","give"))):React.createElement("div",{className:"give-donor-dashboard__add-primary-address"},React.createElement(Ue,null,Ee("Looks like you have not set up an address!","give")),React.createElement(rt,{onClick:function(){return i({})},icon:"plus"},Ee("Add Address","give")))},In=(n(978),function(){var e=O((function(e){return e.id})),t=O((function(e){return e.profile})),n=Object(o.useState)(!1),c=Ze()(n,2),a=c[0],r=c[1],i=Object(o.useState)(!1),l=Ze()(i,2),s=l[0],u=l[1];Object(o.useEffect)((function(){b(null),x(t.avatarUrl)}),[t]);var f=Object(o.useState)(t.titlePrefix),h=Ze()(f,2),p=h[0],d=h[1],m=Object(o.useState)(null),v=Ze()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.avatarUrl),z=Ze()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.firstName),L=Ze()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.lastName),E=Ze()(V,2),S=E[0],N=E[1],k=Object(o.useState)(t.company),A=Ze()(k,2),_=A[0],R=A[1],P=Object(o.useState)(t.emails?t.emails.primary:""),T=Ze()(P,2),j=T[0],D=T[1],I=t.emails?Object.keys(t.emails).reduce((function(e,n){return"primary"!==n&&e.push(t.emails[n]),e}),[]):[],F=Object(o.useState)(I),U=Ze()(F,2),B=U[0],Z=U[1],W=Object(o.useState)(t.addresses&&t.addresses.billing?t.addresses.billing[0]:null),$=Ze()(W,2),q=$[0],G=$[1],K=t.addresses&&t.addresses.billing?Object.values(t.addresses.billing).reduce((function(e,t,n){return 0!==n&&e.push(t),e}),[]):[],Y=Object(o.useState)(K),Q=Ze()(Y,2),X=Q[0],J=Q[1],ee=Object(o.useState)(t.isAnonymous),te=Ze()(ee,2),ne=te[0],ce=te[1],ae=[{value:"0",label:Ee("Public - show my donations publicly","give")},{value:"1",label:Ee("Private - only organization admins can view my info")}];Object(o.useEffect)((function(){u(!1)}),[p,w,S,_,j,B,q,X,ne]),Object(o.useEffect)((function(){null!==g&&u(!1)}),[g]);var re=function(){var t=xt()(Lt.a.mark((function t(){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(!0),t.next=3,An({titlePrefix:p,firstName:w,lastName:S,company:_,primaryEmail:j,additionalEmails:B,primaryAddress:q,additionalAddresses:X,avatarFile:g,isAnonymous:ne,id:e});case 3:u(!0),r(!1);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Profile Information","give")),React.createElement(wt,null),React.createElement(Mn,{url:C,file:g,onChange:function(e){return b(e)}}),React.createElement(Ln,null,React.createElement(Sn,{label:Ee("Prefix","give"),value:p,onChange:function(e){return d(e)},options:[{value:"Mr.",label:"Mr."},{value:"Ms.",label:"Ms."},{value:"Mrs.",label:"Mrs."}],placeholder:"--",width:"120px",isClearable:!0}),React.createElement(kn,{label:Ee("First Name","give"),value:w,onChange:function(e){return H(e)},icon:"user"}),React.createElement(kn,{label:Ee("Last Name","give"),value:S,onChange:function(e){return N(e)}})),React.createElement(kn,{label:Ee("Company","give"),value:_,onChange:function(e){return R(e)}}),React.createElement(Tn,{primaryEmail:j,additionalEmails:B,onChangePrimaryEmail:function(e){return D(e)},onChangeAdditionalEmails:function(e){return Z(e)}}),React.createElement(Dn,{primaryAddress:q,additionalAddresses:X,onChangePrimaryAddress:function(e){return G(e)},onChangeAdditionalAddresses:function(e){return J(e)}}),React.createElement(Ue,null,Ee("Additional Info","give")),React.createElement(wt,null),React.createElement(On,{label:Ee("Anonymous Giving"),description:Ee("This will prevent your avatar, first name, donation comments, and other information from appearing publicly on this organization’s website.","give"),options:ae,onChange:function(e){return ce(e)},value:ne}),React.createElement(rt,{onClick:function(){return re()}},s?React.createElement(o.Fragment,null,Ee("Updated","give")," ",React.createElement(Ie,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,Ee("Update Profile","give")," ",React.createElement(Ie,{className:a?"give-donor-dashboard__edit-profile-spinner":"",icon:a?"spinner":"save",fixedWidth:!0}))))}),Fn=function(e){var t=e.subscription;if(void 0===t)return null;var n,c=t.receipt.map((function(e,t){var c=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Ie,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return"Donation"===e.id?(n=React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c),null):React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c)}));return c.push(n),c},Un=n(681),Bn=n.n(Un),Zn=(n(979),function(e){var t=e.label,n=e.onChange,c=e.value,a=e.placeholder,r=e.currency,o=e.min,i=e.max,l=e.width,s=K(t),u=G(t);return React.createElement("div",{className:"give-donor-dashboard-currency-control",style:l?{maxWidth:l}:null},t&&React.createElement("label",{className:"give-donor-dashboard-currency-control__label",htmlFor:s},t),React.createElement("div",{className:"give-donor-dashboard-currency-control__input"},React.createElement(Bn.a,{id:s,name:u,placeholder:a,value:c,onValueChange:function(e){return isNaN(e)?n(o):n(e)},onBlur:function(){return function(){switch(!0){case i&&c>i:n(i.toFixed(r.numberDecimals));break;case o&&c<o:n(o.toFixed(r.numberDecimals))}}()},allowNegativeValue:!1,decimalsLimit:r.numberDecimals,decimalScale:r.numberDecimals,prefix:"before"===r.currencyPosition?r.symbol:"",suffix:"after"===r.currencyPosition?r.symbol:"",decimalSeparator:r.decimalSeparator,groupSeparator:r.thousandsSeparator})))});Zn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,placeholder:s.a.string,width:s.a.string,currency:s.a.object.isRequired},Zn.defaultProps={label:null,value:null,onChange:null,placeholder:Ee("Enter amount...","give"),width:null,currency:{code:"USD",currencyPosition:"before",decimalSeparator:".",numberDecimals:2,symbol:"$",thousandsSeparator:","}};var Wn=Zn,$n=function(e){var t=e.form,n=e.payment,c=e.onChange,a=e.value,r=Object(o.useState)(null),i=Ze()(r,2),l=i[0],s=i[1],u=Object(o.useState)(null),f=Ze()(u,2),h=f[0],p=f[1],d=Object(o.useState)(null),m=Ze()(d,2),v=m[0],g=m[1],b=Object(o.useState)([]),y=Ze()(b,2),z=y[0],C=y[1];return Object(o.useEffect)((function(){var e=t.amounts.map((function(e){return{value:e.raw,label:e.formatted}}));t.custom_amount&&e.push({value:"custom_amount",label:Ee("Custom Amount","give")}),C(e)}),[]),Object(o.useEffect)((function(){if(z.length){var e=z.map((function(e){return parseFloat(e.value)}));if(a){var t=parseFloat(a);if(e.includes(t)){var c=z.filter((function(e){return parseFloat(e.value)===t}))[0];p(c.value)}else p("custom_amount"),s(t.toFixed(n.currency.numberDecimals))}}}),[z]),Object(o.useEffect)((function(){h&&("custom_amount"!==h?(c(h),g(h)):v&&s(parseFloat(v).toFixed(n.currency.numberDecimals)))}),[h]),Object(o.useEffect)((function(){if(l){var e=parseFloat(l);c(e)}}),[l]),React.createElement("div",{className:"give-donor-dashboard-amount-inputs"},React.createElement(Ln,null,React.createElement("div",null,React.createElement(Sn,{label:"Subscription Amount",options:z,value:h,onChange:function(e){return p(e)}})),React.createElement("div",null,"custom_amount"===h&&React.createElement(Wn,{label:"Custom Amount",min:t.custom_amount.minimum?parseFloat(t.custom_amount.minimum):null,max:t.custom_amount.maximum?parseFloat(t.custom_amount.maximum):null,value:l,onChange:function(e){return s(e)},currency:n.currency}))))},qn=n(410),Gn="https://js.stripe.com/v3",Kn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Yn="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Qn=null,Xn=function(e){return null!==Qn?Qn:Qn=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(Yn),window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Gn,'"]')),t=0;t<e.length;t++){var n=e[t];if(Kn.test(n.src))return n}return null}();c&&e?console.warn(Yn):c||(c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(Gn).concat(t);var c=document.head||document.body;if(!c)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return c.appendChild(n),n}(e)),c.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),c.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},Jn=function(e,t,n){if(null===e)return null;var c=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.13.2",startTime:t})}(c,n),c},ec=Promise.resolve().then((function(){return Xn(null)})),tc=!1;ec.catch((function(e){tc||console.warn(e)}));n(980);var nc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(qn.useStripe)(),r=Object(qn.useElements)(),i=Object(o.useState)(!1),l=Ze()(i,2),s=l[0],u=l[1],f=Object(o.useState)(c),h=Ze()(f,2),p=h[0],d=h[1];Object(o.useEffect)((function(){p&&n({give_stripe_payment_method:p})}),[p]);var m=function(){var e=xt()(Lt.a.mark((function e(){var t,n,c,o;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!1),a&&r){e.next=3;break}return e.abrupt("return");case 3:return t=r.getElement(qn.CardElement),e.next=6,a.createPaymentMethod({type:"card",card:t});case 6:n=e.sent,c=n.error,o=n.paymentMethod,c||d(o.id);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-stripe-card-control"},React.createElement("label",{className:"give-donor-dashboard-stripe-card-control__label"},t),React.createElement("div",{className:s?"give-donor-dashboard-stripe-card-control__input give-donor-dashboard-stripe-card-control__input--focused":"give-donor-dashboard-stripe-card-control__input"},React.createElement(qn.CardElement,{style:{base:{fontFamily:"Montserrat"}},onFocus:function(){return u(!0)},onBlur:function(){return m()}})))},cc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(null),r=Ze()(a,2),i=r[0],l=r[1];Object(o.useEffect)((function(){var e=window.give_stripe_vars.publishable_key;e&&l(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];tc=!0;var c=Date.now();return ec.then((function(e){return Jn(e,t,c)}))}(e))}),[]);return React.createElement(qn.Elements,{stripe:i,fonts:[{src:"url(https://fonts.googleapis.com/css2?family=Montserrat:wght@500)",family:"Montserrat"}]},React.createElement(nc,{label:t,onChange:function(e){return n(e)},value:c}))},ac=/(\d{1,4})/g,rc=[{displayName:"Visa",type:"visa",format:ac,startPattern:/^4/,gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",length:3}},{displayName:"Mastercard",type:"mastercard",format:ac,startPattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}},{displayName:"American Express",type:"amex",format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,startPattern:/^3[47]/,gaps:[4,10],lengths:[15],code:{name:"CID",length:4}},{displayName:"Diners Club",type:"dinersclub",format:ac,startPattern:/^(36|38|30[0-5])/,gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",length:3}},{displayName:"Discover",type:"discover",format:ac,startPattern:/^(6011|65|64[4-9]|622)/,gaps:[4,8,12],lengths:[16,19],code:{name:"CID",length:3}},{displayName:"JCB",type:"jcb",format:ac,startPattern:/^35/,gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",length:3}},{displayName:"UnionPay",type:"unionpay",format:ac,startPattern:/^62/,gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",length:3}},{displayName:"Maestro",type:"maestro",format:ac,startPattern:/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/,gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",length:3}},{displayName:"Elo",type:"elo",format:ac,startPattern:/^(4011(78|79)|43(1274|8935)|45(1416|7393|763(1|2))|50(4175|6699|67[0-7][0-9]|9000)|627780|63(6297|6368)|650(03([^4])|04([0-9])|05(0|1)|4(0[5-9]|3[0-9]|8[5-9]|9[0-9])|5([0-2][0-9]|3[0-8])|9([2-6][0-9]|7[0-8])|541|700|720|901)|651652|655000|655021)/,gaps:[4,8,12],lengths:[16],code:{name:"CVE",length:3}},{displayName:"Hipercard",type:"hipercard",format:ac,startPattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}}],oc=function(e){return rc.filter((function(t){return t.startPattern.test(e)}))[0]},ic=Object.freeze({DEFAULT_CVC_LENGTH:3,DEFAULT_ZIP_LENGTH:5,DEFAULT_CARD_FORMAT:ac,CARD_TYPES:rc,getCardTypeByValue:oc,getCardTypeByType:function(e){return rc.filter((function(t){return t.type===e}))[0]}}),lc=/(0[1-9]|1[0-2])/,sc="Expiry month must be between 01 and 12",uc=function(e){return e.split("").reverse().map((function(e){return parseInt(e,10)})).map((function(e,t){return t%2?2*e:e})).map((function(e){return e>9?e%10+1:e})).reduce((function(e,t){return e+t}))%10==0},fc=Object.freeze({EMPTY_CARD_NUMBER:"Enter a card number",EMPTY_EXPIRY_DATE:"Enter an expiry date",EMPTY_CVC:"Enter a CVC",EMPTY_ZIP:"Enter a ZIP code",INVALID_CARD_NUMBER:"Card number is invalid",INVALID_EXPIRY_DATE:"Expiry date is invalid",INVALID_CVC:"CVC is invalid",MONTH_OUT_OF_RANGE:sc,YEAR_OUT_OF_RANGE:"Expiry year cannot be in the past",DATE_OUT_OF_RANGE:"Expiry date cannot be in the past",hasCardNumberReachedMaxLength:function(e){var t=oc(e);return t&&e.length>=t.lengths[t.lengths.length-1]},isNumeric:function(e){return/^\d*$/.test(e.key)},validateLuhn:uc,getCardNumberError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyCardNumber||"Enter a card number";var r=e.replace(/\s/g,""),o=oc(r);if(o&&o.lengths){var i=o.lengths.includes(r.length);if(i){var l=uc(r);if(l)return t?t({cardNumber:r,cardType:o,errorMessages:a}):void 0}}return a.invalidCardNumber||"Card number is invalid"},getExpiryDateError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyExpiryDate||"Enter an expiry date";var r=e.replace(" / ","").replace("/","");if(4===r.length){var o=r.slice(0,2),i="20".concat(r.slice(2,4));return lc.test(o)?parseInt(i)<(new Date).getFullYear()?a.yearOutOfRange||"Expiry year cannot be in the past":parseInt(i)===(new Date).getFullYear()&&parseInt(o)<(new Date).getMonth()+1?a.dateOutOfRange||"Expiry date cannot be in the past":t?t({expiryDate:{month:o,year:i},errorMessages:a}):void 0:a.monthOutOfRange||sc}return a.invalidExpiryDate||"Expiry date is invalid"},getCVCError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.cardType,a=n.errorMessages,r=void 0===a?{}:a;return e?e.length<3||c&&e.length!==c.code.length?r.invalidCVC||"CVC is invalid":t?t({cvc:e,cardType:c,errorMessages:r}):void 0:r.emptyCVC||"Enter a CVC"},getZIPError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorMessages,c=void 0===n?{}:n;if(!e)return c.emptyZIP||"Enter a ZIP code"}});function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(){return(pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},c=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),c.forEach((function(t){hc(e,t,n[t])}))}return e}function mc(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gc(e,t){return yc(e)||function(e,t){var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||zc()}function bc(e){return yc(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||zc()}function yc(e){if(Array.isArray(e))return e}function zc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Cc={cardTypes:ic,formatter:Object.freeze({formatCardNumber:function(e){var t=oc(e);if(!t)return(e.match(/\d+/g)||[]).join("");var n=t.format;if(n&&n.global)return(e.match(n)||[]).join(" ");if(n){var c=n.exec(e.split(" ").join(""));if(c)return c.splice(1,3).filter((function(e){return e})).join(" ")}return e},formatExpiry:function(e){var t=e.nativeEvent&&e.nativeEvent.data,n=e.target.value.split(" / ").join("/");if(!n)return null;var c=n;if(/^[2-9]$/.test(c)&&(c="0".concat(c)),2===n.length&&+n>12){var a=bc(n.split("")),r=a[0],o=a.slice(1);c="0".concat(r,"/").concat(o.join(""))}if(/^1[/-]$/.test(c))return"01 / ";if(1===(c=c.match(/(\d{1,2})/g)||[]).length){if(!t&&n.includes("/"))return c[0];if(/\d{2}/.test(c))return"".concat(c[0]," / ")}if(c.length>2){var i=gc(c.join("").match(/^(\d{2}).*(\d{2})$/)||[],3),l=i[1],s=void 0===l?null:l,u=i[2];return[s,void 0===u?null:u].join(" / ")}return c.join(" / ")}}),validator:fc,BACKSPACE_KEY_CODE:"Backspace",ENTER_KEY_CODE:"Enter",isHighlighted:function(){return"Range"===(window.getSelection()||{type:void 0}).type}};var xc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoFocus,n=void 0===t||t,c=e.errorMessages,a=e.onBlur,r=e.onChange,o=e.onError,l=e.onTouch,s=e.cardNumberValidator,u=e.cvcValidator,f=e.expiryValidator,h=i.a.useRef(),p=i.a.useRef(),d=i.a.useRef(),m=i.a.useRef(),v=i.a.useState({cardNumber:!1,expiryDate:!1,cvc:!1,zip:!1}),g=gc(v,2),b=g[0],y=g[1],z=i.a.useState(!1),C=gc(z,2),x=C[0],M=C[1],L=i.a.useState({cardNumber:void 0,expiryDate:void 0,cvc:void 0,zip:void 0}),w=gc(L,2),H=w[0],V=w[1],E=i.a.useState(),S=gc(E,2),N=S[0],k=S[1],O=i.a.useState(),A=gc(O,2),_=A[0],R=A[1],P=i.a.useState(),T=gc(P,2),j=T[0],D=T[1],I=i.a.useCallback((function(e,t){V((function(n){if(n[e]===t)return n;var c=t,a=dc({},n,hc({},e,t));return t?k(t):(c=Object.values(a).find(Boolean),k(c)),o&&o(c,a),a}))}),[]),F=i.a.useCallback((function(e,t){requestAnimationFrame((function(){"INPUT"!==document.activeElement.tagName?M(!0):!1===t&&M(!1)})),y((function(n){if(n[e]===t)return n;var c=dc({},n,hc({},e,t));return l&&l(hc({},e,t),c),c}))}),[]),U=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cardNumber",!0)}}),[a,F]),B=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var a=(t.target.value||"").replace(/\s/g,""),o=h.current.selectionStart,i=Cc.cardTypes.getCardTypeByValue(a);R(i),F("cardNumber",!1),h.current.value=Cc.formatter.formatCardNumber(a),e.onChange&&e.onChange(t),r&&r(t),requestAnimationFrame((function(){document.activeElement===h.current&&(" "===h.current.value[o-1]&&(o+=1),h.current.setSelectionRange(o,o))}));var l=Cc.validator.getCardNumberError(a,s,{errorMessages:c});!l&&n&&p.current&&p.current.focus(),I("cardNumber",l),e.onError&&e.onError(l)}}),[n,s,c,r,I,F]),Z=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cardNumber")}}),[]),W=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(/\s/g,"");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),Cc.validator.hasCardNumberReachedMaxLength(n)&&t.preventDefault())}}),[]),$=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"Card number",autoComplete:"cc-number",id:"cardNumber",name:"cardNumber",placeholder:"Card number",type:"tel"},t||"ref",h),n,{onBlur:U(n),onChange:B(n),onFocus:Z(n),onKeyPress:W(n)})}),[U,B,Z,W]),q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("expiryDate",!0)}}),[a,F]),G=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){F("expiryDate",!1),p.current.value=Cc.formatter.formatExpiry(t),e.onChange&&e.onChange(t),r&&r(t);var a=Cc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});!a&&n&&d.current&&d.current.focus(),I("expiryDate",a),e.onError&&e.onError(a)}}),[n,c,f,r,I,F]),K=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("expiryDate")}}),[]),Y=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&h.current&&h.current.focus()}}),[n]),Q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),n.length>=4&&t.preventDefault())}}),[]),X=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"Expiry date in format MM YY",autoComplete:"cc-exp",id:"expiryDate",name:"expiryDate",placeholder:"MM/YY",type:"tel"},t||"ref",p),n,{onBlur:q(n),onChange:G(n),onFocus:K(n),onKeyDown:Y(n),onKeyPress:Q(n)})}),[q,G,K,Y,Q]),J=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cvc",!0)}}),[a,F]),ee=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.cardType;return function(t){var o=t.target.value;F("cvc",!1),e.onChange&&e.onChange(t),r&&r(t);var i=Cc.validator.getCVCError(o,u,{cardType:a,errorMessages:c});!i&&n&&m.current&&m.current.focus(),I("cvc",i),e.onError&&e.onError(i)}}),[n,u,c,r,I,F]),te=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cvc")}}),[]),ne=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&p.current&&p.current.focus()}}),[n]),ce=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.cardType;return function(t){var c=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),n&&c.length>=n.code.length&&t.preventDefault(),c.length>=4&&t.preventDefault())}}),[]),ae=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"CVC",autoComplete:"cc-csc",id:"cvc",name:"cvc",placeholder:_?_.code.name:"CVC",type:"tel"},t||"ref",d),n,{onBlur:J(n),onChange:ee(n,{cardType:_}),onFocus:te(n),onKeyDown:ne(n),onKeyPress:ce(n,{cardType:_})})}),[_,J,ee,te,ne,ce]),re=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("zip",!0)}}),[a,F]),oe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.target.value;F("zip",!1),e.onChange&&e.onChange(t),r&&r(t);var a=Cc.validator.getZIPError(n,{errorMessages:c});I("zip",a),e.onError&&e.onError(a)}}),[c,r,I,F]),ie=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("zip")}}),[]),le=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&d.current&&d.current.focus()}}),[n]),se=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault())}}),[]),ue=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({autoComplete:"off",id:"zip",maxLength:"6",name:"zip",placeholder:"ZIP",type:"tel"},t||"ref",m),n,{onBlur:re(n),onChange:oe(n),onFocus:ie(n),onKeyDown:le(n),onKeyPress:se(n)})}),[re,oe,ie,le,se]),fe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images||{};return dc({"aria-label":_?_.displayName:"Placeholder card",children:t[_?_.type:"placeholder"]||t.placeholder,width:"1.5em",height:"1em",viewBox:"0 0 24 16"},e)}),[_]);return i.a.useLayoutEffect((function(){if(m.current){var e=Cc.validator.getZIPError(m.current.value,{errorMessages:c});I("zip",e)}if(d.current){var t=Cc.validator.getCVCError(d.current.value,u,{errorMessages:c});I("cvc",t)}if(p.current){var n=Cc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});I("expiryDate",n)}if(h.current){var a=Cc.validator.getCardNumberError(h.current.value,s,{errorMessages:c});I("cardNumber",a)}}),[s,u,c,f,I]),i.a.useLayoutEffect((function(){h.current&&(h.current.value=Cc.formatter.formatCardNumber(h.current.value)),p.current&&(p.current.value=Cc.formatter.formatExpiry({target:p.current}))}),[]),i.a.useLayoutEffect((function(){if(h.current){var e=Cc.cardTypes.getCardTypeByValue(h.current.value);R(e)}}),[]),{getCardImageProps:fe,getCardNumberProps:$,getExpiryDateProps:X,getCVCProps:ae,getZIPProps:ue,wrapperProps:{error:N,focused:j,isTouched:x},meta:{cardType:_,erroredInputs:H,error:N,focused:j,isTouched:x,touchedInputs:b}}};var Mc=n(313);function Lc(){var e=vc(["\n color: #c9444d;\n font-size: 0.75rem;\n margin-top: 0.25rem;\n\n & {\n ",";\n }\n"]);return Lc=function(){return e},e}function wc(){var e=vc(["\n border-color: #444bc9;\n box-shadow: #444bc9 0px 0px 0px 1px;\n ",";\n "]);return wc=function(){return e},e}function Hc(){var e=vc(["\n border-color: #c9444d;\n box-shadow: #c9444d 0px 0px 0px 1px;\n ",";\n "]);return Hc=function(){return e},e}function Vc(){var e=vc(["\n align-items: center;\n background-color: white;\n border: 1px solid #bdbdbd;\n box-shadow: inset 0px 1px 2px #e5e5e5;\n border-radius: 0.2em;\n display: flex;\n height: 2.5em;\n padding: 0.4em 0.6em;\n\n & {\n ",";\n }\n\n & {\n ",";\n }\n\n & input {\n border: unset;\n margin: unset;\n padding: unset;\n outline: unset;\n font-size: inherit;\n\n & {\n ",";\n }\n\n ",";\n }\n\n & svg {\n margin-right: 0.6em;\n & {\n ",";\n }\n }\n\n & input#cardNumber {\n width: 11em;\n & {\n ",";\n }\n }\n\n & input#expiryDate {\n width: 4em;\n & {\n ",";\n }\n }\n\n & input#cvc {\n width: 2.5em;\n & {\n ",";\n }\n }\n\n & input#zip {\n width: 4em;\n & {\n ",";\n }\n }\n\n ",";\n"]);return Vc=function(){return e},e}function Ec(){var e=vc(["\n display: inline-flex;\n flex-direction: column;\n\n & {\n ",";\n }\n\n ",";\n"]);return Ec=function(){return e},e}var Sc=Mc.c.div(Ec(),(function(e){return e.hasErrored&&e.styles.fieldWrapper?e.styles.fieldWrapper.errored:void 0}),(function(e){return e.styles.fieldWrapper?e.styles.fieldWrapper.base:void 0})),Nc=Mc.c.div(Vc(),(function(e){return e.hasErrored&&Object(Mc.b)(Hc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.errored}))}),(function(e){return e.focused&&Object(Mc.b)(wc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.focused}))}),(function(e){return e.hasErrored&&e.styles.input?e.styles.input.errored:void 0}),(function(e){return e.styles.input&&e.styles.input.base}),(function(e){return e.styles.cardImage}),(function(e){return e.styles.input&&e.styles.input.cardNumber}),(function(e){return e.styles.input&&e.styles.input.expiryDate}),(function(e){return e.styles.input&&e.styles.input.cvc}),(function(e){return e.styles.input&&e.styles.input.zip}),(function(e){return e.styles.inputWrapper?e.styles.inputWrapper.base:void 0})),kc=Mc.c.div(Lc(),(function(e){return e.styles.errorText?e.styles.errorText.base:void 0}));function Oc(e){var t=e.children,n=e.error,c=e.errorTextProps,a=e.focused,r=e.inputWrapperProps,o=e.isTouched,l=e.styles,s=mc(e,["children","error","errorTextProps","focused","inputWrapperProps","isTouched","styles"]),u=n&&o;return i.a.createElement(Sc,pc({hasErrored:u,styles:l},s),i.a.createElement(Nc,pc({focused:a,hasErrored:u,styles:l},r),t),u&&i.a.createElement(kc,pc({styles:l},c),n))}Oc.defaultProps={styles:{}};var Ac=Oc,_c=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Visa",transform:"translate(40.000000, 0.000000)"},i.a.createElement("rect",{strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),i.a.createElement("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#171E6C"})))))),Rc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),i.a.createElement("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),i.a.createElement("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),i.a.createElement("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})),Pc=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",null,i.a.createElement("rect",{id:"Rectangle",fill:"#D8D8D8",x:"0",y:"0",width:"24",height:"16",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"0.923076923",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"16.6153846",y:"3.76470588",width:"4.61538462",height:"2.82352941",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"6.46153846",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"11.9230769",y:"10.3529412",width:"5.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"18.4615385",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}))),Tc=i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),i.a.createElement("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),i.a.createElement("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),i.a.createElement("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})),jc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),i.a.createElement("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),i.a.createElement("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),i.a.createElement("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),i.a.createElement("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),i.a.createElement("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})),Dc={amex:i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),i.a.createElement("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),i.a.createElement("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),i.a.createElement("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),i.a.createElement("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),i.a.createElement("g",{fill:"#016fd0"},i.a.createElement("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),i.a.createElement("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"}))),dinersclub:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),i.a.createElement("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})))))),discover:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Discover",transform:"translate(240.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),i.a.createElement("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),i.a.createElement("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})))))),hipercard:i.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"Group-2"},i.a.createElement("rect",{id:"Rectangle",fill:"#B3131B",x:"0",y:"0",width:"24",height:"16",rx:"2"}),i.a.createElement("g",{id:"Hipercard_logo",transform:"translate(2.000000, 6.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.a.createElement("path",{d:"M4.45845797,4.72911206 L4.71934477,4.72911206 L4.72670967,4.71021617 C4.73076043,4.69982332 4.73407456,4.67539055 4.73407456,4.65592007 C4.73407456,4.63644958 4.74267391,4.56566228 4.75318417,4.49861521 C4.76369454,4.43156695 4.78836018,4.27726169 4.80799675,4.15571305 C4.82763331,4.0341644 4.85703646,3.85139347 4.87333717,3.74955542 C4.88963776,3.64771736 4.90953167,3.51735868 4.91754595,3.45986946 C4.92556023,3.40238023 4.93534271,3.3553436 4.93928464,3.3553436 C4.94322668,3.3553436 4.96009268,3.38074637 4.9767648,3.41179473 L5.0070776,3.46824705 L5.07434118,3.5349692 L5.14160488,3.60169134 L5.22440039,3.63432372 L5.30719578,3.66695609 L5.40587279,3.67955056 L5.5045498,3.69214384 L5.62980554,3.68457856 L5.75506139,3.67701327 L5.8906751,3.64246001 L6.02628894,3.60790675 L6.09908975,3.57519075 C6.13913019,3.55719677 6.21011098,3.51796553 6.25682484,3.48801021 L6.34175912,3.43354447 L6.42095111,3.35561954 C6.46450662,3.31276155 6.5259323,3.24403729 6.55745263,3.20290069 C6.58897283,3.16176409 6.61476215,3.12510239 6.61476215,3.12143264 C6.61476215,3.11776169 6.63024834,3.09228724 6.64917582,3.06482382 C6.66810343,3.0373592 6.70683989,2.96113177 6.73525696,2.8954298 C6.76367415,2.82972783 6.80808531,2.71146429 6.83394853,2.63262192 L6.88097263,2.48927217 L6.90527961,2.36510142 C6.91864839,2.29680721 6.93584673,2.18391928 6.94349809,2.11423935 L6.95740984,1.98754804 L6.9493753,1.88003572 L6.94134076,1.77252341 L6.91602234,1.66501109 L6.89070392,1.55749878 L6.84971924,1.47700311 L6.80873457,1.39650745 L6.72956721,1.31388424 L6.65039973,1.23125983 L6.55674682,1.18360201 L6.4630938,1.13594299 L6.35995932,1.11163207 L6.25682484,1.08732115 L6.15369036,1.07986696 L6.05055588,1.07241397 L5.93566831,1.0854122 L5.82078075,1.09840925 L5.7270093,1.12198192 L5.63323773,1.1455534 L5.55177641,1.18267501 C5.50697261,1.2030916 5.44177912,1.23776791 5.40690207,1.25973387 C5.3720249,1.28169983 5.33604735,1.30697239 5.32695174,1.31589472 C5.31785613,1.32481824 5.29608043,1.34134766 5.27856116,1.3526257 L5.24670802,1.37313308 L5.26898276,1.26820942 C5.28123392,1.21050159 5.29147275,1.15656744 5.2917358,1.14835469 L5.29221386,1.13342243 L5.06976516,1.13342243 L4.84731634,1.13342243 L4.80831003,1.37532513 C4.78685648,1.50837162 4.75298372,1.71398893 4.73303727,1.83225247 C4.7130907,1.95051602 4.68301183,2.12791134 4.66619545,2.22646429 C4.64937895,2.32501725 4.61938307,2.49972476 4.59953794,2.61470321 C4.5796928,2.72968165 4.54689191,2.91245259 4.52664697,3.02086084 C4.50640216,3.12926909 4.47674372,3.28784975 4.46073931,3.37326231 C4.44473502,3.45867488 4.41461296,3.61994335 4.39380151,3.7316367 C4.37299019,3.84333005 4.33954562,4.02072536 4.31948026,4.12584852 C4.29941502,4.23097167 4.26676167,4.39761576 4.24691738,4.49616871 C4.2270731,4.59472167 4.20785211,4.68745104 4.20420394,4.70223398 L4.19757093,4.72911206 L4.45845773,4.72911206 L4.45845797,4.72911206 Z M5.58158434,3.34795511 L5.48028286,3.35395071 L5.41406652,3.34244331 L5.34785018,3.33093472 L5.28059837,3.30070464 L5.21334656,3.27047457 L5.16636177,3.22630134 L5.11937709,3.18212931 L5.09225746,3.12240025 C5.07734166,3.08954926 5.0581828,3.0337432 5.04968233,2.99838718 L5.03422684,2.93410437 L5.04041916,2.8311458 L5.04661147,2.72818843 L5.07787505,2.56691995 C5.09507,2.47822229 5.12594421,2.31157821 5.14648436,2.19659976 C5.1670245,2.08162131 5.19812318,1.9131519 5.21559259,1.82222277 L5.24735509,1.6568975 L5.3169102,1.5999088 C5.35516545,1.56856538 5.41576424,1.52655673 5.45157423,1.50655705 L5.51668327,1.470194 L5.60161755,1.44430981 L5.68655183,1.41842563 L5.79575304,1.41211346 L5.90495426,1.40580129 L5.99387134,1.42445946 L6.08278843,1.44311762 L6.1455397,1.47157016 L6.20829096,1.50002269 L6.2609103,1.55210763 L6.31352963,1.60419138 L6.34191746,1.65934519 C6.3575308,1.68968039 6.37946059,1.74905705 6.39065044,1.79129506 L6.41099548,1.86808991 L6.40476348,2.09506035 L6.39853137,2.32203079 L6.36736983,2.45618705 C6.35023095,2.52997394 6.31760514,2.64286188 6.29486799,2.70704912 L6.25352781,2.82375493 L6.20290006,2.91822719 C6.17505485,2.9701879 6.1321162,3.04040419 6.10748089,3.07426459 C6.08284558,3.10812381 6.04357913,3.15198525 6.0202222,3.17173287 C5.99686528,3.19148049 5.95774892,3.22234369 5.93329695,3.24031617 L5.8888387,3.27299275 L5.7858622,3.30747553 L5.6828857,3.34195951 L5.58158434,3.34795511 Z M8.10111202,3.67635864 L8.23458018,3.67786023 L8.36804833,3.665875 C8.44145581,3.6592833 8.56157715,3.64555995 8.63498463,3.63537973 C8.70839211,3.62519831 8.83520336,3.60240928 8.91678734,3.58473665 L9.06512179,3.5526048 L9.07250973,3.498771 C9.07657311,3.4691621 9.093232,3.38101873 9.10952955,3.3028967 L9.1391613,3.16085621 L9.1326233,3.1544198 L9.12608543,3.1479822 L9.0807372,3.1695444 C9.05579576,3.181403 8.97811171,3.20969069 8.90810597,3.23240685 L8.78082285,3.27370711 L8.6472364,3.29918394 L8.51364995,3.32466077 L8.30131425,3.32506693 L8.08897856,3.32547309 L8.01617775,3.30258252 C7.9761373,3.28999283 7.91724557,3.26695772 7.88530737,3.25139472 L7.82723768,3.22309628 L7.7793106,3.18046765 L7.73138352,3.13783782 L7.69398963,3.07349051 L7.65659562,3.00914319 L7.63315109,2.92843011 L7.60970656,2.84771703 L7.60953911,2.69835615 L7.60937167,2.54899526 L7.63018579,2.41575047 L7.65099978,2.28250449 L7.83358895,2.27410658 L8.01617823,2.26570748 L8.69111697,2.26997453 L9.3660557,2.27424157 L9.38643459,2.18913124 C9.39764288,2.14232038 9.41477886,2.04555929 9.42451439,1.97410661 L9.44221542,1.84419231 L9.44258913,1.73490963 L9.44296284,1.62562694 L9.42374501,1.54404301 L9.40452717,1.46245909 L9.37275132,1.40843654 C9.35527451,1.37872491 9.32448062,1.33566504 9.3043205,1.31274938 C9.28416037,1.28983373 9.24816377,1.25752509 9.22432794,1.24095266 C9.20049222,1.22438023 9.15368992,1.19652977 9.12032288,1.17906499 L9.05965554,1.14730824 L8.95365525,1.12215633 L8.84765497,1.09700442 L8.71705262,1.08471099 L8.58645027,1.07241636 L8.46511559,1.08019547 L8.34378091,1.08797458 L8.19817929,1.11550012 L8.05257767,1.14302686 L7.96157665,1.17884877 C7.9115261,1.198551 7.83508525,1.23447922 7.7917081,1.2586898 C7.74833095,1.28290038 7.68827028,1.32231081 7.65823994,1.34626814 C7.62820961,1.37022427 7.57621515,1.4167998 7.54269681,1.44976786 C7.50917834,1.48273591 7.45959784,1.54196325 7.43251788,1.58138443 C7.40543792,1.62080561 7.36392374,1.69068862 7.34026433,1.73668 C7.31660479,1.78267138 7.28577559,1.84717876 7.27175488,1.88002975 C7.25773417,1.91288073 7.23225571,1.98007593 7.21513599,2.02935241 C7.1980164,2.07862889 7.17110667,2.17270216 7.15533656,2.23840413 C7.13956645,2.3041061 7.11795686,2.41225991 7.10731533,2.47874552 L7.08796742,2.59963476 L7.08814699,2.77739681 L7.08832657,2.95515887 L7.10676835,3.03280665 C7.11691132,3.07551293 7.13630473,3.14002032 7.14986473,3.1761564 C7.16342485,3.21229249 7.18849963,3.26604864 7.20558671,3.29561453 C7.22267367,3.32518042 7.2591652,3.37278329 7.28667905,3.40139948 C7.31419278,3.43001568 7.36400431,3.47343751 7.39737135,3.49789178 C7.43073838,3.52234606 7.49013972,3.55674044 7.52937438,3.57432587 L7.60070995,3.60629765 L7.70017273,3.62996947 C7.75487732,3.64298921 7.83743756,3.65841484 7.88363999,3.66425037 C7.92984242,3.6700847 8.02770503,3.67553319 8.10111251,3.67635864 L8.10111202,3.67635864 Z M8.32965888,1.99352094 C7.99374575,1.99352094 7.71890777,1.99115328 7.71890777,1.98826001 C7.71890777,1.98536673 7.73323995,1.94370571 7.75075703,1.89567996 C7.76827412,1.84765421 7.79903902,1.77617166 7.81912342,1.73682932 L7.85564031,1.66529779 L7.93590903,1.58670271 L8.01617775,1.50810762 L8.09504529,1.47097884 C8.13842244,1.45055747 8.19575308,1.42832273 8.22244671,1.42156738 C8.24914034,1.41481202 8.32558119,1.40585027 8.39231526,1.40165251 L8.51364995,1.39401794 L8.60682685,1.40580726 L8.70000364,1.41759659 L8.76771701,1.44811814 L8.8354305,1.4786385 L8.87257529,1.51806804 C8.89300502,1.53975447 8.9173507,1.5716916 8.92667697,1.58903811 L8.94363374,1.62057745 L8.95483159,1.69057752 L8.96602945,1.76057759 L8.95321966,1.87704927 L8.94040987,1.99352094 L8.32965888,1.99352094 Z M11.959629,3.67642315 L12.0931723,3.67788054 L12.2447655,3.66019237 C12.328143,3.6504637 12.4391291,3.63434164 12.4914025,3.62436569 C12.5436771,3.61438974 12.628308,3.59458597 12.6794712,3.58035851 C12.7306357,3.56612985 12.7769248,3.55074723 12.7823351,3.54617318 C12.7877455,3.54159912 12.8022037,3.48738425 12.8144634,3.42569488 C12.826723,3.3640055 12.8421665,3.28127956 12.8487817,3.24185837 C12.8553968,3.20243719 12.858816,3.16807267 12.8563809,3.16549477 C12.8539445,3.16291567 12.8449948,3.16624735 12.8364917,3.1728952 C12.8279885,3.17954304 12.7684545,3.20420995 12.7041944,3.22770736 L12.5873588,3.27043156 L12.420981,3.302168 L12.2546045,3.33390325 L12.1131465,3.32915121 L11.9716884,3.32439797 L11.8913406,3.29696441 L11.8109916,3.26953085 L11.7489046,3.21605781 L11.6868164,3.16258596 L11.6456318,3.08873695 L11.6044472,3.01488793 L11.5848322,2.91609248 L11.5652172,2.81729702 L11.5653386,2.68912203 L11.5654599,2.56094705 L11.5892961,2.40565148 L11.6131335,2.25035592 L11.6383541,2.16673523 C11.6522263,2.12074385 11.6679222,2.06698769 11.6732342,2.0472771 C11.678545,2.02756651 11.7007978,1.97112254 11.722683,1.92184607 C11.7445681,1.87256959 11.7836087,1.79641025 11.8094409,1.75260257 L11.8564059,1.67295267 L11.9140896,1.61410998 L11.9717721,1.5552673 L12.0328581,1.51796531 L12.0939452,1.48066331 L12.172393,1.45687442 C12.2155396,1.44379137 12.2917924,1.42680322 12.3418429,1.41912326 L12.4328439,1.40516219 L12.5663121,1.41175628 L12.6997802,1.41835037 L12.8575153,1.44943457 L13.0152504,1.48051877 L13.0794061,1.50407591 C13.1146915,1.51703353 13.145104,1.52763425 13.1469871,1.52763425 C13.1488715,1.52763425 13.1573345,1.48328542 13.1657928,1.42908129 C13.1742522,1.37487717 13.1893087,1.28569809 13.1992508,1.23090743 C13.209193,1.17611557 13.2149333,1.12892841 13.2120067,1.12604708 C13.2090789,1.12316575 13.1616662,1.11575337 13.1066446,1.109575 C13.0516217,1.10339663 12.9020779,1.09242679 12.7743246,1.08519718 L12.5420452,1.0720532 L12.3782433,1.08442906 L12.2144415,1.09680493 L12.0931068,1.12190786 L11.9717721,1.14701198 L11.8936314,1.17778201 C11.8506546,1.19470683 11.787705,1.2252463 11.7537446,1.24564856 C11.7197843,1.26605201 11.6765552,1.29349632 11.6576803,1.30663671 C11.6388043,1.3197771 11.5815404,1.37104495 11.5304257,1.42056632 L11.4374894,1.5106043 L11.3856128,1.58542809 C11.3570809,1.62658022 11.3077232,1.71239058 11.2759299,1.77611671 L11.2181236,1.89198153 L11.1738182,2.01741257 C11.1494494,2.08639964 11.1154271,2.19928757 11.098211,2.26827464 L11.0669102,2.39370567 L11.0555485,2.50719089 L11.0441879,2.62067611 L11.0443092,2.76999877 L11.0444306,2.91932143 L11.0558894,3.0061878 L11.0673483,3.09305536 L11.1036916,3.18241243 L11.1400338,3.27176949 L11.1820095,3.33637364 L11.2239841,3.4009766 L11.2907327,3.46565123 L11.3574813,3.53032586 L11.4280836,3.56706401 L11.4986858,3.60380216 L11.591451,3.6291691 C11.642471,3.64312061 11.7161818,3.65913278 11.7552528,3.6647509 C11.7943226,3.67037021 11.8863841,3.67562278 11.9598316,3.67642315 L11.959629,3.67642315 Z M13.9555105,3.67201037 L14.1193123,3.66738973 L14.2224468,3.64140161 L14.3255813,3.6154123 L14.3923154,3.5843508 C14.4290191,3.56726709 14.4890798,3.53354287 14.5257835,3.50940874 C14.5624872,3.48527462 14.6192998,3.43939314 14.6520322,3.40745004 C14.6847659,3.37550574 14.7333071,3.32100536 14.7599012,3.28633861 C14.7864953,3.25167066 14.8098571,3.22488337 14.8118155,3.22681143 C14.8137726,3.22873948 14.8076537,3.2839817 14.7982163,3.34957257 C14.7887801,3.41516345 14.7809516,3.50242641 14.7808217,3.54349015 L14.7805912,3.61815148 L15.003278,3.61815148 L15.2259647,3.61815148 L15.2327728,3.44792364 L15.2395797,3.27769581 L15.2713548,3.05669828 C15.2888318,2.93514963 15.3170592,2.75506651 15.3340824,2.65651355 C15.3511044,2.55796059 15.3806943,2.39131651 15.3998373,2.28619336 C15.4189803,2.1810702 15.4493055,2.01711392 15.4672278,1.92184607 L15.4998135,1.74863178 L15.5009055,1.59901287 L15.5019975,1.44939515 L15.4676343,1.38024561 L15.4332723,1.31109728 L15.3866749,1.26705665 L15.3400776,1.22301602 L15.2635748,1.18484915 L15.1870721,1.14668347 L15.0730551,1.12171553 L14.9590393,1.09674639 L14.8020602,1.08498574 L14.645081,1.07322389 L14.4428707,1.08554122 C14.3316553,1.09231569 14.1751408,1.10569261 14.0950599,1.11526718 L13.9494583,1.13267701 L13.8502272,1.13304733 L13.750996,1.13341765 L13.7365584,1.20210607 C13.7286171,1.2398847 13.7065499,1.32964076 13.687521,1.40156411 C13.6684909,1.47348627 13.6546854,1.53406946 13.6568415,1.53619223 C13.6589976,1.538315 13.7120682,1.52645639 13.7747764,1.50983976 C13.8374846,1.49322194 13.9706919,1.4658947 14.070793,1.44911203 L14.252795,1.41859765 L14.4165969,1.411951 L14.5803987,1.40530435 L14.6859089,1.42351335 L14.7914191,1.44172116 L14.8618442,1.47594352 L14.9322693,1.51016469 L14.971703,1.56803021 L15.0111368,1.62589572 L15.0105787,1.7171259 L15.0100205,1.80835607 L14.989117,1.90846915 L14.9682134,2.00858342 L14.5316331,2.01013398 L14.0950539,2.01168455 L13.9521677,2.05025639 C13.8735792,2.07147095 13.786558,2.09963679 13.7587857,2.11284647 C13.7310146,2.12605735 13.7032351,2.13686592 13.6970543,2.13686592 C13.6908735,2.13686592 13.6441232,2.16238934 13.5931651,2.19358344 L13.5005139,2.25030097 L13.4275457,2.32200093 C13.387413,2.36143645 13.3361406,2.42057897 13.3136063,2.45342996 C13.2910733,2.48628094 13.2544617,2.55490844 13.232249,2.60593498 L13.1918603,2.69871094 L13.173324,2.80304089 L13.1547877,2.90737084 L13.1547877,3.01681838 L13.1547877,3.12626711 L13.1724965,3.21739215 L13.1902065,3.3085184 L13.2230615,3.3679524 C13.2411331,3.40064092 13.2742951,3.44852332 13.2967566,3.47435973 L13.3375954,3.52133305 L13.4101681,3.56473577 L13.4827396,3.60813849 L13.5658078,3.63128231 C13.6114963,3.64401177 13.6810332,3.65942187 13.720336,3.66552618 L13.7917948,3.67662623 L13.9555966,3.67200559 L13.9555105,3.67201037 Z M14.1071788,3.33797677 L14.0101111,3.34295937 L13.9458219,3.32683969 C13.9104626,3.31797351 13.8568096,3.2982008 13.8265924,3.2829006 L13.771652,3.25508 L13.7416666,3.21999634 C13.7251748,3.20069908 13.6999809,3.16278307 13.6856804,3.13573655 L13.6596808,3.08656281 L13.6545823,2.97172771 L13.649485,2.85689381 L13.6700525,2.78723658 C13.6813657,2.74892516 13.7079052,2.68244671 13.7290308,2.6395051 L13.7674417,2.56143085 L13.840996,2.48951348 L13.9145503,2.4175973 L13.9926644,2.38056886 L14.0707784,2.34354042 L14.1678462,2.3208398 L14.2649139,2.29813917 L14.5682506,2.29813917 L14.8715874,2.29813917 L14.8907789,2.30595173 L14.9099692,2.31376429 L14.8938183,2.40749114 C14.8849342,2.4590409 14.8637479,2.55228633 14.8467356,2.61470321 C14.8297232,2.67712008 14.7996905,2.76887348 14.7799954,2.81860031 C14.7603004,2.86832714 14.7441859,2.91229012 14.7441859,2.91629675 C14.7441859,2.92030338 14.7242458,2.95653742 14.6998745,2.99681631 L14.6555643,3.07005131 L14.5828035,3.14102257 C14.5427861,3.18005671 14.5056371,3.21199384 14.5002523,3.21199384 C14.4948674,3.21199384 14.4703372,3.22543885 14.4457427,3.24187151 L14.4010235,3.27174799 L14.3026357,3.30237108 L14.2042466,3.33299417 L14.1071788,3.33797677 Z M18.0566228,3.67628099 L18.1718907,3.67771091 L18.281092,3.66026166 C18.3411526,3.65066439 18.4175935,3.63520412 18.4509605,3.6259067 C18.4843276,3.61660808 18.5443882,3.59247515 18.5844287,3.57227836 L18.6572295,3.53555693 L18.7198576,3.48128471 L18.7824857,3.4270125 L18.8484444,3.34040775 C18.8847223,3.29277621 18.9175725,3.24574076 18.9214467,3.23588547 L18.9284889,3.21796675 L18.922364,3.27769581 C18.9189945,3.3105468 18.9114402,3.36430295 18.9055761,3.39715394 C18.8997132,3.43000492 18.8913059,3.49316841 18.8868942,3.53751724 L18.8788715,3.61815148 L19.1168877,3.61815148 L19.3549039,3.61815148 L19.3549039,3.53751724 L19.3549039,3.456883 L19.391166,3.15226478 C19.411111,2.98472475 19.4406038,2.7616367 19.4567061,2.65651355 C19.4728085,2.5513904 19.4976627,2.40087316 19.5119389,2.32203079 C19.5262139,2.24318843 19.5514964,2.10073461 19.5681205,2.00546676 C19.5847433,1.9101989 19.6147725,1.74355481 19.6348497,1.63514656 C19.654927,1.52673831 19.68706,1.35471861 19.7062552,1.25288055 C19.7254515,1.1510425 19.7552865,0.992461836 19.7725549,0.900479078 C19.7898244,0.80849632 19.8207636,0.647227848 19.841308,0.542104696 C19.8618536,0.436981544 19.8918657,0.289152111 19.9080008,0.213594845 C19.9241371,0.13803758 19.9373165,0.0721862871 19.9372885,0.0672586394 L19.9372886,0.0582992798 L19.6776105,0.0582992798 L19.4179324,0.0582992798 L19.4102629,0.132960609 C19.4060453,0.174024341 19.386167,0.309758638 19.3660873,0.434592381 C19.3460089,0.559426124 19.3132764,0.758323906 19.2933496,0.876587452 C19.2734228,0.994850998 19.2542119,1.109532 19.2506592,1.13143345 L19.2442006,1.17125601 L19.2237071,1.16267653 C19.2124364,1.15795674 19.1513431,1.14127321 19.0879458,1.12560031 L18.9726778,1.09710477 L18.8149427,1.08501083 L18.6572076,1.07291569 L18.5237395,1.08516015 L18.3902713,1.09740461 L18.2689366,1.12760004 L18.147602,1.15779547 L18.032334,1.21314639 L17.9170661,1.26849731 L17.8321318,1.33040529 L17.7471975,1.39231447 L17.6738471,1.46974245 C17.6335045,1.51232808 17.5752238,1.58276537 17.5443344,1.62626963 L17.488171,1.70537002 L17.4222183,1.84048553 C17.3859453,1.91479923 17.3418026,2.01323153 17.3241241,2.05922291 C17.3064456,2.10521429 17.2752675,2.20716464 17.2548384,2.28577884 L17.2176966,2.42871287 L17.1993969,2.61428869 L17.1810984,2.7998633 L17.1948396,2.94918596 L17.2085795,3.09850862 L17.224825,3.15226478 C17.2337589,3.18183067 17.2525985,3.23450692 17.2666891,3.26932419 L17.2923089,3.33262744 L17.3390179,3.39487707 L17.3857281,3.45712789 L17.4390608,3.5001364 L17.4923947,3.54314491 L17.5651955,3.57873388 C17.6052359,3.59830709 17.6724044,3.62360354 17.714459,3.63494729 C17.7565136,3.64629103 17.8247643,3.65990926 17.8661273,3.66521081 C17.9074903,3.67051236 17.9932036,3.67549377 18.056601,3.67628099 L18.0566228,3.67628099 Z M18.2635057,3.33735678 L18.1718907,3.34214706 L18.1100549,3.33118916 C18.0760448,3.3251625 18.0216226,3.30900698 17.989117,3.29528841 L17.9300149,3.27034555 L17.8802835,3.23022554 L17.830552,3.19010433 L17.7935947,3.12041485 L17.7566361,3.05072537 L17.7397949,2.97307759 L17.7229524,2.8954298 L17.7243805,2.74013424 L17.7258074,2.58483867 L17.7453666,2.44746183 L17.7649257,2.31008498 L17.7953249,2.21451848 C17.8120436,2.1619569 17.8258042,2.11236625 17.8259049,2.10431836 C17.8260262,2.09627046 17.8425132,2.05326554 17.8625892,2.00875185 C17.8826665,1.96423817 17.9162082,1.89556528 17.9371288,1.8561441 C17.9580481,1.81672291 17.9971506,1.75526768 18.0240226,1.71957718 C18.0508934,1.68388667 18.0987648,1.63013051 18.1304016,1.60011905 C18.1620384,1.57010758 18.2123656,1.53074374 18.2422382,1.51264345 L18.2965536,1.47973512 L18.3919567,1.44723295 L18.4873609,1.41473079 L18.6875631,1.41461133 L18.8877654,1.41461133 L19.0030333,1.44609571 C19.0664307,1.46341117 19.1337447,1.48349327 19.1526184,1.49072169 L19.1869367,1.50386327 L19.1802341,1.53665453 C19.176548,1.55468912 19.1621274,1.63395198 19.1481884,1.71279434 C19.1342495,1.79163671 19.1067842,1.94215395 19.0871522,2.0472771 C19.0675203,2.15240025 19.0373589,2.31098092 19.0201245,2.39967858 C19.0028914,2.48837624 18.9779292,2.60126417 18.9646527,2.65054064 C18.9513763,2.69981712 18.9326471,2.76806952 18.9230301,2.80221304 C18.9134143,2.83635657 18.890516,2.89548834 18.872146,2.93361698 C18.8537759,2.97174563 18.8216307,3.02713239 18.8007126,3.05669828 C18.7797957,3.08626416 18.7444145,3.12722038 18.7220889,3.14771103 C18.6997633,3.16820288 18.6514661,3.2046173 18.6147623,3.22863316 L18.5480283,3.2722975 L18.4515745,3.30243201 L18.3551207,3.33256771 L18.2635057,3.33735798 L18.2635057,3.33735678 Z M0.406035224,3.61815148 L0.700846957,3.61815148 L0.721999232,3.48973399 C0.733631588,3.41910437 0.756352721,3.28337007 0.772489021,3.18810222 C0.78862532,3.09283436 0.818658081,2.91543904 0.839229163,2.7938904 C0.859799032,2.67234175 0.890636242,2.49225862 0.907755352,2.39370567 C0.924874463,2.29515271 0.952074059,2.14227379 0.968198225,2.05397392 C0.984323604,1.96567525 1.00057639,1.89041663 1.00431713,1.88673254 L1.01111794,1.88003572 L1.80383747,1.88003572 L2.596557,1.88003572 L2.60535861,1.88869883 L2.61416145,1.89736193 L2.60041544,1.96634661 C2.59285507,2.0042877 2.57049188,2.12134114 2.55072039,2.22646429 C2.53094769,2.33158744 2.49770806,2.50898276 2.47685426,2.62067611 C2.45600047,2.73236946 2.42584638,2.89095012 2.40984597,2.97307759 C2.39384435,3.05520505 2.36146377,3.22722475 2.33788965,3.3553436 C2.31431432,3.48346244 2.29507549,3.59500646 2.29513616,3.60321921 L2.2952575,3.61815148 L2.59128136,3.61815148 L2.88730644,3.61815148 L2.90040452,3.54349015 C2.90760938,3.50242641 2.91920048,3.4285117 2.92616388,3.37923522 C2.93312606,3.32995874 2.9499115,3.22513424 2.96346337,3.14629187 C2.97701646,3.06744951 3.00409472,2.91155665 3.02363688,2.7998633 C3.04317905,2.68816995 3.07588966,2.4973356 3.09632728,2.37578695 C3.11676368,2.25423831 3.14708242,2.07684299 3.16370127,1.98157513 C3.18032,1.88630727 3.2099327,1.7250388 3.22950738,1.62320075 C3.24908194,1.52136269 3.28168651,1.34934299 3.30196202,1.24093474 C3.32223741,1.13252649 3.3526127,0.96857021 3.36946269,0.876587452 C3.3863128,0.784604694 3.41703596,0.617960606 3.43773662,0.506267257 C3.45843729,0.394573908 3.48457667,0.264215227 3.49582403,0.216581299 L3.5162739,0.129974156 L3.21654665,0.129974156 L2.91681989,0.129974156 L2.90866742,0.186716767 C2.9041841,0.217925202 2.88970402,0.305278958 2.87649067,0.380836224 C2.86327611,0.456393489 2.83924092,0.590783883 2.82307672,0.679481542 C2.80691251,0.768179202 2.77737358,0.937511097 2.75743465,1.05577464 C2.73749451,1.17403819 2.7120846,1.33059045 2.7009667,1.40366896 L2.68075113,1.53653985 L2.24076366,1.54530688 L1.80077498,1.55407391 L1.43224272,1.54546337 C1.22954949,1.54072805 1.0625869,1.53591269 1.06121339,1.53476231 C1.05983988,1.53361551 1.06674383,1.4871905 1.07655495,1.43160066 C1.08636486,1.37601082 1.10492543,1.27945999 1.11780025,1.21704312 C1.13067507,1.15462624 1.15508154,1.03098708 1.17203685,0.942289422 C1.18899095,0.853591763 1.20819702,0.74339164 1.21471511,0.697400261 C1.22123321,0.651408882 1.23489429,0.574806358 1.24507305,0.52717243 C1.25525061,0.479538501 1.27456709,0.379202037 1.28799762,0.304203835 C1.30142816,0.229204439 1.31573716,0.159321434 1.3197958,0.148908269 L1.32717538,0.129974156 L1.02986779,0.129974156 L0.732560203,0.129974156 L0.713517938,0.234500018 C0.703043115,0.291989241 0.689078706,0.373967381 0.682484166,0.416673662 C0.675889626,0.459379942 0.653744833,0.596458144 0.633273245,0.721291887 C0.612802871,0.84612563 0.582582041,1.03158437 0.566118138,1.13342243 C0.549653021,1.23526048 0.519668795,1.42071922 0.499487197,1.54555297 C0.479305599,1.67038671 0.446005295,1.86390887 0.4254876,1.97560222 C0.404969905,2.08729557 0.375264748,2.24587624 0.359476679,2.3280037 C0.343687397,2.41013116 0.313600035,2.56602402 0.292613988,2.67443227 C0.271629155,2.78284052 0.241013987,2.93604557 0.224581631,3.01488793 C0.208148062,3.0937303 0.189981833,3.18511576 0.184209942,3.21796675 C0.178439265,3.25081773 0.159657869,3.34556595 0.142475664,3.42851887 C0.125292247,3.51147178 0.111233197,3.58807431 0.111233197,3.5987467 L0.111233197,3.61815148 L0.40604493,3.61815148 L0.406035224,3.61815148 Z M3.6696828,3.61815148 L3.93066933,3.61815148 L3.93803423,3.59925559 C3.94208498,3.58886273 3.94539912,3.56160239 3.94539912,3.53867598 C3.94539912,3.51574958 3.96181061,3.39658174 3.98186905,3.27385882 C4.00192749,3.1511347 4.03506982,2.95127648 4.0555186,2.82972783 C4.07596737,2.70817919 4.10616636,2.53078387 4.12262747,2.43551601 C4.13908859,2.34024816 4.16836313,2.18166749 4.18768216,2.08311454 C4.20700119,1.98456158 4.23665805,1.83135654 4.2535863,1.74265888 C4.27051468,1.65396122 4.3038043,1.48521228 4.32756345,1.3676607 C4.3513226,1.25010912 4.37372499,1.14921121 4.37734671,1.14344138 L4.38393166,1.13295176 L4.1200058,1.13617355 L3.85607993,1.13939533 L3.83409918,1.2946909 C3.82200988,1.38010346 3.79557869,1.54943535 3.77536324,1.670984 C3.75514791,1.79253264 3.72457012,1.97799139 3.70741291,2.08311454 C3.69025558,2.18823769 3.66033444,2.35756959 3.64092138,2.45940764 C3.62150844,2.56124569 3.59175924,2.71713855 3.57481193,2.80583621 C3.55786476,2.89453387 3.52745513,3.05042672 3.50723495,3.15226478 C3.48701476,3.25410283 3.45988239,3.38849323 3.44694071,3.4509101 C3.43399891,3.51332697 3.42009966,3.57649045 3.41605327,3.5912734 L3.40869626,3.61815148 L3.6696828,3.61815148 Z M9.77371379,3.61815148 L10.0327662,3.61815148 L10.0405474,3.5102342 C10.0448257,3.45088023 10.0594866,3.33127278 10.0731246,3.24443986 C10.0867638,3.15760695 10.1146878,2.98442611 10.1351788,2.85959237 C10.155671,2.73475862 10.1937543,2.52697555 10.2198085,2.39785326 C10.2458627,2.26872977 10.2753155,2.14038396 10.2852589,2.11263742 C10.295201,2.08489208 10.3033365,2.05482685 10.3033365,2.04582568 C10.3033365,2.03682332 10.3228132,1.98777501 10.346619,1.9368285 C10.3704237,1.885882 10.4147873,1.80786868 10.4452047,1.76346729 L10.5005078,1.6827351 L10.5745377,1.61525798 L10.6485665,1.54777966 L10.7398538,1.50485597 L10.8311424,1.46193228 L10.9706773,1.46264903 L11.1102122,1.46336577 L11.1788136,1.48354942 C11.216545,1.49465186 11.2506704,1.50373426 11.2546478,1.50373426 C11.2586263,1.50373426 11.2618805,1.49103467 11.2618805,1.47551228 C11.2618805,1.45999108 11.2755307,1.38130521 11.2922142,1.30065544 C11.3088977,1.22000687 11.3225479,1.15061842 11.3225479,1.14646009 C11.3225479,1.14230175 11.2829624,1.12704814 11.2345802,1.11256384 C11.186198,1.09807954 11.1193123,1.08290836 11.0859452,1.07885156 L11.0252779,1.07147502 L10.9464103,1.08520913 C10.9030332,1.09276246 10.8385341,1.10943762 10.8030789,1.12226504 C10.7676249,1.13509245 10.7090846,1.16418528 10.6729899,1.18691816 C10.6368953,1.20964985 10.5807489,1.25394851 10.5482203,1.28535763 C10.5156916,1.31676676 10.4609794,1.3800951 10.4266368,1.42608648 C10.392293,1.47207786 10.356378,1.5204584 10.3468229,1.53359879 L10.3294514,1.55749042 L10.339999,1.50970717 C10.3458012,1.48342638 10.3619594,1.39741653 10.375908,1.31857416 C10.3898566,1.2397318 10.4041729,1.16581708 10.4077208,1.15431924 L10.4141733,1.13341406 L10.1828196,1.13341406 L9.95146594,1.13341406 L9.95146594,1.16220945 C9.95146594,1.1780472 9.93781118,1.27346438 9.92112208,1.37424762 C9.90443298,1.47503205 9.87691282,1.64350027 9.85996613,1.74862342 C9.84301943,1.85374657 9.8129425,2.03651751 9.79312843,2.15478105 C9.77331448,2.2730446 9.74322906,2.44237649 9.72627205,2.53107415 C9.70931504,2.61977181 9.67920475,2.77566467 9.65936022,2.87750272 C9.63951569,2.97934078 9.60656725,3.14598486 9.58614129,3.24782292 C9.56571544,3.34966097 9.54127633,3.46992783 9.53183225,3.515083 C9.52238804,3.56023818 9.51466108,3.6018992 9.51466108,3.60766305 L9.51466108,3.61815148 L9.77371379,3.61814311 L9.77371379,3.61815148 Z M15.9231926,3.61815148 L16.1880687,3.61815148 L16.1880687,3.53834508 L16.1880687,3.4585375 L16.2185916,3.26060494 C16.2353807,3.15174036 16.2630766,2.97934914 16.2801399,2.87751109 C16.2972031,2.77567303 16.3184719,2.64665825 16.3274021,2.59081158 C16.3363336,2.53496491 16.3600011,2.41401355 16.3799983,2.32203079 C16.3999955,2.23004804 16.4249722,2.13059914 16.4355041,2.10103326 C16.4460347,2.07146737 16.4547308,2.04044768 16.4548278,2.03210114 C16.4549492,2.0237546 16.4775041,1.97007848 16.5050034,1.9128222 L16.555003,1.80871922 L16.6209641,1.72243342 L16.6869253,1.63614762 L16.7591146,1.58271997 C16.7988189,1.55333566 16.862664,1.51433975 16.9009912,1.49606385 L16.9706774,1.46283419 L17.1223457,1.46386153 L17.2740141,1.46488886 L17.3337192,1.48376564 L17.3934244,1.50264122 L17.4034867,1.49651779 L17.413549,1.49039556 L17.4140586,1.45227648 C17.4143376,1.43131157 17.4273241,1.35330183 17.4429192,1.27892123 L17.4712752,1.14368388 L17.4393799,1.13139044 C17.4218386,1.12462911 17.3801856,1.1106334 17.3468185,1.10028833 L17.2861512,1.08147964 L17.17695,1.0817544 L17.0677488,1.08202915 L16.9787546,1.11285532 L16.8897605,1.1436803 L16.8229391,1.18334995 L16.7561176,1.22301961 L16.669242,1.3126132 L16.5823676,1.4022068 L16.5356913,1.47170873 C16.5100193,1.50993414 16.4874171,1.53950002 16.4854648,1.5374107 C16.4835113,1.53532018 16.4974648,1.45566431 16.5164719,1.36039645 C16.535479,1.2651286 16.5512658,1.17508703 16.5515534,1.16030409 L16.5520751,1.1334272 L16.327606,1.1334272 L16.1031368,1.1334272 L16.1031368,1.14103908 C16.1031368,1.14522489 16.0919461,1.22182741 16.0782681,1.31126691 C16.0645912,1.40070521 16.0371283,1.57333176 16.0172416,1.6948804 C15.9973536,1.81642905 15.9647218,2.01263902 15.9447271,2.13090257 C15.9247312,2.24916611 15.894588,2.41849801 15.8777419,2.50719567 C15.8608958,2.59589333 15.8309746,2.75178618 15.8112517,2.85362424 C15.7915287,2.95546229 15.7591214,3.11941857 15.7392359,3.21797153 C15.7193504,3.31652448 15.6930086,3.44688316 15.6806992,3.50765749 L15.6583178,3.61815625 L15.9231951,3.61815625 L15.9231926,3.61815148 Z M4.18287366,0.70311036 L4.25654638,0.703373168 L4.31510626,0.683728279 L4.37366602,0.664083389 L4.42549425,0.612324572 L4.47732236,0.56056456 L4.50462182,0.491606161 L4.53192127,0.422646568 L4.5328968,0.32110716 L4.53387233,0.219567752 L4.5096054,0.179918405 L4.48533846,0.140270252 L4.4430896,0.114516275 L4.40084074,0.0887622969 L4.30962145,0.0887622969 L4.21840216,0.0887611023 L4.15629991,0.116134932 L4.09419767,0.143508762 L4.05814865,0.181538257 L4.0220995,0.219567752 L3.99378945,0.285269722 L3.96547928,0.350971692 L3.96012782,0.453313859 L3.95477635,0.555656026 L3.98113328,0.606521296 L4.00749008,0.657385372 L4.05834557,0.680117059 L4.10920094,0.702848746 L4.18287366,0.703111554 L4.18287366,0.70311036 Z",id:"path2997"})))),jcb:jc,unionpay:Rc,mastercard:Tc,placeholder:Pc,visa:_c};n(982);function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(c?c.card_number:""),r=Ze()(a,2),i=r[0],l=r[1],s=Object(o.useState)(c?"".concat(c.card_exp_month," ").concat(c.card_exp_year):""),u=Ze()(s,2),f=u[0],h=u[1],p=Object(o.useState)(c?c.card_cvc:""),d=Ze()(p,2),m=d[0],v=d[1],g=Object(o.useState)(c?c.card_zip:""),b=Ze()(g,2),y=b[0],z=b[1],C=it();Object(o.useEffect)((function(){n&&n({card_number:i.replace(/\s+/g,""),card_exp_month:f.substr(0,2),card_exp_year:f.substr(3,5),card_cvc:m,card_zip:y})}),[n,i,f,m,y]);var x=xc(),M=x.wrapperProps,L=x.getCardImageProps,w=x.getCardNumberProps,H=x.getExpiryDateProps,V=x.getCVCProps,E=x.getZIPProps,S=Fc(Fc({},M),{},{styles:{fieldWrapper:{base:{width:"100%"}},inputWrapper:{base:{display:"flex",alignItems:"center",marginTop:"8px",border:"1px solid #b8b8b8",overflow:"hidden",padding:"14px 14px",boxShadow:"0 0 0 0 ".concat(C),transition:"box-shadow 0.1s ease",borderRadius:"4px"},errored:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px #c9444d"},focused:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px ".concat(C)}},input:{base:{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"},cardNumber:{flex:"1"}}}});return React.createElement("div",{className:"give-donor-dashboard-card-control"},React.createElement("label",{className:"give-donor-dashboard-card-control__label"},t),React.createElement(Ac,S,React.createElement("svg",L({images:Dc})),React.createElement("input",w({onChange:function(e){return l(e.target.value)},value:i})),React.createElement("input",H({onChange:function(e){return h(e.target.value)},value:f})),React.createElement("input",V({onChange:function(e){return v(e.target.value)},value:m})),React.createElement("input",E({onChange:function(e){return z(e.target.value)},value:y}))))};Uc.propTypes={label:s.a.string,value:s.a.object,onChange:s.a.func},Uc.defaultProps={label:null,value:null,onChange:null};var Bc=Uc,Zc=(n(983),function(e){var t=e.gateway,n=e.label,c=e.onChange;switch(t){case"stripe":return React.createElement(cc,{label:n,onChange:function(e){return c(e)}});default:return React.createElement(Bc,{label:n,onChange:function(e){return c(e)}})}}),Wc={subscriptions:null,querying:!1,error:null};function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SUBSCRIPTIONS":return qc(qc({},e),{},{subscriptions:t.payload.subscriptions});case"SET_QUERYING":return qc(qc({},e),{},{querying:t.payload.querying});case"SET_ERROR":return qc(qc({},e),{},{error:t.payload.error});default:return e}})),Kc=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Yc=function(){var e=Gc.dispatch;if(W())return e(Kc(!0)),q.post("recurring-donations/subscriptions",{},{}).then((function(e){return e.data})).then((function(t){return e({type:"SET_SUBSCRIPTIONS",payload:{subscriptions:t.subscriptions}}),e(Kc(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}}),t})).catch((function(){return e(Kc(!1)),null}))},Qc=function(e){var t=e.id,n=e.amount,c=e.paymentMethod;return U.a.post($()+"give-api/v2/donor-dashboard/recurring-donations/subscription/update",{id:t,amount:n,payment_method:c},{}).then(function(){var e=xt()(Lt.a.mark((function e(t){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Xc=(n(984),function(e){var t=e.id,n=e.subscription,c=Object(o.useState)(n.payment.amount.raw),a=Ze()(c,2),r=a[0],i=a[1],l=Object(o.useState)(null),s=Ze()(l,2),u=s[0],f=s[1],h=Object(o.useState)(!1),p=Ze()(h,2),d=p[0],m=p[1],v=Object(o.useState)(!0),g=Ze()(v,2),b=g[0],y=g[1];Object(o.useEffect)((function(){y(!1)}),[r,u]);var z=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Qc({id:t,amount:r,paymentMethod:u});case 3:y(!0),m(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement($n,{form:n.form,payment:n.payment,onChange:function(e){return i(e)},value:r}),React.createElement(Zc,{label:Ee("Payment Method","give"),gateway:n.gateway.id,onChange:function(e){return f(e)}}),React.createElement(Ln,null,React.createElement("div",null,React.createElement(rt,{onClick:function(){return z()}},b?React.createElement(o.Fragment,null,Ee("Updated","give")," ",React.createElement(Ie,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,Ee("Update Subscription","give")," ",React.createElement(Ie,{className:d?"give-donor-dashboard__subscription-manager-spinner":"",icon:d?"spinner":"save",fixedWidth:!0}))))))}),Jc=function(e){return U.a.post($()+"give-api/v2/donor-dashboard/recurring-donations/subscription/cancel",{id:e},{}).then(function(){var e=xt()(Lt.a.mark((function e(t){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ea=(n(985),function(e){var t=e.id,n=e.onRequestClose,c=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jc(t);case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-cancel-modal"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__header"},Ee("Cancel Subscription?","give")),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__body"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__buttons"},React.createElement(rt,{onClick:function(){return c()}},Ee("Yes, cancel","give")),React.createElement("a",{className:"give-donor-dashboard-cancel-modal__cancel",onClick:function(){return n()}},Ee("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__bg",onClick:function(){return n()}}))}),ta=function(e){var t=e.subscription,n=t.id,a=t.payment,r=t.form,i=t.gateway,l=lt().width,s=Object(o.useState)(!1),u=Ze()(s,2),f=u[0],h=u[1];return React.createElement(o.Fragment,null,f&&React.createElement(ea,{id:n,form:r,onRequestClose:function(){return h(!1)}}),React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},a.amount.formatted," / ",a.frequency),r.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:a.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},a.status.label))),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Next Renewal","give")),a.renewalDate),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Progress","give")),a.progress),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",a.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/receipt/".concat(n)},Ee("View Subscription","give")," ",React.createElement(Ie,{icon:"arrow-right"}))),i.can_update&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/manage/".concat(n)},Ee("Manage Subscription","give")," ",React.createElement(Ie,{icon:"arrow-right"}))),i.can_cancel&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement("a",{onClick:function(){return h(!0)}},Ee("Cancel Subscription","give"))))))},na=(n(986),function(e){var t=e.subscriptions,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(ta,{subscription:t,key:n})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Subscription","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Next Renewal","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Progress","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Subscriptions","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),ca=function(e){var t=Object(o.useState)(e(Gc.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Gc.subscribe((function(){a(e(Gc.getState()))}));return function(){t()}}),[]),c},aa=(n(987),function(){var e=ca((function(e){return e.subscriptions})),t=ca((function(e){return e.querying})),n=ca((function(e){return e.error})),a=Object(at.f)(),r=a?a.pathname.split("/")[2]:null,i=a?a.pathname.split("/")[3]:null,l=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};if(n)return React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n));if(i)switch(r){case"receipt":return t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Subscription","give")," #",l(i).payment.serialCode),React.createElement(Fn,{subscription:l(i)}),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give"))));case"manage":return t&&null===e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Manage Subscription","give")),React.createElement(wt,null),React.createElement(Xc,{id:i,subscription:l(i)}),React.createElement(wt,null),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give"))))}return t&&!e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(na,null)):e?React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(Object.entries(e).length," ").concat(Ee("Total Subscriptions","give"))),React.createElement(na,{subscriptions:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Subscriptions","give")))}),ra=function(){Yc(),window.giveDonorDashboard.utils.registerTab({label:"Recurring Donations",icon:"sync",slug:"recurring-donations",content:aa})},oa=n(403),ia=n.n(oa),la=(n(988),function(e){var t=e.slug,n=e.label,a=e.icon;return React.createElement(c.c,{to:"/".concat(t),className:"give-donor-dashboard-tab-link",activeClassName:"give-donor-dashboard-tab-link--is-active"},React.createElement(Ie,{icon:a,fixedWidth:!0}),n)}),sa=(n(989),function(e){var t=e.onRequestClose,n=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q.post("logout",{}).then((function(e){return e.data}));case 2:window.parent.location.href="".concat(window.parent.location.origin).concat(window.parent.location.pathname);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-logout-modal"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__header"},Ee("Are you sure you want to logout?","give")),React.createElement("div",{className:"give-donor-dashboard-logout-modal__body"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__buttons"},React.createElement(rt,{onClick:function(){return n()}},Ee("Yes, logout","give")),React.createElement("a",{className:"give-donor-dashboard-logout-modal__cancel",onClick:function(){return t()}},Ee("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-logout-modal__bg",onClick:function(){return t()}}))}),ua=(n(990),function(){var e=Object(o.useState)(!1),t=Ze()(e,2),n=t[0],c=t[1],a=O((function(e){return e.tabs})),r=Object.values(a).map((function(e,t){return React.createElement(la,{slug:e.slug,label:e.label,icon:e.icon,key:t})}));return React.createElement(o.Fragment,null,n&&React.createElement(sa,{onRequestClose:function(){return c(!1)}}),React.createElement("div",{className:"give-donor-dashboard-tab-menu"},r,React.createElement("div",{className:"give-donor-dashboard-logout"},React.createElement("div",{className:"give-donor-dashboard-tab-link",onClick:function(){return c(!0)}},React.createElement(Ie,{icon:"sign-out-alt"})," ",Ee("Logout","give")))))}),fa=(n(991),function(){var e=Object(at.f)(),t=O((function(e){return e.tabs})),n=O((function(e){return e.applicationError})),c=e.pathname.length>2?e.pathname.split("/")[1]:"dashboard",a=t[c]?t[c].content:null;return React.createElement("div",{className:"give-donor-dashboard-tab-content"},n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):null,a&&null===n?React.createElement(a,null):null)}),ha=(n(992),function(){var e=O((function(e){return e.profile})),t=e.name,n=e.addresses,c=e.company,a=e.sinceLastDonation,r=e.sinceCreated,o=e.avatarUrl,i=e.initials,l=n&&n.billing?n.billing[0]:null;return React.createElement("div",{className:"give-donor-dashboard-donor-info"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar-container"},o?React.createElement("img",{src:o}):React.createElement("span",{className:"give-donor-dashboard-donor-info__avatar-initials"},i||React.createElement(Ie,{icon:"user"})))),React.createElement("div",{className:"give-donor-dashboard-donor-info__details"},t&&React.createElement("div",{className:"give-donor-dashboard-donor-info__name"},t),l&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"map-pin",fixedWidth:!0})," ",l.city,", ",l.state.length>0?l.state:l.country),c&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"building",fixedWidth:!0})," ",c),a&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"clock",fixedWidth:!0})," Last donated ",a," ago"),r&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"heart",fixedWidth:!0})," Donor for ",r)),React.createElement("div",{className:"give-donor-dashboard-donor-info__badges"}))}),pa=(n(993),function(){return React.createElement("div",{className:"give-donor-dashboard-desktop-layout"},React.createElement("div",{className:"give-donor-dashboard-desktop-layout__donor-info"},React.createElement(ha,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-menu"},React.createElement(ua,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-content"},React.createElement(fa,null)))}),da=(n(994),function(e){var t=e.children,n=Object(o.useState)(!1),c=Ze()(n,2),a=c[0],r=c[1],i=Object(o.useRef)(null);Object(o.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&r(!1)};return a&&document.addEventListener("click",e),function(){a&&document.removeEventListener("click",e)}}),[a,i]);var l=Object(at.f)(),s=O((function(e){return e.tabs})),u=l.pathname.length>2?l.pathname.split("/")[1]:"dashboard",f=s[u]?s[u].label:null;return React.createElement("div",{className:"give-donor-dashboard-mobile-menu"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__header"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__label"},f),React.createElement("div",{className:"give-donor-dashboard-mobile-menu__toggle ".concat(a?"give-donor-dashboard-mobile-menu__toggle--toggled":""),onClick:function(){return r(!a)}},React.createElement(Ie,{icon:"bars"}))),a&&React.createElement("div",{className:"give-donor-dashboard-mobile-menu__content",ref:i},t))}),ma=(n(995),function(){return React.createElement("div",{className:"give-donor-dashboard-mobile-layout"},React.createElement(da,null,React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-menu"},React.createElement(ua,null))),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__donor-info"},React.createElement(ha,null)),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-content"},React.createElement(fa,null)))}),va=function(e){var t=e.login,n=e.password;return U.a.post($()+"give-api/v2/donor-dashboard/login",{login:t,password:n},{}).then((function(e){return e.data}))},ga=function(e){var t=e.email,n=e.recaptcha;return U.a.post($()+"give-api/v2/donor-dashboard/verify-email",{email:t,"g-recaptcha-response":n},{}).then((function(e){return e.data}))};function ba(){return(ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var za=function(e){var t,n;function c(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(ya(t)),t.handleErrored=t.handleErrored.bind(ya(t)),t.handleChange=t.handleChange.bind(ya(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(ya(t)),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=c.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return i.a.createElement("div",ba({},t,{ref:this.handleRecaptchaRef}))},c}(i.a.Component);function Ca(){return(Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}za.displayName="ReCAPTCHA",za.propTypes={sitekey:s.a.string.isRequired,onChange:s.a.func,grecaptcha:s.a.object,theme:s.a.oneOf(["dark","light"]),type:s.a.oneOf(["image","audio"]),tabindex:s.a.number,onExpired:s.a.func,onErrored:s.a.func,size:s.a.oneOf(["compact","normal","invisible"]),stoken:s.a.string,hl:s.a.string,badge:s.a.oneOf(["bottomright","bottomleft","inline"])},za.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var xa={},Ma=0;var La,wa,Ha,Va=(La=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},wa=(wa={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,c;function a(e,n){var c;return(c=t.call(this,e,n)||this).state={},c.__scriptURL="",c}c=t,(n=a).prototype=Object.create(c.prototype),n.prototype.constructor=n,n.__proto__=c;var r=a.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Ma++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof La?La():La,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=xa[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[wa.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),c=wa,a=c.globalName,r=c.callbackName,o=c.scriptId;if(a&&void 0!==window[a]&&(xa[t]={loaded:!0,observers:{}}),xa[t]){var i=xa[t];return i&&(i.loaded||i.errored)?void this.asyncScriptLoaderHandleLoad(i):void(i.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},xa[t]={loaded:!1,observers:l};var s=document.createElement("script");for(var u in s.src=t,s.async=!0,wa.attributes)s.setAttribute(u,wa.attributes[u]);o&&(s.id=o);var f=function(e){if(xa[t]){var n=xa[t].observers;for(var c in n)e(n[c])&&delete n[c]}};r&&"undefined"!=typeof window&&(window[r]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),s.onload=function(){var e=xa[t];e&&(e.loaded=!0,f((function(t){return!r&&(t(e),!0)})))},s.onerror=function(){var e=xa[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(s)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===wa.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var c=xa[e];c&&(delete c.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===wa.removeOnUnmount&&delete xa[e])},r.render=function(){var t=wa.globalName,n=this.props,c=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=c,Object(o.createElement)(e,a)},a}(o.Component),c=Object(o.forwardRef)((function(e,t){return Object(o.createElement)(n,Ca({},e,{forwardedRef:t}))}));return c.displayName="AsyncScriptLoader("+t+")",c.propTypes={asyncScriptOnLoad:s.a.func},b()(c,e)})(za),Ea=(n(996),function(){var e=Object(o.useState)(""),t=Ze()(e,2),n=t[0],c=t[1],a=Object(o.useState)(""),r=Ze()(a,2),i=r[0],l=r[1],s=Object(o.useState)(""),u=Ze()(s,2),f=u[0],h=u[1],p=Object(o.useState)(""),d=Ze()(p,2),m=d[0],v=d[1],g=Object(o.useState)(null),b=Ze()(g,2),y=b[0],z=b[1],C=Object(o.useState)(!1),x=Ze()(C,2),M=x[0],L=x[1],w=Object(o.useState)(!1),H=Ze()(w,2),V=H[0],E=H[1],S=Object(o.useState)(!1),N=Ze()(S,2),k=N[0],O=N[1],A=Object(o.useState)(null),_=Ze()(A,2),R=_[0],P=_[1],T=Z("emailAccessEnabled"),j=Z("loggedInWithoutDonor"),D=Z("recaptchaKey"),I=function(){var e=xt()(Lt.a.mark((function e(t){var n,c,a,r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!f||!m){e.next=10;break}return L(!0),e.next=5,va({login:f,password:m});case 5:n=e.sent,c=n.status,a=n.response,r=n.body_response,200===c?window.location.reload():(L(!1),z(r.message),"unidentified_login"===a?(h(""),v("")):v(""));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=xt()(Lt.a.mark((function e(t){var c,a,r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!i){e.next=10;break}return E(!0),e.next=5,ga({email:i,recaptcha:n});case 5:c=e.sent,a=c.status,r=c.body_response,E(!1),200===a?O(!0):P(r.message);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard__auth-modal"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-frame"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-heading"},Ee("Log in to see your donor dashboard","give")),React.createElement("div",{className:"give-donor-dashboard__auth-modal-content"},j&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-notice"},Ee("The account you are currently logged into the site with does not have an associated donor dashboard. Donate now or contact the site administrator to associate this WordPress user with a donor dashboard.","give")),T&&React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},Ee("Enter your email below and we'll send you a link to access your donor dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return F(e)}},React.createElement(kn,{icon:"envelope",value:i,onChange:function(e){return l(e)}}),D&&React.createElement(Va,{sitekey:D,onChange:c}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(rt,{type:"submit"},Ee(!1===k?"Verify Email":"Email Sent","give"),!1===k&&React.createElement(Ie,{className:V?"give-donor-dashboard__auth-modal-spinner":"",icon:V?"spinner":"chevron-right",fixedWidth:!0})),R&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},R))),React.createElement("div",{className:"give-donor-dashboard__auth-modal-seperator"})),React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},T&&React.createElement(o.Fragment,null,Ee("Already have an account?","give")," ",React.createElement("br",null)),Ee("Log in below to access your dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return I(e)}},React.createElement(kn,{icon:"user",value:f,onChange:function(e){return h(e)}}),React.createElement(kn,{icon:"lock",type:"password",value:m,onChange:function(e){return v(e)}}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(rt,{type:"submit"},Ee("Log in","give"),React.createElement(Ie,{className:M?"give-donor-dashboard__auth-modal-spinner":"",icon:M?"spinner":"chevron-right",fixedWidth:!0})),y&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},y))))))}),Sa=(n(997),function(e){var t=e.children;return W()?t:React.createElement("div",{className:"give-donor-dashboard__auth"},React.createElement(Ea,null),React.createElement("div",{className:"give-donor-dashboard__auth-wrapper"},t))}),Na=function(){var e=lt().width,t=it(),n=Object(Mc.a)(Ha||(Ha=ia()(["\n\t:root {\n\t\t--give-donor-dashboard-accent-color: ",";\n\t}\n\t"])),t);return React.createElement(o.Fragment,null,React.createElement(n,null),React.createElement(Sa,null,e<920?React.createElement(ma,null):React.createElement(pa,null)))};n(998);window.React=i.a,_.b.add(R),window.giveDonorDashboard={store:J,utils:{registerTab:function(e){var t=window.giveDonorDashboard.store.dispatch;if(!0!==B(e))return null;t(function(e){return{type:"ADD_TAB",payload:{tab:e}}}(e))}}},r.a.render(i.a.createElement(v,{store:J},i.a.createElement(c.a,null,i.a.createElement(Na,null))),document.getElementById("give-donor-dashboard")),function(){window.giveDonorDashboard.utils.registerTab({label:"Dashboard",icon:"home",slug:"dashboard",content:ct});var e={"donation-history":zt,"annual-receipts":tt,"recurring-donations":ra};Z("registeredTabs").forEach((function(t){e[t]&&e[t]()})),window.giveDonorDashboard.utils.registerTab({label:"Edit Profile",icon:"cog",slug:"edit-profile",content:In})}()},101:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},102:function(e,t){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var c,a,r=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(c=n.next()).done)&&(r.push(c.value),!t||r.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return r}},e.exports.default=e.exports,e.exports.__esModule=!0},103:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},105:function(e,t,n){"use strict";var c=n(106);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,o){if(o!==c){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},106:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},11:function(e,t,n){"use strict";var c=n(84),a=Object.prototype.toString;function r(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,c=e.length;n<c;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:s,isStream:function(e){return i(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,c){l(t[c])&&l(n)?t[c]=e(t[c],n):l(n)?t[c]=e({},n):r(n)?t[c]=n.slice():t[c]=n}for(var c=0,a=arguments.length;c<a;c++)u(arguments[c],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"==typeof t?c(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},114:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(98);function a(e,t){if(e){if("string"==typeof e)return Object(c.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(c.a)(e,t):void 0}}},117:function(e,t,n){var c=n(66);e.exports=function(e){if(Array.isArray(e))return c(e)},e.exports.default=e.exports,e.exports.__esModule=!0},118:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},119:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},12:function(e,t,n){e.exports=n(306)},120:function(e,t,n){"use strict";
6
  /** @license React v16.14.0
7
  * react.production.min.js
8
  *
2
  /*!
3
  * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
4
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
5
+ */function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var J=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ACTIVE_TAB":return X(X({},e),{},{activeTab:t.payload.tab});case"ADD_TAB":var n=Object.assign({},e.tabs);return n[t.payload.tab.slug]=t.payload.tab,X(X({},e),{},{tabs:n});case"SET_PROFILE":return X(X({},e),{},{profile:t.payload.profile});case"SET_APPLICATION_ERROR":return X(X({},e),{},{applicationError:t.payload.error});case"SET_STATES":return X(X({},e),{},{states:t.payload.states});case"SET_FETCHING_STATES":return X(X({},e),{},{fetchingStates:t.payload.fetchingStates});default:return e}})),ee=n(679),te=n.n(ee);n(635),te()(console.error);var ne,ce,ae,re,oe=n(15);ne={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ce=["(","?"],ae={")":["("],":":["?","?:"]},re=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var ie={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function le(e){var t=function(e){for(var t,n,c,a,r=[],o=[];t=e.match(re);){for(n=t[0],(c=e.substr(0,t.index).trim())&&r.push(c);a=o.pop();){if(ae[n]){if(ae[n][0]===a){n=ae[n][1]||n;break}}else if(ce.indexOf(a)>=0||ne[a]<ne[n]){o.push(a);break}r.push(a)}ae[n]||o.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&r.push(e),r.concat(o.reverse())}(e);return function(e){return function(e,t){var n,c,a,r,o,i,l=[];for(n=0;n<e.length;n++){if(o=e[n],r=ie[o]){for(c=r.length,a=Array(c);c--;)a[c]=l.pop();try{i=r.apply(null,a)}catch(e){return e}}else i=t.hasOwnProperty(o)?t[o]:+o;l.push(i)}return l[0]}(t,e)}}var se={contextDelimiter:"",onMissingKey:null};function ue(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},se)this.options[n]=void 0!==t&&n in t?t[n]:se[n]}function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){Object(oe.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ue.prototype.getPluralForm=function(e,t){var n,c,a,r,o=this.pluralForms[e];return o||("function"!=typeof(a=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(c=function(e){var t,n,c;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(c=t[n].trim()).indexOf("plural="))return c.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),r=le(c),a=function(e){return+r({n:e})}),o=this.pluralForms[e]=a),o(t)},ue.prototype.dcnpgettext=function(e,t,n,c,a){var r,o,i;return r=void 0===a?0:this.getPluralForm(e,a),o=n,t&&(o=t+this.options.contextDelimiter+n),(i=this.data[e][o])&&i[r]?i[r]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===r?n:c)};var pe={"":{plural_forms:function(e){return 1===e?0:1}}},de=/^i18n\.(n?gettext|has_translation)(_|$)/,me=n(27);var ve=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var ge=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var be=function(e,t){return function(n,c,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,o=e[t];if(ge(n)&&ve(c))if("function"==typeof a)if("number"==typeof r){var i={callback:a,priority:r,namespace:c};if(o[n]){var l,s=o[n].handlers;for(l=s.length;l>0&&!(r>=s[l-1].priority);l--);l===s.length?s[l]=i:s.splice(l,0,i),o.__current.forEach((function(e){e.name===n&&e.currentIndex>=l&&e.currentIndex++}))}else o[n]={handlers:[i],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,c,a,r)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c,a){var r=e[t];if(ge(c)&&(n||ve(a))){if(!r[c])return 0;var o=0;if(n)o=r[c].handlers.length,r[c]={runs:r[c].runs,handlers:[]};else for(var i=r[c].handlers,l=function(e){i[e].namespace===a&&(i.splice(e,1),o++,r.__current.forEach((function(t){t.name===c&&t.currentIndex>=e&&t.currentIndex--})))},s=i.length-1;s>=0;s--)l(s);return"hookRemoved"!==c&&e.doAction("hookRemoved",c,a),o}}};var ze=function(e,t){return function(n,c){var a=e[t];return void 0!==c?n in a&&a[n].handlers.some((function(e){return e.namespace===c})):n in a}};n(310);var Ce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(c){var a=e[t];a[c]||(a[c]={handlers:[],runs:0}),a[c].runs++;var r=a[c].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];if(!r||!r.length)return n?i[0]:void 0;var s={name:c,currentIndex:0};for(a.__current.push(s);s.currentIndex<r.length;){var u=r[s.currentIndex],f=u.callback.apply(null,i);n&&(i[0]=f),s.currentIndex++}return a.__current.pop(),n?i[0]:void 0}};var xe=function(e,t){return function(){var n,c,a=e[t];return null!==(n=null===(c=a.__current[a.__current.length-1])||void 0===c?void 0:c.name)&&void 0!==n?n:null}};var Me=function(e,t){return function(n){var c=e[t];return void 0===n?void 0!==c.__current[0]:!!c.__current[0]&&n===c.__current[0].name}};var Le=function(e,t){return function(n){var c=e[t];if(ge(n))return c[n]&&c[n].runs?c[n].runs:0}},we=function e(){Object(me.a)(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=be(this,"actions"),this.addFilter=be(this,"filters"),this.removeAction=ye(this,"actions"),this.removeFilter=ye(this,"filters"),this.hasAction=ze(this,"actions"),this.hasFilter=ze(this,"filters"),this.removeAllActions=ye(this,"actions",!0),this.removeAllFilters=ye(this,"filters",!0),this.doAction=Ce(this,"actions"),this.applyFilters=Ce(this,"filters",!0),this.currentAction=xe(this,"actions"),this.currentFilter=xe(this,"filters"),this.doingAction=Me(this,"actions"),this.doingFilter=Me(this,"filters"),this.didAction=Le(this,"actions"),this.didFilter=Le(this,"filters")};var He=function(){return new we}(),Ve=(He.addAction,He.addFilter,He.removeAction,He.removeFilter,He.hasAction,He.hasFilter,He.removeAllActions,He.removeAllFilters,He.doAction,He.applyFilters,He.currentAction,He.currentFilter,He.doingAction,He.doingFilter,He.didAction,He.didFilter,He.actions,He.filters,function(e,t,n){var c=new ue({}),a=new Set,r=function(){a.forEach((function(e){return e()}))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";c.data[t]=he(he(he({},pe),c.data[t]),e),c.data[t][""]=he(he({},pe[""]),c.data[t][""])},i=function(e,t){o(e,t),r()},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return c.data[e]||o(void 0,e),c.dcnpgettext(e,t,n,a,r)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return e},u=function(e,t,c){var a=l(c,t,e);return n?(a=n.applyFilters("i18n.gettext_with_context",a,e,t,c),n.applyFilters("i18n.gettext_with_context_"+s(c),a,e,t,c)):a};if(e&&i(e,t),n){var f=function(e){de.test(e)&&r()};n.addAction("hookAdded","core/i18n",f),n.addAction("hookRemoved","core/i18n",f)}return{getLocaleData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return c.data[e]},setLocaleData:i,subscribe:function(e){return a.add(e),function(){return a.delete(e)}},__:function(e,t){var c=l(t,void 0,e);return n?(c=n.applyFilters("i18n.gettext",c,e,t),n.applyFilters("i18n.gettext_"+s(t),c,e,t)):c},_x:u,_n:function(e,t,c,a){var r=l(a,void 0,e,t,c);return n?(r=n.applyFilters("i18n.ngettext",r,e,t,c,a),n.applyFilters("i18n.ngettext_"+s(a),r,e,t,c,a)):r},_nx:function(e,t,c,a,r){var o=l(r,a,e,t,c);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,e,t,c,a,r),n.applyFilters("i18n.ngettext_with_context_"+s(r),o,e,t,c,a,r)):o},isRTL:function(){return"rtl"===u("ltr","text direction")},hasTranslation:function(e,t,a){var r,o,i=t?t+""+e:e,l=!(null===(r=c.data)||void 0===r||null===(o=r[null!=a?a:"default"])||void 0===o||!o[i]);return n&&(l=n.applyFilters("i18n.has_translation",l,e,t,a),l=n.applyFilters("i18n.has_translation_"+s(a),l,e,t,a)),l}}}(void 0,void 0,He)),Ee=(Ve.getLocaleData.bind(Ve),Ve.setLocaleData.bind(Ve),Ve.subscribe.bind(Ve),Ve.__.bind(Ve));Ve._x.bind(Ve),Ve._n.bind(Ve),Ve._nx.bind(Ve),Ve.isRTL.bind(Ve),Ve.hasTranslation.bind(Ve);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _e(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Re(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function Pe(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,c=t.indexOf(":"),a=Re(t.slice(0,c)),r=t.slice(c+1).trim();return a.startsWith("webkit")?e[(n=a,n.charAt(0).toUpperCase()+n.slice(1))]=r:e[a]=r,e}),{})}var Te=!1;try{Te=!0}catch(e){}function je(e){return _.c.icon?_.c.icon(e):null===e?null:"object"===Se(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function De(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ne({},e,t):{}}function Ie(e){var t=e.forwardedRef,n=Ae(e,["forwardedRef"]),c=n.icon,a=n.mask,r=n.symbol,o=n.className,i=n.title,l=n.titleId,s=je(c),u=De("classes",[].concat(_e(function(e){var t,n=e.spin,c=e.pulse,a=e.fixedWidth,r=e.inverse,o=e.border,i=e.listItem,l=e.flip,s=e.size,u=e.rotation,f=e.pull,h=(Ne(t={"fa-spin":n,"fa-pulse":c,"fa-fw":a,"fa-inverse":r,"fa-border":o,"fa-li":i,"fa-flip-horizontal":"horizontal"===l||"both"===l,"fa-flip-vertical":"vertical"===l||"both"===l},"fa-".concat(s),null!=s),Ne(t,"fa-rotate-".concat(u),null!=u&&0!==u),Ne(t,"fa-pull-".concat(f),null!=f),Ne(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(n)),_e(o.split(" ")))),f=De("transform","string"==typeof n.transform?_.c.transform(n.transform):n.transform),h=De("mask",je(a)),p=Object(_.a)(s,Oe({},u,{},f,{},h,{symbol:r,title:i,titleId:l}));if(!p)return function(){var e;!Te&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var d=p.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Ie.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),Fe(d[0],m)}Ie.displayName="FontAwesomeIcon",Ie.propTypes={border:s.a.bool,className:s.a.string,mask:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),fixedWidth:s.a.bool,inverse:s.a.bool,flip:s.a.oneOf(["horizontal","vertical","both"]),icon:s.a.oneOfType([s.a.object,s.a.array,s.a.string]),listItem:s.a.bool,pull:s.a.oneOf(["right","left"]),pulse:s.a.bool,rotation:s.a.oneOf([0,90,180,270]),size:s.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:s.a.bool,symbol:s.a.oneOfType([s.a.bool,s.a.string]),title:s.a.string,transform:s.a.oneOfType([s.a.string,s.a.object]),swapOpacity:s.a.bool},Ie.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var Fe=function e(t,n){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var a=(n.children||[]).map((function(n){return e(t,n)})),r=Object.keys(n.attributes||{}).reduce((function(e,t){var c=n.attributes[t];switch(t){case"class":e.attrs.className=c,delete n.attributes.class;break;case"style":e.attrs.style=Pe(c);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=c:e.attrs[Re(t)]=c}return e}),{attrs:{}}),o=c.style,i=void 0===o?{}:o,l=Ae(c,["style"]);return r.attrs.style=Oe({},r.attrs.style,{},i),t.apply(void 0,[n.tag,Oe({},r.attrs,{},l)].concat(_e(a)))}.bind(null,i.a.createElement),Ue=(n(963),function(e){var t=e.icon,n=e.children;return React.createElement("div",{className:"give-donor-dashboard-heading"},t&&React.createElement(Ie,{icon:t,className:"spinner"===t?"give-donor-dashboard-heading__spinner":""}),n)}),Be=n(4),Ze=n.n(Be),We=(n(964),function(e){var t=e.header,n=e.rows,c=e.footer;return React.createElement("div",{className:"give-donor-dashboard-table"},React.createElement("div",{className:"give-donor-dashboard-table__header"},t),React.createElement("div",{className:"give-donor-dashboard-table__rows"},n),React.createElement("div",{className:"give-donor-dashboard-table__footer"},c))}),$e=function(e){var t=e.annualReceipt[1],n=t.year,c=t.amount,a=t.count,r=t.statementUrl;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},n.label),React.createElement("div",{className:"give-donor-dashboard-table__column"},c.formatted),React.createElement("div",{className:"give-donor-dashboard-table__column"},a),React.createElement("div",{className:"give-donor-dashboard-table__column"},React.createElement("a",{href:r,onClick:function(e){return function(e){e.preventDefault(),window.parent.open(e.target.href,"_blank")}(e)}},Ee("View Receipt","give")," ",React.createElement(Ie,{icon:"arrow-right"}))))},qe=(n(965),function(e){var t=e.annualReceipts,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(s=Object.entries(t),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement($e,{key:n,annualReceipt:t})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Year","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Count","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Statement","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Receipts","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),Ge={annualReceipts:null,querying:!1,error:null};function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qe=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ANNUAL_RECEIPTS":return Ye(Ye({},e),{},{annualReceipts:t.payload.annualReceipts});case"SET_QUERYING":return Ye(Ye({},e),{},{querying:t.payload.querying});case"SET_ERROR":return Ye(Ye({},e),{},{error:t.payload.error});default:return e}})),Xe=function(e){var t=Object(o.useState)(e(Qe.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Qe.subscribe((function(){a(e(Qe.getState()))}));return function(){t()}}),[]),c},Je=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},et=function(){var e=Xe((function(e){return e.annualReceipts})),t=Xe((function(e){return e.querying})),n=Xe((function(e){return e.error})),c=e?Object.entries(e).length:0;return Object(o.useEffect)((function(){var e;e=Qe.dispatch,W()&&(e(Je(!0)),q.post("annual-receipts",{},{}).then((function(e){return e.data})).then((function(t){var n=t.receipts;e({type:"SET_ANNUAL_RECEIPTS",payload:{annualReceipts:n}}),e(Je(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}})})).catch((function(){e(Je(!1))})))}),[]),n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):!0===t&&null===e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(qe,null)):React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(c," ").concat(Ee("Total Annual Receipts","give"))),React.createElement(qe,{annualReceipts:e,perPage:5}))},tt=function(){return window.giveDonorDashboard.utils.registerTab({label:Ee("Annual Receipts","give"),icon:"receipt",slug:"annual-receipts",content:et})},nt=(n(966),function(){var e=O((function(e){return e.tabs})),t=Object(o.useState)([]),n=Ze()(t,2),c=n[0],a=n[1],r=Object(o.useState)([]),i=Ze()(r,2),l=i[0],s=i[1];Object(o.useEffect)((function(){a(Object.entries(e))}),[e]),Object(o.useEffect)((function(){c.length>2&&s(u(c))}),[c]);var u=function(e){return e.reduce((function(e,t,n){if(t[1].dashboardContent){var c=t[1].dashboardContent;e.push(React.createElement(c,{key:n}))}return e}),[])};return React.createElement("div",{className:"give-donor-dashboard-dashboard-content"},l)}),ct=function(){return React.createElement(nt,null)},at=n(26),rt=(n(967),function(e){var t=e.icon,n=e.children,c=e.onClick,a=e.href,r=e.type;return a?React.createElement("a",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:function(e){return function(e){e.preventDefault(),window.parent.location=a}(e)},href:a},n,t&&React.createElement(Ie,{icon:t})):React.createElement("button",{className:"give-donor-dashboard-button give-donor-dashboard-button--primary",onClick:c?function(){return c()}:null,type:r},n,t&&React.createElement(Ie,{icon:t}))}),ot=(n(968),function(e){var t=e.donation;return void 0===t?null:t.receipt.map((function(e,t){var n=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Ie,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},n)}))}),it=function(){return O((function(e){return e.accentColor}))},lt=function(){var e=Object(o.useState)({width:void 0,height:void 0}),t=Ze()(e,2),n=t[0],c=t[1];return Object(o.useEffect)((function(){function e(){c({width:window.top.innerWidth,height:window.top.innerHeight})}return window.top.addEventListener("resize",e),e(),function(){return window.top.removeEventListener("resize",e)}}),[]),n},st=function(e){var t=e.donation,n=t.id,a=t.form,r=t.payment,o=lt().width;return React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},r.amount)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Form","give")),a.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-date"},r.date),React.createElement("div",{className:"give-donor-dashboard-table__donation-time"},r.time)),React.createElement("div",{className:"give-donor-dashboard-table__column"},o<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:r.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},r.status.label)),"test"===r.mode&&React.createElement("div",{className:"give-donor-dashboard-table__donation-test-tag"},Ee("Test Donation","give"))),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},Ee("ID","give"),": ",r.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/donation-history/".concat(n)},Ee("View Receipt","give")," ",React.createElement(Ie,{icon:"arrow-right"})))))},ut=(n(969),function(e){var t=e.donations,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(st,{key:n,donation:t})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Donation","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Campaign","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Date","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Status","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Donations","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),ft={donations:null,querying:!1,count:null,revenue:null,average:null,currency:null,error:null};function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ft,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_DONATIONS":return pt(pt({},e),{},{donations:t.payload.donations});case"SET_QUERYING":return pt(pt({},e),{},{querying:t.payload.querying});case"SET_ERROR":return pt(pt({},e),{},{error:t.payload.error});case"SET_COUNT":return pt(pt({},e),{},{count:t.payload.count});case"SET_AVERAGE":return pt(pt({},e),{},{average:t.payload.average});case"SET_REVENUE":return pt(pt({},e),{},{revenue:t.payload.revenue});case"SET_CURRENCY":return pt(pt({},e),{},{currency:t.payload.currency});default:return e}})),mt=function(e){var t=Object(o.useState)(e(dt.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=dt.subscribe((function(){a(e(dt.getState()))}));return function(){t()}}),[]),c},vt=(n(970),function(){var e=mt((function(e){return e.donations})),t=mt((function(e){return e.querying})),n=mt((function(e){return e.error})),a=Object(at.f)(),r=a?a.pathname.split("/")[2]:null,i=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};return n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):r?t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__donation-history-link"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Donation History","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Donation Receipt","give")," #",i(r).payment.serialCode),React.createElement(ot,{donation:i(r)}),React.createElement("div",{className:"give-donor-dashboard__donation-history-footer"},React.createElement(c.b,{to:"/donation-history"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Donation History","give")),i(r).payment.pdfReceiptUrl.length>0&&React.createElement(rt,{icon:"file-pdf",href:i(r).payment.pdfReceiptUrl},Ee("Download Receipt","give")))):t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(ut,null)):React.createElement(o.Fragment,null,e?React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(e?Object.entries(e).length:0," ").concat(Ee("Total Donations","give"))),React.createElement(ut,{donations:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Donations","give"))))}),gt=(n(971),function(){var e=it(),t=mt((function(e){return e.count})),n=mt((function(e){return e.revenue})),c=mt((function(e){return e.average})),a=mt((function(e){return e.currency}));return React.createElement("div",{className:"give-donor-dashboard-dashboard__stats"},t&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},t),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Number of donations","give"))),n&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),n):React.createElement(o.Fragment,null,n,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Lifetime donations","give"))),c&&React.createElement("div",{className:"give-donor-dashboard-dashboard__stat"},React.createElement("div",{className:"give-donor-dashboard-dashboard__figure",style:{color:e}},"before"===a.position?React.createElement(o.Fragment,null,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol),c):React.createElement(o.Fragment,null,c,React.createElement("span",{className:"give-donor-dashboard-dashboard__figure-currency"},a.symbol))," "),React.createElement("div",{className:"give-donor-dashboard-dashboard__detail"},Ee("Average donation","give"))))}),bt=function(){var e=mt((function(e){return e.donations})),t=mt((function(e){return e.querying})),n=mt((function(e){return e.error}));return t?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"spinner"},Ee("Loading...","give"))):n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):e?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"chart-line"},Ee("Your Giving Stats","give")),React.createElement(gt,null),React.createElement(Ue,{icon:"calendar-alt"},Ee(t?"Loading...":"Recent Donations","give")),!t&&React.createElement(ut,{donations:e,perPage:3})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Donations","give")))},yt=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},zt=function(){var e,t;e=dt.dispatch,t=J.dispatch,W()&&(e(yt(!0)),q.post("donations",{},{}).then((function(e){return e.data})).then((function(t){var n=t.status,c=t.body_response;if(200===n){var a=c[0],r=a.donations,o=a.count,i=a.revenue,l=a.average,s=a.currency;e(function(e){return{type:"SET_DONATIONS",payload:{donations:e}}}(r)),e(function(e){return{type:"SET_COUNT",payload:{count:e}}}(o)),e(function(e){return{type:"SET_REVENUE",payload:{revenue:e}}}(i)),e(function(e){return{type:"SET_AVERAGE",payload:{average:e}}}(l)),e(function(e){return{type:"SET_CURRENCY",payload:{currency:e}}}(s))}400===n&&e({type:"SET_ERROR",payload:{error:c.message}}),e(yt(!1))})).catch((function(n){var c=n.response,a=c.status,r=c.data;403===a&&"rest_cookie_invalid_nonce"===r.code&&t({type:"SET_APPLICATION_ERROR",payload:{error:Ee("The site is unable to verify your access to this data. Try refreshing the page, and if the problem persists reach out to the site administrator.","give")}}),e(yt(!1))}))),window.giveDonorDashboard.utils.registerTab({label:Ee("Donation History","give"),icon:"calendar-alt",slug:"donation-history",content:vt,dashboardContent:bt})},Ct=n(25),xt=n.n(Ct),Mt=n(12),Lt=n.n(Mt),wt=(n(972),function(){return React.createElement("div",{className:"give-donor-dashboard-divider"})}),Ht=n(9),Vt=n.n(Ht);function Et(e,t,n,c){return new(n||(n=Promise))((function(a,r){function o(e){try{l(c.next(e))}catch(e){r(e)}}function i(e){try{l(c.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,i)}l((c=c.apply(e,t||[])).next())}))}function St(e,t){var n,c,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,c&&(a=2&r[0]?c.return:r[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,r[1])).done)return a;switch(c=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,c=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){o.label=r[1];break}if(6===r[0]&&o.label<a[1]){o.label=a[1],a=r;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(r);break}a[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],c=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}}Object.create;function Nt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var c,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(c=r.next()).done;)o.push(c.value)}catch(e){a={error:e}}finally{try{c&&!c.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}Object.create;var kt=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function Ot(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),c=kt.get(n);c&&Object.defineProperty(e,"type",{value:c,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var c=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof c&&c.length>0?c:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var At=[".DS_Store","Thumbs.db"];function _t(e){return(null!==e.target&&e.target.files?Tt(e.target.files):[]).map((function(e){return Ot(e)}))}function Rt(e,t){return Et(this,void 0,void 0,(function(){var n;return St(this,(function(c){switch(c.label){case 0:return e.items?(n=Tt(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(jt))]):[3,2];case 1:return[2,Pt(Dt(c.sent()))];case 2:return[2,Pt(Tt(e.files).map((function(e){return Ot(e)})))]}}))}))}function Pt(e){return e.filter((function(e){return-1===At.indexOf(e.name)}))}function Tt(e){for(var t=[],n=0;n<e.length;n++){var c=e[n];t.push(c)}return t}function jt(e){if("function"!=typeof e.webkitGetAsEntry)return It(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Ut(t):It(e)}function Dt(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Nt(arguments[t]));return e}(e,Array.isArray(t)?Dt(t):[t])}),[])}function It(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=Ot(t);return Promise.resolve(n)}function Ft(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,e.isDirectory?Ut(e):Bt(e)]}))}))}function Ut(e){var t=e.createReader();return new Promise((function(e,n){var c=[];!function a(){var r=this;t.readEntries((function(t){return Et(r,void 0,void 0,(function(){var r,o,i;return St(this,(function(l){switch(l.label){case 0:if(t.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(c)];case 2:return r=l.sent(),e(r),[3,4];case 3:return o=l.sent(),n(o),[3,4];case 4:return[3,6];case 5:i=Promise.all(t.map(Ft)),c.push(i),a(),l.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Bt(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var c=Ot(n,e.fullPath);t(c)}),(function(e){n(e)}))}))]}))}))}var Zt=n(680),Wt=n.n(Zt);function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}var Gt=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Kt=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," bytes")}},Yt=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," bytes")}},Qt={code:"too-many-files",message:"Too many files"};function Xt(e,t){var n="application/x-moz-file"===e.type||Wt()(e,t);return[n,n?null:Gt(t)]}function Jt(e,t,n){if(en(e.size))if(en(t)&&en(n)){if(e.size>n)return[!1,Kt(n)];if(e.size<t)return[!1,Yt(t)]}else{if(en(t)&&e.size<t)return[!1,Yt(t)];if(en(n)&&e.size>n)return[!1,Kt(n)]}return[!0,null]}function en(e){return null!=e}function tn(e){var t=e.files,n=e.accept,c=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles;return!(!r&&t.length>1||r&&o>=1&&t.length>o)&&t.every((function(e){var t=$t(Xt(e,n),1)[0],r=$t(Jt(e,c,a),1)[0];return t&&r}))}function nn(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function cn(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function an(e){e.preventDefault()}function rn(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function on(e){return-1!==e.indexOf("Edge/")}function ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return rn(e)||on(e)}function sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,c=new Array(n>1?n-1:0),a=1;a<n;a++)c[a-1]=arguments[a];return t.some((function(t){return!nn(e)&&t&&t.apply(void 0,[e].concat(c)),nn(e)}))}}function un(e){return function(e){if(Array.isArray(e))return pn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||hn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||hn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(e,t){if(e){if("string"==typeof e)return pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pn(e,t):void 0}}function pn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){vn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var bn=Object(o.forwardRef)((function(e,t){var n=e.children,c=Cn(gn(e,["children"])),a=c.open,r=gn(c,["open"]);return Object(o.useImperativeHandle)(t,(function(){return{open:a}}),[a]),i.a.createElement(o.Fragment,null,n(mn(mn({},r),{},{open:a})))}));bn.displayName="Dropzone";var yn={disabled:!1,getFilesFromEvent:function(e){return Et(this,void 0,void 0,(function(){return St(this,(function(t){return[2,(n=e,n.dataTransfer&&e.dataTransfer?Rt(e.dataTransfer,e.type):_t(e))];var n}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};bn.defaultProps=yn,bn.propTypes={children:s.a.func,accept:s.a.oneOfType([s.a.string,s.a.arrayOf(s.a.string)]),multiple:s.a.bool,preventDropOnDocument:s.a.bool,noClick:s.a.bool,noKeyboard:s.a.bool,noDrag:s.a.bool,noDragEventsBubbling:s.a.bool,minSize:s.a.number,maxSize:s.a.number,maxFiles:s.a.number,disabled:s.a.bool,getFilesFromEvent:s.a.func,onFileDialogCancel:s.a.func,onDragEnter:s.a.func,onDragLeave:s.a.func,onDragOver:s.a.func,onDrop:s.a.func,onDropAccepted:s.a.func,onDropRejected:s.a.func,validator:s.a.func};var zn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=mn(mn({},yn),e),n=t.accept,c=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,h=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.preventDropOnDocument,b=t.noClick,y=t.noKeyboard,z=t.noDrag,C=t.noDragEventsBubbling,x=t.validator,M=Object(o.useRef)(null),L=Object(o.useRef)(null),w=Object(o.useReducer)(xn,zn),H=fn(w,2),V=H[0],E=H[1],S=V.isFocused,N=V.isFileDialogActive,k=V.draggedFiles,O=Object(o.useCallback)((function(){L.current&&(E({type:"openDialog"}),L.current.value=null,L.current.click())}),[E]),A=function(){N&&setTimeout((function(){L.current&&(L.current.files.length||(E({type:"closeDialog"}),"function"==typeof v&&v()))}),300)};Object(o.useEffect)((function(){return window.addEventListener("focus",A,!1),function(){window.removeEventListener("focus",A,!1)}}),[L,N,v]);var _=Object(o.useCallback)((function(e){M.current&&M.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),O()))}),[M,L]),R=Object(o.useCallback)((function(){E({type:"focus"})}),[]),P=Object(o.useCallback)((function(){E({type:"blur"})}),[]),T=Object(o.useCallback)((function(){b||(ln()?setTimeout(O,0):O())}),[L,b]),j=Object(o.useRef)([]),D=function(e){M.current&&M.current.contains(e.target)||(e.preventDefault(),j.current=[])};Object(o.useEffect)((function(){return g&&(document.addEventListener("dragover",an,!1),document.addEventListener("drop",D,!1)),function(){g&&(document.removeEventListener("dragover",an),document.removeEventListener("drop",D))}}),[M,g]);var I=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[].concat(un(j.current),[e.target]),cn(e)&&Promise.resolve(a(e)).then((function(t){nn(e)&&!C||(E({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,C]),F=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=cn(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&h&&h(e),!1}),[h,C]),U=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e);var t=j.current.filter((function(e){return M.current&&M.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),j.current=t,t.length>0||(E({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),cn(e)&&f&&f(e))}),[M,f,C]),B=Object(o.useCallback)((function(e){e.preventDefault(),e.persist(),q(e),j.current=[],cn(e)&&Promise.resolve(a(e)).then((function(t){if(!nn(e)||C){var c=[],a=[];t.forEach((function(e){var t=fn(Xt(e,n),2),o=t[0],l=t[1],s=fn(Jt(e,i,r),2),u=s[0],f=s[1],h=x?x(e):null;if(o&&u&&!h)c.push(e);else{var p=[l,f];h&&(p=p.concat(h)),a.push({file:e,errors:p.filter((function(e){return e}))})}})),(!l&&c.length>1||l&&s>=1&&c.length>s)&&(c.forEach((function(e){a.push({file:e,errors:[Qt]})})),c.splice(0)),E({acceptedFiles:c,fileRejections:a,type:"setFiles"}),p&&p(c,a,e),a.length>0&&m&&m(a,e),c.length>0&&d&&d(c,e)}})),E({type:"reset"})}),[l,n,i,r,s,a,p,d,m,C]),Z=function(e){return c?null:e},W=function(e){return y?null:Z(e)},$=function(e){return z?null:Z(e)},q=function(e){C&&e.stopPropagation()},G=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onKeyDown,r=e.onFocus,o=e.onBlur,i=e.onClick,l=e.onDragEnter,s=e.onDragOver,u=e.onDragLeave,f=e.onDrop,h=gn(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return mn(mn(vn({onKeyDown:W(sn(a,_)),onFocus:W(sn(r,R)),onBlur:W(sn(o,P)),onClick:Z(sn(i,T)),onDragEnter:$(sn(l,I)),onDragOver:$(sn(s,F)),onDragLeave:$(sn(u,U)),onDrop:$(sn(f,B))},n,M),c||y?{}:{tabIndex:0}),h)}}),[M,_,R,P,T,I,F,U,B,y,z,c]),K=Object(o.useCallback)((function(e){e.stopPropagation()}),[]),Y=Object(o.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,c=void 0===t?"ref":t,a=e.onChange,r=e.onClick,o=gn(e,["refKey","onChange","onClick"]),i=vn({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(sn(a,B)),onClick:Z(sn(r,K)),autoComplete:"off",tabIndex:-1},c,L);return mn(mn({},i),o)}}),[L,n,l,B,c]),Q=k.length,X=Q>0&&tn({files:k,accept:n,minSize:i,maxSize:r,multiple:l,maxFiles:s}),J=Q>0&&!X;return mn(mn({},V),{},{isDragAccept:X,isDragReject:J,isFocused:S&&!c,getRootProps:G,getInputProps:Y,rootRef:M,inputRef:L,open:Z(O)})}function xn(e,t){switch(t.type){case"focus":return mn(mn({},e),{},{isFocused:!0});case"blur":return mn(mn({},e),{},{isFocused:!1});case"openDialog":return mn(mn({},e),{},{isFileDialogActive:!0});case"closeDialog":return mn(mn({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,c=t.draggedFiles;return mn(mn({},e),{},{draggedFiles:c,isDragActive:n});case"setFiles":return mn(mn({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return mn(mn({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}n(973);var Mn=function(e){var t=e.url,n=e.file,c=e.onChange,a=Cn({onDrop:Object(o.useCallback)((function(e){c(e[0])}),[]),accept:"image/jpeg, image/png, image/gif",maxFiles:1}),r=a.getRootProps,i=a.getInputProps,l=a.isDragActive,s=Object(o.useState)(t),u=Ze()(s,2),f=u[0],h=u[1];return Object(o.useEffect)((function(){if(n){var e=new window.FileReader;e.readAsDataURL(n),e.onloadend=function(){h(e.result)}}}),[n]),React.createElement("div",{className:"give-donor-dashboard-avatar-control"},React.createElement("label",{className:"give-donor-dashboard-avatar-control__label"},Ee("Avatar","give")),React.createElement("div",Vt()({className:"give-donor-dashboard-avatar-control__input"},r()),React.createElement("input",i()),React.createElement("div",{className:"give-donor-dashboard-avatar-control__preview"},React.createElement("img",{src:f})),React.createElement("div",{className:"give-donor-dashboard-avatar-control__dropzone".concat(l?" give-donor-dashboard-avatar-control__dropzone--highlight":"")},React.createElement("div",{className:"give-donor-dashboard-avatar-control__instructions"},l?React.createElement("p",null,"Drop the image here..."):React.createElement("p",null,"Drag image here to set ",React.createElement("br",null),"avatar or ",React.createElement("span",{className:"give-donor-dashboard-avatar-control__select-link"},"find image"))))))},Ln=(n(974),function(e){var t=e.children;return React.createElement("div",{className:"give-donor-dashboard-field-row"},t)}),wn=n(384);n(975);function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var En=function(e){var t=e.label,n=e.value,c=e.isLoading,a=e.onChange,r=e.options,o=e.placeholder,i=e.width,l=e.isClearable;if(r&&r.length<2)return null;var s=it(),u=K(t),f=null!==r?r.filter((function(e){return e.value===n})):null,h={control:function(e){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2",boxSizing:"border-box",marginTop:"8px",border:"1px solid #b8b8b8",borderRadius:"4px"})},input:function(e){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"})},valueContainer:function(e){return Vn(Vn({},e),{},{padding:"7px 12px"})},clearIndicator:function(e){return Vn(Vn({},e),{},{padding:"0px"})},dropdownIndicator:function(e){return Vn(Vn({},e),{},{padding:"0 8px 0 0"})},option:function(e,t){return Vn(Vn({},e),{},{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:t.isSelected?"#fff":"#333",lineHeight:"1.2"})},indicatorSeparator:function(){return{display:"none"}}};return React.createElement("div",{className:"give-donor-dashboard-select-control",style:i?{maxWidth:i}:null},t&&React.createElement("label",{className:"give-donor-dashboard-select-control__label",htmlFor:u},t),React.createElement(wn.a,{placeholder:o,isLoading:c,inputId:u,value:f,onChange:function(e){return a(e?e.value:"")},options:r,styles:h,maxMenuHeight:"200px",isDisabled:c,isClearable:l,theme:function(e){return Vn(Vn({},e),{},{colors:Vn(Vn({},e.colors),{},{primary:s})})}}))};En.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.string,width:s.a.string,isClearable:s.a.bool},En.defaultProps={label:null,value:null,onChange:null,options:null,placeholder:Ee("Select...","give"),width:null,isClearable:!1};var Sn=En,Nn=(n(976),function(e){var t=e.label,n=e.value,c=e.onChange,a=e.icon,r=e.type,o=K(t);return React.createElement("div",{className:"give-donor-dashboard-text-control"},t&&React.createElement("label",{className:"give-donor-dashboard-text-control__label",htmlFor:o},t),React.createElement("div",{className:"give-donor-dashboard-text-control__input"},a&&React.createElement(Ie,{icon:a}),React.createElement("input",{id:o,type:r,value:n,onChange:function(e){return c(e.target.value)}})))});Nn.defaultProps={label:null,value:"",onChange:null,icon:null,type:"text"};var kn=Nn,On=(n(977),function(e){var t=e.label,n=e.description,c=e.options,a=e.value,r=e.onChange,o=c.map((function(e,t){var n=G(e.value);return React.createElement("div",{className:"give-donor-dashboard-radio-control__option",key:t},React.createElement("input",{type:"radio",name:"format",id:n,value:e.value,checked:e.value===a,onChange:function(e){return r(e.target.value)}}),React.createElement("label",{htmlFor:n},e.label))}));return React.createElement("fieldset",{className:"give-donor-dashboard-radio-control"},t&&React.createElement("legend",{className:"give-donor-dashboard-radio-control__legend"},t),n&&React.createElement("div",{className:"give-donor-dashboard-radio-control__description"},n),o)}),An=function(){var e=xt()(Lt.a.mark((function e(t){var n,c,a,r,o,i,l,s,u,f,h,p,d,m,v;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.titlePrefix,c=t.firstName,a=t.lastName,r=t.company,o=t.primaryEmail,i=t.additionalEmails,l=t.primaryAddress,s=t.additionalAddresses,u=t.avatarFile,f=t.isAnonymous,h=t.id,p=J.getState(),d=p.profile,m=d.avatarId,!u){e.next=7;break}return e.next=6,_n(u);case 6:m=e.sent;case 7:return v=J.dispatch,e.abrupt("return",q.post("profile",{data:JSON.stringify({titlePrefix:n,firstName:c,lastName:a,company:r,primaryEmail:o,additionalEmails:i,primaryAddress:l,additionalAddresses:s,avatarId:m,isAnonymous:f}),id:h},{}).then((function(e){return e.data})).then((function(e){return v(I(e.profile)),e})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_n=function(e){var t=new window.FormData;return t.append("file",e),q.post("avatar",t).then((function(e){return e.data})).then((function(e){return e.id}))},Rn=function(e){return q.post("location",{countryCode:e},{}).then((function(e){return e.data})).then((function(e){return e.states.map((function(e){return{value:e.value,label:Pn(e.label)}}))}))},Pn=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},Tn=function(e){var t=e.primaryEmail,n=e.additionalEmails,c=e.onChangePrimaryEmail,a=e.onChangeAdditionalEmails,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=xt()(Lt.a.mark((function e(n,c){var a;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n.map((function(e,t){return React.createElement(Ln,{key:t},React.createElement(kn,{label:0===t?Ee("Additional Emails","give"):null,value:e,onChange:function(e){return r(e,t)},icon:"envelope"}),React.createElement("div",{className:"give-donor-dashboard__email-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-email",onClick:function(){return l(e,t)}},Ee("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-email",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},Ee("Delete","give"))))}));return React.createElement(o.Fragment,null,React.createElement(kn,{label:Ee("Primary Email","give"),value:t,onChange:function(e){return i(e)},icon:"envelope"}),s,React.createElement(rt,{onClick:function(){return e="",t=n.concat(e),void a(t);var e,t},icon:"plus"},Ee("Add Email","give")))},jn=function(e){var t=e.address,n=e.onChange;Object(o.useEffect)((function(){u(t.country),d(t.line1),b(t.line2),x(t.city),H(t.state),k(t.zip)}),[t]);var c=E(),a=O((function(e){return e.countries})),r=O((function(e){return e.states})),i=Object(o.useState)(t.country),l=Ze()(i,2),s=l[0],u=l[1],f=Object(o.useState)(t.line1),h=Ze()(f,2),p=h[0],d=h[1],m=Object(o.useState)(t.line2),v=Ze()(m,2),g=v[0],b=v[1],y=Object(o.useState)(t.city),z=Ze()(y,2),C=z[0],x=z[1],M=Object(o.useState)(t.state),L=Ze()(M,2),w=L[0],H=L[1],V=Object(o.useState)(t.zip),S=Ze()(V,2),N=S[0],k=S[1],A=function(){var e=xt()(Lt.a.mark((function e(t){var n;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}return e.next=3,Rn(t);case 3:n=e.sent,c({type:"SET_STATES",payload:{states:n}});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(o.useEffect)((function(){A(s)}),[s]),Object(o.useEffect)((function(){n({country:s,line1:p,line2:g,state:w,city:C,zip:N})}),[s,p,g,w,C,N]),React.createElement(o.Fragment,null,React.createElement(Sn,{label:Ee("Country","give"),value:s,onChange:function(e){return u(e)},options:a,width:null}),React.createElement(kn,{label:Ee("Address 1","give"),value:p,onChange:function(e){return d(e)}}),React.createElement(kn,{label:Ee("Address 2","give"),value:g,onChange:function(e){return b(e)}}),React.createElement(kn,{label:Ee("City","give"),value:C,onChange:function(e){return x(e)}}),React.createElement(Ln,null,React.createElement(Sn,{label:Ee("State","give"),value:w,onChange:function(e){return H(e)},options:r}),React.createElement(kn,{label:Ee("Zip","give"),value:N,onChange:function(e){return k(e)}})))},Dn=function(e){var t=e.primaryAddress,n=e.additionalAddresses,c=e.onChangePrimaryAddress,a=e.onChangeAdditionalAddresses,r=function(e,t){var c=n.concat();c[t]=e,a(c)},i=function(e){c(e)},l=function(){var e=xt()(Lt.a.mark((function e(n,c){var a;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Object.assign({},t),i(n),r(a,c);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),s=n?n.map((function(e,t){return React.createElement(o.Fragment,{key:t},React.createElement(Ln,null,React.createElement(Ue,null,Ee("Additional Address","give")),React.createElement("div",{className:"give-donor-dashboard__address-controls"},React.createElement("div",{className:"give-donor-dashboard__make-primary-address",onClick:function(){return l(e,t)}},Ee("Make Primary","give")),"|",React.createElement("div",{className:"give-donor-dashboard__delete-address",onClick:function(){return e=t,c=n.filter((function(t,n){return n!==e})),void a(c);var e,c}},Ee("Delete","give")))),React.createElement(wt,null),React.createElement(jn,{address:e,onChange:function(e){return r(e,t)}}))})):null;return t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Primary Address","give")),React.createElement(wt,null),React.createElement(jn,{address:t,onChange:function(e){return i(e)}}),s,React.createElement(rt,{onClick:function(){return e={},t=n.concat(e),void a(t);var e,t},icon:"plus"},Ee("Add Address","give"))):React.createElement("div",{className:"give-donor-dashboard__add-primary-address"},React.createElement(Ue,null,Ee("Looks like you have not set up an address!","give")),React.createElement(rt,{onClick:function(){return i({})},icon:"plus"},Ee("Add Address","give")))},In=(n(978),function(){var e=O((function(e){return e.id})),t=O((function(e){return e.profile})),n=Object(o.useState)(!1),c=Ze()(n,2),a=c[0],r=c[1],i=Object(o.useState)(!1),l=Ze()(i,2),s=l[0],u=l[1];Object(o.useEffect)((function(){y(null),M(t.avatarUrl)}),[t]);var f=Object(o.useState)(t.titlePrefix),h=Ze()(f,2),p=h[0],d=h[1],m=[{value:"Mr.",label:Ee("Mr.","give")},{value:"Ms.",label:Ee("Ms.","give")},{value:"Mrs.",label:Ee("Mrs.","give")}],v=Object(o.useState)(null),g=Ze()(v,2),b=g[0],y=g[1],z=Object(o.useState)(t.avatarUrl),C=Ze()(z,2),x=C[0],M=C[1],L=Object(o.useState)(t.firstName),w=Ze()(L,2),H=w[0],V=w[1],E=Object(o.useState)(t.lastName),S=Ze()(E,2),N=S[0],k=S[1],A=Object(o.useState)(t.company),_=Ze()(A,2),R=_[0],P=_[1],T=Object(o.useState)(t.emails?t.emails.primary:""),j=Ze()(T,2),D=j[0],I=j[1],F=t.emails?Object.keys(t.emails).reduce((function(e,n){return"primary"!==n&&e.push(t.emails[n]),e}),[]):[],U=Object(o.useState)(F),B=Ze()(U,2),Z=B[0],W=B[1],$=Object(o.useState)(t.addresses&&t.addresses.billing?t.addresses.billing[0]:null),q=Ze()($,2),G=q[0],K=q[1],Y=t.addresses&&t.addresses.billing?Object.values(t.addresses.billing).reduce((function(e,t,n){return 0!==n&&e.push(t),e}),[]):[],Q=Object(o.useState)(Y),X=Ze()(Q,2),J=X[0],ee=X[1],te=Object(o.useState)(t.isAnonymous),ne=Ze()(te,2),ce=ne[0],ae=ne[1],re=[{value:"0",label:Ee("Public - show my donations publicly","give")},{value:"1",label:Ee("Private - only organization admins can view my info")}];Object(o.useEffect)((function(){u(!1)}),[p,H,N,R,D,Z,G,J,ce]),Object(o.useEffect)((function(){null!==b&&u(!1)}),[b]);var oe=function(){var t=xt()(Lt.a.mark((function t(){return Lt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(!0),t.next=3,An({titlePrefix:p,firstName:H,lastName:N,company:R,primaryEmail:D,additionalEmails:Z,primaryAddress:G,additionalAddresses:J,avatarFile:b,isAnonymous:ce,id:e});case 3:u(!0),r(!1);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Profile Information","give")),React.createElement(wt,null),React.createElement(Mn,{url:x,file:b,onChange:function(e){return y(e)}}),React.createElement(Ln,null,React.createElement(Sn,{label:Ee("Prefix","give"),value:p,onChange:function(e){return d(e)},options:m,placeholder:"--",width:"120px",isClearable:!0}),React.createElement(kn,{label:Ee("First Name","give"),value:H,onChange:function(e){return V(e)},icon:"user"}),React.createElement(kn,{label:Ee("Last Name","give"),value:N,onChange:function(e){return k(e)}})),React.createElement(kn,{label:Ee("Company","give"),value:R,onChange:function(e){return P(e)}}),React.createElement(Tn,{primaryEmail:D,additionalEmails:Z,onChangePrimaryEmail:function(e){return I(e)},onChangeAdditionalEmails:function(e){return W(e)}}),React.createElement(Dn,{primaryAddress:G,additionalAddresses:J,onChangePrimaryAddress:function(e){return K(e)},onChangeAdditionalAddresses:function(e){return ee(e)}}),React.createElement(Ue,null,Ee("Additional Info","give")),React.createElement(wt,null),React.createElement(On,{label:Ee("Anonymous Giving"),description:Ee("This will prevent your avatar, first name, donation comments, and other information from appearing publicly on this organization’s website.","give"),options:re,onChange:function(e){return ae(e)},value:ce}),React.createElement(rt,{onClick:function(){return oe()}},s?React.createElement(o.Fragment,null,Ee("Updated","give")," ",React.createElement(Ie,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,Ee("Update Profile","give")," ",React.createElement(Ie,{className:a?"give-donor-dashboard__edit-profile-spinner":"",icon:a?"spinner":"save",fixedWidth:!0}))))}),Fn=function(e){var t=e.subscription;if(void 0===t)return null;var n,c=t.receipt.map((function(e,t){var c=e.lineItems.map((function(e,t){var n="object"===D()(e.value)&&e.value.color?React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-donation-receipt__status-indicator",style:{background:e.value.color}}),e.value.label):e.value;return React.createElement("div",{className:"give-donor-dashboard-donation-receipt__row".concat(e.class.includes("total")?" give-donor-dashboard-donation-receipt__row--footer":""),key:t},React.createElement("div",{className:"give-donor-dashboard-donation-receipt__detail"},e.icon&&React.createElement(Ie,{icon:e.icon,fixedWidth:!0})," ",e.label),React.createElement("div",{className:"give-donor-dashboard-donation-receipt__value"},n))}));return"Donation"===e.id?(n=React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c),null):React.createElement("div",{className:"give-donor-dashboard-donation-receipt__table",key:t},c)}));return c.push(n),c},Un=n(681),Bn=n.n(Un),Zn=(n(979),function(e){var t=e.label,n=e.onChange,c=e.value,a=e.placeholder,r=e.currency,o=e.min,i=e.max,l=e.width,s=K(t),u=G(t);return React.createElement("div",{className:"give-donor-dashboard-currency-control",style:l?{maxWidth:l}:null},t&&React.createElement("label",{className:"give-donor-dashboard-currency-control__label",htmlFor:s},t),React.createElement("div",{className:"give-donor-dashboard-currency-control__input"},React.createElement(Bn.a,{id:s,name:u,placeholder:a,value:c,onValueChange:function(e){return isNaN(e)?n(o):n(e)},onBlur:function(){return function(){switch(!0){case i&&c>i:n(i.toFixed(r.numberDecimals));break;case o&&c<o:n(o.toFixed(r.numberDecimals))}}()},allowNegativeValue:!1,decimalsLimit:r.numberDecimals,decimalScale:r.numberDecimals,prefix:"before"===r.currencyPosition?r.symbol:"",suffix:"after"===r.currencyPosition?r.symbol:"",decimalSeparator:r.decimalSeparator,groupSeparator:r.thousandsSeparator})))});Zn.propTypes={label:s.a.string,value:s.a.string.isRequired,onChange:s.a.func,placeholder:s.a.string,width:s.a.string,currency:s.a.object.isRequired},Zn.defaultProps={label:null,value:null,onChange:null,placeholder:Ee("Enter amount...","give"),width:null,currency:{code:"USD",currencyPosition:"before",decimalSeparator:".",numberDecimals:2,symbol:"$",thousandsSeparator:","}};var Wn=Zn,$n=function(e){var t=e.form,n=e.payment,c=e.onChange,a=e.value,r=Object(o.useState)(null),i=Ze()(r,2),l=i[0],s=i[1],u=Object(o.useState)(null),f=Ze()(u,2),h=f[0],p=f[1],d=Object(o.useState)(null),m=Ze()(d,2),v=m[0],g=m[1],b=Object(o.useState)([]),y=Ze()(b,2),z=y[0],C=y[1];return Object(o.useEffect)((function(){var e=t.amounts.map((function(e){return{value:e.raw,label:e.formatted}}));t.custom_amount&&e.push({value:"custom_amount",label:Ee("Custom Amount","give")}),C(e)}),[]),Object(o.useEffect)((function(){if(z.length){var e=z.map((function(e){return parseFloat(e.value)}));if(a){var t=parseFloat(a);if(e.includes(t)){var c=z.filter((function(e){return parseFloat(e.value)===t}))[0];p(c.value)}else p("custom_amount"),s(t.toFixed(n.currency.numberDecimals))}}}),[z]),Object(o.useEffect)((function(){h&&("custom_amount"!==h?(c(h),g(h)):v&&s(parseFloat(v).toFixed(n.currency.numberDecimals)))}),[h]),Object(o.useEffect)((function(){if(l){var e=parseFloat(l);c(e)}}),[l]),React.createElement("div",{className:"give-donor-dashboard-amount-inputs"},React.createElement(Ln,null,React.createElement("div",null,React.createElement(Sn,{label:"Subscription Amount",options:z,value:h,onChange:function(e){return p(e)}})),React.createElement("div",null,"custom_amount"===h&&React.createElement(Wn,{label:Ee("Custom Amount","give"),min:t.custom_amount.minimum?parseFloat(t.custom_amount.minimum):null,max:t.custom_amount.maximum?parseFloat(t.custom_amount.maximum):null,value:l,onChange:function(e){return s(e)},currency:n.currency}))))},qn=n(410),Gn="https://js.stripe.com/v3",Kn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Yn="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",Qn=null,Xn=function(e){return null!==Qn?Qn:Qn=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(Yn),window.Stripe)t(window.Stripe);else try{var c=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Gn,'"]')),t=0;t<e.length;t++){var n=e[t];if(Kn.test(n.src))return n}return null}();c&&e?console.warn(Yn):c||(c=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(Gn).concat(t);var c=document.head||document.body;if(!c)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return c.appendChild(n),n}(e)),c.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),c.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))},Jn=function(e,t,n){if(null===e)return null;var c=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.13.2",startTime:t})}(c,n),c},ec=Promise.resolve().then((function(){return Xn(null)})),tc=!1;ec.catch((function(e){tc||console.warn(e)}));n(980);var nc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(qn.useStripe)(),r=Object(qn.useElements)(),i=Object(o.useState)(!1),l=Ze()(i,2),s=l[0],u=l[1],f=Object(o.useState)(c),h=Ze()(f,2),p=h[0],d=h[1];Object(o.useEffect)((function(){p&&n({give_stripe_payment_method:p})}),[p]);var m=function(){var e=xt()(Lt.a.mark((function e(){var t,n,c,o;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(!1),a&&r){e.next=3;break}return e.abrupt("return");case 3:return t=r.getElement(qn.CardElement),e.next=6,a.createPaymentMethod({type:"card",card:t});case 6:n=e.sent,c=n.error,o=n.paymentMethod,c||d(o.id);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-stripe-card-control"},React.createElement("label",{className:"give-donor-dashboard-stripe-card-control__label"},t),React.createElement("div",{className:s?"give-donor-dashboard-stripe-card-control__input give-donor-dashboard-stripe-card-control__input--focused":"give-donor-dashboard-stripe-card-control__input"},React.createElement(qn.CardElement,{style:{base:{fontFamily:"Montserrat"}},onFocus:function(){return u(!0)},onBlur:function(){return m()}})))},cc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(null),r=Ze()(a,2),i=r[0],l=r[1];Object(o.useEffect)((function(){var e=window.give_stripe_vars.publishable_key;e&&l(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];tc=!0;var c=Date.now();return ec.then((function(e){return Jn(e,t,c)}))}(e))}),[]);return React.createElement(qn.Elements,{stripe:i,fonts:[{src:"url(https://fonts.googleapis.com/css2?family=Montserrat:wght@500)",family:"Montserrat"}]},React.createElement(nc,{label:t,onChange:function(e){return n(e)},value:c}))},ac=/(\d{1,4})/g,rc=[{displayName:"Visa",type:"visa",format:ac,startPattern:/^4/,gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",length:3}},{displayName:"Mastercard",type:"mastercard",format:ac,startPattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}},{displayName:"American Express",type:"amex",format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,startPattern:/^3[47]/,gaps:[4,10],lengths:[15],code:{name:"CID",length:4}},{displayName:"Diners Club",type:"dinersclub",format:ac,startPattern:/^(36|38|30[0-5])/,gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",length:3}},{displayName:"Discover",type:"discover",format:ac,startPattern:/^(6011|65|64[4-9]|622)/,gaps:[4,8,12],lengths:[16,19],code:{name:"CID",length:3}},{displayName:"JCB",type:"jcb",format:ac,startPattern:/^35/,gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",length:3}},{displayName:"UnionPay",type:"unionpay",format:ac,startPattern:/^62/,gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",length:3}},{displayName:"Maestro",type:"maestro",format:ac,startPattern:/^(5018|5020|5038|6304|6703|6708|6759|676[1-3])/,gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",length:3}},{displayName:"Elo",type:"elo",format:ac,startPattern:/^(4011(78|79)|43(1274|8935)|45(1416|7393|763(1|2))|50(4175|6699|67[0-7][0-9]|9000)|627780|63(6297|6368)|650(03([^4])|04([0-9])|05(0|1)|4(0[5-9]|3[0-9]|8[5-9]|9[0-9])|5([0-2][0-9]|3[0-8])|9([2-6][0-9]|7[0-8])|541|700|720|901)|651652|655000|655021)/,gaps:[4,8,12],lengths:[16],code:{name:"CVE",length:3}},{displayName:"Hipercard",type:"hipercard",format:ac,startPattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,gaps:[4,8,12],lengths:[16],code:{name:"CVC",length:3}}],oc=function(e){return rc.filter((function(t){return t.startPattern.test(e)}))[0]},ic=Object.freeze({DEFAULT_CVC_LENGTH:3,DEFAULT_ZIP_LENGTH:5,DEFAULT_CARD_FORMAT:ac,CARD_TYPES:rc,getCardTypeByValue:oc,getCardTypeByType:function(e){return rc.filter((function(t){return t.type===e}))[0]}}),lc=/(0[1-9]|1[0-2])/,sc="Expiry month must be between 01 and 12",uc=function(e){return e.split("").reverse().map((function(e){return parseInt(e,10)})).map((function(e,t){return t%2?2*e:e})).map((function(e){return e>9?e%10+1:e})).reduce((function(e,t){return e+t}))%10==0},fc=Object.freeze({EMPTY_CARD_NUMBER:"Enter a card number",EMPTY_EXPIRY_DATE:"Enter an expiry date",EMPTY_CVC:"Enter a CVC",EMPTY_ZIP:"Enter a ZIP code",INVALID_CARD_NUMBER:"Card number is invalid",INVALID_EXPIRY_DATE:"Expiry date is invalid",INVALID_CVC:"CVC is invalid",MONTH_OUT_OF_RANGE:sc,YEAR_OUT_OF_RANGE:"Expiry year cannot be in the past",DATE_OUT_OF_RANGE:"Expiry date cannot be in the past",hasCardNumberReachedMaxLength:function(e){var t=oc(e);return t&&e.length>=t.lengths[t.lengths.length-1]},isNumeric:function(e){return/^\d*$/.test(e.key)},validateLuhn:uc,getCardNumberError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyCardNumber||"Enter a card number";var r=e.replace(/\s/g,""),o=oc(r);if(o&&o.lengths){var i=o.lengths.includes(r.length);if(i){var l=uc(r);if(l)return t?t({cardNumber:r,cardType:o,errorMessages:a}):void 0}}return a.invalidCardNumber||"Card number is invalid"},getExpiryDateError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.errorMessages,a=void 0===c?{}:c;if(!e)return a.emptyExpiryDate||"Enter an expiry date";var r=e.replace(" / ","").replace("/","");if(4===r.length){var o=r.slice(0,2),i="20".concat(r.slice(2,4));return lc.test(o)?parseInt(i)<(new Date).getFullYear()?a.yearOutOfRange||"Expiry year cannot be in the past":parseInt(i)===(new Date).getFullYear()&&parseInt(o)<(new Date).getMonth()+1?a.dateOutOfRange||"Expiry date cannot be in the past":t?t({expiryDate:{month:o,year:i},errorMessages:a}):void 0:a.monthOutOfRange||sc}return a.invalidExpiryDate||"Expiry date is invalid"},getCVCError:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n.cardType,a=n.errorMessages,r=void 0===a?{}:a;return e?e.length<3||c&&e.length!==c.code.length?r.invalidCVC||"CVC is invalid":t?t({cvc:e,cardType:c,errorMessages:r}):void 0:r.emptyCVC||"Enter a CVC"},getZIPError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorMessages,c=void 0===n?{}:n;if(!e)return c.emptyZIP||"Enter a ZIP code"}});function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(){return(pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},c=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(c=c.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),c.forEach((function(t){hc(e,t,n[t])}))}return e}function mc(e,t){if(null==e)return{};var n,c,a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gc(e,t){return yc(e)||function(e,t){var n=[],c=!0,a=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(c=(o=i.next()).done)&&(n.push(o.value),!t||n.length!==t);c=!0);}catch(e){a=!0,r=e}finally{try{c||null==i.return||i.return()}finally{if(a)throw r}}return n}(e,t)||zc()}function bc(e){return yc(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||zc()}function yc(e){if(Array.isArray(e))return e}function zc(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Cc={cardTypes:ic,formatter:Object.freeze({formatCardNumber:function(e){var t=oc(e);if(!t)return(e.match(/\d+/g)||[]).join("");var n=t.format;if(n&&n.global)return(e.match(n)||[]).join(" ");if(n){var c=n.exec(e.split(" ").join(""));if(c)return c.splice(1,3).filter((function(e){return e})).join(" ")}return e},formatExpiry:function(e){var t=e.nativeEvent&&e.nativeEvent.data,n=e.target.value.split(" / ").join("/");if(!n)return null;var c=n;if(/^[2-9]$/.test(c)&&(c="0".concat(c)),2===n.length&&+n>12){var a=bc(n.split("")),r=a[0],o=a.slice(1);c="0".concat(r,"/").concat(o.join(""))}if(/^1[/-]$/.test(c))return"01 / ";if(1===(c=c.match(/(\d{1,2})/g)||[]).length){if(!t&&n.includes("/"))return c[0];if(/\d{2}/.test(c))return"".concat(c[0]," / ")}if(c.length>2){var i=gc(c.join("").match(/^(\d{2}).*(\d{2})$/)||[],3),l=i[1],s=void 0===l?null:l,u=i[2];return[s,void 0===u?null:u].join(" / ")}return c.join(" / ")}}),validator:fc,BACKSPACE_KEY_CODE:"Backspace",ENTER_KEY_CODE:"Enter",isHighlighted:function(){return"Range"===(window.getSelection()||{type:void 0}).type}};var xc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoFocus,n=void 0===t||t,c=e.errorMessages,a=e.onBlur,r=e.onChange,o=e.onError,l=e.onTouch,s=e.cardNumberValidator,u=e.cvcValidator,f=e.expiryValidator,h=i.a.useRef(),p=i.a.useRef(),d=i.a.useRef(),m=i.a.useRef(),v=i.a.useState({cardNumber:!1,expiryDate:!1,cvc:!1,zip:!1}),g=gc(v,2),b=g[0],y=g[1],z=i.a.useState(!1),C=gc(z,2),x=C[0],M=C[1],L=i.a.useState({cardNumber:void 0,expiryDate:void 0,cvc:void 0,zip:void 0}),w=gc(L,2),H=w[0],V=w[1],E=i.a.useState(),S=gc(E,2),N=S[0],k=S[1],O=i.a.useState(),A=gc(O,2),_=A[0],R=A[1],P=i.a.useState(),T=gc(P,2),j=T[0],D=T[1],I=i.a.useCallback((function(e,t){V((function(n){if(n[e]===t)return n;var c=t,a=dc({},n,hc({},e,t));return t?k(t):(c=Object.values(a).find(Boolean),k(c)),o&&o(c,a),a}))}),[]),F=i.a.useCallback((function(e,t){requestAnimationFrame((function(){"INPUT"!==document.activeElement.tagName?M(!0):!1===t&&M(!1)})),y((function(n){if(n[e]===t)return n;var c=dc({},n,hc({},e,t));return l&&l(hc({},e,t),c),c}))}),[]),U=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cardNumber",!0)}}),[a,F]),B=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var a=(t.target.value||"").replace(/\s/g,""),o=h.current.selectionStart,i=Cc.cardTypes.getCardTypeByValue(a);R(i),F("cardNumber",!1),h.current.value=Cc.formatter.formatCardNumber(a),e.onChange&&e.onChange(t),r&&r(t),requestAnimationFrame((function(){document.activeElement===h.current&&(" "===h.current.value[o-1]&&(o+=1),h.current.setSelectionRange(o,o))}));var l=Cc.validator.getCardNumberError(a,s,{errorMessages:c});!l&&n&&p.current&&p.current.focus(),I("cardNumber",l),e.onError&&e.onError(l)}}),[n,s,c,r,I,F]),Z=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cardNumber")}}),[]),W=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(/\s/g,"");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),Cc.validator.hasCardNumberReachedMaxLength(n)&&t.preventDefault())}}),[]),$=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"Card number",autoComplete:"cc-number",id:"cardNumber",name:"cardNumber",placeholder:"Card number",type:"tel"},t||"ref",h),n,{onBlur:U(n),onChange:B(n),onFocus:Z(n),onKeyPress:W(n)})}),[U,B,Z,W]),q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("expiryDate",!0)}}),[a,F]),G=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){F("expiryDate",!1),p.current.value=Cc.formatter.formatExpiry(t),e.onChange&&e.onChange(t),r&&r(t);var a=Cc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});!a&&n&&d.current&&d.current.focus(),I("expiryDate",a),e.onError&&e.onError(a)}}),[n,c,f,r,I,F]),K=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("expiryDate")}}),[]),Y=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&h.current&&h.current.focus()}}),[n]),Q=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),n.length>=4&&t.preventDefault())}}),[]),X=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"Expiry date in format MM YY",autoComplete:"cc-exp",id:"expiryDate",name:"expiryDate",placeholder:"MM/YY",type:"tel"},t||"ref",p),n,{onBlur:q(n),onChange:G(n),onFocus:K(n),onKeyDown:Y(n),onKeyPress:Q(n)})}),[q,G,K,Y,Q]),J=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("cvc",!0)}}),[a,F]),ee=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.cardType;return function(t){var o=t.target.value;F("cvc",!1),e.onChange&&e.onChange(t),r&&r(t);var i=Cc.validator.getCVCError(o,u,{cardType:a,errorMessages:c});!i&&n&&m.current&&m.current.focus(),I("cvc",i),e.onError&&e.onError(i)}}),[n,u,c,r,I,F]),te=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("cvc")}}),[]),ne=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&p.current&&p.current.focus()}}),[n]),ce=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.cardType;return function(t){var c=(t.target.value||"").replace(" / ","");e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault(),n&&c.length>=n.code.length&&t.preventDefault(),c.length>=4&&t.preventDefault())}}),[]),ae=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({"aria-label":"CVC",autoComplete:"cc-csc",id:"cvc",name:"cvc",placeholder:_?_.code.name:"CVC",type:"tel"},t||"ref",d),n,{onBlur:J(n),onChange:ee(n,{cardType:_}),onFocus:te(n),onKeyDown:ne(n),onKeyPress:ce(n,{cardType:_})})}),[_,J,ee,te,ne,ce]),re=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onBlur&&e.onBlur(t),a&&a(t),D(void 0),F("zip",!0)}}),[a,F]),oe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.target.value;F("zip",!1),e.onChange&&e.onChange(t),r&&r(t);var a=Cc.validator.getZIPError(n,{errorMessages:c});I("zip",a),e.onError&&e.onError(a)}}),[c,r,I,F]),ie=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onFocus&&e.onFocus(t),D("zip")}}),[]),le=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyDown&&e.onKeyDown(t),t.key===Cc.BACKSPACE_KEY_CODE&&!t.target.value&&n&&d.current&&d.current.focus()}}),[n]),se=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){e.onKeyPress&&e.onKeyPress(t),t.key!==Cc.ENTER_KEY_CODE&&(Cc.validator.isNumeric(t)||t.preventDefault())}}),[]),ue=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=mc(e,["refKey"]);return dc(hc({autoComplete:"off",id:"zip",maxLength:"6",name:"zip",placeholder:"ZIP",type:"tel"},t||"ref",m),n,{onBlur:re(n),onChange:oe(n),onFocus:ie(n),onKeyDown:le(n),onKeyPress:se(n)})}),[re,oe,ie,le,se]),fe=i.a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images||{};return dc({"aria-label":_?_.displayName:"Placeholder card",children:t[_?_.type:"placeholder"]||t.placeholder,width:"1.5em",height:"1em",viewBox:"0 0 24 16"},e)}),[_]);return i.a.useLayoutEffect((function(){if(m.current){var e=Cc.validator.getZIPError(m.current.value,{errorMessages:c});I("zip",e)}if(d.current){var t=Cc.validator.getCVCError(d.current.value,u,{errorMessages:c});I("cvc",t)}if(p.current){var n=Cc.validator.getExpiryDateError(p.current.value,f,{errorMessages:c});I("expiryDate",n)}if(h.current){var a=Cc.validator.getCardNumberError(h.current.value,s,{errorMessages:c});I("cardNumber",a)}}),[s,u,c,f,I]),i.a.useLayoutEffect((function(){h.current&&(h.current.value=Cc.formatter.formatCardNumber(h.current.value)),p.current&&(p.current.value=Cc.formatter.formatExpiry({target:p.current}))}),[]),i.a.useLayoutEffect((function(){if(h.current){var e=Cc.cardTypes.getCardTypeByValue(h.current.value);R(e)}}),[]),{getCardImageProps:fe,getCardNumberProps:$,getExpiryDateProps:X,getCVCProps:ae,getZIPProps:ue,wrapperProps:{error:N,focused:j,isTouched:x},meta:{cardType:_,erroredInputs:H,error:N,focused:j,isTouched:x,touchedInputs:b}}};var Mc=n(313);function Lc(){var e=vc(["\n color: #c9444d;\n font-size: 0.75rem;\n margin-top: 0.25rem;\n\n & {\n ",";\n }\n"]);return Lc=function(){return e},e}function wc(){var e=vc(["\n border-color: #444bc9;\n box-shadow: #444bc9 0px 0px 0px 1px;\n ",";\n "]);return wc=function(){return e},e}function Hc(){var e=vc(["\n border-color: #c9444d;\n box-shadow: #c9444d 0px 0px 0px 1px;\n ",";\n "]);return Hc=function(){return e},e}function Vc(){var e=vc(["\n align-items: center;\n background-color: white;\n border: 1px solid #bdbdbd;\n box-shadow: inset 0px 1px 2px #e5e5e5;\n border-radius: 0.2em;\n display: flex;\n height: 2.5em;\n padding: 0.4em 0.6em;\n\n & {\n ",";\n }\n\n & {\n ",";\n }\n\n & input {\n border: unset;\n margin: unset;\n padding: unset;\n outline: unset;\n font-size: inherit;\n\n & {\n ",";\n }\n\n ",";\n }\n\n & svg {\n margin-right: 0.6em;\n & {\n ",";\n }\n }\n\n & input#cardNumber {\n width: 11em;\n & {\n ",";\n }\n }\n\n & input#expiryDate {\n width: 4em;\n & {\n ",";\n }\n }\n\n & input#cvc {\n width: 2.5em;\n & {\n ",";\n }\n }\n\n & input#zip {\n width: 4em;\n & {\n ",";\n }\n }\n\n ",";\n"]);return Vc=function(){return e},e}function Ec(){var e=vc(["\n display: inline-flex;\n flex-direction: column;\n\n & {\n ",";\n }\n\n ",";\n"]);return Ec=function(){return e},e}var Sc=Mc.c.div(Ec(),(function(e){return e.hasErrored&&e.styles.fieldWrapper?e.styles.fieldWrapper.errored:void 0}),(function(e){return e.styles.fieldWrapper?e.styles.fieldWrapper.base:void 0})),Nc=Mc.c.div(Vc(),(function(e){return e.hasErrored&&Object(Mc.b)(Hc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.errored}))}),(function(e){return e.focused&&Object(Mc.b)(wc(),(function(e){return e.styles.inputWrapper&&e.styles.inputWrapper.focused}))}),(function(e){return e.hasErrored&&e.styles.input?e.styles.input.errored:void 0}),(function(e){return e.styles.input&&e.styles.input.base}),(function(e){return e.styles.cardImage}),(function(e){return e.styles.input&&e.styles.input.cardNumber}),(function(e){return e.styles.input&&e.styles.input.expiryDate}),(function(e){return e.styles.input&&e.styles.input.cvc}),(function(e){return e.styles.input&&e.styles.input.zip}),(function(e){return e.styles.inputWrapper?e.styles.inputWrapper.base:void 0})),kc=Mc.c.div(Lc(),(function(e){return e.styles.errorText?e.styles.errorText.base:void 0}));function Oc(e){var t=e.children,n=e.error,c=e.errorTextProps,a=e.focused,r=e.inputWrapperProps,o=e.isTouched,l=e.styles,s=mc(e,["children","error","errorTextProps","focused","inputWrapperProps","isTouched","styles"]),u=n&&o;return i.a.createElement(Sc,pc({hasErrored:u,styles:l},s),i.a.createElement(Nc,pc({focused:a,hasErrored:u,styles:l},r),t),u&&i.a.createElement(kc,pc({styles:l},c),n))}Oc.defaultProps={styles:{}};var Ac=Oc,_c=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Visa",transform:"translate(40.000000, 0.000000)"},i.a.createElement("rect",{strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),i.a.createElement("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#171E6C"})))))),Rc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),i.a.createElement("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),i.a.createElement("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),i.a.createElement("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})),Pc=i.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",null,i.a.createElement("rect",{id:"Rectangle",fill:"#D8D8D8",x:"0",y:"0",width:"24",height:"16",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"0.923076923",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#FFFFFF",x:"16.6153846",y:"3.76470588",width:"4.61538462",height:"2.82352941",rx:"1"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"6.46153846",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"11.9230769",y:"10.3529412",width:"5.61538462",height:"1.88235294",rx:"0.941176471"}),i.a.createElement("rect",{id:"Rectangle",fill:"#A6A6A6",x:"18.4615385",y:"10.3529412",width:"4.61538462",height:"1.88235294",rx:"0.941176471"}))),Tc=i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),i.a.createElement("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),i.a.createElement("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),i.a.createElement("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})),jc=i.a.createElement("g",{fill:"none"},i.a.createElement("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),i.a.createElement("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),i.a.createElement("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),i.a.createElement("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),i.a.createElement("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),i.a.createElement("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})),Dc={amex:i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),i.a.createElement("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),i.a.createElement("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),i.a.createElement("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),i.a.createElement("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),i.a.createElement("g",{fill:"#016fd0"},i.a.createElement("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),i.a.createElement("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"}))),dinersclub:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),i.a.createElement("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})))))),discover:i.a.createElement("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero"},i.a.createElement("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)"},i.a.createElement("g",{id:"Color",transform:"translate(0.000000, 80.000000)"},i.a.createElement("g",{id:"Discover",transform:"translate(240.000000, 0.000000)"},i.a.createElement("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),i.a.createElement("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),i.a.createElement("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),i.a.createElement("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})))))),hipercard:i.a.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.a.createElement("g",{id:"Group-2"},i.a.createElement("rect",{id:"Rectangle",fill:"#B3131B",x:"0",y:"0",width:"24",height:"16",rx:"2"}),i.a.createElement("g",{id:"Hipercard_logo",transform:"translate(2.000000, 6.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i.a.createElement("path",{d:"M4.45845797,4.72911206 L4.71934477,4.72911206 L4.72670967,4.71021617 C4.73076043,4.69982332 4.73407456,4.67539055 4.73407456,4.65592007 C4.73407456,4.63644958 4.74267391,4.56566228 4.75318417,4.49861521 C4.76369454,4.43156695 4.78836018,4.27726169 4.80799675,4.15571305 C4.82763331,4.0341644 4.85703646,3.85139347 4.87333717,3.74955542 C4.88963776,3.64771736 4.90953167,3.51735868 4.91754595,3.45986946 C4.92556023,3.40238023 4.93534271,3.3553436 4.93928464,3.3553436 C4.94322668,3.3553436 4.96009268,3.38074637 4.9767648,3.41179473 L5.0070776,3.46824705 L5.07434118,3.5349692 L5.14160488,3.60169134 L5.22440039,3.63432372 L5.30719578,3.66695609 L5.40587279,3.67955056 L5.5045498,3.69214384 L5.62980554,3.68457856 L5.75506139,3.67701327 L5.8906751,3.64246001 L6.02628894,3.60790675 L6.09908975,3.57519075 C6.13913019,3.55719677 6.21011098,3.51796553 6.25682484,3.48801021 L6.34175912,3.43354447 L6.42095111,3.35561954 C6.46450662,3.31276155 6.5259323,3.24403729 6.55745263,3.20290069 C6.58897283,3.16176409 6.61476215,3.12510239 6.61476215,3.12143264 C6.61476215,3.11776169 6.63024834,3.09228724 6.64917582,3.06482382 C6.66810343,3.0373592 6.70683989,2.96113177 6.73525696,2.8954298 C6.76367415,2.82972783 6.80808531,2.71146429 6.83394853,2.63262192 L6.88097263,2.48927217 L6.90527961,2.36510142 C6.91864839,2.29680721 6.93584673,2.18391928 6.94349809,2.11423935 L6.95740984,1.98754804 L6.9493753,1.88003572 L6.94134076,1.77252341 L6.91602234,1.66501109 L6.89070392,1.55749878 L6.84971924,1.47700311 L6.80873457,1.39650745 L6.72956721,1.31388424 L6.65039973,1.23125983 L6.55674682,1.18360201 L6.4630938,1.13594299 L6.35995932,1.11163207 L6.25682484,1.08732115 L6.15369036,1.07986696 L6.05055588,1.07241397 L5.93566831,1.0854122 L5.82078075,1.09840925 L5.7270093,1.12198192 L5.63323773,1.1455534 L5.55177641,1.18267501 C5.50697261,1.2030916 5.44177912,1.23776791 5.40690207,1.25973387 C5.3720249,1.28169983 5.33604735,1.30697239 5.32695174,1.31589472 C5.31785613,1.32481824 5.29608043,1.34134766 5.27856116,1.3526257 L5.24670802,1.37313308 L5.26898276,1.26820942 C5.28123392,1.21050159 5.29147275,1.15656744 5.2917358,1.14835469 L5.29221386,1.13342243 L5.06976516,1.13342243 L4.84731634,1.13342243 L4.80831003,1.37532513 C4.78685648,1.50837162 4.75298372,1.71398893 4.73303727,1.83225247 C4.7130907,1.95051602 4.68301183,2.12791134 4.66619545,2.22646429 C4.64937895,2.32501725 4.61938307,2.49972476 4.59953794,2.61470321 C4.5796928,2.72968165 4.54689191,2.91245259 4.52664697,3.02086084 C4.50640216,3.12926909 4.47674372,3.28784975 4.46073931,3.37326231 C4.44473502,3.45867488 4.41461296,3.61994335 4.39380151,3.7316367 C4.37299019,3.84333005 4.33954562,4.02072536 4.31948026,4.12584852 C4.29941502,4.23097167 4.26676167,4.39761576 4.24691738,4.49616871 C4.2270731,4.59472167 4.20785211,4.68745104 4.20420394,4.70223398 L4.19757093,4.72911206 L4.45845773,4.72911206 L4.45845797,4.72911206 Z M5.58158434,3.34795511 L5.48028286,3.35395071 L5.41406652,3.34244331 L5.34785018,3.33093472 L5.28059837,3.30070464 L5.21334656,3.27047457 L5.16636177,3.22630134 L5.11937709,3.18212931 L5.09225746,3.12240025 C5.07734166,3.08954926 5.0581828,3.0337432 5.04968233,2.99838718 L5.03422684,2.93410437 L5.04041916,2.8311458 L5.04661147,2.72818843 L5.07787505,2.56691995 C5.09507,2.47822229 5.12594421,2.31157821 5.14648436,2.19659976 C5.1670245,2.08162131 5.19812318,1.9131519 5.21559259,1.82222277 L5.24735509,1.6568975 L5.3169102,1.5999088 C5.35516545,1.56856538 5.41576424,1.52655673 5.45157423,1.50655705 L5.51668327,1.470194 L5.60161755,1.44430981 L5.68655183,1.41842563 L5.79575304,1.41211346 L5.90495426,1.40580129 L5.99387134,1.42445946 L6.08278843,1.44311762 L6.1455397,1.47157016 L6.20829096,1.50002269 L6.2609103,1.55210763 L6.31352963,1.60419138 L6.34191746,1.65934519 C6.3575308,1.68968039 6.37946059,1.74905705 6.39065044,1.79129506 L6.41099548,1.86808991 L6.40476348,2.09506035 L6.39853137,2.32203079 L6.36736983,2.45618705 C6.35023095,2.52997394 6.31760514,2.64286188 6.29486799,2.70704912 L6.25352781,2.82375493 L6.20290006,2.91822719 C6.17505485,2.9701879 6.1321162,3.04040419 6.10748089,3.07426459 C6.08284558,3.10812381 6.04357913,3.15198525 6.0202222,3.17173287 C5.99686528,3.19148049 5.95774892,3.22234369 5.93329695,3.24031617 L5.8888387,3.27299275 L5.7858622,3.30747553 L5.6828857,3.34195951 L5.58158434,3.34795511 Z M8.10111202,3.67635864 L8.23458018,3.67786023 L8.36804833,3.665875 C8.44145581,3.6592833 8.56157715,3.64555995 8.63498463,3.63537973 C8.70839211,3.62519831 8.83520336,3.60240928 8.91678734,3.58473665 L9.06512179,3.5526048 L9.07250973,3.498771 C9.07657311,3.4691621 9.093232,3.38101873 9.10952955,3.3028967 L9.1391613,3.16085621 L9.1326233,3.1544198 L9.12608543,3.1479822 L9.0807372,3.1695444 C9.05579576,3.181403 8.97811171,3.20969069 8.90810597,3.23240685 L8.78082285,3.27370711 L8.6472364,3.29918394 L8.51364995,3.32466077 L8.30131425,3.32506693 L8.08897856,3.32547309 L8.01617775,3.30258252 C7.9761373,3.28999283 7.91724557,3.26695772 7.88530737,3.25139472 L7.82723768,3.22309628 L7.7793106,3.18046765 L7.73138352,3.13783782 L7.69398963,3.07349051 L7.65659562,3.00914319 L7.63315109,2.92843011 L7.60970656,2.84771703 L7.60953911,2.69835615 L7.60937167,2.54899526 L7.63018579,2.41575047 L7.65099978,2.28250449 L7.83358895,2.27410658 L8.01617823,2.26570748 L8.69111697,2.26997453 L9.3660557,2.27424157 L9.38643459,2.18913124 C9.39764288,2.14232038 9.41477886,2.04555929 9.42451439,1.97410661 L9.44221542,1.84419231 L9.44258913,1.73490963 L9.44296284,1.62562694 L9.42374501,1.54404301 L9.40452717,1.46245909 L9.37275132,1.40843654 C9.35527451,1.37872491 9.32448062,1.33566504 9.3043205,1.31274938 C9.28416037,1.28983373 9.24816377,1.25752509 9.22432794,1.24095266 C9.20049222,1.22438023 9.15368992,1.19652977 9.12032288,1.17906499 L9.05965554,1.14730824 L8.95365525,1.12215633 L8.84765497,1.09700442 L8.71705262,1.08471099 L8.58645027,1.07241636 L8.46511559,1.08019547 L8.34378091,1.08797458 L8.19817929,1.11550012 L8.05257767,1.14302686 L7.96157665,1.17884877 C7.9115261,1.198551 7.83508525,1.23447922 7.7917081,1.2586898 C7.74833095,1.28290038 7.68827028,1.32231081 7.65823994,1.34626814 C7.62820961,1.37022427 7.57621515,1.4167998 7.54269681,1.44976786 C7.50917834,1.48273591 7.45959784,1.54196325 7.43251788,1.58138443 C7.40543792,1.62080561 7.36392374,1.69068862 7.34026433,1.73668 C7.31660479,1.78267138 7.28577559,1.84717876 7.27175488,1.88002975 C7.25773417,1.91288073 7.23225571,1.98007593 7.21513599,2.02935241 C7.1980164,2.07862889 7.17110667,2.17270216 7.15533656,2.23840413 C7.13956645,2.3041061 7.11795686,2.41225991 7.10731533,2.47874552 L7.08796742,2.59963476 L7.08814699,2.77739681 L7.08832657,2.95515887 L7.10676835,3.03280665 C7.11691132,3.07551293 7.13630473,3.14002032 7.14986473,3.1761564 C7.16342485,3.21229249 7.18849963,3.26604864 7.20558671,3.29561453 C7.22267367,3.32518042 7.2591652,3.37278329 7.28667905,3.40139948 C7.31419278,3.43001568 7.36400431,3.47343751 7.39737135,3.49789178 C7.43073838,3.52234606 7.49013972,3.55674044 7.52937438,3.57432587 L7.60070995,3.60629765 L7.70017273,3.62996947 C7.75487732,3.64298921 7.83743756,3.65841484 7.88363999,3.66425037 C7.92984242,3.6700847 8.02770503,3.67553319 8.10111251,3.67635864 L8.10111202,3.67635864 Z M8.32965888,1.99352094 C7.99374575,1.99352094 7.71890777,1.99115328 7.71890777,1.98826001 C7.71890777,1.98536673 7.73323995,1.94370571 7.75075703,1.89567996 C7.76827412,1.84765421 7.79903902,1.77617166 7.81912342,1.73682932 L7.85564031,1.66529779 L7.93590903,1.58670271 L8.01617775,1.50810762 L8.09504529,1.47097884 C8.13842244,1.45055747 8.19575308,1.42832273 8.22244671,1.42156738 C8.24914034,1.41481202 8.32558119,1.40585027 8.39231526,1.40165251 L8.51364995,1.39401794 L8.60682685,1.40580726 L8.70000364,1.41759659 L8.76771701,1.44811814 L8.8354305,1.4786385 L8.87257529,1.51806804 C8.89300502,1.53975447 8.9173507,1.5716916 8.92667697,1.58903811 L8.94363374,1.62057745 L8.95483159,1.69057752 L8.96602945,1.76057759 L8.95321966,1.87704927 L8.94040987,1.99352094 L8.32965888,1.99352094 Z M11.959629,3.67642315 L12.0931723,3.67788054 L12.2447655,3.66019237 C12.328143,3.6504637 12.4391291,3.63434164 12.4914025,3.62436569 C12.5436771,3.61438974 12.628308,3.59458597 12.6794712,3.58035851 C12.7306357,3.56612985 12.7769248,3.55074723 12.7823351,3.54617318 C12.7877455,3.54159912 12.8022037,3.48738425 12.8144634,3.42569488 C12.826723,3.3640055 12.8421665,3.28127956 12.8487817,3.24185837 C12.8553968,3.20243719 12.858816,3.16807267 12.8563809,3.16549477 C12.8539445,3.16291567 12.8449948,3.16624735 12.8364917,3.1728952 C12.8279885,3.17954304 12.7684545,3.20420995 12.7041944,3.22770736 L12.5873588,3.27043156 L12.420981,3.302168 L12.2546045,3.33390325 L12.1131465,3.32915121 L11.9716884,3.32439797 L11.8913406,3.29696441 L11.8109916,3.26953085 L11.7489046,3.21605781 L11.6868164,3.16258596 L11.6456318,3.08873695 L11.6044472,3.01488793 L11.5848322,2.91609248 L11.5652172,2.81729702 L11.5653386,2.68912203 L11.5654599,2.56094705 L11.5892961,2.40565148 L11.6131335,2.25035592 L11.6383541,2.16673523 C11.6522263,2.12074385 11.6679222,2.06698769 11.6732342,2.0472771 C11.678545,2.02756651 11.7007978,1.97112254 11.722683,1.92184607 C11.7445681,1.87256959 11.7836087,1.79641025 11.8094409,1.75260257 L11.8564059,1.67295267 L11.9140896,1.61410998 L11.9717721,1.5552673 L12.0328581,1.51796531 L12.0939452,1.48066331 L12.172393,1.45687442 C12.2155396,1.44379137 12.2917924,1.42680322 12.3418429,1.41912326 L12.4328439,1.40516219 L12.5663121,1.41175628 L12.6997802,1.41835037 L12.8575153,1.44943457 L13.0152504,1.48051877 L13.0794061,1.50407591 C13.1146915,1.51703353 13.145104,1.52763425 13.1469871,1.52763425 C13.1488715,1.52763425 13.1573345,1.48328542 13.1657928,1.42908129 C13.1742522,1.37487717 13.1893087,1.28569809 13.1992508,1.23090743 C13.209193,1.17611557 13.2149333,1.12892841 13.2120067,1.12604708 C13.2090789,1.12316575 13.1616662,1.11575337 13.1066446,1.109575 C13.0516217,1.10339663 12.9020779,1.09242679 12.7743246,1.08519718 L12.5420452,1.0720532 L12.3782433,1.08442906 L12.2144415,1.09680493 L12.0931068,1.12190786 L11.9717721,1.14701198 L11.8936314,1.17778201 C11.8506546,1.19470683 11.787705,1.2252463 11.7537446,1.24564856 C11.7197843,1.26605201 11.6765552,1.29349632 11.6576803,1.30663671 C11.6388043,1.3197771 11.5815404,1.37104495 11.5304257,1.42056632 L11.4374894,1.5106043 L11.3856128,1.58542809 C11.3570809,1.62658022 11.3077232,1.71239058 11.2759299,1.77611671 L11.2181236,1.89198153 L11.1738182,2.01741257 C11.1494494,2.08639964 11.1154271,2.19928757 11.098211,2.26827464 L11.0669102,2.39370567 L11.0555485,2.50719089 L11.0441879,2.62067611 L11.0443092,2.76999877 L11.0444306,2.91932143 L11.0558894,3.0061878 L11.0673483,3.09305536 L11.1036916,3.18241243 L11.1400338,3.27176949 L11.1820095,3.33637364 L11.2239841,3.4009766 L11.2907327,3.46565123 L11.3574813,3.53032586 L11.4280836,3.56706401 L11.4986858,3.60380216 L11.591451,3.6291691 C11.642471,3.64312061 11.7161818,3.65913278 11.7552528,3.6647509 C11.7943226,3.67037021 11.8863841,3.67562278 11.9598316,3.67642315 L11.959629,3.67642315 Z M13.9555105,3.67201037 L14.1193123,3.66738973 L14.2224468,3.64140161 L14.3255813,3.6154123 L14.3923154,3.5843508 C14.4290191,3.56726709 14.4890798,3.53354287 14.5257835,3.50940874 C14.5624872,3.48527462 14.6192998,3.43939314 14.6520322,3.40745004 C14.6847659,3.37550574 14.7333071,3.32100536 14.7599012,3.28633861 C14.7864953,3.25167066 14.8098571,3.22488337 14.8118155,3.22681143 C14.8137726,3.22873948 14.8076537,3.2839817 14.7982163,3.34957257 C14.7887801,3.41516345 14.7809516,3.50242641 14.7808217,3.54349015 L14.7805912,3.61815148 L15.003278,3.61815148 L15.2259647,3.61815148 L15.2327728,3.44792364 L15.2395797,3.27769581 L15.2713548,3.05669828 C15.2888318,2.93514963 15.3170592,2.75506651 15.3340824,2.65651355 C15.3511044,2.55796059 15.3806943,2.39131651 15.3998373,2.28619336 C15.4189803,2.1810702 15.4493055,2.01711392 15.4672278,1.92184607 L15.4998135,1.74863178 L15.5009055,1.59901287 L15.5019975,1.44939515 L15.4676343,1.38024561 L15.4332723,1.31109728 L15.3866749,1.26705665 L15.3400776,1.22301602 L15.2635748,1.18484915 L15.1870721,1.14668347 L15.0730551,1.12171553 L14.9590393,1.09674639 L14.8020602,1.08498574 L14.645081,1.07322389 L14.4428707,1.08554122 C14.3316553,1.09231569 14.1751408,1.10569261 14.0950599,1.11526718 L13.9494583,1.13267701 L13.8502272,1.13304733 L13.750996,1.13341765 L13.7365584,1.20210607 C13.7286171,1.2398847 13.7065499,1.32964076 13.687521,1.40156411 C13.6684909,1.47348627 13.6546854,1.53406946 13.6568415,1.53619223 C13.6589976,1.538315 13.7120682,1.52645639 13.7747764,1.50983976 C13.8374846,1.49322194 13.9706919,1.4658947 14.070793,1.44911203 L14.252795,1.41859765 L14.4165969,1.411951 L14.5803987,1.40530435 L14.6859089,1.42351335 L14.7914191,1.44172116 L14.8618442,1.47594352 L14.9322693,1.51016469 L14.971703,1.56803021 L15.0111368,1.62589572 L15.0105787,1.7171259 L15.0100205,1.80835607 L14.989117,1.90846915 L14.9682134,2.00858342 L14.5316331,2.01013398 L14.0950539,2.01168455 L13.9521677,2.05025639 C13.8735792,2.07147095 13.786558,2.09963679 13.7587857,2.11284647 C13.7310146,2.12605735 13.7032351,2.13686592 13.6970543,2.13686592 C13.6908735,2.13686592 13.6441232,2.16238934 13.5931651,2.19358344 L13.5005139,2.25030097 L13.4275457,2.32200093 C13.387413,2.36143645 13.3361406,2.42057897 13.3136063,2.45342996 C13.2910733,2.48628094 13.2544617,2.55490844 13.232249,2.60593498 L13.1918603,2.69871094 L13.173324,2.80304089 L13.1547877,2.90737084 L13.1547877,3.01681838 L13.1547877,3.12626711 L13.1724965,3.21739215 L13.1902065,3.3085184 L13.2230615,3.3679524 C13.2411331,3.40064092 13.2742951,3.44852332 13.2967566,3.47435973 L13.3375954,3.52133305 L13.4101681,3.56473577 L13.4827396,3.60813849 L13.5658078,3.63128231 C13.6114963,3.64401177 13.6810332,3.65942187 13.720336,3.66552618 L13.7917948,3.67662623 L13.9555966,3.67200559 L13.9555105,3.67201037 Z M14.1071788,3.33797677 L14.0101111,3.34295937 L13.9458219,3.32683969 C13.9104626,3.31797351 13.8568096,3.2982008 13.8265924,3.2829006 L13.771652,3.25508 L13.7416666,3.21999634 C13.7251748,3.20069908 13.6999809,3.16278307 13.6856804,3.13573655 L13.6596808,3.08656281 L13.6545823,2.97172771 L13.649485,2.85689381 L13.6700525,2.78723658 C13.6813657,2.74892516 13.7079052,2.68244671 13.7290308,2.6395051 L13.7674417,2.56143085 L13.840996,2.48951348 L13.9145503,2.4175973 L13.9926644,2.38056886 L14.0707784,2.34354042 L14.1678462,2.3208398 L14.2649139,2.29813917 L14.5682506,2.29813917 L14.8715874,2.29813917 L14.8907789,2.30595173 L14.9099692,2.31376429 L14.8938183,2.40749114 C14.8849342,2.4590409 14.8637479,2.55228633 14.8467356,2.61470321 C14.8297232,2.67712008 14.7996905,2.76887348 14.7799954,2.81860031 C14.7603004,2.86832714 14.7441859,2.91229012 14.7441859,2.91629675 C14.7441859,2.92030338 14.7242458,2.95653742 14.6998745,2.99681631 L14.6555643,3.07005131 L14.5828035,3.14102257 C14.5427861,3.18005671 14.5056371,3.21199384 14.5002523,3.21199384 C14.4948674,3.21199384 14.4703372,3.22543885 14.4457427,3.24187151 L14.4010235,3.27174799 L14.3026357,3.30237108 L14.2042466,3.33299417 L14.1071788,3.33797677 Z M18.0566228,3.67628099 L18.1718907,3.67771091 L18.281092,3.66026166 C18.3411526,3.65066439 18.4175935,3.63520412 18.4509605,3.6259067 C18.4843276,3.61660808 18.5443882,3.59247515 18.5844287,3.57227836 L18.6572295,3.53555693 L18.7198576,3.48128471 L18.7824857,3.4270125 L18.8484444,3.34040775 C18.8847223,3.29277621 18.9175725,3.24574076 18.9214467,3.23588547 L18.9284889,3.21796675 L18.922364,3.27769581 C18.9189945,3.3105468 18.9114402,3.36430295 18.9055761,3.39715394 C18.8997132,3.43000492 18.8913059,3.49316841 18.8868942,3.53751724 L18.8788715,3.61815148 L19.1168877,3.61815148 L19.3549039,3.61815148 L19.3549039,3.53751724 L19.3549039,3.456883 L19.391166,3.15226478 C19.411111,2.98472475 19.4406038,2.7616367 19.4567061,2.65651355 C19.4728085,2.5513904 19.4976627,2.40087316 19.5119389,2.32203079 C19.5262139,2.24318843 19.5514964,2.10073461 19.5681205,2.00546676 C19.5847433,1.9101989 19.6147725,1.74355481 19.6348497,1.63514656 C19.654927,1.52673831 19.68706,1.35471861 19.7062552,1.25288055 C19.7254515,1.1510425 19.7552865,0.992461836 19.7725549,0.900479078 C19.7898244,0.80849632 19.8207636,0.647227848 19.841308,0.542104696 C19.8618536,0.436981544 19.8918657,0.289152111 19.9080008,0.213594845 C19.9241371,0.13803758 19.9373165,0.0721862871 19.9372885,0.0672586394 L19.9372886,0.0582992798 L19.6776105,0.0582992798 L19.4179324,0.0582992798 L19.4102629,0.132960609 C19.4060453,0.174024341 19.386167,0.309758638 19.3660873,0.434592381 C19.3460089,0.559426124 19.3132764,0.758323906 19.2933496,0.876587452 C19.2734228,0.994850998 19.2542119,1.109532 19.2506592,1.13143345 L19.2442006,1.17125601 L19.2237071,1.16267653 C19.2124364,1.15795674 19.1513431,1.14127321 19.0879458,1.12560031 L18.9726778,1.09710477 L18.8149427,1.08501083 L18.6572076,1.07291569 L18.5237395,1.08516015 L18.3902713,1.09740461 L18.2689366,1.12760004 L18.147602,1.15779547 L18.032334,1.21314639 L17.9170661,1.26849731 L17.8321318,1.33040529 L17.7471975,1.39231447 L17.6738471,1.46974245 C17.6335045,1.51232808 17.5752238,1.58276537 17.5443344,1.62626963 L17.488171,1.70537002 L17.4222183,1.84048553 C17.3859453,1.91479923 17.3418026,2.01323153 17.3241241,2.05922291 C17.3064456,2.10521429 17.2752675,2.20716464 17.2548384,2.28577884 L17.2176966,2.42871287 L17.1993969,2.61428869 L17.1810984,2.7998633 L17.1948396,2.94918596 L17.2085795,3.09850862 L17.224825,3.15226478 C17.2337589,3.18183067 17.2525985,3.23450692 17.2666891,3.26932419 L17.2923089,3.33262744 L17.3390179,3.39487707 L17.3857281,3.45712789 L17.4390608,3.5001364 L17.4923947,3.54314491 L17.5651955,3.57873388 C17.6052359,3.59830709 17.6724044,3.62360354 17.714459,3.63494729 C17.7565136,3.64629103 17.8247643,3.65990926 17.8661273,3.66521081 C17.9074903,3.67051236 17.9932036,3.67549377 18.056601,3.67628099 L18.0566228,3.67628099 Z M18.2635057,3.33735678 L18.1718907,3.34214706 L18.1100549,3.33118916 C18.0760448,3.3251625 18.0216226,3.30900698 17.989117,3.29528841 L17.9300149,3.27034555 L17.8802835,3.23022554 L17.830552,3.19010433 L17.7935947,3.12041485 L17.7566361,3.05072537 L17.7397949,2.97307759 L17.7229524,2.8954298 L17.7243805,2.74013424 L17.7258074,2.58483867 L17.7453666,2.44746183 L17.7649257,2.31008498 L17.7953249,2.21451848 C17.8120436,2.1619569 17.8258042,2.11236625 17.8259049,2.10431836 C17.8260262,2.09627046 17.8425132,2.05326554 17.8625892,2.00875185 C17.8826665,1.96423817 17.9162082,1.89556528 17.9371288,1.8561441 C17.9580481,1.81672291 17.9971506,1.75526768 18.0240226,1.71957718 C18.0508934,1.68388667 18.0987648,1.63013051 18.1304016,1.60011905 C18.1620384,1.57010758 18.2123656,1.53074374 18.2422382,1.51264345 L18.2965536,1.47973512 L18.3919567,1.44723295 L18.4873609,1.41473079 L18.6875631,1.41461133 L18.8877654,1.41461133 L19.0030333,1.44609571 C19.0664307,1.46341117 19.1337447,1.48349327 19.1526184,1.49072169 L19.1869367,1.50386327 L19.1802341,1.53665453 C19.176548,1.55468912 19.1621274,1.63395198 19.1481884,1.71279434 C19.1342495,1.79163671 19.1067842,1.94215395 19.0871522,2.0472771 C19.0675203,2.15240025 19.0373589,2.31098092 19.0201245,2.39967858 C19.0028914,2.48837624 18.9779292,2.60126417 18.9646527,2.65054064 C18.9513763,2.69981712 18.9326471,2.76806952 18.9230301,2.80221304 C18.9134143,2.83635657 18.890516,2.89548834 18.872146,2.93361698 C18.8537759,2.97174563 18.8216307,3.02713239 18.8007126,3.05669828 C18.7797957,3.08626416 18.7444145,3.12722038 18.7220889,3.14771103 C18.6997633,3.16820288 18.6514661,3.2046173 18.6147623,3.22863316 L18.5480283,3.2722975 L18.4515745,3.30243201 L18.3551207,3.33256771 L18.2635057,3.33735798 L18.2635057,3.33735678 Z M0.406035224,3.61815148 L0.700846957,3.61815148 L0.721999232,3.48973399 C0.733631588,3.41910437 0.756352721,3.28337007 0.772489021,3.18810222 C0.78862532,3.09283436 0.818658081,2.91543904 0.839229163,2.7938904 C0.859799032,2.67234175 0.890636242,2.49225862 0.907755352,2.39370567 C0.924874463,2.29515271 0.952074059,2.14227379 0.968198225,2.05397392 C0.984323604,1.96567525 1.00057639,1.89041663 1.00431713,1.88673254 L1.01111794,1.88003572 L1.80383747,1.88003572 L2.596557,1.88003572 L2.60535861,1.88869883 L2.61416145,1.89736193 L2.60041544,1.96634661 C2.59285507,2.0042877 2.57049188,2.12134114 2.55072039,2.22646429 C2.53094769,2.33158744 2.49770806,2.50898276 2.47685426,2.62067611 C2.45600047,2.73236946 2.42584638,2.89095012 2.40984597,2.97307759 C2.39384435,3.05520505 2.36146377,3.22722475 2.33788965,3.3553436 C2.31431432,3.48346244 2.29507549,3.59500646 2.29513616,3.60321921 L2.2952575,3.61815148 L2.59128136,3.61815148 L2.88730644,3.61815148 L2.90040452,3.54349015 C2.90760938,3.50242641 2.91920048,3.4285117 2.92616388,3.37923522 C2.93312606,3.32995874 2.9499115,3.22513424 2.96346337,3.14629187 C2.97701646,3.06744951 3.00409472,2.91155665 3.02363688,2.7998633 C3.04317905,2.68816995 3.07588966,2.4973356 3.09632728,2.37578695 C3.11676368,2.25423831 3.14708242,2.07684299 3.16370127,1.98157513 C3.18032,1.88630727 3.2099327,1.7250388 3.22950738,1.62320075 C3.24908194,1.52136269 3.28168651,1.34934299 3.30196202,1.24093474 C3.32223741,1.13252649 3.3526127,0.96857021 3.36946269,0.876587452 C3.3863128,0.784604694 3.41703596,0.617960606 3.43773662,0.506267257 C3.45843729,0.394573908 3.48457667,0.264215227 3.49582403,0.216581299 L3.5162739,0.129974156 L3.21654665,0.129974156 L2.91681989,0.129974156 L2.90866742,0.186716767 C2.9041841,0.217925202 2.88970402,0.305278958 2.87649067,0.380836224 C2.86327611,0.456393489 2.83924092,0.590783883 2.82307672,0.679481542 C2.80691251,0.768179202 2.77737358,0.937511097 2.75743465,1.05577464 C2.73749451,1.17403819 2.7120846,1.33059045 2.7009667,1.40366896 L2.68075113,1.53653985 L2.24076366,1.54530688 L1.80077498,1.55407391 L1.43224272,1.54546337 C1.22954949,1.54072805 1.0625869,1.53591269 1.06121339,1.53476231 C1.05983988,1.53361551 1.06674383,1.4871905 1.07655495,1.43160066 C1.08636486,1.37601082 1.10492543,1.27945999 1.11780025,1.21704312 C1.13067507,1.15462624 1.15508154,1.03098708 1.17203685,0.942289422 C1.18899095,0.853591763 1.20819702,0.74339164 1.21471511,0.697400261 C1.22123321,0.651408882 1.23489429,0.574806358 1.24507305,0.52717243 C1.25525061,0.479538501 1.27456709,0.379202037 1.28799762,0.304203835 C1.30142816,0.229204439 1.31573716,0.159321434 1.3197958,0.148908269 L1.32717538,0.129974156 L1.02986779,0.129974156 L0.732560203,0.129974156 L0.713517938,0.234500018 C0.703043115,0.291989241 0.689078706,0.373967381 0.682484166,0.416673662 C0.675889626,0.459379942 0.653744833,0.596458144 0.633273245,0.721291887 C0.612802871,0.84612563 0.582582041,1.03158437 0.566118138,1.13342243 C0.549653021,1.23526048 0.519668795,1.42071922 0.499487197,1.54555297 C0.479305599,1.67038671 0.446005295,1.86390887 0.4254876,1.97560222 C0.404969905,2.08729557 0.375264748,2.24587624 0.359476679,2.3280037 C0.343687397,2.41013116 0.313600035,2.56602402 0.292613988,2.67443227 C0.271629155,2.78284052 0.241013987,2.93604557 0.224581631,3.01488793 C0.208148062,3.0937303 0.189981833,3.18511576 0.184209942,3.21796675 C0.178439265,3.25081773 0.159657869,3.34556595 0.142475664,3.42851887 C0.125292247,3.51147178 0.111233197,3.58807431 0.111233197,3.5987467 L0.111233197,3.61815148 L0.40604493,3.61815148 L0.406035224,3.61815148 Z M3.6696828,3.61815148 L3.93066933,3.61815148 L3.93803423,3.59925559 C3.94208498,3.58886273 3.94539912,3.56160239 3.94539912,3.53867598 C3.94539912,3.51574958 3.96181061,3.39658174 3.98186905,3.27385882 C4.00192749,3.1511347 4.03506982,2.95127648 4.0555186,2.82972783 C4.07596737,2.70817919 4.10616636,2.53078387 4.12262747,2.43551601 C4.13908859,2.34024816 4.16836313,2.18166749 4.18768216,2.08311454 C4.20700119,1.98456158 4.23665805,1.83135654 4.2535863,1.74265888 C4.27051468,1.65396122 4.3038043,1.48521228 4.32756345,1.3676607 C4.3513226,1.25010912 4.37372499,1.14921121 4.37734671,1.14344138 L4.38393166,1.13295176 L4.1200058,1.13617355 L3.85607993,1.13939533 L3.83409918,1.2946909 C3.82200988,1.38010346 3.79557869,1.54943535 3.77536324,1.670984 C3.75514791,1.79253264 3.72457012,1.97799139 3.70741291,2.08311454 C3.69025558,2.18823769 3.66033444,2.35756959 3.64092138,2.45940764 C3.62150844,2.56124569 3.59175924,2.71713855 3.57481193,2.80583621 C3.55786476,2.89453387 3.52745513,3.05042672 3.50723495,3.15226478 C3.48701476,3.25410283 3.45988239,3.38849323 3.44694071,3.4509101 C3.43399891,3.51332697 3.42009966,3.57649045 3.41605327,3.5912734 L3.40869626,3.61815148 L3.6696828,3.61815148 Z M9.77371379,3.61815148 L10.0327662,3.61815148 L10.0405474,3.5102342 C10.0448257,3.45088023 10.0594866,3.33127278 10.0731246,3.24443986 C10.0867638,3.15760695 10.1146878,2.98442611 10.1351788,2.85959237 C10.155671,2.73475862 10.1937543,2.52697555 10.2198085,2.39785326 C10.2458627,2.26872977 10.2753155,2.14038396 10.2852589,2.11263742 C10.295201,2.08489208 10.3033365,2.05482685 10.3033365,2.04582568 C10.3033365,2.03682332 10.3228132,1.98777501 10.346619,1.9368285 C10.3704237,1.885882 10.4147873,1.80786868 10.4452047,1.76346729 L10.5005078,1.6827351 L10.5745377,1.61525798 L10.6485665,1.54777966 L10.7398538,1.50485597 L10.8311424,1.46193228 L10.9706773,1.46264903 L11.1102122,1.46336577 L11.1788136,1.48354942 C11.216545,1.49465186 11.2506704,1.50373426 11.2546478,1.50373426 C11.2586263,1.50373426 11.2618805,1.49103467 11.2618805,1.47551228 C11.2618805,1.45999108 11.2755307,1.38130521 11.2922142,1.30065544 C11.3088977,1.22000687 11.3225479,1.15061842 11.3225479,1.14646009 C11.3225479,1.14230175 11.2829624,1.12704814 11.2345802,1.11256384 C11.186198,1.09807954 11.1193123,1.08290836 11.0859452,1.07885156 L11.0252779,1.07147502 L10.9464103,1.08520913 C10.9030332,1.09276246 10.8385341,1.10943762 10.8030789,1.12226504 C10.7676249,1.13509245 10.7090846,1.16418528 10.6729899,1.18691816 C10.6368953,1.20964985 10.5807489,1.25394851 10.5482203,1.28535763 C10.5156916,1.31676676 10.4609794,1.3800951 10.4266368,1.42608648 C10.392293,1.47207786 10.356378,1.5204584 10.3468229,1.53359879 L10.3294514,1.55749042 L10.339999,1.50970717 C10.3458012,1.48342638 10.3619594,1.39741653 10.375908,1.31857416 C10.3898566,1.2397318 10.4041729,1.16581708 10.4077208,1.15431924 L10.4141733,1.13341406 L10.1828196,1.13341406 L9.95146594,1.13341406 L9.95146594,1.16220945 C9.95146594,1.1780472 9.93781118,1.27346438 9.92112208,1.37424762 C9.90443298,1.47503205 9.87691282,1.64350027 9.85996613,1.74862342 C9.84301943,1.85374657 9.8129425,2.03651751 9.79312843,2.15478105 C9.77331448,2.2730446 9.74322906,2.44237649 9.72627205,2.53107415 C9.70931504,2.61977181 9.67920475,2.77566467 9.65936022,2.87750272 C9.63951569,2.97934078 9.60656725,3.14598486 9.58614129,3.24782292 C9.56571544,3.34966097 9.54127633,3.46992783 9.53183225,3.515083 C9.52238804,3.56023818 9.51466108,3.6018992 9.51466108,3.60766305 L9.51466108,3.61815148 L9.77371379,3.61814311 L9.77371379,3.61815148 Z M15.9231926,3.61815148 L16.1880687,3.61815148 L16.1880687,3.53834508 L16.1880687,3.4585375 L16.2185916,3.26060494 C16.2353807,3.15174036 16.2630766,2.97934914 16.2801399,2.87751109 C16.2972031,2.77567303 16.3184719,2.64665825 16.3274021,2.59081158 C16.3363336,2.53496491 16.3600011,2.41401355 16.3799983,2.32203079 C16.3999955,2.23004804 16.4249722,2.13059914 16.4355041,2.10103326 C16.4460347,2.07146737 16.4547308,2.04044768 16.4548278,2.03210114 C16.4549492,2.0237546 16.4775041,1.97007848 16.5050034,1.9128222 L16.555003,1.80871922 L16.6209641,1.72243342 L16.6869253,1.63614762 L16.7591146,1.58271997 C16.7988189,1.55333566 16.862664,1.51433975 16.9009912,1.49606385 L16.9706774,1.46283419 L17.1223457,1.46386153 L17.2740141,1.46488886 L17.3337192,1.48376564 L17.3934244,1.50264122 L17.4034867,1.49651779 L17.413549,1.49039556 L17.4140586,1.45227648 C17.4143376,1.43131157 17.4273241,1.35330183 17.4429192,1.27892123 L17.4712752,1.14368388 L17.4393799,1.13139044 C17.4218386,1.12462911 17.3801856,1.1106334 17.3468185,1.10028833 L17.2861512,1.08147964 L17.17695,1.0817544 L17.0677488,1.08202915 L16.9787546,1.11285532 L16.8897605,1.1436803 L16.8229391,1.18334995 L16.7561176,1.22301961 L16.669242,1.3126132 L16.5823676,1.4022068 L16.5356913,1.47170873 C16.5100193,1.50993414 16.4874171,1.53950002 16.4854648,1.5374107 C16.4835113,1.53532018 16.4974648,1.45566431 16.5164719,1.36039645 C16.535479,1.2651286 16.5512658,1.17508703 16.5515534,1.16030409 L16.5520751,1.1334272 L16.327606,1.1334272 L16.1031368,1.1334272 L16.1031368,1.14103908 C16.1031368,1.14522489 16.0919461,1.22182741 16.0782681,1.31126691 C16.0645912,1.40070521 16.0371283,1.57333176 16.0172416,1.6948804 C15.9973536,1.81642905 15.9647218,2.01263902 15.9447271,2.13090257 C15.9247312,2.24916611 15.894588,2.41849801 15.8777419,2.50719567 C15.8608958,2.59589333 15.8309746,2.75178618 15.8112517,2.85362424 C15.7915287,2.95546229 15.7591214,3.11941857 15.7392359,3.21797153 C15.7193504,3.31652448 15.6930086,3.44688316 15.6806992,3.50765749 L15.6583178,3.61815625 L15.9231951,3.61815625 L15.9231926,3.61815148 Z M4.18287366,0.70311036 L4.25654638,0.703373168 L4.31510626,0.683728279 L4.37366602,0.664083389 L4.42549425,0.612324572 L4.47732236,0.56056456 L4.50462182,0.491606161 L4.53192127,0.422646568 L4.5328968,0.32110716 L4.53387233,0.219567752 L4.5096054,0.179918405 L4.48533846,0.140270252 L4.4430896,0.114516275 L4.40084074,0.0887622969 L4.30962145,0.0887622969 L4.21840216,0.0887611023 L4.15629991,0.116134932 L4.09419767,0.143508762 L4.05814865,0.181538257 L4.0220995,0.219567752 L3.99378945,0.285269722 L3.96547928,0.350971692 L3.96012782,0.453313859 L3.95477635,0.555656026 L3.98113328,0.606521296 L4.00749008,0.657385372 L4.05834557,0.680117059 L4.10920094,0.702848746 L4.18287366,0.703111554 L4.18287366,0.70311036 Z",id:"path2997"})))),jcb:jc,unionpay:Rc,mastercard:Tc,placeholder:Pc,visa:_c};n(982);function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uc=function(e){var t=e.label,n=e.onChange,c=e.value,a=Object(o.useState)(c?c.card_number:""),r=Ze()(a,2),i=r[0],l=r[1],s=Object(o.useState)(c?"".concat(c.card_exp_month," ").concat(c.card_exp_year):""),u=Ze()(s,2),f=u[0],h=u[1],p=Object(o.useState)(c?c.card_cvc:""),d=Ze()(p,2),m=d[0],v=d[1],g=Object(o.useState)(c?c.card_zip:""),b=Ze()(g,2),y=b[0],z=b[1],C=it();Object(o.useEffect)((function(){n&&n({card_number:i.replace(/\s+/g,""),card_exp_month:f.substr(0,2),card_exp_year:f.substr(3,5),card_cvc:m,card_zip:y})}),[n,i,f,m,y]);var x=xc(),M=x.wrapperProps,L=x.getCardImageProps,w=x.getCardNumberProps,H=x.getExpiryDateProps,V=x.getCVCProps,E=x.getZIPProps,S=Fc(Fc({},M),{},{styles:{fieldWrapper:{base:{width:"100%"}},inputWrapper:{base:{display:"flex",alignItems:"center",marginTop:"8px",border:"1px solid #b8b8b8",overflow:"hidden",padding:"14px 14px",boxShadow:"0 0 0 0 ".concat(C),transition:"box-shadow 0.1s ease",borderRadius:"4px"},errored:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px #c9444d"},focused:{border:"1px solid #b8b8b8",boxShadow:"0 0 0 1px ".concat(C)}},input:{base:{fontSize:"14px",fontFamily:"Montserrat, Arial, Helvetica, sans-serif",fontWeight:"500",color:"#828382",lineHeight:"1.2"},cardNumber:{flex:"1"}}}});return React.createElement("div",{className:"give-donor-dashboard-card-control"},React.createElement("label",{className:"give-donor-dashboard-card-control__label"},t),React.createElement(Ac,S,React.createElement("svg",L({images:Dc})),React.createElement("input",w({onChange:function(e){return l(e.target.value)},value:i})),React.createElement("input",H({onChange:function(e){return h(e.target.value)},value:f})),React.createElement("input",V({onChange:function(e){return v(e.target.value)},value:m})),React.createElement("input",E({onChange:function(e){return z(e.target.value)},value:y}))))};Uc.propTypes={label:s.a.string,value:s.a.object,onChange:s.a.func},Uc.defaultProps={label:null,value:null,onChange:null};var Bc=Uc,Zc=(n(983),function(e){var t=e.gateway,n=e.label,c=e.onChange;switch(t){case"stripe":return React.createElement(cc,{label:n,onChange:function(e){return c(e)}});default:return React.createElement(Bc,{label:n,onChange:function(e){return c(e)}})}}),Wc={subscriptions:null,querying:!1,error:null};function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){T()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=M((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wc,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_SUBSCRIPTIONS":return qc(qc({},e),{},{subscriptions:t.payload.subscriptions});case"SET_QUERYING":return qc(qc({},e),{},{querying:t.payload.querying});case"SET_ERROR":return qc(qc({},e),{},{error:t.payload.error});default:return e}})),Kc=function(e){return{type:"SET_QUERYING",payload:{querying:e}}},Yc=function(){var e=Gc.dispatch;if(W())return e(Kc(!0)),q.post("recurring-donations/subscriptions",{},{}).then((function(e){return e.data})).then((function(t){return e({type:"SET_SUBSCRIPTIONS",payload:{subscriptions:t.subscriptions}}),e(Kc(!1)),400===t.status&&e({type:"SET_ERROR",payload:{error:t.body_response.message}}),t})).catch((function(){return e(Kc(!1)),null}))},Qc=function(e){var t=e.id,n=e.amount,c=e.paymentMethod;return U.a.post($()+"give-api/v2/donor-dashboard/recurring-donations/subscription/update",{id:t,amount:n,payment_method:c},{}).then(function(){var e=xt()(Lt.a.mark((function e(t){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},Xc=(n(984),function(e){var t=e.id,n=e.subscription,c=Object(o.useState)(n.payment.amount.raw),a=Ze()(c,2),r=a[0],i=a[1],l=Object(o.useState)(null),s=Ze()(l,2),u=s[0],f=s[1],h=Object(o.useState)(!1),p=Ze()(h,2),d=p[0],m=p[1],v=Object(o.useState)(!0),g=Ze()(v,2),b=g[0],y=g[1];Object(o.useEffect)((function(){y(!1)}),[r,u]);var z=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,Qc({id:t,amount:r,paymentMethod:u});case 3:y(!0),m(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement(o.Fragment,null,React.createElement($n,{form:n.form,payment:n.payment,onChange:function(e){return i(e)},value:r}),React.createElement(Zc,{label:Ee("Payment Method","give"),gateway:n.gateway.id,onChange:function(e){return f(e)}}),React.createElement(Ln,null,React.createElement("div",null,React.createElement(rt,{onClick:function(){return z()}},b?React.createElement(o.Fragment,null,Ee("Updated","give")," ",React.createElement(Ie,{icon:"check",fixedWidth:!0})):React.createElement(o.Fragment,null,Ee("Update Subscription","give")," ",React.createElement(Ie,{className:d?"give-donor-dashboard__subscription-manager-spinner":"",icon:d?"spinner":"save",fixedWidth:!0}))))))}),Jc=function(e){return U.a.post($()+"give-api/v2/donor-dashboard/recurring-donations/subscription/cancel",{id:e},{}).then(function(){var e=xt()(Lt.a.mark((function e(t){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yc();case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},ea=(n(985),function(e){var t=e.id,n=e.onRequestClose,c=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jc(t);case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-cancel-modal"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__header"},Ee("Cancel Subscription?","give")),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__body"},React.createElement("div",{className:"give-donor-dashboard-cancel-modal__buttons"},React.createElement(rt,{onClick:function(){return c()}},Ee("Yes, cancel","give")),React.createElement("a",{className:"give-donor-dashboard-cancel-modal__cancel",onClick:function(){return n()}},Ee("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-cancel-modal__bg",onClick:function(){return n()}}))}),ta=function(e){var t=e.subscription,n=t.id,a=t.payment,r=t.form,i=t.gateway,l=lt().width,s=Object(o.useState)(!1),u=Ze()(s,2),f=u[0],h=u[1];return React.createElement(o.Fragment,null,f&&React.createElement(ea,{id:n,form:r,onRequestClose:function(){return h(!1)}}),React.createElement("div",{className:"give-donor-dashboard-table__row"},React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Amount","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-amount"},a.amount.formatted," / ",a.frequency),r.title),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__donation-status"},React.createElement("div",{className:"give-donor-dashboard-table__donation-status-indicator",style:{background:a.status.color}}),React.createElement("div",{className:"give-donor-dashboard-table__donation-status-label"},a.status.label))),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Next Renewal","give")),a.renewalDate),React.createElement("div",{className:"give-donor-dashboard-table__column"},l<920&&React.createElement("div",{className:"give-donor-dashboard-table__mobile-header"},Ee("Progress","give")),a.progress),React.createElement("div",{className:"give-donor-dashboard-table__pill"},React.createElement("div",{className:"give-donor-dashboard-table__donation-id"},"ID: ",a.serialCode),React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/receipt/".concat(n)},Ee("View Subscription","give")," ",React.createElement(Ie,{icon:"arrow-right"}))),i.can_update&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement(c.b,{to:"/recurring-donations/manage/".concat(n)},Ee("Manage Subscription","give")," ",React.createElement(Ie,{icon:"arrow-right"}))),i.can_cancel&&React.createElement("div",{className:"give-donor-dashboard-table__donation-receipt"},React.createElement("a",{onClick:function(){return h(!0)}},Ee("Cancel Subscription","give"))))))},na=(n(986),function(e){var t=e.subscriptions,n=e.perPage,c=Object(o.useState)(1),a=Ze()(c,2),r=a[0],i=a[1],l=[],s=[],u=0,f=n,h=1;return t&&(Object.entries(t).forEach((function(e){s[e[0]]=e[1]})),f=(u=(r-1)*n)+n<=s.length?u+n:s.length,h=Math.ceil(s.length/n)-1,l=s.reduce((function(e,t,n){return n>=u&&n<f&&e.push(React.createElement(ta,{subscription:t,key:n})),e}),[])),React.createElement(We,{header:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Subscription","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Status","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Next Renewal","give")),React.createElement("div",{className:"give-donor-dashboard-table__column"},Ee("Progress","give"))),rows:React.createElement(o.Fragment,null,l),footer:React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard-table__footer-text"},t&&"".concat(Ee("Showing","give")," ").concat(u+1," - ").concat(f," ").concat(Ee("of","give")," ").concat(s.length," ").concat(Ee("Subscriptions","give"))),React.createElement("div",{className:"give-donor-dashboard-table__footer-nav"},r-1>=1&&React.createElement("a",{onClick:function(){return i(r-1)}},React.createElement(Ie,{icon:"chevron-left"})),r<=h&&React.createElement("a",{onClick:function(){return i(r+1)}},React.createElement(Ie,{icon:"chevron-right"}))))})}),ca=function(e){var t=Object(o.useState)(e(Gc.getState())),n=Ze()(t,2),c=n[0],a=n[1];return Object(o.useEffect)((function(){var t=Gc.subscribe((function(){a(e(Gc.getState()))}));return function(){t()}}),[]),c},aa=(n(987),function(){var e=ca((function(e){return e.subscriptions})),t=ca((function(e){return e.querying})),n=ca((function(e){return e.error})),a=Object(at.f)(),r=a?a.pathname.split("/")[2]:null,i=a?a.pathname.split("/")[3]:null,l=function(t){var n=e.filter((function(e){return parseInt(e.id)===parseInt(t)}));return n.length?n[0]:null};if(n)return React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n));if(i)switch(r){case"receipt":return t?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Subscription","give")," #",l(i).payment.serialCode),React.createElement(Fn,{subscription:l(i)}),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give"))));case"manage":return t&&null===e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give")))):React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Manage Subscription","give")),React.createElement(wt,null),React.createElement(Xc,{id:i,subscription:l(i)}),React.createElement(wt,null),React.createElement("div",{className:"give-donor-dashboard__recurring-donations-link"},React.createElement(c.b,{to:"/recurring-donations"},React.createElement(Ie,{icon:"arrow-left"})," ",Ee("Back to Recurring Donations","give"))))}return t&&!e?React.createElement(o.Fragment,null,React.createElement(Ue,null,Ee("Loading...","give")),React.createElement(na,null)):e?React.createElement(o.Fragment,null,React.createElement(Ue,null,"".concat(Object.entries(e).length," ").concat(Ee("Total Subscriptions","give"))),React.createElement(na,{subscriptions:e,perPage:5})):React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("No Subscriptions","give")))}),ra=function(){Yc(),window.giveDonorDashboard.utils.registerTab({label:Ee("Recurring Donations","give"),icon:"sync",slug:"recurring-donations",content:aa})},oa=n(403),ia=n.n(oa),la=(n(988),function(e){var t=e.slug,n=e.label,a=e.icon;return React.createElement(c.c,{to:"/".concat(t),className:"give-donor-dashboard-tab-link",activeClassName:"give-donor-dashboard-tab-link--is-active"},React.createElement(Ie,{icon:a,fixedWidth:!0}),n)}),sa=(n(989),function(e){var t=e.onRequestClose,n=function(){var e=xt()(Lt.a.mark((function e(){return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q.post("logout",{}).then((function(e){return e.data}));case 2:window.parent.location.href="".concat(window.parent.location.origin).concat(window.parent.location.pathname);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard-logout-modal"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__frame"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__header"},Ee("Are you sure you want to logout?","give")),React.createElement("div",{className:"give-donor-dashboard-logout-modal__body"},React.createElement("div",{className:"give-donor-dashboard-logout-modal__buttons"},React.createElement(rt,{onClick:function(){return n()}},Ee("Yes, logout","give")),React.createElement("a",{className:"give-donor-dashboard-logout-modal__cancel",onClick:function(){return t()}},Ee("Nevermind","give"))))),React.createElement("div",{className:"give-donor-dashboard-logout-modal__bg",onClick:function(){return t()}}))}),ua=(n(990),function(){var e=Object(o.useState)(!1),t=Ze()(e,2),n=t[0],c=t[1],a=O((function(e){return e.tabs})),r=Object.values(a).map((function(e,t){return React.createElement(la,{slug:e.slug,label:e.label,icon:e.icon,key:t})}));return React.createElement(o.Fragment,null,n&&React.createElement(sa,{onRequestClose:function(){return c(!1)}}),React.createElement("div",{className:"give-donor-dashboard-tab-menu"},r,React.createElement("div",{className:"give-donor-dashboard-logout"},React.createElement("div",{className:"give-donor-dashboard-tab-link",onClick:function(){return c(!0)}},React.createElement(Ie,{icon:"sign-out-alt"})," ",Ee("Logout","give")))))}),fa=(n(991),function(){var e=Object(at.f)(),t=O((function(e){return e.tabs})),n=O((function(e){return e.applicationError})),c=e.pathname.length>2?e.pathname.split("/")[1]:"dashboard",a=t[c]?t[c].content:null;return React.createElement("div",{className:"give-donor-dashboard-tab-content"},n?React.createElement(o.Fragment,null,React.createElement(Ue,{icon:"exclamation-triangle"},Ee("Error","give")),React.createElement("p",{style:{color:"#6b6b6b"}},n)):null,a&&null===n?React.createElement(a,null):null)}),ha=(n(992),function(){var e=O((function(e){return e.profile})),t=e.name,n=e.addresses,c=e.company,a=e.sinceLastDonation,r=e.sinceCreated,o=e.avatarUrl,i=e.initials,l=n&&n.billing?n.billing[0]:null;return React.createElement("div",{className:"give-donor-dashboard-donor-info"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar"},React.createElement("div",{className:"give-donor-dashboard-donor-info__avatar-container"},o?React.createElement("img",{src:o}):React.createElement("span",{className:"give-donor-dashboard-donor-info__avatar-initials"},i||React.createElement(Ie,{icon:"user"})))),React.createElement("div",{className:"give-donor-dashboard-donor-info__details"},t&&React.createElement("div",{className:"give-donor-dashboard-donor-info__name"},t),l&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"map-pin",fixedWidth:!0})," ",l.city,", ",l.state.length>0?l.state:l.country),c&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"building",fixedWidth:!0})," ",c),a&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"clock",fixedWidth:!0})," Last donated ",a," ago"),r&&React.createElement("div",{className:"give-donor-dashboard-donor-info__detail"},React.createElement(Ie,{icon:"heart",fixedWidth:!0})," Donor for ",r)),React.createElement("div",{className:"give-donor-dashboard-donor-info__badges"}))}),pa=(n(993),function(){return React.createElement("div",{className:"give-donor-dashboard-desktop-layout"},React.createElement("div",{className:"give-donor-dashboard-desktop-layout__donor-info"},React.createElement(ha,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-menu"},React.createElement(ua,null)),React.createElement("div",{className:"give-donor-dashboard-desktop-layout__tab-content"},React.createElement(fa,null)))}),da=(n(994),function(e){var t=e.children,n=Object(o.useState)(!1),c=Ze()(n,2),a=c[0],r=c[1],i=Object(o.useRef)(null);Object(o.useEffect)((function(){var e=function(e){i.current&&!i.current.contains(e.target)&&r(!1)};return a&&document.addEventListener("click",e),function(){a&&document.removeEventListener("click",e)}}),[a,i]);var l=Object(at.f)(),s=O((function(e){return e.tabs})),u=l.pathname.length>2?l.pathname.split("/")[1]:"dashboard",f=s[u]?s[u].label:null;return React.createElement("div",{className:"give-donor-dashboard-mobile-menu"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__header"},React.createElement("div",{className:"give-donor-dashboard-mobile-menu__label"},f),React.createElement("div",{className:"give-donor-dashboard-mobile-menu__toggle ".concat(a?"give-donor-dashboard-mobile-menu__toggle--toggled":""),onClick:function(){return r(!a)}},React.createElement(Ie,{icon:"bars"}))),a&&React.createElement("div",{className:"give-donor-dashboard-mobile-menu__content",ref:i},t))}),ma=(n(995),function(){return React.createElement("div",{className:"give-donor-dashboard-mobile-layout"},React.createElement(da,null,React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-menu"},React.createElement(ua,null))),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__donor-info"},React.createElement(ha,null)),React.createElement("div",{className:"give-donor-dashboard-mobile-layout__tab-content"},React.createElement(fa,null)))}),va=function(e){var t=e.login,n=e.password;return U.a.post($()+"give-api/v2/donor-dashboard/login",{login:t,password:n},{}).then((function(e){return e.data}))},ga=function(e){var t=e.email,n=e.recaptcha;return U.a.post($()+"give-api/v2/donor-dashboard/verify-email",{email:t,"g-recaptcha-response":n},{}).then((function(e){return e.data}))};function ba(){return(ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}function ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var za=function(e){var t,n;function c(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(ya(t)),t.handleErrored=t.handleErrored.bind(ya(t)),t.handleChange=t.handleChange.bind(ya(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(ya(t)),t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=c.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return i.a.createElement("div",ba({},t,{ref:this.handleRecaptchaRef}))},c}(i.a.Component);function Ca(){return(Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e}).apply(this,arguments)}za.displayName="ReCAPTCHA",za.propTypes={sitekey:s.a.string.isRequired,onChange:s.a.func,grecaptcha:s.a.object,theme:s.a.oneOf(["dark","light"]),type:s.a.oneOf(["image","audio"]),tabindex:s.a.number,onExpired:s.a.func,onErrored:s.a.func,size:s.a.oneOf(["compact","normal","invisible"]),stoken:s.a.string,hl:s.a.string,badge:s.a.oneOf(["bottomright","bottomleft","inline"])},za.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var xa={},Ma=0;var La,wa,Ha,Va=(La=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},wa=(wa={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,c;function a(e,n){var c;return(c=t.call(this,e,n)||this).state={},c.__scriptURL="",c}c=t,(n=a).prototype=Object.create(c.prototype),n.prototype.constructor=n,n.__proto__=c;var r=a.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+Ma++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof La?La():La,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=xa[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[wa.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),c=wa,a=c.globalName,r=c.callbackName,o=c.scriptId;if(a&&void 0!==window[a]&&(xa[t]={loaded:!0,observers:{}}),xa[t]){var i=xa[t];return i&&(i.loaded||i.errored)?void this.asyncScriptLoaderHandleLoad(i):void(i.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},xa[t]={loaded:!1,observers:l};var s=document.createElement("script");for(var u in s.src=t,s.async=!0,wa.attributes)s.setAttribute(u,wa.attributes[u]);o&&(s.id=o);var f=function(e){if(xa[t]){var n=xa[t].observers;for(var c in n)e(n[c])&&delete n[c]}};r&&"undefined"!=typeof window&&(window[r]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),s.onload=function(){var e=xa[t];e&&(e.loaded=!0,f((function(t){return!r&&(t(e),!0)})))},s.onerror=function(){var e=xa[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(s)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===wa.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var c=xa[e];c&&(delete c.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===wa.removeOnUnmount&&delete xa[e])},r.render=function(){var t=wa.globalName,n=this.props,c=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,c,a={},r=Object.keys(e);for(c=0;c<r.length;c++)n=r[c],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=c,Object(o.createElement)(e,a)},a}(o.Component),c=Object(o.forwardRef)((function(e,t){return Object(o.createElement)(n,Ca({},e,{forwardedRef:t}))}));return c.displayName="AsyncScriptLoader("+t+")",c.propTypes={asyncScriptOnLoad:s.a.func},b()(c,e)})(za),Ea=(n(996),function(){var e=Object(o.useState)(""),t=Ze()(e,2),n=t[0],c=t[1],a=Object(o.useState)(""),r=Ze()(a,2),i=r[0],l=r[1],s=Object(o.useState)(""),u=Ze()(s,2),f=u[0],h=u[1],p=Object(o.useState)(""),d=Ze()(p,2),m=d[0],v=d[1],g=Object(o.useState)(null),b=Ze()(g,2),y=b[0],z=b[1],C=Object(o.useState)(!1),x=Ze()(C,2),M=x[0],L=x[1],w=Object(o.useState)(!1),H=Ze()(w,2),V=H[0],E=H[1],S=Object(o.useState)(!1),N=Ze()(S,2),k=N[0],O=N[1],A=Object(o.useState)(null),_=Ze()(A,2),R=_[0],P=_[1],T=Z("emailAccessEnabled"),j=Z("loggedInWithoutDonor"),D=Z("recaptchaKey"),I=function(){var e=xt()(Lt.a.mark((function e(t){var n,c,a,r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!f||!m){e.next=10;break}return L(!0),e.next=5,va({login:f,password:m});case 5:n=e.sent,c=n.status,a=n.response,r=n.body_response,200===c?window.location.reload():(L(!1),z(r.message),"unidentified_login"===a?(h(""),v("")):v(""));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F=function(){var e=xt()(Lt.a.mark((function e(t){var c,a,r;return Lt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!i){e.next=10;break}return E(!0),e.next=5,ga({email:i,recaptcha:n});case 5:c=e.sent,a=c.status,r=c.body_response,E(!1),200===a?O(!0):P(r.message);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return React.createElement("div",{className:"give-donor-dashboard__auth-modal"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-frame"},React.createElement("div",{className:"give-donor-dashboard__auth-modal-heading"},Ee("Log in to see your donor dashboard","give")),React.createElement("div",{className:"give-donor-dashboard__auth-modal-content"},j&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-notice"},Ee("The account you are currently logged into the site with does not have an associated donor dashboard. Donate now or contact the site administrator to associate this WordPress user with a donor dashboard.","give")),T&&React.createElement(o.Fragment,null,React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},Ee("Enter your email below and we'll send you a link to access your donor dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return F(e)}},React.createElement(kn,{icon:"envelope",value:i,onChange:function(e){return l(e)}}),D&&React.createElement(Va,{sitekey:D,onChange:c}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(rt,{type:"submit"},Ee(!1===k?"Verify Email":"Email Sent","give"),!1===k&&React.createElement(Ie,{className:V?"give-donor-dashboard__auth-modal-spinner":"",icon:V?"spinner":"chevron-right",fixedWidth:!0})),R&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},R))),React.createElement("div",{className:"give-donor-dashboard__auth-modal-seperator"})),React.createElement("div",{className:"give-donor-dashboard__auth-modal-instruction"},T&&React.createElement(o.Fragment,null,Ee("Already have an account?","give")," ",React.createElement("br",null)),Ee("Log in below to access your dashboard","give")),React.createElement("form",{className:"give-donor-dashboard__auth-modal-form",onSubmit:function(e){return I(e)}},React.createElement(kn,{icon:"user",value:f,onChange:function(e){return h(e)}}),React.createElement(kn,{icon:"lock",type:"password",value:m,onChange:function(e){return v(e)}}),React.createElement("div",{className:"give-donor-dashboard__auth-modal-row"},React.createElement(rt,{type:"submit"},Ee("Log in","give"),React.createElement(Ie,{className:M?"give-donor-dashboard__auth-modal-spinner":"",icon:M?"spinner":"chevron-right",fixedWidth:!0})),y&&React.createElement("div",{className:"give-donor-dashboard__auth-modal-error"},y))))))}),Sa=(n(997),function(e){var t=e.children;return W()?t:React.createElement("div",{className:"give-donor-dashboard__auth"},React.createElement(Ea,null),React.createElement("div",{className:"give-donor-dashboard__auth-wrapper"},t))}),Na=function(){var e=lt().width,t=it(),n=Object(Mc.a)(Ha||(Ha=ia()(["\n\t:root {\n\t\t--give-donor-dashboard-accent-color: ",";\n\t}\n\t"])),t);return React.createElement(o.Fragment,null,React.createElement(n,null),React.createElement(Sa,null,e<920?React.createElement(ma,null):React.createElement(pa,null)))};n(998);window.React=i.a,_.b.add(R),window.giveDonorDashboard={store:J,utils:{registerTab:function(e){var t=window.giveDonorDashboard.store.dispatch;if(!0!==B(e))return null;t(function(e){return{type:"ADD_TAB",payload:{tab:e}}}(e))}}},r.a.render(i.a.createElement(v,{store:J},i.a.createElement(c.a,null,i.a.createElement(Na,null))),document.getElementById("give-donor-dashboard")),function(){window.giveDonorDashboard.utils.registerTab({label:Ee("Dashboard","give"),icon:"home",slug:"dashboard",content:ct});var e={"donation-history":zt,"annual-receipts":tt,"recurring-donations":ra};Z("registeredTabs").forEach((function(t){e[t]&&e[t]()})),window.giveDonorDashboard.utils.registerTab({label:Ee("Edit Profile","give"),icon:"cog",slug:"edit-profile",content:In})}()},101:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},102:function(e,t){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var c,a,r=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(c=n.next()).done)&&(r.push(c.value),!t||r.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return r}},e.exports.default=e.exports,e.exports.__esModule=!0},103:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},105:function(e,t,n){"use strict";var c=n(106);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,o){if(o!==c){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},106:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},11:function(e,t,n){"use strict";var c=n(84),a=Object.prototype.toString;function r(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,c=e.length;n<c;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isPlainObject:l,isUndefined:o,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:s,isStream:function(e){return i(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,c){l(t[c])&&l(n)?t[c]=e(t[c],n):l(n)?t[c]=e({},n):r(n)?t[c]=n.slice():t[c]=n}for(var c=0,a=arguments.length;c<a;c++)u(arguments[c],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"==typeof t?c(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},114:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var c=n(98);function a(e,t){if(e){if("string"==typeof e)return Object(c.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(c.a)(e,t):void 0}}},117:function(e,t,n){var c=n(66);e.exports=function(e){if(Array.isArray(e))return c(e)},e.exports.default=e.exports,e.exports.__esModule=!0},118:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},119:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},12:function(e,t,n){e.exports=n(306)},120:function(e,t,n){"use strict";
6
  /** @license React v16.14.0
7
  * react.production.min.js
8
  *
assets/dist/js/give-sequoia-template.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=910)}({19:function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),i(t)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},910:function(e,t,i){i(911),e.exports=i(912)},911:function(e,t,i){},912:function(e,t,i){"use strict";i.r(t);var n=i(19),a=i.n(n);!function(e){var t=window.sequoiaTemplateL10n,i=window.sequoiaTemplateOptions,n=e(".give-embed-form"),o=e(".advance-btn",n),r=e(".back-btn"),c=e(".give-form-navigator .title"),s=e("#give-payment-mode-select"),l=!1,d=window.parent.wp;d&&d.data&&n.on("click",(function(){var e=window.frameElement.closest(".wp-block").getAttribute("data-block");d.data.dispatch("core/block-editor").selectBlock(e)}));var p={currentStep:"enabled"===i.introduction.enabled?0:1,animating:!1,firstFocus:!1,goToStep:function(t){var a=u[t].title?e(u[t].selector).height()+50:e(u[t].selector).height(),o=u[p.currentStep].title?e(u[p.currentStep].selector).height()+50:e(u[p.currentStep].selector).height();a>o?e(".give-form-templates").css("min-height","".concat(a+123,"px")):setTimeout((function(){e(".give-form-templates").css("min-height","".concat(a+123,"px"))}),200),e(".step-tracker").removeClass("current"),e('.step-tracker[data-step="'+t+'"]').addClass("current"),"disabled"===i.introduction.enabled?(3===e(".step-tracker").length&&e(".step-tracker").remove(),1===(t=t>0?t:1)?e(".back-btn",n).hide():e(".back-btn",n).show(),e(".give-form-navigator",n).addClass("nav-visible"),e(u[t].selector).css("padding-top","50px")):0===t?(e(".give-form-navigator",n).removeClass("nav-visible"),e(u[t].selector).css("padding-top","")):(e(".give-form-navigator",n).addClass("nav-visible"),e(u[t].selector).css("padding-top","50px")),u[t].title&&c.text(u[t].title);var r=u.map((function(e,i){return i===t||i===p.currentStep?null:e.selector})).filter(Boolean).join(", ");if(e(r).hide(),p.currentStep!==t){var s="slide-in-right slide-in-left slide-out-right slide-out-left",l=p.currentStep<t?"left":"right",d=p.currentStep<t?"right":"left";e(u[p.currentStep].selector).removeClass(s).addClass("slide-out-".concat(l)),e(u[t].selector).show().removeClass(s).addClass("slide-in-".concat(d))}p.currentStep=t,setTimeout((function(){if(_(),!p.firstFocus&&"disabled"===i.introduction.enabled)return p.firstFocus=!0;u[p.currentStep].firstFocus&&e(u[p.currentStep].firstFocus).focus()}),200)},init:function(){var t,i;u.forEach((function(t){void 0!==t.setup&&t.setup(),e(t.selector).css("position","absolute")})),o.on("click",(function(e){e.preventDefault(),p.forward()})),r.on("click",(function(e){e.preventDefault(),p.back()})),e(".step-tracker").on("click",(function(t){t.preventDefault(),p.goToStep(parseInt(e(t.target).attr("data-step")))})),t=function(t){!1===l?e(".form-footer").css("transition","margin-top 0.2s ease"):e(".form-footer").css("transition",""),e(".form-footer").css("margin-top","".concat(t,"px"))},i=0,window.requestAnimationFrame((function n(){var a=e(u[p.currentStep].selector);i!==e(a).outerHeight()&&(t(e(a).outerHeight()),i=e(a).outerHeight()),window.requestAnimationFrame(n)})),e(".give-fee-recovery-donors-choice").parent().hasClass("give-form")&&e("#give_checkout_user_info").after(e(".give-fee-recovery-donors-choice")),p.goToStep(Give.fn.getParameterByName("showDonationProcessingError")||Give.fn.getParameterByName("showFailedDonationError")?2:0);var n=document.querySelectorAll('[data-field-type="checkbox"]');Array.from(n).forEach((function(e){var t='[data-field-name="'+e.getAttribute("data-field-name")+'"]';y({container:t,label:t+" label",input:t+' input[type="checkbox"]'})}))},back:function(){var e=0!==p.currentStep?p.currentStep-1:0;p.goToStep(e),p.currentStep=e},forward:function(){var e=null!==p.currentStep?p.currentStep+1:1;p.goToStep(e),p.currentStep=e}},u=[{id:"introduction",title:null,selector:".give-section.introduction",label:i.introduction.donate_label,showErrors:!1,tabOrder:[".introduction .advance-btn",".step-tracker"]},{id:"choose-amount",title:i.payment_amount.header_label,selector:".give-section.choose-amount",label:i.payment_amount.next_label,showErrors:!1,tabOrder:["select.give-cs-select-currency","input.give-amount-top",".give-donation-levels-wrap button",".give-recurring-period",".give-recurring-donors-choice-period",".give_fee_mode_checkbox",".choose-amount .advance-btn",".step-tracker",".back-btn"],firstFocus:".give-default-level",setup:function(){var t=e(".give-donation-level-btn").length;1===t?e(".give-donation-levels-wrap").attr("style","display: none!important;"):t%2==0&&t<6&&e(".give-donation-levels-wrap").css("grid-template-columns","repeat(2, minmax(0, 1fr))"),e("#give-amount").on("blur",(function(){Give.form.fn.isValidDonationAmount(e("form"))?e(".advance-btn").attr("disabled",!1):e(".advance-btn").attr("disabled",!0)})),e(".give-donation-level-btn").each((function(){if(!e(this).attr("has-tooltip")){var t=e(this).attr("value"),i=e(this).text(),n=window.give_global_vars.currency_sign,a=window.give_global_vars.currency_pos;if("custom"!==t){var o="before"===a?'<div class="currency currency--before">'.concat(n,"</div>").concat(t):"".concat(t,'<div class="currency currency--after">').concat(n,"</div>");e(this).html(o)}if("custom"!==t&&i!==("before"===a?n+t:t+n)){var r='<span class="give-tooltip hint--top hint--bounce '.concat(i.length<50?"narrow":"",'" style="width: 100%" aria-label="').concat(i.length<50?i:i.substr(0,50)+"...",'" rel="tooltip"></span>');e(this).wrap(r),e(this).attr("has-tooltip",!0)}}}))}},{id:"payment",title:i.payment_information.header_label,label:i.payment_information.checkout_label,selector:".give-section.payment",showErrors:!0,tabOrder:[".payment input, .payment a, .payment button, .payment select, .payment multiselect, .payment textarea, .payment .button",".give-submit",".step-tracker",".back-btn"],firstFocus:"#give-first",setup:function(){e(".give-section.payment").on("click",".give-cancel-login, .give-checkout-register-cancel",k),e(".give-section.payment").on("click touchend",'input[name="give_login_submit"]',(function(){e('input[name="give_login_submit"] + .give-loading-animation').removeClass("give-loading-animation").addClass("sequoia-loader spinning")})),window.give_global_vars.purchase_loading="",e(".give_error").each((function(){f(e(this))})),y({container:"#give-anonymous-donation-wrap label",label:"#give-anonymous-donation-wrap label",input:"#give-anonymous-donation"}),y({container:".give-recurring-donors-choice",label:".give-recurring-donors-choice label",input:'input[name="give-recurring-period"]'}),y({container:".give-fee-recovery-donors-choice",label:".give-fee-message-label-text",input:'input[name="give_fee_mode_checkbox"]'}),y({container:".give-activecampaign-fieldset",label:".give-activecampaign-optin-label",input:".give-activecampaign-optin-input"}),y({container:".give-mailchimp-fieldset",label:".give-mc-message-text",input:'input[name="give_mailchimp_signup"]'}),y({container:".give-constant-contact-fieldset",label:".give-constant-contact-fieldset span",input:'input[name="give_constant_contact_signup"]'}),y({container:"#give_terms_agreement",label:"#give_terms_agreement label",input:'input[name="give_agree_to_terms"]'}),e("body.give-form-templates").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',(function(){e("#give-purchase-button + .give-loading-animation").removeClass("give-loading-animation").addClass("sequoia-loader"),e("form").get(0).checkValidity()&&e(".sequoia-loader").addClass("spinning")})),e("body.give-form-templates").on("click touchend","#give_error_invalid_donation_maximum",(function(){p.goToStep(1)})),e("body.give-form-templates").on("click touchend","#give_error_invalid_donation_amount",(function(){p.goToStep(1)})),e("#give-gateway-radio-list li").each((function(){var t;switch(e("input",this).val()){case"manual":t="fas fa-tools";break;case"offline":t="fas fa-wallet";break;case"paypal":t="fab fa-paypal";break;case"stripe":case"stripe_checkout":t="far fa-credit-card";break;case"stripe_sepa":case"stripe_ach":case"stripe_ideal":case"stripe_becs":t="fas fa-university";break;case"paypalpro_payflow":case"paypal-commerce":t="far fa-credit-card";break;case"stripe_google_pay":t="fab fa-google";break;case"stripe_apple_pay":t="fab fa-apple";break;default:t="fas fa-hand-holding-heart"}e(this).append('<i class="'.concat(t,'"></i>'))})),v(),b(),new window.MutationObserver((function(t){t.forEach((function(t){if(t.addedNodes)for(var i=0;i<t.addedNodes.length;i++){var n=t.addedNodes[i];if(e(n).find(".give_error").length>0&&(f(e(n).find(".give_error")),S()),e(n).children().hasClass("give_errors")&&(e(n).parent().hasClass("donation-errors")||e(n).children(".give_errors").each((function(){f(e(this))})),S()),e(n).hasClass("give_errors")&&!e(n).parent().hasClass("donation-errors")&&(f(e(n)),e(".sequoia-loader").removeClass("spinning"),S()),"give_tributes_address_state"===e(n).attr("id")){var a=e(n).attr("placeholder");e(n).prepend("<option selected disabled>".concat(a,"</option>"))}if("give_tributes_address_state"===e(n).attr("name")&&e(n).attr("class").includes("give-input")&&e(n).attr("placeholder",e(n).siblings("label").text().trim()),e(n).attr("id")&&e(n).attr("id").includes("give-checkout-login-register")&&g(),e(n).prop("tagName")&&"select"===e(n).prop("tagName").toLowerCase()){var o=e(n).attr("placeholder");o&&e(n).prepend('<option value="" disabled selected>'.concat(o,"</option>"))}}}))})).observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}}];function f(t){e(t).parent().hasClass("give-stripe-payment-request-button")||(0===e(".donation-errors").length&&e(".payment").prepend('<div class="donation-errors"></div>'),void 0===a()(e(".donation-errors").html())||e(".donation-errors").html().includes(e(t).html())?e(t).remove():e(t).appendTo(".donation-errors"))}function g(){var t=function(t){e(t.target).is("input")&&(e(t.target).hasClass("give-disabled")||e(t.target).closest("label").toggleClass("checked"))};e('[id*="give-register-account-fields"]').off("click",t).on("click",t)}function v(){e("#give-ffm-section").off("click",w).on("click",w),e("#give-ffm-section input").each((function(){switch(e(this).prop("type")){case"checkbox":e(this).prop("checked")?e(this).parent().addClass("checked"):e(this).parent().removeClass("checked");break;case"radio":e(this).prop("checked")?e(this).parent().addClass("selected"):e(this).parent().removeClass("selected")}}))}function m(){0===e("#donate-fieldset").length&&e(".give-section.payment").append('<fieldset id="donate-fieldset"></fieldset>');[".give-constant-contact-fieldset",".give-activecampaign-fieldset",".give-mailchimp-fieldset","#give_terms_agreement",".give-donation-submit"].forEach((function(t){0===e("#donate-fieldset ".concat(t)).length||e("#donate-fieldset ".concat(t)).html()!==e("#give_purchase_form_wrap ".concat(t)).html()&&void 0!==e("#give_purchase_form_wrap ".concat(t)).html()?(e("#donate-fieldset ".concat(t)).remove(),e("#donate-fieldset").append(e("#give_purchase_form_wrap ".concat(t)))):e("#give_purchase_form_wrap ".concat(t)).remove()})),e("li.give-gateway-option-selected").after(e("#give_purchase_form_wrap"));var t="gateway-"+e(".give-gateway-option-selected input").attr("value").replace("_","-");e("#give_purchase_form_wrap").attr("class",t)}function h(t,i){e(t).each((function(){if(""!==e(this).html()&&!1===e(this).html().includes('<i class="fas fa-'.concat(i,'"></i>'))){var t="rtl"===e("html").attr("dir")?"padding-right":"padding-left";e(this).prepend('<i class="fas fa-'.concat(i,'"></i>')),e(this).children("input, selector").each((function(){e(this).attr("style",t+": 33px!important;")}))}}))}function b(){h("#give-first-name-wrap","user"),h("#give-email-wrap","envelope"),h("#give-company-wrap","building"),h("#date_field-wrap","calendar-alt"),h("#url_field-wrap","globe"),h("#phone_field-wrap","phone"),h("#give-phone-wrap","phone"),h("#email_field-wrap","envelope")}function _(){e("select, button, input, textarea, multiselect, a").attr("tabindex",-1),u[p.currentStep].tabOrder.forEach((function(t,i){e(t).attr("tabindex",i+1)}))}function y(t){var i=t.container,n=t.label,a=t.input;!0===e(a).prop("checked")&&e(i).addClass("active"),e(document).on("click",n,(function(t){i===n&&(t.stopPropagation(),t.preventDefault(),e(a).prop("checked",!e(a).prop("checked"))),e(i).toggleClass("active")}))}function w(t){if(e(t.target).is("input"))switch(e(t.target).prop("type")){case"checkbox":e(t.target).closest("label").toggleClass("checked");break;case"radio":e(t.target).closest("label").addClass("selected"),e(t.target).parent().siblings().removeClass("selected")}}function k(){e("#give_error_must_log_in").remove()}function x(){e('select option[selected="selected"][value=""]').length>0&&e('select option[selected="selected"][value=""]').each((function(){e(this).parent().siblings("label").length&&(e(this).text(e(this).parent().siblings("label").text().replace("*","").trim()),e(this).attr("disabled",!0))}))}function S(){"parentIFrame"in window&&window.parentIFrame.sendMessage({action:"giveScrollIframeInToView"})}p.init(),s.length&&"none"!==s.css("display")?(m(),e(document).on("give_gateway_loaded",(function(){setTimeout(_,200),m(),g(),v(),b(),x(),e("#give_purchase_form_wrap").slideDown(200,(function(){l=!1}))})),e(document).on("Give:onPreGatewayLoad",(function(){l=!0,e("#give_purchase_form_wrap").slideUp(200)})),e(document).on("Give:onPreGatewayLoad",(function(){var t=["give_error_test_mode"];e(".give_errors, .give_notices, .give_error").each((function(){t.includes(e(this).attr("id"))||e(this).slideUp(200,(function(){e(this).remove()}))}))}))):e("#give_purchase_form_wrap").addClass("give-single-gateway-wrap"),e(document).on("give_gateway_loaded",(function(t,i,n){2===p.currentStep&&e(".give-form-templates").css("min-height","");var a=e("#".concat(n));if(a.parent().hasClass("give-embed-form")){var o={action:"give_cancel_login",form_id:a.find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(t){var i=a.find("[id^=give-checkout-login-register]");i.length&&t.fields.includes("give_checkout_user_info")&&a.find("#give_checkout_user_info").remove(),i.replaceWith(e.parseJSON(t.fields)),i.css({display:"block"}),a.find(".give-submit-button-wrap").show()})).done((function(){window.give_fl_trigger(),b()}))}})),x(),g(),v(),b(),Array.from(document.querySelectorAll('#give_checkout_user_info input[type="text"]')).filter((function(e){return!e.required})).map((function(e){e.placeholder+=t.optionalLabel}))}(jQuery)}});
1
+ !function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=910)}({19:function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),i(t)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},910:function(e,t,i){i(911),e.exports=i(912)},911:function(e,t,i){},912:function(e,t,i){"use strict";i.r(t);var n=i(19),a=i.n(n);!function(e){var t=window.sequoiaTemplateL10n,i=window.sequoiaTemplateOptions,n=e(".give-embed-form"),o=e(".advance-btn",n),r=e(".back-btn"),c=e(".give-form-navigator .title"),s=e("#give-payment-mode-select"),l=!1,d=window.parent.wp;d&&d.data&&n.on("click",(function(){var e=window.frameElement.closest(".wp-block").getAttribute("data-block");d.data.dispatch("core/block-editor").selectBlock(e)}));var p={currentStep:"enabled"===i.introduction.enabled?0:1,animating:!1,firstFocus:!1,goToStep:function(t){var a=u[t].title?e(u[t].selector).height()+50:e(u[t].selector).height(),o=u[p.currentStep].title?e(u[p.currentStep].selector).height()+50:e(u[p.currentStep].selector).height();a>o?e(".give-form-templates").css("min-height","".concat(a+123,"px")):setTimeout((function(){e(".give-form-templates").css("min-height","".concat(a+123,"px"))}),200),e(".step-tracker").removeClass("current"),e('.step-tracker[data-step="'+t+'"]').addClass("current"),"disabled"===i.introduction.enabled?(3===e(".step-tracker").length&&e(".step-tracker").remove(),1===(t=t>0?t:1)?e(".back-btn",n).hide():e(".back-btn",n).show(),e(".give-form-navigator",n).addClass("nav-visible"),e(u[t].selector).css("padding-top","50px")):0===t?(e(".give-form-navigator",n).removeClass("nav-visible"),e(u[t].selector).css("padding-top","")):(e(".give-form-navigator",n).addClass("nav-visible"),e(u[t].selector).css("padding-top","50px")),u[t].title&&c.text(u[t].title);var r=u.map((function(e,i){return i===t||i===p.currentStep?null:e.selector})).filter(Boolean).join(", ");if(e(r).hide(),p.currentStep!==t){var s="slide-in-right slide-in-left slide-out-right slide-out-left",l=p.currentStep<t?"left":"right",d=p.currentStep<t?"right":"left";e(u[p.currentStep].selector).removeClass(s).addClass("slide-out-".concat(l)),e(u[t].selector).show().removeClass(s).addClass("slide-in-".concat(d))}p.currentStep=t,setTimeout((function(){if(_(),!p.firstFocus&&"disabled"===i.introduction.enabled)return p.firstFocus=!0;u[p.currentStep].firstFocus&&e(u[p.currentStep].firstFocus).focus()}),200)},init:function(){var t,i;u.forEach((function(t){void 0!==t.setup&&t.setup(),e(t.selector).css("position","absolute")})),o.on("click",(function(e){e.preventDefault(),p.forward()})),r.on("click",(function(e){e.preventDefault(),p.back()})),e(".step-tracker").on("click",(function(t){t.preventDefault(),p.goToStep(parseInt(e(t.target).attr("data-step")))})),t=function(t){!1===l?e(".form-footer").css("transition","margin-top 0.2s ease"):e(".form-footer").css("transition",""),e(".form-footer").css("margin-top","".concat(t,"px"))},i=0,window.requestAnimationFrame((function n(){var a=e(u[p.currentStep].selector);i!==e(a).outerHeight()&&(t(e(a).outerHeight()),i=e(a).outerHeight()),window.requestAnimationFrame(n)})),e(".give-fee-recovery-donors-choice").parent().hasClass("give-form")&&e("#give_checkout_user_info").after(e(".give-fee-recovery-donors-choice")),p.goToStep(Give.fn.getParameterByName("showDonationProcessingError")||Give.fn.getParameterByName("showFailedDonationError")?2:0);var n=document.querySelectorAll('[data-field-type="checkbox"]');Array.from(n).forEach((function(e){var t='[data-field-name="'+e.getAttribute("data-field-name")+'"]';y({container:t,label:t+" label",input:t+' input[type="checkbox"]'})}))},back:function(){var e=0!==p.currentStep?p.currentStep-1:0;p.goToStep(e),p.currentStep=e},forward:function(){var e=null!==p.currentStep?p.currentStep+1:1;p.goToStep(e),p.currentStep=e}},u=[{id:"introduction",title:null,selector:".give-section.introduction",label:i.introduction.donate_label,showErrors:!1,tabOrder:[".introduction .advance-btn",".step-tracker"]},{id:"choose-amount",title:i.payment_amount.header_label,selector:".give-section.choose-amount",label:i.payment_amount.next_label,showErrors:!1,tabOrder:["select.give-cs-select-currency","input.give-amount-top",".give-donation-levels-wrap button",".give-recurring-period",".give-recurring-donors-choice-period",".give_fee_mode_checkbox",".choose-amount .advance-btn",".step-tracker",".back-btn"],firstFocus:".give-default-level",setup:function(){var t=e(".give-donation-level-btn").length;1===t?e(".give-donation-levels-wrap").attr("style","display: none!important;"):t%2==0&&t<6&&e(".give-donation-levels-wrap").css("grid-template-columns","repeat(2, minmax(0, 1fr))"),e("#give-amount").on("blur",(function(){Give.form.fn.isValidDonationAmount(e("form"))?e(".advance-btn").attr("disabled",!1):e(".advance-btn").attr("disabled",!0)})),e(".give-donation-level-btn").each((function(){if(!e(this).attr("has-tooltip")){var t=e(this).attr("value"),i=e(this).text(),n=window.give_global_vars.currency_sign,a=window.give_global_vars.currency_pos;if("custom"!==t){var o="before"===a?'<div class="currency currency--before">'.concat(n,"</div>").concat(t):"".concat(t,'<div class="currency currency--after">').concat(n,"</div>");e(this).html(o)}if("custom"!==t&&i!==("before"===a?n+t:t+n)){var r='<span class="give-tooltip hint--top hint--bounce '.concat(i.length<50?"narrow":"",'" style="width: 100%" aria-label="').concat(i.length<50?i:i.substr(0,50)+"...",'" rel="tooltip"></span>');e(this).wrap(r),e(this).attr("has-tooltip",!0)}}}))}},{id:"payment",title:i.payment_information.header_label,label:i.payment_information.checkout_label,selector:".give-section.payment",showErrors:!0,tabOrder:[".payment input, .payment a, .payment button, .payment select, .payment multiselect, .payment textarea, .payment .button",".give-submit",".step-tracker",".back-btn"],firstFocus:"#give-first",setup:function(){e(".give-section.payment").on("click",".give-cancel-login, .give-checkout-register-cancel",k),e(".give-section.payment").on("click touchend",'input[name="give_login_submit"]',(function(){e('input[name="give_login_submit"] + .give-loading-animation').removeClass("give-loading-animation").addClass("sequoia-loader spinning")})),window.give_global_vars.purchase_loading="",e(".give_error").each((function(){f(e(this))})),y({container:"#give-anonymous-donation-wrap label",label:"#give-anonymous-donation-wrap label",input:"#give-anonymous-donation"}),y({container:".give-recurring-donors-choice",label:".give-recurring-donors-choice label",input:'input[name="give-recurring-period"]'}),y({container:".give-fee-recovery-donors-choice",label:".give-fee-message-label-text",input:'input[name="give_fee_mode_checkbox"]'}),y({container:".give-activecampaign-fieldset",label:".give-activecampaign-optin-label",input:".give-activecampaign-optin-input"}),y({container:".give-mailchimp-fieldset",label:".give-mc-message-text",input:'input[name="give_mailchimp_signup"]'}),y({container:".give-constant-contact-fieldset",label:".give-constant-contact-fieldset span",input:'input[name="give_constant_contact_signup"]'}),y({container:"#give_terms_agreement",label:"#give_terms_agreement label",input:'input[name="give_agree_to_terms"]'}),e("body.give-form-templates").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',(function(){e("#give-purchase-button + .give-loading-animation").removeClass("give-loading-animation").addClass("sequoia-loader"),e("form").get(0).checkValidity()&&e(".sequoia-loader").addClass("spinning")})),e("body.give-form-templates").on("click touchend","#give_error_invalid_donation_maximum",(function(){p.goToStep(1)})),e("body.give-form-templates").on("click touchend","#give_error_invalid_donation_amount",(function(){p.goToStep(1)})),e("#give-gateway-radio-list li").each((function(){var t;switch(e("input",this).val()){case"manual":t="fas fa-tools";break;case"offline":t="fas fa-wallet";break;case"paypal":t="fab fa-paypal";break;case"stripe":case"stripe_checkout":t="far fa-credit-card";break;case"stripe_sepa":case"stripe_ach":case"stripe_ideal":case"stripe_becs":t="fas fa-university";break;case"paypalpro_payflow":case"paypal-commerce":t="far fa-credit-card";break;case"stripe_google_pay":t="fab fa-google";break;case"stripe_apple_pay":t="fab fa-apple";break;default:t="fas fa-hand-holding-heart"}e(this).append('<i class="'.concat(t,'"></i>'))})),v(),b(),new window.MutationObserver((function(t){t.forEach((function(t){if(t.addedNodes)for(var i=0;i<t.addedNodes.length;i++){var n=t.addedNodes[i];if(e(n).find(".give_error").length>0&&(f(e(n).find(".give_error")),S()),e(n).children().hasClass("give_errors")&&(e(n).parent().hasClass("donation-errors")||e(n).children(".give_errors").each((function(){f(e(this))})),S()),e(n).hasClass("give_errors")&&!e(n).parent().hasClass("donation-errors")&&(f(e(n)),e(".sequoia-loader").removeClass("spinning"),S()),"give_tributes_address_state"===e(n).attr("id")){var a=e(n).attr("placeholder");e(n).prepend("<option selected disabled>".concat(a,"</option>"))}if("give_tributes_address_state"===e(n).attr("name")&&e(n).attr("class").includes("give-input")&&e(n).attr("placeholder",e(n).siblings("label").text().trim()),e(n).attr("id")&&e(n).attr("id").includes("give-checkout-login-register")&&g(),e(n).prop("tagName")&&"select"===e(n).prop("tagName").toLowerCase()){var o=e(n).attr("placeholder");o&&e(n).prepend('<option value="" disabled selected>'.concat(o,"</option>"))}}}))})).observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}}];function f(t){e(t).parent().hasClass("give-stripe-payment-request-button")||(0===e(".donation-errors").length&&e(".payment").prepend('<div class="donation-errors"></div>'),void 0===a()(e(".donation-errors").html())||e(".donation-errors").html().includes(e(t).html())?e(t).remove():e(t).appendTo(".donation-errors"))}function g(){var t=function(t){e(t.target).is("input")&&(e(t.target).hasClass("give-disabled")||e(t.target).closest("label").toggleClass("checked"))};e('[id*="give-register-account-fields"]').off("click",t).on("click",t)}function v(){e("#give-ffm-section").off("click",w).on("click",w),e("#give-ffm-section input").each((function(){switch(e(this).prop("type")){case"checkbox":e(this).prop("checked")?e(this).parent().addClass("checked"):e(this).parent().removeClass("checked");break;case"radio":e(this).prop("checked")?e(this).parent().addClass("selected"):e(this).parent().removeClass("selected")}}))}function m(){0===e("#donate-fieldset").length&&e(".give-section.payment").append('<fieldset id="donate-fieldset"></fieldset>');[".give-constant-contact-fieldset",".give-activecampaign-fieldset",".give-mailchimp-fieldset","#give_terms_agreement",".give-donation-submit"].forEach((function(t){0===e("#donate-fieldset ".concat(t)).length||e("#donate-fieldset ".concat(t)).html()!==e("#give_purchase_form_wrap ".concat(t)).html()&&void 0!==e("#give_purchase_form_wrap ".concat(t)).html()?(e("#donate-fieldset ".concat(t)).remove(),e("#donate-fieldset").append(e("#give_purchase_form_wrap ".concat(t)))):e("#give_purchase_form_wrap ".concat(t)).remove()})),e("li.give-gateway-option-selected").after(e("#give_purchase_form_wrap"));var t="gateway-"+e(".give-gateway-option-selected input").attr("value").replace("_","-");e("#give_purchase_form_wrap").attr("class",t)}function h(t,i){e(t).each((function(){if(""!==e(this).html()&&!1===e(this).html().includes('<i class="fas fa-'.concat(i,'"></i>'))){var t="rtl"===e("html").attr("dir")?"padding-right":"padding-left";e(this).prepend('<i class="fas fa-'.concat(i,'"></i>')),e(this).children("input, selector").each((function(){e(this).attr("style",t+": 33px!important;")}))}}))}function b(){h("#give-first-name-wrap","user"),h("#give-email-wrap","envelope"),h("#give-company-wrap","building"),h("#date_field-wrap","calendar-alt"),h("#url_field-wrap","globe"),h("#phone_field-wrap","phone"),h("#give-phone-wrap","phone"),h("#email_field-wrap","envelope")}function _(){e("select, button, input, textarea, multiselect, a").attr("tabindex",-1),u[p.currentStep].tabOrder.forEach((function(t,i){e(t).attr("tabindex",i+1)}))}function y(t){var i=t.container,n=t.label,a=t.input;!0===e(a).prop("checked")&&e(i).addClass("active"),e(document).on("click",n,(function(t){i===n&&(t.stopPropagation(),t.preventDefault(),e(a).prop("checked",!e(a).prop("checked"))),e(i).toggleClass("active")}))}function w(t){if(e(t.target).is("input"))switch(e(t.target).prop("type")){case"checkbox":e(t.target).closest("label").toggleClass("checked");break;case"radio":e(t.target).closest("label").addClass("selected"),e(t.target).parent().siblings().removeClass("selected")}}function k(){e("#give_error_must_log_in").remove()}function x(){e('select option[selected="selected"][value=""]').length>0&&e('select option[selected="selected"][value=""]').each((function(){e(this).parent().siblings("label").length&&(e(this).text(e(this).parent().siblings("label").text().replace("*","").trim()),e(this).attr("disabled",!0))}))}function S(){"parentIFrame"in window&&window.parentIFrame.sendMessage({action:"giveScrollIframeInToView"})}p.init(),s.length&&"none"!==s.css("display")?(m(),e(document).on("give_gateway_loaded",(function(){setTimeout(_,200),m(),g(),v(),b(),x(),e("#give_purchase_form_wrap").slideDown(200,(function(){l=!1}))})),e(document).on("Give:onPreGatewayLoad",(function(){l=!0,e("#give_purchase_form_wrap").slideUp(200)})),e(document).on("Give:onPreGatewayLoad",(function(){var t=["give_error_test_mode"];e(".give_errors, .give_notices, .give_error").each((function(){t.includes(e(this).attr("id"))||e(this).slideUp(200,(function(){e(this).remove()}))}))}))):e("#give_purchase_form_wrap").addClass("give-single-gateway-wrap"),e(document).on("give_gateway_loaded",(function(t,i,n){2===p.currentStep&&e(".give-form-templates").css("min-height","");var a=e("#".concat(n));if(a.parent().hasClass("give-embed-form")){var o={action:"give_cancel_login",form_id:a.find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(t){var i=a.find("[id^=give-checkout-login-register]");i.length&&t.fields.includes("give_checkout_user_info")&&a.find("#give_checkout_user_info").remove(),i.replaceWith(e.parseJSON(t.fields)),i.css({display:"block"}),a.find(".give-submit-button-wrap").show()})).done((function(){window.give_fl_trigger(),b()}))}})),x(),g(),v(),b(),"enabled"===i.payment_amount.decimals_enabled&&e(".give-form").each((function(t,i){var n=e(i),a=Give.form.fn.getVariablePrices(n),o=Give.form.fn.getInfo("currency_symbol",n),r=Give.form.fn.getInfo("currency_position",n),c=Give.form.fn.getInfo("number_decimals",n);e.each(a,(function(e,t){if("custom"!==t.price_id){var i=Give.fn.numberHasDecimal(t.amount)?Give.fn.formatCurrency(t.amount,{symbol:o,position:r,precision:c},n):t.amount,a='<div class="currency currency--'+r+'">'+o+"</div>"+i;n.find(".give-btn-level-"+t.price_id).html(a)}}))})),Array.from(document.querySelectorAll('#give_checkout_user_info input[type="text"]')).filter((function(e){return!e.required})).map((function(e){e.placeholder+=t.optionalLabel}))}(jQuery)}});
assets/dist/js/give.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=683)}({100:function(e,t,n){"use strict";var r,i={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,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{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},r="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(r,"</span></button>"):"","</p</div>")}}},o=n(25),a=n.n(o),u=n(12),c=n.n(u),s={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},l={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),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){s.fn.showOverlay(e)},hideProcessingState:function(){s.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,r){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!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,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,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},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(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).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(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=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"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__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"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var u=Give.fn.getParameterByName("level-id"),c=r.find('*[data-price-id="'+u+'"]');c.length>0&&this.autoSetMultiLevel(c),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"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.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),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__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:(r=a()(c.a.mark((function e(t){var n,r,i,o=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[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 r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return r.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"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}},d={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,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=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(r))}}},p={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)p[e[t]].init&&p[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={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&&(r={symbol:"",decimal:p.form.fn.getInfo("decimal_separator",n),thousand:p.form.fn.getInfo("thousands_separator",n),precision:p.form.fn.getInfo("number_decimals",n),currency:p.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=accounting.formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",u="",c="",s="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),u=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(u=r.thousand+u),i=(s=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+u+a).lastIndexOf("."),e=s=s.slice(0,i)+(s.slice(i)+"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?p.cache["form_"+p.form.fn.getInfo("form-id",n)][e]=t:p.cache[e]=t},getCache:function(e,t){var n,r=p.cache["form_"+p.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":p.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,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:p.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e}},cache:{}};p.notice=i,p.form=l,p.donor=d,p.util=s,p.share=f;t.a=p},1004:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return xn})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return a})),n.d(t,"isNull",(function(){return u})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return s})),n.d(t,"isElement",(function(){return l})),n.d(t,"isString",(function(){return f})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return m})),n.d(t,"isRegExp",(function(){return v})),n.d(t,"isError",(function(){return g})),n.d(t,"isSymbol",(function(){return h})),n.d(t,"isArrayBuffer",(function(){return y})),n.d(t,"isDataView",(function(){return E})),n.d(t,"isArray",(function(){return j})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return T})),n.d(t,"isFinite",(function(){return M})),n.d(t,"isNaN",(function(){return A})),n.d(t,"isTypedArray",(function(){return B})),n.d(t,"isEmpty",(function(){return Q})),n.d(t,"isMatch",(function(){return U})),n.d(t,"isEqual",(function(){return $})),n.d(t,"isMap",(function(){return re})),n.d(t,"isWeakMap",(function(){return ie})),n.d(t,"isSet",(function(){return oe})),n.d(t,"isWeakSet",(function(){return ae})),n.d(t,"keys",(function(){return D})),n.d(t,"allKeys",(function(){return K})),n.d(t,"values",(function(){return ue})),n.d(t,"pairs",(function(){return ce})),n.d(t,"invert",(function(){return se})),n.d(t,"functions",(function(){return le})),n.d(t,"methods",(function(){return le})),n.d(t,"extend",(function(){return fe})),n.d(t,"extendOwn",(function(){return pe})),n.d(t,"assign",(function(){return pe})),n.d(t,"defaults",(function(){return me})),n.d(t,"create",(function(){return ge})),n.d(t,"clone",(function(){return he})),n.d(t,"tap",(function(){return ye})),n.d(t,"get",(function(){return xe})),n.d(t,"has",(function(){return Ce})),n.d(t,"mapObject",(function(){return Me})),n.d(t,"identity",(function(){return ke})),n.d(t,"constant",(function(){return L})),n.d(t,"noop",(function(){return Ae})),n.d(t,"toPath",(function(){return be})),n.d(t,"property",(function(){return Ee})),n.d(t,"propertyOf",(function(){return Le})),n.d(t,"matcher",(function(){return Ie})),n.d(t,"matches",(function(){return Ie})),n.d(t,"times",(function(){return Ne})),n.d(t,"random",(function(){return Pe})),n.d(t,"now",(function(){return Ge})),n.d(t,"escape",(function(){return Be})),n.d(t,"unescape",(function(){return Re})),n.d(t,"templateSettings",(function(){return qe})),n.d(t,"template",(function(){return We})),n.d(t,"result",(function(){return $e})),n.d(t,"uniqueId",(function(){return Ye})),n.d(t,"chain",(function(){return Je})),n.d(t,"iteratee",(function(){return Oe})),n.d(t,"partial",(function(){return et})),n.d(t,"bind",(function(){return tt})),n.d(t,"bindAll",(function(){return it})),n.d(t,"memoize",(function(){return ot})),n.d(t,"delay",(function(){return at})),n.d(t,"defer",(function(){return ut})),n.d(t,"throttle",(function(){return ct})),n.d(t,"debounce",(function(){return st})),n.d(t,"wrap",(function(){return lt})),n.d(t,"negate",(function(){return dt})),n.d(t,"compose",(function(){return ft})),n.d(t,"after",(function(){return pt})),n.d(t,"before",(function(){return mt})),n.d(t,"once",(function(){return vt})),n.d(t,"findKey",(function(){return gt})),n.d(t,"findIndex",(function(){return yt})),n.d(t,"findLastIndex",(function(){return bt})),n.d(t,"sortedIndex",(function(){return wt})),n.d(t,"indexOf",(function(){return xt})),n.d(t,"lastIndexOf",(function(){return Ct})),n.d(t,"find",(function(){return kt})),n.d(t,"detect",(function(){return kt})),n.d(t,"findWhere",(function(){return It})),n.d(t,"each",(function(){return Et})),n.d(t,"forEach",(function(){return Et})),n.d(t,"map",(function(){return jt})),n.d(t,"collect",(function(){return jt})),n.d(t,"reduce",(function(){return Ot})),n.d(t,"foldl",(function(){return Ot})),n.d(t,"inject",(function(){return Ot})),n.d(t,"reduceRight",(function(){return Tt})),n.d(t,"foldr",(function(){return Tt})),n.d(t,"filter",(function(){return Mt})),n.d(t,"select",(function(){return Mt})),n.d(t,"reject",(function(){return At})),n.d(t,"every",(function(){return Lt})),n.d(t,"all",(function(){return Lt})),n.d(t,"some",(function(){return Nt})),n.d(t,"any",(function(){return Nt})),n.d(t,"contains",(function(){return Pt})),n.d(t,"includes",(function(){return Pt})),n.d(t,"include",(function(){return Pt})),n.d(t,"invoke",(function(){return Gt})),n.d(t,"pluck",(function(){return zt})),n.d(t,"where",(function(){return Ft})),n.d(t,"max",(function(){return Bt})),n.d(t,"min",(function(){return Rt})),n.d(t,"shuffle",(function(){return Dt})),n.d(t,"sample",(function(){return qt})),n.d(t,"sortBy",(function(){return Qt})),n.d(t,"groupBy",(function(){return Vt})),n.d(t,"indexBy",(function(){return Ht})),n.d(t,"countBy",(function(){return Wt})),n.d(t,"partition",(function(){return $t})),n.d(t,"toArray",(function(){return Yt})),n.d(t,"size",(function(){return Jt})),n.d(t,"pick",(function(){return Xt})),n.d(t,"omit",(function(){return en})),n.d(t,"first",(function(){return nn})),n.d(t,"head",(function(){return nn})),n.d(t,"take",(function(){return nn})),n.d(t,"initial",(function(){return tn})),n.d(t,"last",(function(){return on})),n.d(t,"rest",(function(){return rn})),n.d(t,"tail",(function(){return rn})),n.d(t,"drop",(function(){return rn})),n.d(t,"compact",(function(){return an})),n.d(t,"flatten",(function(){return un})),n.d(t,"without",(function(){return sn})),n.d(t,"uniq",(function(){return ln})),n.d(t,"unique",(function(){return ln})),n.d(t,"union",(function(){return dn})),n.d(t,"intersection",(function(){return fn})),n.d(t,"difference",(function(){return cn})),n.d(t,"unzip",(function(){return pn})),n.d(t,"transpose",(function(){return pn})),n.d(t,"zip",(function(){return mn})),n.d(t,"object",(function(){return vn})),n.d(t,"range",(function(){return gn})),n.d(t,"chunk",(function(){return hn})),n.d(t,"mixin",(function(){return bn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return u})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return s})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return f})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return m})),n.d(r,"isRegExp",(function(){return v})),n.d(r,"isError",(function(){return g})),n.d(r,"isSymbol",(function(){return h})),n.d(r,"isArrayBuffer",(function(){return y})),n.d(r,"isDataView",(function(){return E})),n.d(r,"isArray",(function(){return j})),n.d(r,"isFunction",(function(){return _})),n.d(r,"isArguments",(function(){return T})),n.d(r,"isFinite",(function(){return M})),n.d(r,"isNaN",(function(){return A})),n.d(r,"isTypedArray",(function(){return B})),n.d(r,"isEmpty",(function(){return Q})),n.d(r,"isMatch",(function(){return U})),n.d(r,"isEqual",(function(){return $})),n.d(r,"isMap",(function(){return re})),n.d(r,"isWeakMap",(function(){return ie})),n.d(r,"isSet",(function(){return oe})),n.d(r,"isWeakSet",(function(){return ae})),n.d(r,"keys",(function(){return D})),n.d(r,"allKeys",(function(){return K})),n.d(r,"values",(function(){return ue})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return se})),n.d(r,"functions",(function(){return le})),n.d(r,"methods",(function(){return le})),n.d(r,"extend",(function(){return fe})),n.d(r,"extendOwn",(function(){return pe})),n.d(r,"assign",(function(){return pe})),n.d(r,"defaults",(function(){return me})),n.d(r,"create",(function(){return ge})),n.d(r,"clone",(function(){return he})),n.d(r,"tap",(function(){return ye})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Ce})),n.d(r,"mapObject",(function(){return Me})),n.d(r,"identity",(function(){return ke})),n.d(r,"constant",(function(){return L})),n.d(r,"noop",(function(){return Ae})),n.d(r,"toPath",(function(){return be})),n.d(r,"property",(function(){return Ee})),n.d(r,"propertyOf",(function(){return Le})),n.d(r,"matcher",(function(){return Ie})),n.d(r,"matches",(function(){return Ie})),n.d(r,"times",(function(){return Ne})),n.d(r,"random",(function(){return Pe})),n.d(r,"now",(function(){return Ge})),n.d(r,"escape",(function(){return Be})),n.d(r,"unescape",(function(){return Re})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return We})),n.d(r,"result",(function(){return $e})),n.d(r,"uniqueId",(function(){return Ye})),n.d(r,"chain",(function(){return Je})),n.d(r,"iteratee",(function(){return Oe})),n.d(r,"partial",(function(){return et})),n.d(r,"bind",(function(){return tt})),n.d(r,"bindAll",(function(){return it})),n.d(r,"memoize",(function(){return ot})),n.d(r,"delay",(function(){return at})),n.d(r,"defer",(function(){return ut})),n.d(r,"throttle",(function(){return ct})),n.d(r,"debounce",(function(){return st})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return dt})),n.d(r,"compose",(function(){return ft})),n.d(r,"after",(function(){return pt})),n.d(r,"before",(function(){return mt})),n.d(r,"once",(function(){return vt})),n.d(r,"findKey",(function(){return gt})),n.d(r,"findIndex",(function(){return yt})),n.d(r,"findLastIndex",(function(){return bt})),n.d(r,"sortedIndex",(function(){return wt})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return Ct})),n.d(r,"find",(function(){return kt})),n.d(r,"detect",(function(){return kt})),n.d(r,"findWhere",(function(){return It})),n.d(r,"each",(function(){return Et})),n.d(r,"forEach",(function(){return Et})),n.d(r,"map",(function(){return jt})),n.d(r,"collect",(function(){return jt})),n.d(r,"reduce",(function(){return Ot})),n.d(r,"foldl",(function(){return Ot})),n.d(r,"inject",(function(){return Ot})),n.d(r,"reduceRight",(function(){return Tt})),n.d(r,"foldr",(function(){return Tt})),n.d(r,"filter",(function(){return Mt})),n.d(r,"select",(function(){return Mt})),n.d(r,"reject",(function(){return At})),n.d(r,"every",(function(){return Lt})),n.d(r,"all",(function(){return Lt})),n.d(r,"some",(function(){return Nt})),n.d(r,"any",(function(){return Nt})),n.d(r,"contains",(function(){return Pt})),n.d(r,"includes",(function(){return Pt})),n.d(r,"include",(function(){return Pt})),n.d(r,"invoke",(function(){return Gt})),n.d(r,"pluck",(function(){return zt})),n.d(r,"where",(function(){return Ft})),n.d(r,"max",(function(){return Bt})),n.d(r,"min",(function(){return Rt})),n.d(r,"shuffle",(function(){return Dt})),n.d(r,"sample",(function(){return qt})),n.d(r,"sortBy",(function(){return Qt})),n.d(r,"groupBy",(function(){return Vt})),n.d(r,"indexBy",(function(){return Ht})),n.d(r,"countBy",(function(){return Wt})),n.d(r,"partition",(function(){return $t})),n.d(r,"toArray",(function(){return Yt})),n.d(r,"size",(function(){return Jt})),n.d(r,"pick",(function(){return Xt})),n.d(r,"omit",(function(){return en})),n.d(r,"first",(function(){return nn})),n.d(r,"head",(function(){return nn})),n.d(r,"take",(function(){return nn})),n.d(r,"initial",(function(){return tn})),n.d(r,"last",(function(){return on})),n.d(r,"rest",(function(){return rn})),n.d(r,"tail",(function(){return rn})),n.d(r,"drop",(function(){return rn})),n.d(r,"compact",(function(){return an})),n.d(r,"flatten",(function(){return un})),n.d(r,"without",(function(){return sn})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return dn})),n.d(r,"intersection",(function(){return fn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return pn})),n.d(r,"transpose",(function(){return pn})),n.d(r,"zip",(function(){return mn})),n.d(r,"object",(function(){return vn})),n.d(r,"range",(function(){return gn})),n.d(r,"chunk",(function(){return hn})),n.d(r,"mixin",(function(){return bn})),n.d(r,"default",(function(){return wn}));var i=n(14);function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function u(e){return null===e}function c(e){return void 0===e}function s(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function l(e){return!(!e||1!==e.nodeType)}function d(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var f=d("String"),p=d("Number"),m=d("Date"),v=d("RegExp"),g=d("Error"),h=d("Symbol"),y=d("ArrayBuffer"),b=d("Function"),w=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof w&&(b=function(e){return"function"==typeof e||!1});var _=b,x=d("Object"),C=i.s&&x(new DataView(new ArrayBuffer(8))),k="undefined"!=typeof Map&&x(new Map),I=d("DataView");var E=C?function(e){return null!=e&&_(e.getInt8)&&y(e.buffer)}:I,j=i.k||d("Array");function S(e,t){return null!=e&&i.i.call(e,t)}var O=d("Arguments");!function(){O(arguments)||(O=function(e){return S(e,"callee")})}();var T=O;function M(e){return!h(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function A(e){return p(e)&&Object(i.g)(e)}function L(e){return function(){return e}}function N(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function P(e){return function(t){return null==t?void 0:t[e]}}var G=P("byteLength"),z=N(G),F=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var B=i.r?function(e){return i.l?Object(i.l)(e)&&!E(e):z(e)&&F.test(i.t.call(e))}:L(!1),R=P("length");function q(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,o=_(r)&&r.prototype||i.c,a="constructor";for(S(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=i.n[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function D(e){if(!a(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)S(e,n)&&t.push(n);return i.h&&q(e,t),t}function Q(e){if(null==e)return!0;var t=R(e);return"number"==typeof t&&(j(e)||f(e)||T(e))?0===t:0===R(D(e))}function U(e,t){var n=D(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function V(e){return e instanceof V?e:this instanceof V?void(this._wrapped=e):new V(e)}function H(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,G(e))}V.VERSION=i.e,V.prototype.value=function(){return this._wrapped},V.prototype.valueOf=V.prototype.toJSON=V.prototype.value,V.prototype.toString=function(){return String(this._wrapped)};function W(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function e(t,n,r,o){t instanceof V&&(t=t._wrapped);n instanceof V&&(n=n._wrapped);var a=i.t.call(t);if(a!==i.t.call(n))return!1;if(C&&"[object Object]"==a&&E(t)){if(!E(n))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.d.valueOf.call(t)===i.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(H(t),H(n),r,o)}var u="[object Array]"===a;if(!u&&B(t)){if(G(t)!==G(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;u=!0}if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,s=n.constructor;if(c!==s&&!(_(c)&&c instanceof c&&_(s)&&s instanceof s)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];var l=(r=r||[]).length;for(;l--;)if(r[l]===t)return o[l]===n;if(r.push(t),o.push(n),u){if((l=t.length)!==n.length)return!1;for(;l--;)if(!W(t[l],n[l],r,o))return!1}else{var d,f=D(t);if(l=f.length,D(n).length!==l)return!1;for(;l--;)if(d=f[l],!S(n,d)||!W(t[d],n[d],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r)}function $(e,t){return W(e,t)}function K(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&q(e,t),t}function Y(e){var t=R(e);return function(n){if(null==n)return!1;var r=K(n);if(R(r))return!1;for(var i=0;i<t;i++)if(!_(n[e[i]]))return!1;return e!==te||!_(n[J])}}var J="forEach",Z=["clear","delete"],X=["get","has","set"],ee=Z.concat(J,X),te=Z.concat(X),ne=["add"].concat(Z,J,"has"),re=k?Y(ee):d("Map"),ie=k?Y(te):d("WeakMap"),oe=k?Y(ne):d("Set"),ae=d("WeakSet");function ue(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function se(e){for(var t={},n=D(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function le(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function de(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),u=a.length,c=0;c<u;c++){var s=a[c];t&&void 0!==n[s]||(n[s]=o[s])}return n}}var fe=de(K),pe=de(D),me=de(K,!0);function ve(e){if(!a(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function ge(e,t){var n=ve(e);return t&&pe(n,t),n}function he(e){return a(e)?j(e)?e.slice():fe({},e):e}function ye(e,t){return t(e),e}function be(e){return j(e)?e:[e]}function we(e){return V.toPath(e)}function _e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=_e(e,we(t));return c(r)?n:r}function Ce(e,t){for(var n=(t=we(t)).length,r=0;r<n;r++){var i=t[r];if(!S(e,i))return!1;e=e[i]}return!!n}function ke(e){return e}function Ie(e){return e=pe({},e),function(t){return U(t,e)}}function Ee(e){return e=we(e),function(t){return _e(t,e)}}function je(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Se(e,t,n){return null==e?ke:_(e)?je(e,t,n):a(e)&&!j(e)?Ie(e):Ee(e)}function Oe(e,t){return Se(e,t,1/0)}function Te(e,t,n){return V.iteratee!==Oe?V.iteratee(e,t):Se(e,t,n)}function Me(e,t,n){t=Te(t,n);for(var r=D(e),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(e[u],u,e)}return o}function Ae(){}function Le(e){return null==e?Ae:function(t){return xe(e,t)}}function Ne(e,t,n){var r=Array(Math.max(0,e));t=je(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}V.toPath=be,V.iteratee=Oe;var Ge=Date.now||function(){return(new Date).getTime()};function ze(e){var t=function(t){return e[t]},n="(?:"+D(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Be=ze(Fe),Re=ze(se(Fe)),qe=V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},De=/(.)^/,Qe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function Ve(e){return"\\"+Qe[e]}var He=/^\s*(\w|\$)+\s*$/;function We(e,t,n){!t&&n&&(t=n),t=me({},t,V.templateSettings);var r=RegExp([(t.escape||De).source,(t.interpolate||De).source,(t.evaluate||De).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,u){return o+=e.slice(i,u).replace(Ue,Ve),i=u+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,u=t.variable;if(u){if(!He.test(u))throw new Error("variable is not a bare identifier: "+u)}else o="with(obj||{}){\n"+o+"}\n",u="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(u,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return a.call(this,e,V)};return c.source="function("+u+"){\n"+o+"}",c}function $e(e,t,n){var r=(t=we(t)).length;if(!r)return _(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=_(o)?o.call(e):o}return e}var Ke=0;function Ye(e){var t=++Ke+"";return e?e+t:t}function Je(e){var t=V(e);return t._chain=!0,t}function Ze(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=ve(e.prototype),u=e.apply(o,i);return a(u)?u:o}var Xe=o((function(e,t){var n=Xe.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),u=0;u<o;u++)a[u]=t[u]===n?arguments[i++]:t[u];for(;i<arguments.length;)a.push(arguments[i++]);return Ze(e,r,this,this,a)};return r}));Xe.placeholder=V;var et=Xe,tt=o((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return Ze(e,r,t,this,n.concat(i))}));return r})),nt=N(R);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=R(e);o<a;o++){var u=e[o];if(nt(u)&&(j(u)||T(u)))if(t>1)rt(u,t-1,n,r),i=r.length;else for(var c=0,s=u.length;c<s;)r[i++]=u[c++];else n||(r[i++]=u)}return r}var it=o((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e}));function ot(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return S(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var at=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),ut=et(at,V,1);function ct(e,t,n){var r,i,o,a,u=0;n||(n={});var c=function(){u=!1===n.leading?0:Ge(),r=null,a=e.apply(i,o),r||(i=o=null)},s=function(){var s=Ge();u||!1!==n.leading||(u=s);var l=t-(s-u);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),u=s,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s}function st(e,t,n){var r,i,a,u,c,s=function(){var o=Ge()-i;t>o?r=setTimeout(s,t-o):(r=null,n||(u=e.apply(c,a)),r||(a=c=null))},l=o((function(o){return c=this,a=o,i=Ge(),r||(r=setTimeout(s,t),n&&(u=e.apply(c,a))),u}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function lt(e,t){return et(t,e)}function dt(e){return function(){return!e.apply(this,arguments)}}function ft(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function pt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function mt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var vt=et(mt,2);function gt(e,t,n){t=Te(t,n);for(var r,i=D(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function ht(e){return function(t,n,r){n=Te(n,r);for(var i=R(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var yt=ht(1),bt=ht(-1);function wt(e,t,n,r){for(var i=(n=Te(n,r,1))(t),o=0,a=R(e);o<a;){var u=Math.floor((o+a)/2);n(e[u])<i?o=u+1:a=u}return o}function _t(e,t,n){return function(r,o,a){var u=0,c=R(r);if("number"==typeof a)e>0?u=a>=0?a:Math.max(a+c,u):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(i.q.call(r,u,c),A))>=0?a+u:-1;for(a=e>0?u:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var xt=_t(1,yt,wt),Ct=_t(-1,bt);function kt(e,t,n){var r=(nt(e)?yt:gt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function It(e,t){return kt(e,Ie(t))}function Et(e,t,n){var r,i;if(t=je(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=D(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function jt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=t(e[u],u,e)}return o}function St(e){var t=function(t,n,r,i){var o=!nt(t)&&D(t),a=(o||t).length,u=e>0?0:a-1;for(i||(r=t[o?o[u]:u],u+=e);u>=0&&u<a;u+=e){var c=o?o[u]:u;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,je(n,i,4),r,o)}}var Ot=St(1),Tt=St(-1);function Mt(e,t,n){var r=[];return t=Te(t,n),Et(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function At(e,t,n){return Mt(e,dt(Te(t)),n)}function Lt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Nt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Pt(e,t,n,r){return nt(e)||(e=ue(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Gt=o((function(e,t,n){var r,i;return _(t)?i=t:(t=we(t),r=t.slice(0,-1),t=t[t.length-1]),jt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=_e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function zt(e,t){return jt(e,Ee(t))}function Ft(e,t){return Mt(e,Ie(t))}function Bt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r>o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function Rt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r<o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function qt(e,t,n){if(null==t||n)return nt(e)||(e=ue(e)),e[Pe(e.length-1)];var r=nt(e)?he(e):ue(e),i=R(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=Pe(a,o),c=r[a];r[a]=r[u],r[u]=c}return r.slice(0,t)}function Dt(e){return qt(e,1/0)}function Qt(e,t,n){var r=0;return t=Te(t,n),zt(jt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Ut(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Te(r,i),Et(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Vt=Ut((function(e,t,n){S(e,n)?e[n].push(t):e[n]=[t]})),Ht=Ut((function(e,t,n){e[n]=t})),Wt=Ut((function(e,t,n){S(e,n)?e[n]++:e[n]=1})),$t=Ut((function(e,t,n){e[n?0:1].push(t)}),!0),Kt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Yt(e){return e?j(e)?i.q.call(e):f(e)?e.match(Kt):nt(e)?jt(e,ke):ue(e):[]}function Jt(e){return null==e?0:nt(e)?e.length:D(e).length}function Zt(e,t,n){return t in n}var Xt=o((function(e,t){var n={},r=t[0];if(null==e)return n;_(r)?(t.length>1&&(r=je(r,t[1])),t=K(e)):(r=Zt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],u=e[a];r(u,a,e)&&(n[a]=u)}return n})),en=o((function(e,t){var n,r=t[0];return _(r)?(r=dt(r),t.length>1&&(n=t[1])):(t=jt(rt(t,!1,!1),String),r=function(e,n){return!Pt(t,n)}),Xt(e,r,n)}));function tn(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function nn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tn(e,e.length-t)}function rn(e,t,n){return i.q.call(e,null==t||n?1:t)}function on(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rn(e,Math.max(0,e.length-t))}function an(e){return Mt(e,Boolean)}function un(e,t){return rt(e,t,!1)}var cn=o((function(e,t){return t=rt(t,!0,!0),Mt(e,(function(e){return!Pt(t,e)}))})),sn=o((function(e,t){return cn(e,t)}));function ln(e,t,n,r){s(t)||(r=n,n=t,t=!1),null!=n&&(n=Te(n,r));for(var i=[],o=[],a=0,u=R(e);a<u;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Pt(o,l)||(o.push(l),i.push(c)):Pt(i,c)||i.push(c)}return i}var dn=o((function(e){return ln(rt(e,!0,!0))}));function fn(e){for(var t=[],n=arguments.length,r=0,i=R(e);r<i;r++){var o=e[r];if(!Pt(t,o)){var a;for(a=1;a<n&&Pt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function pn(e){for(var t=e&&Bt(e,R).length||0,n=Array(t),r=0;r<t;r++)n[r]=zt(e,r);return n}var mn=o(pn);function vn(e,t){for(var n={},r=0,i=R(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function gn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function hn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(i.q.call(e,r,r+=t));return n}function yn(e,t){return e._chain?V(t).chain():t}function bn(e){return Et(le(e),(function(t){var n=V[t]=e[t];V.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),yn(this,n.apply(V,e))}})),V}Et(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];V.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),yn(this,n)}})),Et(["concat","join","slice"],(function(e){var t=i.a[e];V.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),yn(this,e)}}));var wn=V,_n=bn(r);_n._=_n;var xn=_n},101:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},1010:function(e,t,n){"use strict";n.r(t);n(685),n(567),n(686),n(418),n(417),n(572);var r=n(404),i=n(100),o=n(4),a=n.n(o),u=n(5),c=n.n(u);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}jQuery((function(e){var t=jQuery("form.give-form"),n=e(document),r={forms:{}};e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("keyup","#give-first, #give-last, #give-email",(function(e){var t=e.target,n=t.parentElement.closest("form.give-form");if(n){var i=n.getAttribute("id");r.forms=l(l({},r.forms),{},c()({},i,l(l({},r.forms[i]),{},c()({},t.name,t.value))))}})),n.on("give_gateway_loaded",(function(){for(var e=0,t=Object.entries(r.forms);e<t.length;e++)for(var n=a()(t[e],2),i=n[0],o=n[1],u=0,c=Object.entries(o);u<c.length;u++){var s=a()(c[u],2),l=s[0],d=s[1],f=document.querySelector("form#".concat(i,' [name="').concat(l,'"]'));f&&(f.value=d)}})),n.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(t){var i="",o=t.states_label,a=r.find('input[name="card_state"], select[name="card_state"]'),u=r.find('input[name="card_city"]');void 0!==t.states_found&&!0===t.states_found?i=e(t.data):(i='<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),!1===r.hasClass("float-labels-enabled")?(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),u.attr("required",!0)):(u.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),u.removeAttr("required"))):(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),u.attr("required",!0)):(u.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),u.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(o),a.replaceWith(i),void 0!==t.show_field&&!0===t.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last"));var c=!!t.zip_require;r.find("input#card_zip").toggleClass("required",c).attr("required",c).attr("aria-required",c),r.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!c),n.trigger("give_checkout_billing_address_updated",[t,r.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),n.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(t)})),n.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),n.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))})),n.on("focus",".give-donation-amount .give-text-input",(function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),n.on("blur",".give-donation-amount .give-text-input",(function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),u=void 0!==r?r:e(this).val(),c=Give.form.fn.getInfo("decimal_separator",o),s=Give.form.fn.getMinimumAmount(o),l=Give.form.fn.getMaximumAmount(o),d=0===u?s:Give.fn.unFormatCurrency(u,c),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),u=d=Give.fn.unFormatCurrency(p.val(),c),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),e(this).val(f),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){e(this).remove()})),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&d<s?Give.notice.fn.renderNotice("bad_minimum",o):d>=s&&m.slideUp(300,(function(){e(this).remove()})),0===v.length&&d>l?Give.notice.fn.renderNotice("bad_maximum",o):d<=l&&v.slideUp(300,(function(){e(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,d,i])})),n.on("click touchend",".give-donation-level-btn",(function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click touchend",".give-radio-input-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("change",".give-select-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click",".give_terms_links",(function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1})),e('label[for^="give-radio-level"]').on("click",(function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),u=jQuery.payment.cardType(i.val()),c=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(c=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(c)):r.indexOf("card_cvc")>-1?(c=!jQuery.payment.validateCardCVC(o.val(),u),o.toggleError(c)):r.indexOf("card_expiry")>-1&&(c=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(c)),Give.form.fn.disable(t.parents("form"),c);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var s=n.find(".card-type");null===u?(s.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):s.removeClass().addClass("card-type "+u)}else if(r.indexOf("card_expiry")>-1){var l=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(l.month),n.find(".card-expiry-year").val(l.year)}}}))}));var d=n(19),f=n.n(d);function p(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}
2
  /*!
3
  * Give AJAX JS
4
  *
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=683)}({100:function(e,t,n){"use strict";var r,i={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,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{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},r="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(r,"</span></button>"):"","</p</div>")}}},o=n(25),a=n.n(o),u=n(12),c=n.n(u),s={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},l={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),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){s.fn.showOverlay(e)},hideProcessingState:function(){s.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,r){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!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,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,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},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(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).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(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=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"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__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"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var u=Give.fn.getParameterByName("level-id"),c=r.find('*[data-price-id="'+u+'"]');c.length>0&&this.autoSetMultiLevel(c),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"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.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),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__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:(r=a()(c.a.mark((function e(t){var n,r,i,o=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[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 r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return r.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"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}},d={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,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=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(r))}}},p={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)p[e[t]].init&&p[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={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&&(r={symbol:"",decimal:p.form.fn.getInfo("decimal_separator",n),thousand:p.form.fn.getInfo("thousands_separator",n),precision:p.form.fn.getInfo("number_decimals",n),currency:p.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=accounting.formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",u="",c="",s="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),u=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(u=r.thousand+u),i=(s=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+u+a).lastIndexOf("."),e=s=s.slice(0,i)+(s.slice(i)+"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?p.cache["form_"+p.form.fn.getInfo("form-id",n)][e]=t:p.cache[e]=t},getCache:function(e,t){var n,r=p.cache["form_"+p.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":p.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,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:p.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};p.notice=i,p.form=l,p.donor=d,p.util=s,p.share=f;t.a=p},1004:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return xn})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return a})),n.d(t,"isNull",(function(){return u})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return s})),n.d(t,"isElement",(function(){return l})),n.d(t,"isString",(function(){return f})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return m})),n.d(t,"isRegExp",(function(){return v})),n.d(t,"isError",(function(){return g})),n.d(t,"isSymbol",(function(){return h})),n.d(t,"isArrayBuffer",(function(){return y})),n.d(t,"isDataView",(function(){return E})),n.d(t,"isArray",(function(){return j})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return T})),n.d(t,"isFinite",(function(){return M})),n.d(t,"isNaN",(function(){return A})),n.d(t,"isTypedArray",(function(){return B})),n.d(t,"isEmpty",(function(){return Q})),n.d(t,"isMatch",(function(){return U})),n.d(t,"isEqual",(function(){return $})),n.d(t,"isMap",(function(){return re})),n.d(t,"isWeakMap",(function(){return ie})),n.d(t,"isSet",(function(){return oe})),n.d(t,"isWeakSet",(function(){return ae})),n.d(t,"keys",(function(){return D})),n.d(t,"allKeys",(function(){return K})),n.d(t,"values",(function(){return ue})),n.d(t,"pairs",(function(){return ce})),n.d(t,"invert",(function(){return se})),n.d(t,"functions",(function(){return le})),n.d(t,"methods",(function(){return le})),n.d(t,"extend",(function(){return fe})),n.d(t,"extendOwn",(function(){return pe})),n.d(t,"assign",(function(){return pe})),n.d(t,"defaults",(function(){return me})),n.d(t,"create",(function(){return ge})),n.d(t,"clone",(function(){return he})),n.d(t,"tap",(function(){return ye})),n.d(t,"get",(function(){return xe})),n.d(t,"has",(function(){return Ce})),n.d(t,"mapObject",(function(){return Me})),n.d(t,"identity",(function(){return ke})),n.d(t,"constant",(function(){return L})),n.d(t,"noop",(function(){return Ae})),n.d(t,"toPath",(function(){return be})),n.d(t,"property",(function(){return Ee})),n.d(t,"propertyOf",(function(){return Le})),n.d(t,"matcher",(function(){return Ie})),n.d(t,"matches",(function(){return Ie})),n.d(t,"times",(function(){return Ne})),n.d(t,"random",(function(){return Pe})),n.d(t,"now",(function(){return Ge})),n.d(t,"escape",(function(){return Be})),n.d(t,"unescape",(function(){return Re})),n.d(t,"templateSettings",(function(){return qe})),n.d(t,"template",(function(){return We})),n.d(t,"result",(function(){return $e})),n.d(t,"uniqueId",(function(){return Ye})),n.d(t,"chain",(function(){return Je})),n.d(t,"iteratee",(function(){return Oe})),n.d(t,"partial",(function(){return et})),n.d(t,"bind",(function(){return tt})),n.d(t,"bindAll",(function(){return it})),n.d(t,"memoize",(function(){return ot})),n.d(t,"delay",(function(){return at})),n.d(t,"defer",(function(){return ut})),n.d(t,"throttle",(function(){return ct})),n.d(t,"debounce",(function(){return st})),n.d(t,"wrap",(function(){return lt})),n.d(t,"negate",(function(){return dt})),n.d(t,"compose",(function(){return ft})),n.d(t,"after",(function(){return pt})),n.d(t,"before",(function(){return mt})),n.d(t,"once",(function(){return vt})),n.d(t,"findKey",(function(){return gt})),n.d(t,"findIndex",(function(){return yt})),n.d(t,"findLastIndex",(function(){return bt})),n.d(t,"sortedIndex",(function(){return wt})),n.d(t,"indexOf",(function(){return xt})),n.d(t,"lastIndexOf",(function(){return Ct})),n.d(t,"find",(function(){return kt})),n.d(t,"detect",(function(){return kt})),n.d(t,"findWhere",(function(){return It})),n.d(t,"each",(function(){return Et})),n.d(t,"forEach",(function(){return Et})),n.d(t,"map",(function(){return jt})),n.d(t,"collect",(function(){return jt})),n.d(t,"reduce",(function(){return Ot})),n.d(t,"foldl",(function(){return Ot})),n.d(t,"inject",(function(){return Ot})),n.d(t,"reduceRight",(function(){return Tt})),n.d(t,"foldr",(function(){return Tt})),n.d(t,"filter",(function(){return Mt})),n.d(t,"select",(function(){return Mt})),n.d(t,"reject",(function(){return At})),n.d(t,"every",(function(){return Lt})),n.d(t,"all",(function(){return Lt})),n.d(t,"some",(function(){return Nt})),n.d(t,"any",(function(){return Nt})),n.d(t,"contains",(function(){return Pt})),n.d(t,"includes",(function(){return Pt})),n.d(t,"include",(function(){return Pt})),n.d(t,"invoke",(function(){return Gt})),n.d(t,"pluck",(function(){return zt})),n.d(t,"where",(function(){return Ft})),n.d(t,"max",(function(){return Bt})),n.d(t,"min",(function(){return Rt})),n.d(t,"shuffle",(function(){return Dt})),n.d(t,"sample",(function(){return qt})),n.d(t,"sortBy",(function(){return Qt})),n.d(t,"groupBy",(function(){return Vt})),n.d(t,"indexBy",(function(){return Ht})),n.d(t,"countBy",(function(){return Wt})),n.d(t,"partition",(function(){return $t})),n.d(t,"toArray",(function(){return Yt})),n.d(t,"size",(function(){return Jt})),n.d(t,"pick",(function(){return Xt})),n.d(t,"omit",(function(){return en})),n.d(t,"first",(function(){return nn})),n.d(t,"head",(function(){return nn})),n.d(t,"take",(function(){return nn})),n.d(t,"initial",(function(){return tn})),n.d(t,"last",(function(){return on})),n.d(t,"rest",(function(){return rn})),n.d(t,"tail",(function(){return rn})),n.d(t,"drop",(function(){return rn})),n.d(t,"compact",(function(){return an})),n.d(t,"flatten",(function(){return un})),n.d(t,"without",(function(){return sn})),n.d(t,"uniq",(function(){return ln})),n.d(t,"unique",(function(){return ln})),n.d(t,"union",(function(){return dn})),n.d(t,"intersection",(function(){return fn})),n.d(t,"difference",(function(){return cn})),n.d(t,"unzip",(function(){return pn})),n.d(t,"transpose",(function(){return pn})),n.d(t,"zip",(function(){return mn})),n.d(t,"object",(function(){return vn})),n.d(t,"range",(function(){return gn})),n.d(t,"chunk",(function(){return hn})),n.d(t,"mixin",(function(){return bn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return u})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return s})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return f})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return m})),n.d(r,"isRegExp",(function(){return v})),n.d(r,"isError",(function(){return g})),n.d(r,"isSymbol",(function(){return h})),n.d(r,"isArrayBuffer",(function(){return y})),n.d(r,"isDataView",(function(){return E})),n.d(r,"isArray",(function(){return j})),n.d(r,"isFunction",(function(){return _})),n.d(r,"isArguments",(function(){return T})),n.d(r,"isFinite",(function(){return M})),n.d(r,"isNaN",(function(){return A})),n.d(r,"isTypedArray",(function(){return B})),n.d(r,"isEmpty",(function(){return Q})),n.d(r,"isMatch",(function(){return U})),n.d(r,"isEqual",(function(){return $})),n.d(r,"isMap",(function(){return re})),n.d(r,"isWeakMap",(function(){return ie})),n.d(r,"isSet",(function(){return oe})),n.d(r,"isWeakSet",(function(){return ae})),n.d(r,"keys",(function(){return D})),n.d(r,"allKeys",(function(){return K})),n.d(r,"values",(function(){return ue})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return se})),n.d(r,"functions",(function(){return le})),n.d(r,"methods",(function(){return le})),n.d(r,"extend",(function(){return fe})),n.d(r,"extendOwn",(function(){return pe})),n.d(r,"assign",(function(){return pe})),n.d(r,"defaults",(function(){return me})),n.d(r,"create",(function(){return ge})),n.d(r,"clone",(function(){return he})),n.d(r,"tap",(function(){return ye})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Ce})),n.d(r,"mapObject",(function(){return Me})),n.d(r,"identity",(function(){return ke})),n.d(r,"constant",(function(){return L})),n.d(r,"noop",(function(){return Ae})),n.d(r,"toPath",(function(){return be})),n.d(r,"property",(function(){return Ee})),n.d(r,"propertyOf",(function(){return Le})),n.d(r,"matcher",(function(){return Ie})),n.d(r,"matches",(function(){return Ie})),n.d(r,"times",(function(){return Ne})),n.d(r,"random",(function(){return Pe})),n.d(r,"now",(function(){return Ge})),n.d(r,"escape",(function(){return Be})),n.d(r,"unescape",(function(){return Re})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return We})),n.d(r,"result",(function(){return $e})),n.d(r,"uniqueId",(function(){return Ye})),n.d(r,"chain",(function(){return Je})),n.d(r,"iteratee",(function(){return Oe})),n.d(r,"partial",(function(){return et})),n.d(r,"bind",(function(){return tt})),n.d(r,"bindAll",(function(){return it})),n.d(r,"memoize",(function(){return ot})),n.d(r,"delay",(function(){return at})),n.d(r,"defer",(function(){return ut})),n.d(r,"throttle",(function(){return ct})),n.d(r,"debounce",(function(){return st})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return dt})),n.d(r,"compose",(function(){return ft})),n.d(r,"after",(function(){return pt})),n.d(r,"before",(function(){return mt})),n.d(r,"once",(function(){return vt})),n.d(r,"findKey",(function(){return gt})),n.d(r,"findIndex",(function(){return yt})),n.d(r,"findLastIndex",(function(){return bt})),n.d(r,"sortedIndex",(function(){return wt})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return Ct})),n.d(r,"find",(function(){return kt})),n.d(r,"detect",(function(){return kt})),n.d(r,"findWhere",(function(){return It})),n.d(r,"each",(function(){return Et})),n.d(r,"forEach",(function(){return Et})),n.d(r,"map",(function(){return jt})),n.d(r,"collect",(function(){return jt})),n.d(r,"reduce",(function(){return Ot})),n.d(r,"foldl",(function(){return Ot})),n.d(r,"inject",(function(){return Ot})),n.d(r,"reduceRight",(function(){return Tt})),n.d(r,"foldr",(function(){return Tt})),n.d(r,"filter",(function(){return Mt})),n.d(r,"select",(function(){return Mt})),n.d(r,"reject",(function(){return At})),n.d(r,"every",(function(){return Lt})),n.d(r,"all",(function(){return Lt})),n.d(r,"some",(function(){return Nt})),n.d(r,"any",(function(){return Nt})),n.d(r,"contains",(function(){return Pt})),n.d(r,"includes",(function(){return Pt})),n.d(r,"include",(function(){return Pt})),n.d(r,"invoke",(function(){return Gt})),n.d(r,"pluck",(function(){return zt})),n.d(r,"where",(function(){return Ft})),n.d(r,"max",(function(){return Bt})),n.d(r,"min",(function(){return Rt})),n.d(r,"shuffle",(function(){return Dt})),n.d(r,"sample",(function(){return qt})),n.d(r,"sortBy",(function(){return Qt})),n.d(r,"groupBy",(function(){return Vt})),n.d(r,"indexBy",(function(){return Ht})),n.d(r,"countBy",(function(){return Wt})),n.d(r,"partition",(function(){return $t})),n.d(r,"toArray",(function(){return Yt})),n.d(r,"size",(function(){return Jt})),n.d(r,"pick",(function(){return Xt})),n.d(r,"omit",(function(){return en})),n.d(r,"first",(function(){return nn})),n.d(r,"head",(function(){return nn})),n.d(r,"take",(function(){return nn})),n.d(r,"initial",(function(){return tn})),n.d(r,"last",(function(){return on})),n.d(r,"rest",(function(){return rn})),n.d(r,"tail",(function(){return rn})),n.d(r,"drop",(function(){return rn})),n.d(r,"compact",(function(){return an})),n.d(r,"flatten",(function(){return un})),n.d(r,"without",(function(){return sn})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return dn})),n.d(r,"intersection",(function(){return fn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return pn})),n.d(r,"transpose",(function(){return pn})),n.d(r,"zip",(function(){return mn})),n.d(r,"object",(function(){return vn})),n.d(r,"range",(function(){return gn})),n.d(r,"chunk",(function(){return hn})),n.d(r,"mixin",(function(){return bn})),n.d(r,"default",(function(){return wn}));var i=n(14);function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function u(e){return null===e}function c(e){return void 0===e}function s(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function l(e){return!(!e||1!==e.nodeType)}function d(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var f=d("String"),p=d("Number"),m=d("Date"),v=d("RegExp"),g=d("Error"),h=d("Symbol"),y=d("ArrayBuffer"),b=d("Function"),w=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof w&&(b=function(e){return"function"==typeof e||!1});var _=b,x=d("Object"),C=i.s&&x(new DataView(new ArrayBuffer(8))),k="undefined"!=typeof Map&&x(new Map),I=d("DataView");var E=C?function(e){return null!=e&&_(e.getInt8)&&y(e.buffer)}:I,j=i.k||d("Array");function S(e,t){return null!=e&&i.i.call(e,t)}var O=d("Arguments");!function(){O(arguments)||(O=function(e){return S(e,"callee")})}();var T=O;function M(e){return!h(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function A(e){return p(e)&&Object(i.g)(e)}function L(e){return function(){return e}}function N(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function P(e){return function(t){return null==t?void 0:t[e]}}var G=P("byteLength"),z=N(G),F=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var B=i.r?function(e){return i.l?Object(i.l)(e)&&!E(e):z(e)&&F.test(i.t.call(e))}:L(!1),R=P("length");function q(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,o=_(r)&&r.prototype||i.c,a="constructor";for(S(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=i.n[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function D(e){if(!a(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)S(e,n)&&t.push(n);return i.h&&q(e,t),t}function Q(e){if(null==e)return!0;var t=R(e);return"number"==typeof t&&(j(e)||f(e)||T(e))?0===t:0===R(D(e))}function U(e,t){var n=D(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function V(e){return e instanceof V?e:this instanceof V?void(this._wrapped=e):new V(e)}function H(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,G(e))}V.VERSION=i.e,V.prototype.value=function(){return this._wrapped},V.prototype.valueOf=V.prototype.toJSON=V.prototype.value,V.prototype.toString=function(){return String(this._wrapped)};function W(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function e(t,n,r,o){t instanceof V&&(t=t._wrapped);n instanceof V&&(n=n._wrapped);var a=i.t.call(t);if(a!==i.t.call(n))return!1;if(C&&"[object Object]"==a&&E(t)){if(!E(n))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.d.valueOf.call(t)===i.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(H(t),H(n),r,o)}var u="[object Array]"===a;if(!u&&B(t)){if(G(t)!==G(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;u=!0}if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,s=n.constructor;if(c!==s&&!(_(c)&&c instanceof c&&_(s)&&s instanceof s)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];var l=(r=r||[]).length;for(;l--;)if(r[l]===t)return o[l]===n;if(r.push(t),o.push(n),u){if((l=t.length)!==n.length)return!1;for(;l--;)if(!W(t[l],n[l],r,o))return!1}else{var d,f=D(t);if(l=f.length,D(n).length!==l)return!1;for(;l--;)if(d=f[l],!S(n,d)||!W(t[d],n[d],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r)}function $(e,t){return W(e,t)}function K(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&q(e,t),t}function Y(e){var t=R(e);return function(n){if(null==n)return!1;var r=K(n);if(R(r))return!1;for(var i=0;i<t;i++)if(!_(n[e[i]]))return!1;return e!==te||!_(n[J])}}var J="forEach",Z=["clear","delete"],X=["get","has","set"],ee=Z.concat(J,X),te=Z.concat(X),ne=["add"].concat(Z,J,"has"),re=k?Y(ee):d("Map"),ie=k?Y(te):d("WeakMap"),oe=k?Y(ne):d("Set"),ae=d("WeakSet");function ue(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function se(e){for(var t={},n=D(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function le(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function de(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),u=a.length,c=0;c<u;c++){var s=a[c];t&&void 0!==n[s]||(n[s]=o[s])}return n}}var fe=de(K),pe=de(D),me=de(K,!0);function ve(e){if(!a(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function ge(e,t){var n=ve(e);return t&&pe(n,t),n}function he(e){return a(e)?j(e)?e.slice():fe({},e):e}function ye(e,t){return t(e),e}function be(e){return j(e)?e:[e]}function we(e){return V.toPath(e)}function _e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=_e(e,we(t));return c(r)?n:r}function Ce(e,t){for(var n=(t=we(t)).length,r=0;r<n;r++){var i=t[r];if(!S(e,i))return!1;e=e[i]}return!!n}function ke(e){return e}function Ie(e){return e=pe({},e),function(t){return U(t,e)}}function Ee(e){return e=we(e),function(t){return _e(t,e)}}function je(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Se(e,t,n){return null==e?ke:_(e)?je(e,t,n):a(e)&&!j(e)?Ie(e):Ee(e)}function Oe(e,t){return Se(e,t,1/0)}function Te(e,t,n){return V.iteratee!==Oe?V.iteratee(e,t):Se(e,t,n)}function Me(e,t,n){t=Te(t,n);for(var r=D(e),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(e[u],u,e)}return o}function Ae(){}function Le(e){return null==e?Ae:function(t){return xe(e,t)}}function Ne(e,t,n){var r=Array(Math.max(0,e));t=je(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}V.toPath=be,V.iteratee=Oe;var Ge=Date.now||function(){return(new Date).getTime()};function ze(e){var t=function(t){return e[t]},n="(?:"+D(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Be=ze(Fe),Re=ze(se(Fe)),qe=V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},De=/(.)^/,Qe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function Ve(e){return"\\"+Qe[e]}var He=/^\s*(\w|\$)+\s*$/;function We(e,t,n){!t&&n&&(t=n),t=me({},t,V.templateSettings);var r=RegExp([(t.escape||De).source,(t.interpolate||De).source,(t.evaluate||De).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,u){return o+=e.slice(i,u).replace(Ue,Ve),i=u+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,u=t.variable;if(u){if(!He.test(u))throw new Error("variable is not a bare identifier: "+u)}else o="with(obj||{}){\n"+o+"}\n",u="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(u,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return a.call(this,e,V)};return c.source="function("+u+"){\n"+o+"}",c}function $e(e,t,n){var r=(t=we(t)).length;if(!r)return _(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=_(o)?o.call(e):o}return e}var Ke=0;function Ye(e){var t=++Ke+"";return e?e+t:t}function Je(e){var t=V(e);return t._chain=!0,t}function Ze(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=ve(e.prototype),u=e.apply(o,i);return a(u)?u:o}var Xe=o((function(e,t){var n=Xe.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),u=0;u<o;u++)a[u]=t[u]===n?arguments[i++]:t[u];for(;i<arguments.length;)a.push(arguments[i++]);return Ze(e,r,this,this,a)};return r}));Xe.placeholder=V;var et=Xe,tt=o((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return Ze(e,r,t,this,n.concat(i))}));return r})),nt=N(R);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=R(e);o<a;o++){var u=e[o];if(nt(u)&&(j(u)||T(u)))if(t>1)rt(u,t-1,n,r),i=r.length;else for(var c=0,s=u.length;c<s;)r[i++]=u[c++];else n||(r[i++]=u)}return r}var it=o((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e}));function ot(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return S(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var at=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),ut=et(at,V,1);function ct(e,t,n){var r,i,o,a,u=0;n||(n={});var c=function(){u=!1===n.leading?0:Ge(),r=null,a=e.apply(i,o),r||(i=o=null)},s=function(){var s=Ge();u||!1!==n.leading||(u=s);var l=t-(s-u);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),u=s,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s}function st(e,t,n){var r,i,a,u,c,s=function(){var o=Ge()-i;t>o?r=setTimeout(s,t-o):(r=null,n||(u=e.apply(c,a)),r||(a=c=null))},l=o((function(o){return c=this,a=o,i=Ge(),r||(r=setTimeout(s,t),n&&(u=e.apply(c,a))),u}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function lt(e,t){return et(t,e)}function dt(e){return function(){return!e.apply(this,arguments)}}function ft(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function pt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function mt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var vt=et(mt,2);function gt(e,t,n){t=Te(t,n);for(var r,i=D(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function ht(e){return function(t,n,r){n=Te(n,r);for(var i=R(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var yt=ht(1),bt=ht(-1);function wt(e,t,n,r){for(var i=(n=Te(n,r,1))(t),o=0,a=R(e);o<a;){var u=Math.floor((o+a)/2);n(e[u])<i?o=u+1:a=u}return o}function _t(e,t,n){return function(r,o,a){var u=0,c=R(r);if("number"==typeof a)e>0?u=a>=0?a:Math.max(a+c,u):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(i.q.call(r,u,c),A))>=0?a+u:-1;for(a=e>0?u:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var xt=_t(1,yt,wt),Ct=_t(-1,bt);function kt(e,t,n){var r=(nt(e)?yt:gt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function It(e,t){return kt(e,Ie(t))}function Et(e,t,n){var r,i;if(t=je(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=D(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function jt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=t(e[u],u,e)}return o}function St(e){var t=function(t,n,r,i){var o=!nt(t)&&D(t),a=(o||t).length,u=e>0?0:a-1;for(i||(r=t[o?o[u]:u],u+=e);u>=0&&u<a;u+=e){var c=o?o[u]:u;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,je(n,i,4),r,o)}}var Ot=St(1),Tt=St(-1);function Mt(e,t,n){var r=[];return t=Te(t,n),Et(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function At(e,t,n){return Mt(e,dt(Te(t)),n)}function Lt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Nt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Pt(e,t,n,r){return nt(e)||(e=ue(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Gt=o((function(e,t,n){var r,i;return _(t)?i=t:(t=we(t),r=t.slice(0,-1),t=t[t.length-1]),jt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=_e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function zt(e,t){return jt(e,Ee(t))}function Ft(e,t){return Mt(e,Ie(t))}function Bt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r>o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function Rt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r<o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function qt(e,t,n){if(null==t||n)return nt(e)||(e=ue(e)),e[Pe(e.length-1)];var r=nt(e)?he(e):ue(e),i=R(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=Pe(a,o),c=r[a];r[a]=r[u],r[u]=c}return r.slice(0,t)}function Dt(e){return qt(e,1/0)}function Qt(e,t,n){var r=0;return t=Te(t,n),zt(jt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Ut(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Te(r,i),Et(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Vt=Ut((function(e,t,n){S(e,n)?e[n].push(t):e[n]=[t]})),Ht=Ut((function(e,t,n){e[n]=t})),Wt=Ut((function(e,t,n){S(e,n)?e[n]++:e[n]=1})),$t=Ut((function(e,t,n){e[n?0:1].push(t)}),!0),Kt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Yt(e){return e?j(e)?i.q.call(e):f(e)?e.match(Kt):nt(e)?jt(e,ke):ue(e):[]}function Jt(e){return null==e?0:nt(e)?e.length:D(e).length}function Zt(e,t,n){return t in n}var Xt=o((function(e,t){var n={},r=t[0];if(null==e)return n;_(r)?(t.length>1&&(r=je(r,t[1])),t=K(e)):(r=Zt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],u=e[a];r(u,a,e)&&(n[a]=u)}return n})),en=o((function(e,t){var n,r=t[0];return _(r)?(r=dt(r),t.length>1&&(n=t[1])):(t=jt(rt(t,!1,!1),String),r=function(e,n){return!Pt(t,n)}),Xt(e,r,n)}));function tn(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function nn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tn(e,e.length-t)}function rn(e,t,n){return i.q.call(e,null==t||n?1:t)}function on(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rn(e,Math.max(0,e.length-t))}function an(e){return Mt(e,Boolean)}function un(e,t){return rt(e,t,!1)}var cn=o((function(e,t){return t=rt(t,!0,!0),Mt(e,(function(e){return!Pt(t,e)}))})),sn=o((function(e,t){return cn(e,t)}));function ln(e,t,n,r){s(t)||(r=n,n=t,t=!1),null!=n&&(n=Te(n,r));for(var i=[],o=[],a=0,u=R(e);a<u;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Pt(o,l)||(o.push(l),i.push(c)):Pt(i,c)||i.push(c)}return i}var dn=o((function(e){return ln(rt(e,!0,!0))}));function fn(e){for(var t=[],n=arguments.length,r=0,i=R(e);r<i;r++){var o=e[r];if(!Pt(t,o)){var a;for(a=1;a<n&&Pt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function pn(e){for(var t=e&&Bt(e,R).length||0,n=Array(t),r=0;r<t;r++)n[r]=zt(e,r);return n}var mn=o(pn);function vn(e,t){for(var n={},r=0,i=R(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function gn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function hn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(i.q.call(e,r,r+=t));return n}function yn(e,t){return e._chain?V(t).chain():t}function bn(e){return Et(le(e),(function(t){var n=V[t]=e[t];V.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),yn(this,n.apply(V,e))}})),V}Et(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];V.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),yn(this,n)}})),Et(["concat","join","slice"],(function(e){var t=i.a[e];V.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),yn(this,e)}}));var wn=V,_n=bn(r);_n._=_n;var xn=_n},101:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},1010:function(e,t,n){"use strict";n.r(t);n(685),n(567),n(686),n(418),n(417),n(572);var r=n(404),i=n(100),o=n(4),a=n.n(o),u=n(5),c=n.n(u);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}jQuery((function(e){var t=jQuery("form.give-form"),n=e(document),r={forms:{}};e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("keyup","#give-first, #give-last, #give-email",(function(e){var t=e.target,n=t.parentElement.closest("form.give-form");if(n){var i=n.getAttribute("id");r.forms=l(l({},r.forms),{},c()({},i,l(l({},r.forms[i]),{},c()({},t.name,t.value))))}})),n.on("give_gateway_loaded",(function(){for(var e=0,t=Object.entries(r.forms);e<t.length;e++)for(var n=a()(t[e],2),i=n[0],o=n[1],u=0,c=Object.entries(o);u<c.length;u++){var s=a()(c[u],2),l=s[0],d=s[1],f=document.querySelector("form#".concat(i,' [name="').concat(l,'"]'));f&&(f.value=d)}})),n.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(t){var i="",o=t.states_label,a=r.find('input[name="card_state"], select[name="card_state"]'),u=r.find('input[name="card_city"]');void 0!==t.states_found&&!0===t.states_found?i=e(t.data):(i='<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),!1===r.hasClass("float-labels-enabled")?(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),u.attr("required",!0)):(u.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),u.removeAttr("required"))):(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),u.attr("required",!0)):(u.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),u.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(o),a.replaceWith(i),void 0!==t.show_field&&!0===t.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last"));var c=!!t.zip_require;r.find("input#card_zip").toggleClass("required",c).attr("required",c).attr("aria-required",c),r.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!c),n.trigger("give_checkout_billing_address_updated",[t,r.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),n.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(t)})),n.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),n.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))})),n.on("focus",".give-donation-amount .give-text-input",(function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),n.on("blur",".give-donation-amount .give-text-input",(function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),u=void 0!==r?r:e(this).val(),c=Give.form.fn.getInfo("decimal_separator",o),s=Give.form.fn.getMinimumAmount(o),l=Give.form.fn.getMaximumAmount(o),d=0===u?s:Give.fn.unFormatCurrency(u,c),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),u=d=Give.fn.unFormatCurrency(p.val(),c),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),e(this).val(f),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){e(this).remove()})),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&d<s?Give.notice.fn.renderNotice("bad_minimum",o):d>=s&&m.slideUp(300,(function(){e(this).remove()})),0===v.length&&d>l?Give.notice.fn.renderNotice("bad_maximum",o):d<=l&&v.slideUp(300,(function(){e(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,d,i])})),n.on("click touchend",".give-donation-level-btn",(function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click touchend",".give-radio-input-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("change",".give-select-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click",".give_terms_links",(function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1})),e('label[for^="give-radio-level"]').on("click",(function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),u=jQuery.payment.cardType(i.val()),c=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(c=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(c)):r.indexOf("card_cvc")>-1?(c=!jQuery.payment.validateCardCVC(o.val(),u),o.toggleError(c)):r.indexOf("card_expiry")>-1&&(c=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(c)),Give.form.fn.disable(t.parents("form"),c);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var s=n.find(".card-type");null===u?(s.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):s.removeClass().addClass("card-type "+u)}else if(r.indexOf("card_expiry")>-1){var l=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(l.month),n.find(".card-expiry-year").val(l.year)}}}))}));var d=n(19),f=n.n(d);function p(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}
2
  /*!
3
  * Give AJAX JS
4
  *
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.10.4
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
@@ -262,7 +262,7 @@ final class Give {
262
  private function setup_constants() {
263
  // Plugin version.
264
  if ( ! defined( 'GIVE_VERSION' ) ) {
265
- define( 'GIVE_VERSION', '2.10.4' );
266
  }
267
 
268
  // Plugin Root File.
@@ -492,7 +492,7 @@ final class Give {
492
  *
493
  * @return object|Give
494
  */
495
- function Give( $abstract = null ) {
496
  static $instance = null;
497
 
498
  if ( $instance === null ) {
@@ -508,4 +508,4 @@ function Give( $abstract = null ) {
508
 
509
  require __DIR__ . '/vendor/autoload.php';
510
 
511
- Give()->boot();
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.11.0
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
262
  private function setup_constants() {
263
  // Plugin version.
264
  if ( ! defined( 'GIVE_VERSION' ) ) {
265
+ define( 'GIVE_VERSION', '2.11.0' );
266
  }
267
 
268
  // Plugin Root File.
492
  *
493
  * @return object|Give
494
  */
495
+ function give( $abstract = null ) {
496
  static $instance = null;
497
 
498
  if ( $instance === null ) {
508
 
509
  require __DIR__ . '/vendor/autoload.php';
510
 
511
+ give()->boot();
includes/admin/admin-actions.php CHANGED
@@ -983,7 +983,8 @@ function give_get_user_roles() {
983
  * Ajax handle for donor address.
984
  *
985
  * @since 2.0
986
- * @return string
 
987
  */
988
  function __give_ajax_donor_manage_addresses() {
989
  // Bailout.
@@ -998,7 +999,7 @@ function __give_ajax_donor_manage_addresses() {
998
  );
999
  }
1000
 
1001
- $post = give_clean( wp_parse_args( $_POST ) );
1002
  $donorID = absint( $post['donorID'] );
1003
  $form_data = give_clean( wp_parse_args( $post['form'] ) );
1004
  $is_multi_address_type = ( 'billing' === $form_data['address-id'] || false !== strpos( $form_data['address-id'], '_' ) );
983
  * Ajax handle for donor address.
984
  *
985
  * @since 2.0
986
+ * @since 2.11.0 decode url before parsing and sanitizing url when set $post.
987
+ * @return void
988
  */
989
  function __give_ajax_donor_manage_addresses() {
990
  // Bailout.
999
  );
1000
  }
1001
 
1002
+ $post = give_clean( wp_parse_args( urldecode_deep( $_POST ) ) );
1003
  $donorID = absint( $post['donorID'] );
1004
  $form_data = give_clean( wp_parse_args( $post['form'] ) );
1005
  $is_multi_address_type = ( 'billing' === $form_data['address-id'] || false !== strpos( $form_data['address-id'], '_' ) );
includes/country-functions.php CHANGED
@@ -2109,6 +2109,8 @@ function give_get_indonesian_states_list() {
2109
  * Get Indian States
2110
  *
2111
  * @since 1.0
 
 
2112
  * @return array $states A list of states
2113
  */
2114
  function give_get_indian_states_list() {
@@ -2133,7 +2135,7 @@ function give_get_indian_states_list() {
2133
  'ML' => 'Meghalaya',
2134
  'MZ' => 'Mizoram',
2135
  'NL' => 'Nagaland',
2136
- 'OR' => 'Orissa',
2137
  'PB' => 'Punjab',
2138
  'RJ' => 'Rajasthan',
2139
  'SK' => 'Sikkim',
2109
  * Get Indian States
2110
  *
2111
  * @since 1.0
2112
+ * @since 2.11.0 Renamed Indian state of Orissa to Odisha (#5826)
2113
+ *
2114
  * @return array $states A list of states
2115
  */
2116
  function give_get_indian_states_list() {
2135
  'ML' => 'Meghalaya',
2136
  'MZ' => 'Mizoram',
2137
  'NL' => 'Nagaland',
2138
+ 'OR' => 'Odisha',
2139
  'PB' => 'Punjab',
2140
  'RJ' => 'Rajasthan',
2141
  'SK' => 'Sikkim',
includes/gateways/stripe/class-give-stripe.php CHANGED
@@ -54,6 +54,8 @@ if ( ! class_exists( 'Give_Stripe' ) ) {
54
  * This function is used to include the related Stripe core files.
55
  *
56
  * @since 2.5.0
 
 
57
  * @access public
58
  *
59
  * @return void
@@ -89,9 +91,6 @@ if ( ! class_exists( 'Give_Stripe' ) ) {
89
  version_compare( '1.9.3', $recurring_plugin_data['Version'], '>=' )
90
  ) {
91
 
92
- // Load Stripe SDK.
93
- give_stripe_load_stripe_sdk();
94
-
95
  // Include frontend files.
96
  $this->include_frontend_files();
97
 
@@ -120,9 +119,6 @@ if ( ! class_exists( 'Give_Stripe' ) ) {
120
  return;
121
  }
122
 
123
- // Load Stripe SDK.
124
- give_stripe_load_stripe_sdk();
125
-
126
  // Include frontend files.
127
  $this->include_frontend_files();
128
  }
54
  * This function is used to include the related Stripe core files.
55
  *
56
  * @since 2.5.0
57
+ * @since 2.11.0 Stripe sdk loading logic has been removed because
58
+ * Composer autoloader will load it when required.
59
  * @access public
60
  *
61
  * @return void
91
  version_compare( '1.9.3', $recurring_plugin_data['Version'], '>=' )
92
  ) {
93
 
 
 
 
94
  // Include frontend files.
95
  $this->include_frontend_files();
96
 
119
  return;
120
  }
121
 
 
 
 
122
  // Include frontend files.
123
  $this->include_frontend_files();
124
  }
includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php CHANGED
@@ -576,24 +576,6 @@ if ( ! class_exists( 'Give_Stripe_Admin_Settings' ) ) {
576
  */
577
  $settings = apply_filters( 'give_stripe_before_advanced_setting_fields', $settings );
578
 
579
- $settings[] = [
580
- 'name' => __( 'Stripe SDK Compatibility', 'give' ),
581
- 'desc' => sprintf(
582
- /* translators: 1. GiveWP Support URL */
583
- __( 'If you are using another plugin that uses Stripe to accept payments there is a chance that it may include the <a href="%1$s" target="_blank">Stripe SDK</a> (Software Development Kit) either through <a href="%2$s" target="_blank">Composer</a> or manually initalized. This can cause conflicts with GiveWP because WordPress does not have a dependency management system to prevent conflicts. To help resolve conflicts we have included two options to use Stripe alongside these other plugins. The recommended way is Composer, but if that is not working then we recommend manual initialization. If both options do not work please <a href="%3$s" target="_blank">contact support</a>.', 'give' ),
584
- esc_url_raw( 'https://github.com/stripe/stripe-php' ),
585
- esc_url_raw( 'http://getcomposer.org/' ),
586
- esc_url_raw( 'http://docs.givewp.com/settings-support' )
587
- ),
588
- 'id' => 'stripe_sdk_incompatibility',
589
- 'type' => 'radio_inline',
590
- 'options' => [
591
- 'composer' => __( 'Composer Autoloading', 'give' ),
592
- 'manual' => __( 'Manual Initialization', 'give' ),
593
- ],
594
- 'default' => 'composer',
595
- ];
596
-
597
  $settings[] = [
598
  'name' => __( 'Stripe JS Incompatibility', 'give' ),
599
  'desc' => __( 'If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing.', 'give' ),
@@ -895,7 +877,7 @@ if ( ! class_exists( 'Give_Stripe_Admin_Settings' ) ) {
895
  <!-- DESTRUCTIVE: Disconnect all Stripe accounts. -->
896
  <hr class="give-stripe-disconnect-all-divider" />
897
  <div class="give-stripe-disconnect-all">
898
- <h3><?php esc_html_e( 'Remove GiveWP as an Authorized Application for my Stripe account.', 'give' ); ?></h3>
899
  <p class="give-stripe-disconnect-all--description">
900
  <?php esc_html_e( 'Removing GiveWP as an Authorized Application for your Stripe account will remove the connection between the website you are disconnecting as well as any other sites that you have connected to GiveWP using the same Stripe account and connect method. Proceed with caution when disconnecting if you have multiple sites connected.', 'give' ); ?>
901
  </p>
576
  */
577
  $settings = apply_filters( 'give_stripe_before_advanced_setting_fields', $settings );
578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  $settings[] = [
580
  'name' => __( 'Stripe JS Incompatibility', 'give' ),
581
  'desc' => __( 'If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing.', 'give' ),
877
  <!-- DESTRUCTIVE: Disconnect all Stripe accounts. -->
878
  <hr class="give-stripe-disconnect-all-divider" />
879
  <div class="give-stripe-disconnect-all">
880
+ <h3><?php esc_html_e( 'Remove GiveWP as an Authorized Application for my Stripe account.', 'give' ); ?></h3>
881
  <p class="give-stripe-disconnect-all--description">
882
  <?php esc_html_e( 'Removing GiveWP as an Authorized Application for your Stripe account will remove the connection between the website you are disconnecting as well as any other sites that you have connected to GiveWP using the same Stripe account and connect method. Proceed with caution when disconnecting if you have multiple sites connected.', 'give' ); ?>
883
  </p>
includes/gateways/stripe/includes/class-give-stripe-customer.php CHANGED
@@ -394,26 +394,25 @@ class Give_Stripe_Customer {
394
  * This function is used to attach source to the customer, if not exists.
395
  *
396
  * @since 2.1
 
397
  * @access public
398
  *
399
  * @return void
400
  */
401
  public function attach_source() {
402
-
403
  if ( ! empty( $this->payment_method_id ) && ! empty( $this->customer_data ) ) {
404
-
405
- $card = '';
406
- $card_exists = false;
407
- $new_card = '';
408
- $all_sources = $this->customer_data->sources->all();
409
 
410
  // Fetch the new card or source object to match with customer attached card fingerprint.
411
  if ( give_stripe_is_source_type( $this->payment_method_id, 'tok' ) ) {
412
- $token_details = $this->stripe_gateway->get_token_details( $this->payment_method_id );
413
- $new_card = $token_details->card;
414
  } elseif ( give_stripe_is_source_type( $this->payment_method_id, 'src' ) ) {
415
- $source_details = $this->stripe_gateway->get_source_details( $this->payment_method_id );
416
- $new_card = $source_details->card;
417
  }
418
 
419
  /**
@@ -421,23 +420,17 @@ class Give_Stripe_Customer {
421
  *
422
  * @since 2.5.0
423
  */
424
- $new_card = apply_filters( 'give_stripe_get_new_card_details', $new_card, $this->payment_method_id, $this->stripe_gateway );
 
 
 
 
 
425
 
426
  // Check to ensure that new card is already attached with customer or not.
427
  if ( count( $all_sources->data ) > 0 ) {
428
  foreach ( $all_sources->data as $source_item ) {
429
-
430
- if (
431
- (
432
- isset( $source_item->card->fingerprint ) &&
433
- $source_item->card->fingerprint === $new_card->fingerprint
434
- ) ||
435
- (
436
- isset( $source_item->fingerprint ) &&
437
- $source_item->fingerprint === $new_card->fingerprint
438
- )
439
- ) {
440
-
441
  // Set the existing card as default source.
442
  $this->customer_data->default_source = $source_item->id;
443
  $this->customer_data->save();
@@ -452,30 +445,34 @@ class Give_Stripe_Customer {
452
  // Create the card, if none found above.
453
  if ( ! $card_exists ) {
454
  try {
455
-
456
- $card = $this->customer_data->sources->create(
457
- [
458
- 'source' => $this->payment_method_id,
459
- ]
460
- );
461
 
462
  $this->customer_data->default_source = $card->id;
463
  $this->customer_data->save();
464
-
465
  } catch ( \Stripe\Error\Base $e ) {
466
  Give_Stripe_Logger::log_error( $e, 'stripe' );
467
  } catch ( Exception $e ) {
468
  give_record_gateway_error(
469
  __( 'Stripe Error', 'give' ),
470
  sprintf(
471
- /* translators: %s Exception Message Body */
472
- __( 'The Stripe Gateway returned an error while creating the customer. Details: %s', 'give' ),
 
 
 
473
  $e->getMessage()
474
  )
475
  );
476
- give_set_error( 'stripe_error', __( 'An occurred while processing the donation with the gateway. Please try your donation again.', 'give' ) );
 
 
 
 
 
 
477
  give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) );
478
- return false;
 
479
  }
480
  }
481
 
@@ -483,8 +480,14 @@ class Give_Stripe_Customer {
483
  if ( ! empty( $card->id ) ) {
484
  $this->attached_payment_method = $card;
485
  } else {
486
- give_set_error( 'stripe_error', __( 'An error occurred while processing the donation. Please try again.', 'give' ) );
487
- give_record_gateway_error( __( 'Stripe Error', 'give' ), __( 'An error occurred retrieving or creating the ', 'give' ) );
 
 
 
 
 
 
488
  give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) );
489
  $this->attached_payment_method = false;
490
  }
@@ -632,4 +635,25 @@ class Give_Stripe_Customer {
632
  public function is_bank_account( $id ) {
633
  return give_stripe_is_source_type( $id, 'ba' );
634
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  }
394
  * This function is used to attach source to the customer, if not exists.
395
  *
396
  * @since 2.1
397
+ * @since 2.11.0 Use Give_Stripe_Customer::doesSourceFingerPrintMatch function to verify source finger print
398
  * @access public
399
  *
400
  * @return void
401
  */
402
  public function attach_source() {
 
403
  if ( ! empty( $this->payment_method_id ) && ! empty( $this->customer_data ) ) {
404
+ $card = '';
405
+ $card_exists = false;
406
+ $newSourcePaymentMethodDetail = '';
407
+ $all_sources = $this->customer_data->sources->all();
 
408
 
409
  // Fetch the new card or source object to match with customer attached card fingerprint.
410
  if ( give_stripe_is_source_type( $this->payment_method_id, 'tok' ) ) {
411
+ $token_details = $this->stripe_gateway->get_token_details( $this->payment_method_id );
412
+ $newSourcePaymentMethodDetail = $token_details->bank_account;
413
  } elseif ( give_stripe_is_source_type( $this->payment_method_id, 'src' ) ) {
414
+ $source_details = $this->stripe_gateway->get_source_details( $this->payment_method_id );
415
+ $newSourcePaymentMethodDetail = $source_details->card;
416
  }
417
 
418
  /**
420
  *
421
  * @since 2.5.0
422
  */
423
+ $newSourcePaymentMethodDetail = apply_filters(
424
+ 'give_stripe_get_new_card_details',
425
+ $newSourcePaymentMethodDetail,
426
+ $this->payment_method_id,
427
+ $this->stripe_gateway
428
+ );
429
 
430
  // Check to ensure that new card is already attached with customer or not.
431
  if ( count( $all_sources->data ) > 0 ) {
432
  foreach ( $all_sources->data as $source_item ) {
433
+ if ( $this->isSourceFingerPrintMatch( $source_item, $newSourcePaymentMethodDetail ) ) {
 
 
 
 
 
 
 
 
 
 
 
434
  // Set the existing card as default source.
435
  $this->customer_data->default_source = $source_item->id;
436
  $this->customer_data->save();
445
  // Create the card, if none found above.
446
  if ( ! $card_exists ) {
447
  try {
448
+ $card = $this->customer_data->sources->create( [ 'source' => $this->payment_method_id ] );
 
 
 
 
 
449
 
450
  $this->customer_data->default_source = $card->id;
451
  $this->customer_data->save();
 
452
  } catch ( \Stripe\Error\Base $e ) {
453
  Give_Stripe_Logger::log_error( $e, 'stripe' );
454
  } catch ( Exception $e ) {
455
  give_record_gateway_error(
456
  __( 'Stripe Error', 'give' ),
457
  sprintf(
458
+ /* translators: %s Exception Message Body */
459
+ __(
460
+ 'The Stripe Gateway returned an error while creating the customer. Details: %s',
461
+ 'give'
462
+ ),
463
  $e->getMessage()
464
  )
465
  );
466
+ give_set_error(
467
+ 'stripe_error',
468
+ __(
469
+ 'An occurred while processing the donation with the gateway. Please try your donation again.',
470
+ 'give'
471
+ )
472
+ );
473
  give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) );
474
+
475
+ return;
476
  }
477
  }
478
 
480
  if ( ! empty( $card->id ) ) {
481
  $this->attached_payment_method = $card;
482
  } else {
483
+ give_set_error(
484
+ 'stripe_error',
485
+ __( 'An error occurred while processing the donation. Please try again.', 'give' )
486
+ );
487
+ give_record_gateway_error(
488
+ __( 'Stripe Error', 'give' ),
489
+ __( 'An error occurred retrieving or creating the ', 'give' )
490
+ );
491
  give_send_back_to_checkout( '?payment-mode=' . give_clean( $_GET['payment-mode'] ) );
492
  $this->attached_payment_method = false;
493
  }
635
  public function is_bank_account( $id ) {
636
  return give_stripe_is_source_type( $id, 'ba' );
637
  }
638
+
639
+ /**
640
+ * @since 2.11.0
641
+ *
642
+ * @param stdClass $stripeSource
643
+ * @param stdClass $newStripeSource
644
+ */
645
+ private function isSourceFingerPrintMatch( $stripeSource, $newStripeSource ) {
646
+ if ( isset( $stripeSource->fingerprint ) ) {
647
+ return $stripeSource->fingerprint === $newStripeSource->fingerprint;
648
+ }
649
+
650
+ if (
651
+ property_exists( $stripeSource, 'card' ) &&
652
+ isset( $stripeSource->card->fingerprint )
653
+ ) {
654
+ return $stripeSource->card->fingerprint === $newStripeSource->fingerprint;
655
+ }
656
+
657
+ return false;
658
+ }
659
  }
includes/gateways/stripe/includes/class-give-stripe-webhooks.php CHANGED
@@ -43,7 +43,7 @@ if ( ! class_exists( 'Give_Stripe_Webhooks' ) ) {
43
 
44
  $this->stripe_gateway = new Give_Stripe_Gateway();
45
 
46
- add_action( 'init', array( $this, 'listen' ) );
47
  }
48
 
49
  /**
@@ -75,9 +75,6 @@ if ( ! class_exists( 'Give_Stripe_Webhooks' ) ) {
75
  $donation_id = ! empty( $metadata['Donation Post ID'] ) ? $metadata['Donation Post ID'] : 0;
76
  $form_id = give_get_payment_form_id( $donation_id );
77
 
78
- // Load Stripe SDK.
79
- give_stripe_load_stripe_sdk();
80
-
81
  // Set App Info, API Key, and API Version.
82
  give_stripe_set_app_info( $form_id );
83
 
43
 
44
  $this->stripe_gateway = new Give_Stripe_Gateway();
45
 
46
+ add_action( 'init', [ $this, 'listen' ] );
47
  }
48
 
49
  /**
75
  $donation_id = ! empty( $metadata['Donation Post ID'] ) ? $metadata['Donation Post ID'] : 0;
76
  $form_id = give_get_payment_form_id( $donation_id );
77
 
 
 
 
78
  // Set App Info, API Key, and API Version.
79
  give_stripe_set_app_info( $form_id );
80
 
includes/gateways/stripe/includes/give-stripe-helpers.php CHANGED
@@ -1079,25 +1079,6 @@ function give_stripe_get_checkout_type() {
1079
  return give_get_option( 'stripe_checkout_type', 'modal' );
1080
  }
1081
 
1082
- /**
1083
- * This function will help you load Stripe SDK based on the conditions.
1084
- *
1085
- * @since 2.5.5
1086
- *
1087
- * @return void
1088
- */
1089
- function give_stripe_load_stripe_sdk() {
1090
-
1091
- $stripe_sdk_compatibility = give_get_option( 'stripe_sdk_incompatibility', 'composer' );
1092
-
1093
- if ( 'composer' === $stripe_sdk_compatibility ) {
1094
- require_once GIVE_PLUGIN_DIR . 'vendor/autoload.php';
1095
- } elseif ( 'manual' === $stripe_sdk_compatibility ) {
1096
- require_once GIVE_PLUGIN_DIR . 'vendor/stripe/stripe-php/init.php';
1097
- }
1098
- }
1099
-
1100
-
1101
  /**
1102
  * This function will prepare metadata to send to Stripe.
1103
  *
1079
  return give_get_option( 'stripe_checkout_type', 'modal' );
1080
  }
1081
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1082
  /**
1083
  * This function will prepare metadata to send to Stripe.
1084
  *
languages/give.pot CHANGED
@@ -493,7 +493,7 @@ msgstr ""
493
  msgid "The add-on did not activate successfully."
494
  msgstr ""
495
 
496
- #: includes/class-give-scripts.php:239, includes/class-give-scripts.php:288, includes/forms/template.php:1558, includes/admin/donors/class-donor-table.php:605, includes/admin/donors/donors.php:504, includes/admin/donors/donors.php:743, includes/admin/donors/donors.php:1161, includes/admin/payments/view-payment-details.php:688, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:795
497
  msgid "Cancel"
498
  msgstr ""
499
 
@@ -937,7 +937,7 @@ msgstr ""
937
  msgid "Empty string is not allowed."
938
  msgstr ""
939
 
940
- #: includes/class-notices.php:515, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:885
941
  msgid "Click here"
942
  msgstr ""
943
 
@@ -973,7 +973,7 @@ msgstr ""
973
  msgid "Andorra"
974
  msgstr ""
975
 
976
- #: includes/country-functions.php:95, includes/country-functions.php:2376
977
  msgid "Angola"
978
  msgstr ""
979
 
@@ -985,7 +985,7 @@ msgstr ""
985
  msgid "Antarctica"
986
  msgstr ""
987
 
988
- #: includes/country-functions.php:98, includes/country-functions.php:2377
989
  msgid "Antigua and Barbuda"
990
  msgstr ""
991
 
@@ -997,7 +997,7 @@ msgstr ""
997
  msgid "Armenia"
998
  msgstr ""
999
 
1000
- #: includes/country-functions.php:101, includes/country-functions.php:2378
1001
  msgid "Aruba"
1002
  msgstr ""
1003
 
@@ -1013,7 +1013,7 @@ msgstr ""
1013
  msgid "Azerbaijan"
1014
  msgstr ""
1015
 
1016
- #: includes/country-functions.php:105, includes/country-functions.php:2379
1017
  msgid "Bahamas"
1018
  msgstr ""
1019
 
@@ -1037,11 +1037,11 @@ msgstr ""
1037
  msgid "Belgium"
1038
  msgstr ""
1039
 
1040
- #: includes/country-functions.php:111, includes/country-functions.php:2380
1041
  msgid "Belize"
1042
  msgstr ""
1043
 
1044
- #: includes/country-functions.php:112, includes/country-functions.php:2381
1045
  msgid "Benin"
1046
  msgstr ""
1047
 
@@ -1061,7 +1061,7 @@ msgstr ""
1061
  msgid "Bosnia and Herzegovina"
1062
  msgstr ""
1063
 
1064
- #: includes/country-functions.php:117, includes/country-functions.php:2382
1065
  msgid "Botswana"
1066
  msgstr ""
1067
 
@@ -1085,11 +1085,11 @@ msgstr ""
1085
  msgid "Bulgaria"
1086
  msgstr ""
1087
 
1088
- #: includes/country-functions.php:123, includes/country-functions.php:2383
1089
  msgid "Burkina Faso"
1090
  msgstr ""
1091
 
1092
- #: includes/country-functions.php:124, includes/country-functions.php:2384
1093
  msgid "Burundi"
1094
  msgstr ""
1095
 
@@ -1097,7 +1097,7 @@ msgstr ""
1097
  msgid "Cambodia"
1098
  msgstr ""
1099
 
1100
- #: includes/country-functions.php:126, includes/country-functions.php:2385
1101
  msgid "Cameroon"
1102
  msgstr ""
1103
 
@@ -1109,7 +1109,7 @@ msgstr ""
1109
  msgid "Cayman Islands"
1110
  msgstr ""
1111
 
1112
- #: includes/country-functions.php:129, includes/country-functions.php:2386
1113
  msgid "Central African Republic"
1114
  msgstr ""
1115
 
@@ -1137,19 +1137,19 @@ msgstr ""
1137
  msgid "Colombia"
1138
  msgstr ""
1139
 
1140
- #: includes/country-functions.php:136, includes/country-functions.php:2387
1141
  msgid "Comoros"
1142
  msgstr ""
1143
 
1144
- #: includes/country-functions.php:137, includes/country-functions.php:2388
1145
  msgid "Congo, Democratic People's Republic"
1146
  msgstr ""
1147
 
1148
- #: includes/country-functions.php:138, includes/country-functions.php:2389
1149
  msgid "Congo, Republic of"
1150
  msgstr ""
1151
 
1152
- #: includes/country-functions.php:139, includes/country-functions.php:2390
1153
  msgid "Cook Islands"
1154
  msgstr ""
1155
 
@@ -1157,7 +1157,7 @@ msgstr ""
1157
  msgid "Costa Rica"
1158
  msgstr ""
1159
 
1160
- #: includes/country-functions.php:141, includes/country-functions.php:2391
1161
  msgid "Cote d'Ivoire"
1162
  msgstr ""
1163
 
@@ -1181,11 +1181,11 @@ msgstr ""
1181
  msgid "Denmark"
1182
  msgstr ""
1183
 
1184
- #: includes/country-functions.php:147, includes/country-functions.php:2392
1185
  msgid "Djibouti"
1186
  msgstr ""
1187
 
1188
- #: includes/country-functions.php:148, includes/country-functions.php:2393
1189
  msgid "Dominica"
1190
  msgstr ""
1191
 
@@ -1205,7 +1205,7 @@ msgstr ""
1205
  msgid "Egypt"
1206
  msgstr ""
1207
 
1208
- #: includes/country-functions.php:153, includes/country-functions.php:2394
1209
  msgid "Equatorial Guinea"
1210
  msgstr ""
1211
 
@@ -1213,7 +1213,7 @@ msgstr ""
1213
  msgid "El Salvador"
1214
  msgstr ""
1215
 
1216
- #: includes/country-functions.php:155, includes/country-functions.php:2395
1217
  msgid "Eritrea"
1218
  msgstr ""
1219
 
@@ -1233,7 +1233,7 @@ msgstr ""
1233
  msgid "Faroe Islands"
1234
  msgstr ""
1235
 
1236
- #: includes/country-functions.php:160, includes/country-functions.php:2396
1237
  msgid "Fiji"
1238
  msgstr ""
1239
 
@@ -1253,7 +1253,7 @@ msgstr ""
1253
  msgid "French Polynesia"
1254
  msgstr ""
1255
 
1256
- #: includes/country-functions.php:165, includes/country-functions.php:2397
1257
  msgid "French Southern Territories"
1258
  msgstr ""
1259
 
@@ -1261,7 +1261,7 @@ msgstr ""
1261
  msgid "Gabon"
1262
  msgstr ""
1263
 
1264
- #: includes/country-functions.php:167, includes/country-functions.php:2398
1265
  msgid "Gambia"
1266
  msgstr ""
1267
 
@@ -1277,7 +1277,7 @@ msgstr ""
1277
  msgid "Greece"
1278
  msgstr ""
1279
 
1280
- #: includes/country-functions.php:171, includes/country-functions.php:2399
1281
  msgid "Ghana"
1282
  msgstr ""
1283
 
@@ -1289,7 +1289,7 @@ msgstr ""
1289
  msgid "Greenland"
1290
  msgstr ""
1291
 
1292
- #: includes/country-functions.php:174, includes/country-functions.php:2400
1293
  msgid "Grenada"
1294
  msgstr ""
1295
 
@@ -1309,7 +1309,7 @@ msgstr ""
1309
  msgid "Guernsey"
1310
  msgstr ""
1311
 
1312
- #: includes/country-functions.php:179, includes/country-functions.php:2401
1313
  msgid "Guinea"
1314
  msgstr ""
1315
 
@@ -1317,7 +1317,7 @@ msgstr ""
1317
  msgid "Guinea-Bissau"
1318
  msgstr ""
1319
 
1320
- #: includes/country-functions.php:181, includes/country-functions.php:2402
1321
  msgid "Guyana"
1322
  msgstr ""
1323
 
@@ -1337,7 +1337,7 @@ msgstr ""
1337
  msgid "Honduras"
1338
  msgstr ""
1339
 
1340
- #: includes/country-functions.php:186, includes/country-functions.php:2403
1341
  msgid "Hong Kong"
1342
  msgstr ""
1343
 
@@ -1365,7 +1365,7 @@ msgstr ""
1365
  msgid "Iraq"
1366
  msgstr ""
1367
 
1368
- #: includes/country-functions.php:193, includes/country-functions.php:2404
1369
  msgid "Ireland"
1370
  msgstr ""
1371
 
@@ -1381,7 +1381,7 @@ msgstr ""
1381
  msgid "Italy"
1382
  msgstr ""
1383
 
1384
- #: includes/country-functions.php:197, includes/country-functions.php:2405
1385
  msgid "Jamaica"
1386
  msgstr ""
1387
 
@@ -1401,11 +1401,11 @@ msgstr ""
1401
  msgid "Kazakhstan"
1402
  msgstr ""
1403
 
1404
- #: includes/country-functions.php:202, includes/country-functions.php:2406
1405
  msgid "Kenya"
1406
  msgstr ""
1407
 
1408
- #: includes/country-functions.php:203, includes/country-functions.php:2407
1409
  msgid "Kiribati"
1410
  msgstr ""
1411
 
@@ -1453,7 +1453,7 @@ msgstr ""
1453
  msgid "Luxembourg"
1454
  msgstr ""
1455
 
1456
- #: includes/country-functions.php:215, includes/country-functions.php:2408
1457
  msgid "Macau"
1458
  msgstr ""
1459
 
@@ -1465,7 +1465,7 @@ msgstr ""
1465
  msgid "Madagascar"
1466
  msgstr ""
1467
 
1468
- #: includes/country-functions.php:218, includes/country-functions.php:2409
1469
  msgid "Malawi"
1470
  msgstr ""
1471
 
@@ -1477,7 +1477,7 @@ msgstr ""
1477
  msgid "Maldives"
1478
  msgstr ""
1479
 
1480
- #: includes/country-functions.php:221, includes/country-functions.php:2410
1481
  msgid "Mali"
1482
  msgstr ""
1483
 
@@ -1493,11 +1493,11 @@ msgstr ""
1493
  msgid "Martinique"
1494
  msgstr ""
1495
 
1496
- #: includes/country-functions.php:225, includes/country-functions.php:2411
1497
  msgid "Mauritania"
1498
  msgstr ""
1499
 
1500
- #: includes/country-functions.php:226, includes/country-functions.php:2412
1501
  msgid "Mauritius"
1502
  msgstr ""
1503
 
@@ -1529,7 +1529,7 @@ msgstr ""
1529
  msgid "Montenegro"
1530
  msgstr ""
1531
 
1532
- #: includes/country-functions.php:234, includes/country-functions.php:2413
1533
  msgid "Montserrat"
1534
  msgstr ""
1535
 
@@ -1549,7 +1549,7 @@ msgstr ""
1549
  msgid "Namibia"
1550
  msgstr ""
1551
 
1552
- #: includes/country-functions.php:239, includes/country-functions.php:2414
1553
  msgid "Nauru"
1554
  msgstr ""
1555
 
@@ -1561,7 +1561,7 @@ msgstr ""
1561
  msgid "Netherlands"
1562
  msgstr ""
1563
 
1564
- #: includes/country-functions.php:242, includes/country-functions.php:2415
1565
  msgid "Netherlands Antilles"
1566
  msgstr ""
1567
 
@@ -1585,7 +1585,7 @@ msgstr ""
1585
  msgid "Nigeria"
1586
  msgstr ""
1587
 
1588
- #: includes/country-functions.php:248, includes/country-functions.php:2416
1589
  msgid "Niue"
1590
  msgstr ""
1591
 
@@ -1593,7 +1593,7 @@ msgstr ""
1593
  msgid "Norfolk Island"
1594
  msgstr ""
1595
 
1596
- #: includes/country-functions.php:250, includes/country-functions.php:2417
1597
  msgid "North Korea"
1598
  msgstr ""
1599
 
@@ -1621,7 +1621,7 @@ msgstr ""
1621
  msgid "Palestinian Territories"
1622
  msgstr ""
1623
 
1624
- #: includes/country-functions.php:257, includes/country-functions.php:2418
1625
  msgid "Panama"
1626
  msgstr ""
1627
 
@@ -1657,7 +1657,7 @@ msgstr ""
1657
  msgid "Puerto Rico"
1658
  msgstr ""
1659
 
1660
- #: includes/country-functions.php:266, includes/country-functions.php:2419
1661
  msgid "Qatar"
1662
  msgstr ""
1663
 
@@ -1673,7 +1673,7 @@ msgstr ""
1673
  msgid "Russian Federation"
1674
  msgstr ""
1675
 
1676
- #: includes/country-functions.php:270, includes/country-functions.php:2420
1677
  msgid "Rwanda"
1678
  msgstr ""
1679
 
@@ -1681,11 +1681,11 @@ msgstr ""
1681
  msgid "Saint Helena"
1682
  msgstr ""
1683
 
1684
- #: includes/country-functions.php:272, includes/country-functions.php:2421
1685
  msgid "Saint Kitts and Nevis"
1686
  msgstr ""
1687
 
1688
- #: includes/country-functions.php:273, includes/country-functions.php:2422
1689
  msgid "Saint Lucia"
1690
  msgstr ""
1691
 
@@ -1701,7 +1701,7 @@ msgstr ""
1701
  msgid "San Marino"
1702
  msgstr ""
1703
 
1704
- #: includes/country-functions.php:277, includes/country-functions.php:2423
1705
  msgid "Sao Tome and Principe"
1706
  msgstr ""
1707
 
@@ -1717,11 +1717,11 @@ msgstr ""
1717
  msgid "Serbia"
1718
  msgstr ""
1719
 
1720
- #: includes/country-functions.php:281, includes/country-functions.php:2424
1721
  msgid "Seychelles"
1722
  msgstr ""
1723
 
1724
- #: includes/country-functions.php:282, includes/country-functions.php:2425
1725
  msgid "Sierra Leone"
1726
  msgstr ""
1727
 
@@ -1737,15 +1737,15 @@ msgstr ""
1737
  msgid "Slovenia"
1738
  msgstr ""
1739
 
1740
- #: includes/country-functions.php:286, includes/country-functions.php:2426
1741
  msgid "Solomon Islands"
1742
  msgstr ""
1743
 
1744
- #: includes/country-functions.php:287, includes/country-functions.php:2427
1745
  msgid "Somalia"
1746
  msgstr ""
1747
 
1748
- #: includes/country-functions.php:288, includes/country-functions.php:2428
1749
  msgid "South Africa"
1750
  msgstr ""
1751
 
@@ -1769,7 +1769,7 @@ msgstr ""
1769
  msgid "Sudan"
1770
  msgstr ""
1771
 
1772
- #: includes/country-functions.php:294, includes/country-functions.php:2429
1773
  msgid "Suriname"
1774
  msgstr ""
1775
 
@@ -1789,7 +1789,7 @@ msgstr ""
1789
  msgid "Switzerland"
1790
  msgstr ""
1791
 
1792
- #: includes/country-functions.php:299, includes/country-functions.php:2430
1793
  msgid "Syrian Arab Republic"
1794
  msgstr ""
1795
 
@@ -1801,7 +1801,7 @@ msgstr ""
1801
  msgid "Tajikistan"
1802
  msgstr ""
1803
 
1804
- #: includes/country-functions.php:302, includes/country-functions.php:2431
1805
  msgid "Tanzania"
1806
  msgstr ""
1807
 
@@ -1809,11 +1809,11 @@ msgstr ""
1809
  msgid "Togo"
1810
  msgstr ""
1811
 
1812
- #: includes/country-functions.php:304, includes/country-functions.php:2432
1813
  msgid "Tokelau"
1814
  msgstr ""
1815
 
1816
- #: includes/country-functions.php:305, includes/country-functions.php:2433
1817
  msgid "Tonga"
1818
  msgstr ""
1819
 
@@ -1821,7 +1821,7 @@ msgstr ""
1821
  msgid "Thailand"
1822
  msgstr ""
1823
 
1824
- #: includes/country-functions.php:307, includes/country-functions.php:2434
1825
  msgid "Trinidad and Tobago"
1826
  msgstr ""
1827
 
@@ -1841,11 +1841,11 @@ msgstr ""
1841
  msgid "Turks and Caicos Islands"
1842
  msgstr ""
1843
 
1844
- #: includes/country-functions.php:312, includes/country-functions.php:2435
1845
  msgid "Tuvalu"
1846
  msgstr ""
1847
 
1848
- #: includes/country-functions.php:313, includes/country-functions.php:2436
1849
  msgid "Uganda"
1850
  msgstr ""
1851
 
@@ -1853,7 +1853,7 @@ msgstr ""
1853
  msgid "Ukraine"
1854
  msgstr ""
1855
 
1856
- #: includes/country-functions.php:315, includes/country-functions.php:2437
1857
  msgid "United Arab Emirates"
1858
  msgstr ""
1859
 
@@ -1869,7 +1869,7 @@ msgstr ""
1869
  msgid "Uzbekistan"
1870
  msgstr ""
1871
 
1872
- #: includes/country-functions.php:319, includes/country-functions.php:2438
1873
  msgid "Vanuatu"
1874
  msgstr ""
1875
 
@@ -1901,7 +1901,7 @@ msgstr ""
1901
  msgid "Western Samoa"
1902
  msgstr ""
1903
 
1904
- #: includes/country-functions.php:327, includes/country-functions.php:2439
1905
  msgid "Yemen"
1906
  msgstr ""
1907
 
@@ -1913,7 +1913,7 @@ msgstr ""
1913
  msgid "Zambia"
1914
  msgstr ""
1915
 
1916
- #: includes/country-functions.php:330, includes/country-functions.php:2440
1917
  msgid "Zimbabwe"
1918
  msgstr ""
1919
 
@@ -4589,7 +4589,7 @@ msgstr ""
4589
  msgid "Chubut"
4590
  msgstr ""
4591
 
4592
- #: includes/country-functions.php:1738, includes/country-functions.php:2328
4593
  msgid "C&oacute;rdoba"
4594
  msgstr ""
4595
 
@@ -4613,7 +4613,7 @@ msgstr ""
4613
  msgid "La Pampa"
4614
  msgstr ""
4615
 
4616
- #: includes/country-functions.php:1744, includes/country-functions.php:2337
4617
  msgid "La Rioja"
4618
  msgstr ""
4619
 
@@ -4713,203 +4713,203 @@ msgstr ""
4713
  msgid "Yukon"
4714
  msgstr ""
4715
 
4716
- #: includes/country-functions.php:2311
4717
  msgid "A Coru&ntilde;a"
4718
  msgstr ""
4719
 
4720
- #: includes/country-functions.php:2312
4721
  msgid "Álava"
4722
  msgstr ""
4723
 
4724
- #: includes/country-functions.php:2313
4725
  msgid "Albacete"
4726
  msgstr ""
4727
 
4728
- #: includes/country-functions.php:2314
4729
  msgid "Alicante"
4730
  msgstr ""
4731
 
4732
- #: includes/country-functions.php:2315
4733
  msgid "Almer&iacute;a"
4734
  msgstr ""
4735
 
4736
- #: includes/country-functions.php:2316
4737
  msgid "Asturias"
4738
  msgstr ""
4739
 
4740
- #: includes/country-functions.php:2317
4741
  msgid "&Aacute;vila"
4742
  msgstr ""
4743
 
4744
- #: includes/country-functions.php:2318
4745
  msgid "Badajoz"
4746
  msgstr ""
4747
 
4748
- #: includes/country-functions.php:2319
4749
  msgid "Baleares"
4750
  msgstr ""
4751
 
4752
- #: includes/country-functions.php:2320
4753
  msgid "Barcelona"
4754
  msgstr ""
4755
 
4756
- #: includes/country-functions.php:2321
4757
  msgid "Burgos"
4758
  msgstr ""
4759
 
4760
- #: includes/country-functions.php:2322
4761
  msgid "C&aacute;ceres"
4762
  msgstr ""
4763
 
4764
- #: includes/country-functions.php:2323
4765
  msgid "C&aacute;diz"
4766
  msgstr ""
4767
 
4768
- #: includes/country-functions.php:2324
4769
  msgid "Cantabria"
4770
  msgstr ""
4771
 
4772
- #: includes/country-functions.php:2325
4773
  msgid "Castell&oacute;n"
4774
  msgstr ""
4775
 
4776
- #: includes/country-functions.php:2326
4777
  msgid "Ceuta"
4778
  msgstr ""
4779
 
4780
- #: includes/country-functions.php:2327
4781
  msgid "Ciudad Real"
4782
  msgstr ""
4783
 
4784
- #: includes/country-functions.php:2329
4785
  msgid "Cuenca"
4786
  msgstr ""
4787
 
4788
- #: includes/country-functions.php:2330
4789
  msgid "Girona"
4790
  msgstr ""
4791
 
4792
- #: includes/country-functions.php:2331
4793
  msgid "Granada"
4794
  msgstr ""
4795
 
4796
- #: includes/country-functions.php:2332
4797
  msgid "Guadalajara"
4798
  msgstr ""
4799
 
4800
- #: includes/country-functions.php:2333
4801
  msgid "Gipuzkoa"
4802
  msgstr ""
4803
 
4804
- #: includes/country-functions.php:2334
4805
  msgid "Huelva"
4806
  msgstr ""
4807
 
4808
- #: includes/country-functions.php:2335
4809
  msgid "Huesca"
4810
  msgstr ""
4811
 
4812
- #: includes/country-functions.php:2336
4813
  msgid "Ja&eacute;n"
4814
  msgstr ""
4815
 
4816
- #: includes/country-functions.php:2338
4817
  msgid "Las Palmas"
4818
  msgstr ""
4819
 
4820
- #: includes/country-functions.php:2339
4821
  msgid "Le&oacute;n"
4822
  msgstr ""
4823
 
4824
- #: includes/country-functions.php:2340
4825
  msgid "Lleida"
4826
  msgstr ""
4827
 
4828
- #: includes/country-functions.php:2341
4829
  msgid "Lugo"
4830
  msgstr ""
4831
 
4832
- #: includes/country-functions.php:2342
4833
  msgid "Madrid"
4834
  msgstr ""
4835
 
4836
- #: includes/country-functions.php:2343
4837
  msgid "M&aacute;laga"
4838
  msgstr ""
4839
 
4840
- #: includes/country-functions.php:2344
4841
  msgid "Melilla"
4842
  msgstr ""
4843
 
4844
- #: includes/country-functions.php:2345
4845
  msgid "Murcia"
4846
  msgstr ""
4847
 
4848
- #: includes/country-functions.php:2346
4849
  msgid "Navarra"
4850
  msgstr ""
4851
 
4852
- #: includes/country-functions.php:2347
4853
  msgid "Ourense"
4854
  msgstr ""
4855
 
4856
- #: includes/country-functions.php:2348
4857
  msgid "Palencia"
4858
  msgstr ""
4859
 
4860
- #: includes/country-functions.php:2349
4861
  msgid "Pontevedra"
4862
  msgstr ""
4863
 
4864
- #: includes/country-functions.php:2350
4865
  msgid "Salamanca"
4866
  msgstr ""
4867
 
4868
- #: includes/country-functions.php:2351
4869
  msgid "Santa Cruz de Tenerife"
4870
  msgstr ""
4871
 
4872
- #: includes/country-functions.php:2352
4873
  msgid "Segovia"
4874
  msgstr ""
4875
 
4876
- #: includes/country-functions.php:2353
4877
  msgid "Sevilla"
4878
  msgstr ""
4879
 
4880
- #: includes/country-functions.php:2354
4881
  msgid "Soria"
4882
  msgstr ""
4883
 
4884
- #: includes/country-functions.php:2355
4885
  msgid "Tarragona"
4886
  msgstr ""
4887
 
4888
- #: includes/country-functions.php:2356
4889
  msgid "Teruel"
4890
  msgstr ""
4891
 
4892
- #: includes/country-functions.php:2357
4893
  msgid "Toledo"
4894
  msgstr ""
4895
 
4896
- #: includes/country-functions.php:2358
4897
  msgid "Valencia"
4898
  msgstr ""
4899
 
4900
- #: includes/country-functions.php:2359
4901
  msgid "Valladolid"
4902
  msgstr ""
4903
 
4904
- #: includes/country-functions.php:2360
4905
  msgid "Bizkaia"
4906
  msgstr ""
4907
 
4908
- #: includes/country-functions.php:2361
4909
  msgid "Zamora"
4910
  msgstr ""
4911
 
4912
- #: includes/country-functions.php:2362
4913
  msgid "Zaragoza"
4914
  msgstr ""
4915
 
@@ -6151,7 +6151,7 @@ msgstr ""
6151
  msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
6152
  msgstr ""
6153
 
6154
- #: includes/shortcodes.php:595, includes/forms/template.php:689, includes/forms/template.php:719, includes/forms/template.php:1937, includes/forms/widget.php:172, includes/gateways/stripe/includes/give-stripe-scripts.php:54, includes/gateways/stripe/includes/payment-methods/class-give-stripe-checkout.php:556, src/Form/Template.php:230, src/Form/Template.php:240, src/Onboarding/DefaultFormFactory.php:39, src/Onboarding/DefaultFormFactory.php:43, src/Onboarding/DefaultFormFactory.php:119, src/Form/Template/Options.php:56, src/Form/Template/Options.php:58, src/Form/Template/Options.php:131, src/Views/Form/Templates/Sequoia/Actions.php:214, src/Views/Form/Templates/Sequoia/Actions.php:259, src/Views/Form/Templates/Sequoia/optionConfig.php:68, src/Views/Form/Templates/Sequoia/optionConfig.php:70, src/Views/Form/Templates/Sequoia/Sequoia.php:67
6155
  msgid "Donate Now"
6156
  msgstr ""
6157
 
@@ -6382,61 +6382,61 @@ msgstr ""
6382
  msgid "View Donor Information"
6383
  msgstr ""
6384
 
6385
- #: includes/admin/admin-actions.php:1024
6386
  msgid "Error: Security issue."
6387
  msgstr ""
6388
 
6389
- #: includes/admin/admin-actions.php:1058
6390
  msgid "Error: Unable to save the address. Please check if address already exist."
6391
  msgstr ""
6392
 
6393
- #: includes/admin/admin-actions.php:1087
6394
  msgid "Successfully added a new address to the donor."
6395
  msgstr ""
6396
 
6397
- #: includes/admin/admin-actions.php:1103
6398
  msgid "Error: Unable to delete address."
6399
  msgstr ""
6400
 
6401
- #: includes/admin/admin-actions.php:1111
6402
  msgid "Successfully removed a address of donor."
6403
  msgstr ""
6404
 
6405
- #: includes/admin/admin-actions.php:1123
6406
  msgid "Error: Unable to update address. Please check if address already exist."
6407
  msgstr ""
6408
 
6409
- #: includes/admin/admin-actions.php:1141
6410
  msgid "Successfully updated a address of donor"
6411
  msgstr ""
6412
 
6413
- #: includes/admin/admin-actions.php:1162, includes/admin/payments/view-payment-details.php:734, src/Receipt/DonationReceipt.php:148
6414
  msgid "Billing Address"
6415
  msgstr ""
6416
 
6417
- #: includes/admin/admin-actions.php:1179
6418
  msgid "Personal Address"
6419
  msgstr ""
6420
 
6421
- #: includes/admin/admin-actions.php:1313
6422
  msgid "An error occurred while flushing the cache."
6423
  msgstr ""
6424
 
6425
- #: includes/admin/admin-actions.php:1307
6426
  msgid "Cache flushed successfully."
6427
  msgstr ""
6428
 
6429
- #: includes/admin/admin-actions.php:1411
6430
  msgid "Your GiveWP add-on is not receiving critical updates and new features because you have %1$s license key. Please <a href=\"%2$s\" title=\"%3$s\">activate your license</a> to receive updates and <a href=\"%4$s\" target=\"_blank\" title=\"%5$s\">priority support</a>"
6431
  msgid_plural "Your GiveWP add-ons are not receiving critical updates and new features because you have %1$s license keys. Please <a href=\"%2$s\" title=\"%3$s\">activate your license</a> to receive updates and <a href=\"%4$s\" target=\"_blank\" title=\"%5$s\">priority support</a>"
6432
  msgstr[0] ""
6433
  msgstr[1] ""
6434
 
6435
- #: includes/admin/admin-actions.php:1419, includes/admin/settings/class-settings-license.php:114, includes/admin/settings/class-settings-license.php:125, includes/admin/settings/class-settings-license.php:127
6436
  msgid "Activate License"
6437
  msgstr ""
6438
 
6439
- #: includes/admin/admin-actions.php:1421
6440
  msgid "Priority Support"
6441
  msgstr ""
6442
 
@@ -6539,7 +6539,7 @@ msgstr ""
6539
  msgid "File"
6540
  msgstr ""
6541
 
6542
- #: includes/admin/class-admin-settings.php:816, includes/admin/give-metabox-functions.php:1044, src/Views/Form/Templates/Sequoia/optionConfig.php:51, src/Views/Form/Templates/Sequoia/optionConfig.php:152
6543
  msgid "Image"
6544
  msgstr ""
6545
 
@@ -7616,7 +7616,7 @@ msgstr ""
7616
  msgid "Display a GiveWP Donation Form in your theme's widget powered sidebar."
7617
  msgstr ""
7618
 
7619
- #: includes/forms/widget.php:170, includes/forms/widget.php:177, src/Onboarding/DefaultFormFactory.php:124, src/Views/Form/Templates/Sequoia/Actions.php:283, src/Views/Form/Templates/Sequoia/optionConfig.php:103, src/Views/Form/Templates/Sequoia/optionConfig.php:105, src/Views/Form/Templates/Sequoia/Sequoia.php:69
7620
  msgid "Continue"
7621
  msgstr ""
7622
 
@@ -7688,11 +7688,11 @@ msgstr ""
7688
  msgid "Global Option"
7689
  msgstr ""
7690
 
7691
- #: includes/forms/widget.php:246, includes/gateways/offline-donations.php:298, includes/admin/emails/class-email-setting-field.php:166, includes/admin/forms/class-metabox-form-data.php:171, includes/admin/forms/class-metabox-form-data.php:364, includes/admin/forms/class-metabox-form-data.php:376, includes/admin/forms/class-metabox-form-data.php:387, includes/admin/forms/class-metabox-form-data.php:436, includes/admin/forms/class-metabox-form-data.php:503, includes/admin/settings/class-settings-advanced.php:77, includes/admin/settings/class-settings-advanced.php:109, includes/admin/settings/class-settings-advanced.php:131, includes/admin/settings/class-settings-advanced.php:158, includes/admin/settings/class-settings-advanced.php:180, includes/admin/settings/class-settings-advanced.php:218, includes/admin/settings/class-settings-advanced.php:266, includes/admin/settings/class-settings-display.php:97, includes/admin/settings/class-settings-display.php:108, includes/admin/settings/class-settings-display.php:139, includes/admin/settings/class-settings-display.php:161, includes/admin/settings/class-settings-display.php:172, includes/admin/settings/class-settings-display.php:183, includes/admin/settings/class-settings-display.php:202, includes/admin/settings/class-settings-display.php:233, includes/admin/settings/class-settings-display.php:244, includes/admin/settings/class-settings-display.php:275, includes/admin/settings/class-settings-gateways.php:68, includes/admin/settings/class-settings-gateways.php:114, includes/admin/settings/class-settings-gateways.php:305, includes/admin/settings/class-settings-general.php:93, includes/admin/settings/class-settings-general.php:104, includes/admin/settings/class-settings-general.php:379, includes/admin/tools/import/class-give-import-donations.php:946, includes/admin/tools/import/class-give-import-donations.php:957, includes/admin/tools/import/class-give-import-donations.php:968, includes/admin/tools/views/html-admin-page-system-info.php:486, includes/admin/tools/views/html-admin-page-system-info.php:574, includes/admin/tools/views/html-admin-page-system-info.php:611, includes/admin/tools/views/html-admin-page-system-info.php:689, includes/admin/tools/views/html-admin-page-system-info.php:726, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:396, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:424, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:467, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:495, src/Tracking/AdminSettings.php:41, src/DonorDashboards/Admin/Settings.php:97, src/Form/Template/Options.php:155, src/Form/Template/Options.php:178, src/PaymentGateways/PayPalStandard/PayPalStandard.php:69, src/PaymentGateways/PayPalStandard/PayPalStandard.php:80, src/Views/Form/Templates/Sequoia/optionConfig.php:24, src/Views/Form/Templates/Sequoia/optionConfig.php:182
7692
  msgid "Enabled"
7693
  msgstr ""
7694
 
7695
- #: includes/forms/widget.php:247, includes/gateways/offline-donations.php:299, includes/admin/emails/class-email-setting-field.php:167, includes/admin/emails/class-email-setting-field.php:177, includes/admin/forms/class-metabox-form-data.php:172, includes/admin/forms/class-metabox-form-data.php:327, includes/admin/forms/class-metabox-form-data.php:352, includes/admin/forms/class-metabox-form-data.php:365, includes/admin/forms/class-metabox-form-data.php:377, includes/admin/forms/class-metabox-form-data.php:388, includes/admin/forms/class-metabox-form-data.php:437, includes/admin/forms/class-metabox-form-data.php:504, includes/admin/settings/class-settings-advanced.php:78, includes/admin/settings/class-settings-advanced.php:110, includes/admin/settings/class-settings-advanced.php:132, includes/admin/settings/class-settings-advanced.php:159, includes/admin/settings/class-settings-advanced.php:181, includes/admin/settings/class-settings-advanced.php:219, includes/admin/settings/class-settings-advanced.php:267, includes/admin/settings/class-settings-display.php:62, includes/admin/settings/class-settings-display.php:85, includes/admin/settings/class-settings-display.php:98, includes/admin/settings/class-settings-display.php:109, includes/admin/settings/class-settings-display.php:140, includes/admin/settings/class-settings-display.php:162, includes/admin/settings/class-settings-display.php:173, includes/admin/settings/class-settings-display.php:184, includes/admin/settings/class-settings-display.php:203, includes/admin/settings/class-settings-display.php:234, includes/admin/settings/class-settings-display.php:245, includes/admin/settings/class-settings-display.php:276, includes/admin/settings/class-settings-gateways.php:69, includes/admin/settings/class-settings-gateways.php:115, includes/admin/settings/class-settings-general.php:94, includes/admin/settings/class-settings-general.php:105, includes/admin/settings/class-settings-general.php:380, includes/admin/tools/import/class-give-import-donations.php:947, includes/admin/tools/import/class-give-import-donations.php:958, includes/admin/tools/import/class-give-import-donations.php:969, includes/admin/tools/views/html-admin-page-system-info.php:486, includes/admin/tools/views/html-admin-page-system-info.php:574, includes/admin/tools/views/html-admin-page-system-info.php:611, includes/admin/tools/views/html-admin-page-system-info.php:689, includes/admin/tools/views/html-admin-page-system-info.php:726, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:397, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:425, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:468, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:496, src/Tracking/AdminSettings.php:42, src/DonorDashboards/Admin/Settings.php:98, src/Form/Template/Options.php:156, src/Form/Template/Options.php:179, src/PaymentGateways/PayPalStandard/PayPalStandard.php:70, src/PaymentGateways/PayPalStandard/PayPalStandard.php:81, src/Views/Form/Templates/Sequoia/optionConfig.php:25, src/Views/Form/Templates/Sequoia/optionConfig.php:183
7696
  msgid "Disabled"
7697
  msgstr ""
7698
 
@@ -8113,7 +8113,7 @@ msgstr ""
8113
  msgid "Delete Donor"
8114
  msgstr ""
8115
 
8116
- #: includes/admin/donors/donors.php:74, includes/admin/emails/class-email-notification-table.php:203, includes/admin/emails/class-email-notification-table.php:237, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:789
8117
  msgid "Edit"
8118
  msgstr ""
8119
 
@@ -10877,35 +10877,35 @@ msgstr ""
10877
  msgid "Payment is pending for unknown reasons. Contact PayPal support for assistance."
10878
  msgstr ""
10879
 
10880
- #: includes/gateways/stripe/class-give-stripe.php:108
10881
  msgid "<strong>Action Needed:</strong> Please update the Recurring Donations add-on to version <strong>1.9.4+</strong> in order to be compatible with GiveWP <strong>2.5.5+</strong>. If you are experiencing any issues please rollback GiveWP to 2.5.4 or below using the <a href=\"%1$s\" target=\"_blank\">WP Rollback</a> plugin and <a href=\"%2$s\" target=\"_blank\">contact support</a> for prompt assistance."
10882
  msgstr ""
10883
 
10884
- #: includes/gateways/stripe/class-give-stripe.php:199
10885
  msgid "Stripe - Credit Card"
10886
  msgstr ""
10887
 
10888
- #: includes/gateways/stripe/class-give-stripe.php:200, includes/gateways/stripe/class-give-stripe.php:206, src/PaymentGateways/PayPalCommerce/PayPalCommerce.php:37
10889
  msgid "Credit Card"
10890
  msgstr ""
10891
 
10892
- #: includes/gateways/stripe/class-give-stripe.php:205
10893
  msgid "Stripe - Checkout"
10894
  msgstr ""
10895
 
10896
- #: includes/gateways/stripe/class-give-stripe.php:211
10897
  msgid "Stripe - SEPA Direct Debit"
10898
  msgstr ""
10899
 
10900
- #: includes/gateways/stripe/class-give-stripe.php:212, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:116
10901
  msgid "SEPA Direct Debit"
10902
  msgstr ""
10903
 
10904
- #: includes/gateways/stripe/class-give-stripe.php:217
10905
  msgid "Stripe - BECS Direct Debit"
10906
  msgstr ""
10907
 
10908
- #: includes/gateways/stripe/class-give-stripe.php:218, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:117
10909
  msgid "BECS Direct Debit"
10910
  msgstr ""
10911
 
@@ -12458,7 +12458,7 @@ msgid_plural "There are %1$d GiveWP addons that need to be updated. <a href=\"%2
12458
  msgstr[0] ""
12459
  msgstr[1] ""
12460
 
12461
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:62, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:102, includes/gateways/stripe/includes/class-give-stripe-customer.php:373, includes/gateways/stripe/includes/class-give-stripe-customer.php:469, includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:180, includes/gateways/stripe/includes/class-give-stripe-gateway.php:315, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389, includes/gateways/stripe/includes/class-give-stripe-gateway.php:468, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:170, includes/gateways/stripe/includes/give-stripe-helpers.php:570, includes/gateways/stripe/includes/give-stripe-helpers.php:666, includes/gateways/stripe/includes/give-stripe-helpers.php:831, includes/gateways/stripe/includes/admin/admin-actions.php:258
12462
  msgid "Stripe Error"
12463
  msgstr ""
12464
 
@@ -12467,7 +12467,7 @@ msgstr ""
12467
  msgid "The Stripe Gateway returned an error while creating the Checkout Session. Details: %s"
12468
  msgstr ""
12469
 
12470
- #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:69, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:109, includes/gateways/stripe/includes/class-give-stripe-customer.php:476
12471
  msgid "An occurred while processing the donation with the gateway. Please try your donation again."
12472
  msgstr ""
12473
 
@@ -12502,15 +12502,15 @@ msgid "The Stripe Gateway returned an error while creating the customer. Details
12502
  msgstr ""
12503
 
12504
  #. translators: %s Exception Message Body
12505
- #: includes/gateways/stripe/includes/class-give-stripe-customer.php:472
12506
  msgid "The Stripe Gateway returned an error while creating the customer. Details: %s"
12507
  msgstr ""
12508
 
12509
- #: includes/gateways/stripe/includes/class-give-stripe-customer.php:486, includes/gateways/stripe/includes/class-give-stripe-customer.php:567, includes/gateways/stripe/includes/class-give-stripe-gateway.php:187, includes/gateways/stripe/includes/class-give-stripe-gateway.php:242, includes/gateways/stripe/includes/class-give-stripe-gateway.php:282, includes/gateways/stripe/includes/class-give-stripe-gateway.php:322, includes/gateways/stripe/includes/class-give-stripe-gateway.php:388, includes/gateways/stripe/includes/give-stripe-helpers.php:673
12510
  msgid "An error occurred while processing the donation. Please try again."
12511
  msgstr ""
12512
 
12513
- #: includes/gateways/stripe/includes/class-give-stripe-customer.php:487, includes/gateways/stripe/includes/class-give-stripe-customer.php:568, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389
12514
  msgid "An error occurred retrieving or creating the "
12515
  msgstr ""
12516
 
@@ -12713,36 +12713,36 @@ msgid "An occurred while fetching the list of payment methods of the customer. P
12713
  msgstr ""
12714
 
12715
  #. translators: 1. Processing result.
12716
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:91
12717
  msgid "Processed event: %s"
12718
  msgstr ""
12719
 
12720
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:96
12721
  msgid "Stripe - Webhook Received"
12722
  msgstr ""
12723
 
12724
  #. translators: 1. Event ID 2. Event Type 3. Message
12725
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:99
12726
  msgid "Webhook received with ID %1$s and TYPE %2$s which processed and returned a message %3$s."
12727
  msgstr ""
12728
 
12729
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:87
12730
  msgid "Something went wrong with processing the payment gateway event."
12731
  msgstr ""
12732
 
12733
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:170
12734
  msgid "An error occurred while processing a webhook."
12735
  msgstr ""
12736
 
12737
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:197, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:230
12738
  msgid "Charge succeeded in Stripe."
12739
  msgstr ""
12740
 
12741
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:261
12742
  msgid "Charge failed in Stripe."
12743
  msgstr ""
12744
 
12745
- #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:293
12746
  msgid "Charge refunded in Stripe."
12747
  msgstr ""
12748
 
@@ -12777,19 +12777,19 @@ msgstr ""
12777
  msgid "The Stripe Gateway returned an error while processing the donation."
12778
  msgstr ""
12779
 
12780
- #: includes/gateways/stripe/includes/give-stripe-helpers.php:1191
12781
  msgid "By providing your IBAN and confirming this payment, you are authorizing %1$s and Stripe, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited."
12782
  msgstr ""
12783
 
12784
- #: includes/gateways/stripe/includes/give-stripe-helpers.php:1198
12785
  msgid "By providing your bank account details and confirming this payment, you agree to this Direct Debit Request and the <a href=\"%1$s\" target=\"_blank\">Direct Debit Request service agreement</a>, and authorize Stripe Payments Australia Pty Ltd ACN 160 180 343 Direct Debit User ID number 507156 (“Stripe”) to debit your account through the Bulk Electronic Clearing System (BECS) on behalf of %2$s (the “Merchant”) for any amounts separately communicated to you by the Merchant. You certify that you are either an account holder or an authorized signatory on the account listed above."
12786
  msgstr ""
12787
 
12788
- #: includes/gateways/stripe/includes/give-stripe-helpers.php:1535
12789
  msgid "Give - Stripe Error"
12790
  msgstr ""
12791
 
12792
- #: includes/gateways/stripe/includes/give-stripe-helpers.php:1538
12793
  msgid "Unable to retrieve account details. Please contact support for assistance. Details:"
12794
  msgstr ""
12795
 
@@ -12924,7 +12924,7 @@ msgstr ""
12924
  msgid "Stripe Checkout"
12925
  msgstr ""
12926
 
12927
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:191, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:925
12928
  msgid "Stripe Webhooks"
12929
  msgstr ""
12930
 
@@ -13062,189 +13062,172 @@ msgid "This text displays below the Bank Account fields and should provide clari
13062
  msgstr ""
13063
 
13064
  #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:580
13065
- msgid "Stripe SDK Compatibility"
13066
- msgstr ""
13067
-
13068
- #. translators: 1. GiveWP Support URL
13069
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:583
13070
- msgid "If you are using another plugin that uses Stripe to accept payments there is a chance that it may include the <a href=\"%1$s\" target=\"_blank\">Stripe SDK</a> (Software Development Kit) either through <a href=\"%2$s\" target=\"_blank\">Composer</a> or manually initalized. This can cause conflicts with GiveWP because WordPress does not have a dependency management system to prevent conflicts. To help resolve conflicts we have included two options to use Stripe alongside these other plugins. The recommended way is Composer, but if that is not working then we recommend manual initialization. If both options do not work please <a href=\"%3$s\" target=\"_blank\">contact support</a>."
13071
- msgstr ""
13072
-
13073
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:591
13074
- msgid "Composer Autoloading"
13075
- msgstr ""
13076
-
13077
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:592
13078
- msgid "Manual Initialization"
13079
- msgstr ""
13080
-
13081
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:598
13082
  msgid "Stripe JS Incompatibility"
13083
  msgstr ""
13084
 
13085
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:599
13086
  msgid "If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing."
13087
  msgstr ""
13088
 
13089
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:605
13090
  msgid "Stripe Styles"
13091
  msgstr ""
13092
 
13093
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:606
13094
  msgid "Edit the properties above to match the look and feel of your WordPress theme. These styles will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. Any valid CSS property can be defined, however, it must be formatted as JSON, not CSS. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#element-options\" target=\"_blank\">article</a>."
13095
  msgstr ""
13096
 
13097
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:613
13098
  msgid "Stripe Fonts"
13099
  msgstr ""
13100
 
13101
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:614
13102
  msgid "Select the type of font you want to load in Stripe Credit Card fields including Card Number, CVC and Expiration. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#stripe-elements\" target=\"_blank\">article</a>."
13103
  msgstr ""
13104
 
13105
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:619
13106
  msgid "Google Fonts"
13107
  msgstr ""
13108
 
13109
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:620, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:633
13110
  msgid "Custom Fonts"
13111
  msgstr ""
13112
 
13113
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:625
13114
  msgid "Google Fonts URL"
13115
  msgstr ""
13116
 
13117
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:626
13118
  msgid "Please enter the Google Fonts URL which is applied to your theme to have the Stripe Credit Card fields reflect the same fonts."
13119
  msgstr ""
13120
 
13121
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:634
13122
  msgid "Edit the font properties above to match the fonts of your WordPress theme. These font properties will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. However, it must be formatted as JSON, not CSS."
13123
  msgstr ""
13124
 
13125
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:711
13126
  msgid "You are connected! Now this is important: Please configure your Stripe webhook to finalize the setup."
13127
  msgstr ""
13128
 
13129
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:715
13130
  msgid "In order for Stripe to function properly, you must add a new Stripe webhook endpoint. To do this please visit the <a href='https://dashboard.stripe.com/webhooks' target='_blank'>Webhooks Section of your Stripe Dashboard</a> and click the <strong>Add endpoint</strong> button and paste the following URL:"
13131
  msgstr ""
13132
 
13133
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:718
13134
  msgid "Stripe webhooks are required so GiveWP can communicate properly with the payment gateway to confirm payment completion, renewals, and more."
13135
  msgstr ""
13136
 
13137
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:725
13138
  msgid "Manage Your Stripe Accounts"
13139
  msgstr ""
13140
 
13141
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:726
13142
  msgid "Connect to the Stripe payment gateway using this section. Multiple Stripe accounts can be connected simultaneously. All donation forms will use the \"Default Account\" unless configured otherwise. To specify a different Stripe account for a form, configure the settings within the \"Stripe Account\" tab on the individual form edit screen."
13143
  msgstr ""
13144
 
13145
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:734
13146
  msgid "NOTE: You are using the free Stripe payment gateway integration. This includes an additional 2%% fee for processing one-time donations. This fee is removed by activating the premium <a href=\"%1$s\" target=\"_blank\">Stripe add-on</a> and never applies to subscription donations made through the <a href=\"%2$s\" target=\"_blank\">Recurring Donations add-on</a>. <a href=\"%3$s\" target=\"_blank\">Learn More ></a>"
13147
  msgstr ""
13148
 
13149
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:840
13150
  msgid "No Stripe Accounts Connected."
13151
  msgstr ""
13152
 
13153
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:764
13154
  msgid "Are you sure you want to disconnect this Stripe account?"
13155
  msgstr ""
13156
 
13157
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:794
13158
  msgid "Update"
13159
  msgstr ""
13160
 
13161
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:807
13162
  msgid "Set as Default"
13163
  msgstr ""
13164
 
13165
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:799
13166
  msgid "Default Account"
13167
  msgstr ""
13168
 
13169
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:814
13170
  msgid "Connection Method:"
13171
  msgstr ""
13172
 
13173
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:829, src/PaymentGateways/PayPalCommerce/AdminSettingFields.php:167
13174
  msgid "Disconnect"
13175
  msgstr ""
13176
 
13177
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:883
13178
  msgid "Give 2.7.0 introduces the ability to connect a single site to multiple Stripe accounts. To use this feature, you need to complete database updates. "
13179
  msgstr ""
13180
 
13181
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:886
13182
  msgid "to complete your pending database updates."
13183
  msgstr ""
13184
 
13185
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:849
13186
  msgid "Connect a New Stripe Account"
13187
  msgstr ""
13188
 
13189
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:868
13190
  msgid "Stripe Connection"
13191
  msgstr ""
13192
 
13193
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:898
13194
  msgid "Remove GiveWP as an Authorized Application for my Stripe account."
13195
  msgstr ""
13196
 
13197
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:900
13198
  msgid "Removing GiveWP as an Authorized Application for your Stripe account will remove the connection between the website you are disconnecting as well as any other sites that you have connected to GiveWP using the same Stripe account and connect method. Proceed with caution when disconnecting if you have multiple sites connected."
13199
  msgstr ""
13200
 
13201
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:904
13202
  msgid "View authorized applications in Stripe"
13203
  msgstr ""
13204
 
13205
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:932
13206
  msgid "In order for Stripe to function properly, you must configure your Stripe webhooks."
13207
  msgstr ""
13208
 
13209
  #. translators: 1. Webhook settings page.
13210
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:935
13211
  msgid " You can visit your <a href=\"%1$s\" target=\"_blank\">Stripe Account Dashboard</a> to add a new webhook. "
13212
  msgstr ""
13213
 
13214
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:938
13215
  msgid "Please add a new webhook endpoint for the following URL:"
13216
  msgstr ""
13217
 
13218
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:942
13219
  msgid "Webhook URL:"
13220
  msgstr ""
13221
 
13222
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:952
13223
  msgid "Last webhook received on"
13224
  msgstr ""
13225
 
13226
  #. translators: 1. Documentation on webhook setup.
13227
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:961
13228
  msgid "See our <a href=\"%1$s\" target=\"_blank\">documentation</a> for more information."
13229
  msgstr ""
13230
 
13231
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:969
13232
  msgid "Stripe webhooks are critical to configure so that GiveWP can recieve communication properly from the payment gateway. Webhooks for test-mode donations are configured separately on the Stripe dashboard. Note: webhooks do not function on localhost or websites in maintenance mode."
13233
  msgstr ""
13234
 
13235
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1009
13236
  msgid "Base Styles"
13237
  msgstr ""
13238
 
13239
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1023
13240
  msgid "Empty Styles"
13241
  msgstr ""
13242
 
13243
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1039
13244
  msgid "Invalid Styles"
13245
  msgstr ""
13246
 
13247
- #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1055
13248
  msgid "Complete Styles"
13249
  msgstr ""
13250
 
@@ -13381,31 +13364,31 @@ msgstr ""
13381
  msgid "How much would you like to donate? As a contributor to %s we make sure your donation goes directly to supporting our cause."
13382
  msgstr ""
13383
 
13384
- #: src/Onboarding/DefaultFormFactory.php:127, src/Views/Form/Templates/Sequoia/optionConfig.php:119, src/Views/Form/Templates/Sequoia/optionConfig.php:121, src/Views/Form/Templates/Sequoia/Sequoia.php:71
13385
  msgid "Add Your Information"
13386
  msgstr ""
13387
 
13388
- #: src/Onboarding/DefaultFormFactory.php:128, src/Views/Form/Templates/Sequoia/Actions.php:233, src/Views/Form/Templates/Sequoia/optionConfig.php:129, src/Views/Form/Templates/Sequoia/optionConfig.php:131
13389
  msgid "Who's giving today?"
13390
  msgstr ""
13391
 
13392
- #: src/Onboarding/DefaultFormFactory.php:129, src/Views/Form/Templates/Sequoia/Actions.php:234, src/Views/Form/Templates/Sequoia/optionConfig.php:139, src/Views/Form/Templates/Sequoia/optionConfig.php:141
13393
  msgid "We’ll never share this information with anyone."
13394
  msgstr ""
13395
 
13396
- #: src/Onboarding/DefaultFormFactory.php:134, src/Views/Form/Templates/Sequoia/optionConfig.php:162, src/Views/Form/Templates/Sequoia/optionConfig.php:164
13397
  msgid "A great big thank you!"
13398
  msgstr ""
13399
 
13400
- #: src/Onboarding/DefaultFormFactory.php:135, src/Views/Form/Templates/Sequoia/optionConfig.php:172, src/Views/Form/Templates/Sequoia/optionConfig.php:174
13401
  msgid "{name}, your contribution means a lot and will be put to good use making a difference. We’ve sent your donation receipt to {donor_email}. "
13402
  msgstr ""
13403
 
13404
- #: src/Onboarding/DefaultFormFactory.php:137, src/Views/Form/Templates/Sequoia/optionConfig.php:193, src/Views/Form/Templates/Sequoia/optionConfig.php:195
13405
  msgid "Help us out by sharing with friends and followers that you supported the cause!"
13406
  msgstr ""
13407
 
13408
- #: src/Onboarding/DefaultFormFactory.php:138, src/Views/Form/Templates/Sequoia/optionConfig.php:203, src/Views/Form/Templates/Sequoia/optionConfig.php:205
13409
  msgid "I just gave to this cause. Who's next?"
13410
  msgstr ""
13411
 
@@ -14601,11 +14584,11 @@ msgstr ""
14601
  msgid "Step description will show up here if any"
14602
  msgstr ""
14603
 
14604
- #: src/Views/Form/Templates/Sequoia/Actions.php:258
14605
  msgid "How much would you like to donate? As a contributor to %s we make sure your donation goes directly to supporting our cause. Thank you for your generosity!"
14606
  msgstr ""
14607
 
14608
- #: src/Views/Form/Templates/Sequoia/Actions.php:305
14609
  msgid "Donate with %1$s"
14610
  msgstr ""
14611
 
@@ -14613,7 +14596,7 @@ msgstr ""
14613
  msgid "%1$s Step 1: %2$s Introduction"
14614
  msgstr ""
14615
 
14616
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:16, src/Views/Form/Templates/Sequoia/optionConfig.php:76, src/Views/Form/Templates/Sequoia/optionConfig.php:111, src/Views/Form/Templates/Sequoia/optionConfig.php:148
14617
  msgid "Step description goes here."
14618
  msgstr ""
14619
 
@@ -14625,7 +14608,7 @@ msgstr ""
14625
  msgid "If enabled, a headline and description show for the first step of the donation process."
14626
  msgstr ""
14627
 
14628
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:31, src/Views/Form/Templates/Sequoia/optionConfig.php:125, src/Views/Form/Templates/Sequoia/optionConfig.php:158
14629
  msgid "Headline"
14630
  msgstr ""
14631
 
@@ -14633,7 +14616,7 @@ msgstr ""
14633
  msgid "The headline displays at the top of step one, and defaults to the Form Title. Best practice: limit the headline to fewer than 8 words."
14634
  msgstr ""
14635
 
14636
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:41, src/Views/Form/Templates/Sequoia/optionConfig.php:135, src/Views/Form/Templates/Sequoia/optionConfig.php:168
14637
  msgid "Description"
14638
  msgstr ""
14639
 
@@ -14665,11 +14648,11 @@ msgstr ""
14665
  msgid "%1$s Step 2: %2$s Payment Amount"
14666
  msgstr ""
14667
 
14668
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:80, src/Views/Form/Templates/Sequoia/optionConfig.php:115
14669
  msgid "Header Label"
14670
  msgstr ""
14671
 
14672
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:81, src/Views/Form/Templates/Sequoia/optionConfig.php:116
14673
  msgid "The Header Label displays at the top of this step, and is designed to focus the donor's attention on what this step is about. Best Practice: limit this to fewer than 4 words."
14674
  msgstr ""
14675
 
@@ -14677,55 +14660,63 @@ msgstr ""
14677
  msgid "Content displays before the level amounts, and is designed to provide context for those levels. Best practice: limit this to 1-2 short sentences crafted to drive the donor to decide and to remove friction."
14678
  msgstr ""
14679
 
 
 
 
 
14680
  #: src/Views/Form/Templates/Sequoia/optionConfig.php:110
 
 
 
 
14681
  msgid "%1$s Step 3: %2$s Payment Information"
14682
  msgstr ""
14683
 
14684
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:126
14685
  msgid "The Headline introduces the section where donors provide information about themselves. Best practice: limit the headline to fewer than 5 words."
14686
  msgstr ""
14687
 
14688
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:136
14689
  msgid "The description displays below the checkout step, and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that they are making a wise decision."
14690
  msgstr ""
14691
 
14692
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:147
14693
  msgid "%1$s Step 4: %2$s Thank You"
14694
  msgstr ""
14695
 
14696
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:153
14697
  msgid "This image appears above the main thank you content. If no image is provided, a check mark icon will appear. For best results use an image in 16x9 aspect ratio at least 680x400px."
14698
  msgstr ""
14699
 
14700
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:159
14701
  msgid "This message displays in large font on the thank you screen. Best practice: short, sweet, and sincere works best."
14702
  msgstr ""
14703
 
14704
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:169
14705
  msgid "The description is displayed directly below the main headline and should be 1-2 sentences. You may use <a href=\"http://docs.givewp.com/email-tags\" target=\"_blank\">any of the available template tags</a> within this message."
14706
  msgstr ""
14707
 
14708
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:177
14709
  msgid "Social Sharing"
14710
  msgstr ""
14711
 
14712
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:178
14713
  msgid "Enable to display links for donors to share on social media that they donated."
14714
  msgstr ""
14715
 
14716
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:189
14717
  msgid "Sharing Instruction"
14718
  msgstr ""
14719
 
14720
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:190
14721
  msgid "Sharing instructions display above the social sharing buttons. Best practice: be direct, bold, and confident here. Donors share when they are asked to."
14722
  msgstr ""
14723
 
14724
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:199
14725
  msgid "Twitter Message"
14726
  msgstr ""
14727
 
14728
- #: src/Views/Form/Templates/Sequoia/optionConfig.php:200
14729
  msgid "This puts \"words in the mouth\" of your donor to share with their Twitter followers."
14730
  msgstr ""
14731
 
493
  msgid "The add-on did not activate successfully."
494
  msgstr ""
495
 
496
+ #: includes/class-give-scripts.php:239, includes/class-give-scripts.php:288, includes/forms/template.php:1558, includes/admin/donors/class-donor-table.php:605, includes/admin/donors/donors.php:504, includes/admin/donors/donors.php:743, includes/admin/donors/donors.php:1161, includes/admin/payments/view-payment-details.php:688, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:777
497
  msgid "Cancel"
498
  msgstr ""
499
 
937
  msgid "Empty string is not allowed."
938
  msgstr ""
939
 
940
+ #: includes/class-notices.php:515, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:867
941
  msgid "Click here"
942
  msgstr ""
943
 
973
  msgid "Andorra"
974
  msgstr ""
975
 
976
+ #: includes/country-functions.php:95, includes/country-functions.php:2378
977
  msgid "Angola"
978
  msgstr ""
979
 
985
  msgid "Antarctica"
986
  msgstr ""
987
 
988
+ #: includes/country-functions.php:98, includes/country-functions.php:2379
989
  msgid "Antigua and Barbuda"
990
  msgstr ""
991
 
997
  msgid "Armenia"
998
  msgstr ""
999
 
1000
+ #: includes/country-functions.php:101, includes/country-functions.php:2380
1001
  msgid "Aruba"
1002
  msgstr ""
1003
 
1013
  msgid "Azerbaijan"
1014
  msgstr ""
1015
 
1016
+ #: includes/country-functions.php:105, includes/country-functions.php:2381
1017
  msgid "Bahamas"
1018
  msgstr ""
1019
 
1037
  msgid "Belgium"
1038
  msgstr ""
1039
 
1040
+ #: includes/country-functions.php:111, includes/country-functions.php:2382
1041
  msgid "Belize"
1042
  msgstr ""
1043
 
1044
+ #: includes/country-functions.php:112, includes/country-functions.php:2383
1045
  msgid "Benin"
1046
  msgstr ""
1047
 
1061
  msgid "Bosnia and Herzegovina"
1062
  msgstr ""
1063
 
1064
+ #: includes/country-functions.php:117, includes/country-functions.php:2384
1065
  msgid "Botswana"
1066
  msgstr ""
1067
 
1085
  msgid "Bulgaria"
1086
  msgstr ""
1087
 
1088
+ #: includes/country-functions.php:123, includes/country-functions.php:2385
1089
  msgid "Burkina Faso"
1090
  msgstr ""
1091
 
1092
+ #: includes/country-functions.php:124, includes/country-functions.php:2386
1093
  msgid "Burundi"
1094
  msgstr ""
1095
 
1097
  msgid "Cambodia"
1098
  msgstr ""
1099
 
1100
+ #: includes/country-functions.php:126, includes/country-functions.php:2387
1101
  msgid "Cameroon"
1102
  msgstr ""
1103
 
1109
  msgid "Cayman Islands"
1110
  msgstr ""
1111
 
1112
+ #: includes/country-functions.php:129, includes/country-functions.php:2388
1113
  msgid "Central African Republic"
1114
  msgstr ""
1115
 
1137
  msgid "Colombia"
1138
  msgstr ""
1139
 
1140
+ #: includes/country-functions.php:136, includes/country-functions.php:2389
1141
  msgid "Comoros"
1142
  msgstr ""
1143
 
1144
+ #: includes/country-functions.php:137, includes/country-functions.php:2390
1145
  msgid "Congo, Democratic People's Republic"
1146
  msgstr ""
1147
 
1148
+ #: includes/country-functions.php:138, includes/country-functions.php:2391
1149
  msgid "Congo, Republic of"
1150
  msgstr ""
1151
 
1152
+ #: includes/country-functions.php:139, includes/country-functions.php:2392
1153
  msgid "Cook Islands"
1154
  msgstr ""
1155
 
1157
  msgid "Costa Rica"
1158
  msgstr ""
1159
 
1160
+ #: includes/country-functions.php:141, includes/country-functions.php:2393
1161
  msgid "Cote d'Ivoire"
1162
  msgstr ""
1163
 
1181
  msgid "Denmark"
1182
  msgstr ""
1183
 
1184
+ #: includes/country-functions.php:147, includes/country-functions.php:2394
1185
  msgid "Djibouti"
1186
  msgstr ""
1187
 
1188
+ #: includes/country-functions.php:148, includes/country-functions.php:2395
1189
  msgid "Dominica"
1190
  msgstr ""
1191
 
1205
  msgid "Egypt"
1206
  msgstr ""
1207
 
1208
+ #: includes/country-functions.php:153, includes/country-functions.php:2396
1209
  msgid "Equatorial Guinea"
1210
  msgstr ""
1211
 
1213
  msgid "El Salvador"
1214
  msgstr ""
1215
 
1216
+ #: includes/country-functions.php:155, includes/country-functions.php:2397
1217
  msgid "Eritrea"
1218
  msgstr ""
1219
 
1233
  msgid "Faroe Islands"
1234
  msgstr ""
1235
 
1236
+ #: includes/country-functions.php:160, includes/country-functions.php:2398
1237
  msgid "Fiji"
1238
  msgstr ""
1239
 
1253
  msgid "French Polynesia"
1254
  msgstr ""
1255
 
1256
+ #: includes/country-functions.php:165, includes/country-functions.php:2399
1257
  msgid "French Southern Territories"
1258
  msgstr ""
1259
 
1261
  msgid "Gabon"
1262
  msgstr ""
1263
 
1264
+ #: includes/country-functions.php:167, includes/country-functions.php:2400
1265
  msgid "Gambia"
1266
  msgstr ""
1267
 
1277
  msgid "Greece"
1278
  msgstr ""
1279
 
1280
+ #: includes/country-functions.php:171, includes/country-functions.php:2401
1281
  msgid "Ghana"
1282
  msgstr ""
1283
 
1289
  msgid "Greenland"
1290
  msgstr ""
1291
 
1292
+ #: includes/country-functions.php:174, includes/country-functions.php:2402
1293
  msgid "Grenada"
1294
  msgstr ""
1295
 
1309
  msgid "Guernsey"
1310
  msgstr ""
1311
 
1312
+ #: includes/country-functions.php:179, includes/country-functions.php:2403
1313
  msgid "Guinea"
1314
  msgstr ""
1315
 
1317
  msgid "Guinea-Bissau"
1318
  msgstr ""
1319
 
1320
+ #: includes/country-functions.php:181, includes/country-functions.php:2404
1321
  msgid "Guyana"
1322
  msgstr ""
1323
 
1337
  msgid "Honduras"
1338
  msgstr ""
1339
 
1340
+ #: includes/country-functions.php:186, includes/country-functions.php:2405
1341
  msgid "Hong Kong"
1342
  msgstr ""
1343
 
1365
  msgid "Iraq"
1366
  msgstr ""
1367
 
1368
+ #: includes/country-functions.php:193, includes/country-functions.php:2406
1369
  msgid "Ireland"
1370
  msgstr ""
1371
 
1381
  msgid "Italy"
1382
  msgstr ""
1383
 
1384
+ #: includes/country-functions.php:197, includes/country-functions.php:2407
1385
  msgid "Jamaica"
1386
  msgstr ""
1387
 
1401
  msgid "Kazakhstan"
1402
  msgstr ""
1403
 
1404
+ #: includes/country-functions.php:202, includes/country-functions.php:2408
1405
  msgid "Kenya"
1406
  msgstr ""
1407
 
1408
+ #: includes/country-functions.php:203, includes/country-functions.php:2409
1409
  msgid "Kiribati"
1410
  msgstr ""
1411
 
1453
  msgid "Luxembourg"
1454
  msgstr ""
1455
 
1456
+ #: includes/country-functions.php:215, includes/country-functions.php:2410
1457
  msgid "Macau"
1458
  msgstr ""
1459
 
1465
  msgid "Madagascar"
1466
  msgstr ""
1467
 
1468
+ #: includes/country-functions.php:218, includes/country-functions.php:2411
1469
  msgid "Malawi"
1470
  msgstr ""
1471
 
1477
  msgid "Maldives"
1478
  msgstr ""
1479
 
1480
+ #: includes/country-functions.php:221, includes/country-functions.php:2412
1481
  msgid "Mali"
1482
  msgstr ""
1483
 
1493
  msgid "Martinique"
1494
  msgstr ""
1495
 
1496
+ #: includes/country-functions.php:225, includes/country-functions.php:2413
1497
  msgid "Mauritania"
1498
  msgstr ""
1499
 
1500
+ #: includes/country-functions.php:226, includes/country-functions.php:2414
1501
  msgid "Mauritius"
1502
  msgstr ""
1503
 
1529
  msgid "Montenegro"
1530
  msgstr ""
1531
 
1532
+ #: includes/country-functions.php:234, includes/country-functions.php:2415
1533
  msgid "Montserrat"
1534
  msgstr ""
1535
 
1549
  msgid "Namibia"
1550
  msgstr ""
1551
 
1552
+ #: includes/country-functions.php:239, includes/country-functions.php:2416
1553
  msgid "Nauru"
1554
  msgstr ""
1555
 
1561
  msgid "Netherlands"
1562
  msgstr ""
1563
 
1564
+ #: includes/country-functions.php:242, includes/country-functions.php:2417
1565
  msgid "Netherlands Antilles"
1566
  msgstr ""
1567
 
1585
  msgid "Nigeria"
1586
  msgstr ""
1587
 
1588
+ #: includes/country-functions.php:248, includes/country-functions.php:2418
1589
  msgid "Niue"
1590
  msgstr ""
1591
 
1593
  msgid "Norfolk Island"
1594
  msgstr ""
1595
 
1596
+ #: includes/country-functions.php:250, includes/country-functions.php:2419
1597
  msgid "North Korea"
1598
  msgstr ""
1599
 
1621
  msgid "Palestinian Territories"
1622
  msgstr ""
1623
 
1624
+ #: includes/country-functions.php:257, includes/country-functions.php:2420
1625
  msgid "Panama"
1626
  msgstr ""
1627
 
1657
  msgid "Puerto Rico"
1658
  msgstr ""
1659
 
1660
+ #: includes/country-functions.php:266, includes/country-functions.php:2421
1661
  msgid "Qatar"
1662
  msgstr ""
1663
 
1673
  msgid "Russian Federation"
1674
  msgstr ""
1675
 
1676
+ #: includes/country-functions.php:270, includes/country-functions.php:2422
1677
  msgid "Rwanda"
1678
  msgstr ""
1679
 
1681
  msgid "Saint Helena"
1682
  msgstr ""
1683
 
1684
+ #: includes/country-functions.php:272, includes/country-functions.php:2423
1685
  msgid "Saint Kitts and Nevis"
1686
  msgstr ""
1687
 
1688
+ #: includes/country-functions.php:273, includes/country-functions.php:2424
1689
  msgid "Saint Lucia"
1690
  msgstr ""
1691
 
1701
  msgid "San Marino"
1702
  msgstr ""
1703
 
1704
+ #: includes/country-functions.php:277, includes/country-functions.php:2425
1705
  msgid "Sao Tome and Principe"
1706
  msgstr ""
1707
 
1717
  msgid "Serbia"
1718
  msgstr ""
1719
 
1720
+ #: includes/country-functions.php:281, includes/country-functions.php:2426
1721
  msgid "Seychelles"
1722
  msgstr ""
1723
 
1724
+ #: includes/country-functions.php:282, includes/country-functions.php:2427
1725
  msgid "Sierra Leone"
1726
  msgstr ""
1727
 
1737
  msgid "Slovenia"
1738
  msgstr ""
1739
 
1740
+ #: includes/country-functions.php:286, includes/country-functions.php:2428
1741
  msgid "Solomon Islands"
1742
  msgstr ""
1743
 
1744
+ #: includes/country-functions.php:287, includes/country-functions.php:2429
1745
  msgid "Somalia"
1746
  msgstr ""
1747
 
1748
+ #: includes/country-functions.php:288, includes/country-functions.php:2430
1749
  msgid "South Africa"
1750
  msgstr ""
1751
 
1769
  msgid "Sudan"
1770
  msgstr ""
1771
 
1772
+ #: includes/country-functions.php:294, includes/country-functions.php:2431
1773
  msgid "Suriname"
1774
  msgstr ""
1775
 
1789
  msgid "Switzerland"
1790
  msgstr ""
1791
 
1792
+ #: includes/country-functions.php:299, includes/country-functions.php:2432
1793
  msgid "Syrian Arab Republic"
1794
  msgstr ""
1795
 
1801
  msgid "Tajikistan"
1802
  msgstr ""
1803
 
1804
+ #: includes/country-functions.php:302, includes/country-functions.php:2433
1805
  msgid "Tanzania"
1806
  msgstr ""
1807
 
1809
  msgid "Togo"
1810
  msgstr ""
1811
 
1812
+ #: includes/country-functions.php:304, includes/country-functions.php:2434
1813
  msgid "Tokelau"
1814
  msgstr ""
1815
 
1816
+ #: includes/country-functions.php:305, includes/country-functions.php:2435
1817
  msgid "Tonga"
1818
  msgstr ""
1819
 
1821
  msgid "Thailand"
1822
  msgstr ""
1823
 
1824
+ #: includes/country-functions.php:307, includes/country-functions.php:2436
1825
  msgid "Trinidad and Tobago"
1826
  msgstr ""
1827
 
1841
  msgid "Turks and Caicos Islands"
1842
  msgstr ""
1843
 
1844
+ #: includes/country-functions.php:312, includes/country-functions.php:2437
1845
  msgid "Tuvalu"
1846
  msgstr ""
1847
 
1848
+ #: includes/country-functions.php:313, includes/country-functions.php:2438
1849
  msgid "Uganda"
1850
  msgstr ""
1851
 
1853
  msgid "Ukraine"
1854
  msgstr ""
1855
 
1856
+ #: includes/country-functions.php:315, includes/country-functions.php:2439
1857
  msgid "United Arab Emirates"
1858
  msgstr ""
1859
 
1869
  msgid "Uzbekistan"
1870
  msgstr ""
1871
 
1872
+ #: includes/country-functions.php:319, includes/country-functions.php:2440
1873
  msgid "Vanuatu"
1874
  msgstr ""
1875
 
1901
  msgid "Western Samoa"
1902
  msgstr ""
1903
 
1904
+ #: includes/country-functions.php:327, includes/country-functions.php:2441
1905
  msgid "Yemen"
1906
  msgstr ""
1907
 
1913
  msgid "Zambia"
1914
  msgstr ""
1915
 
1916
+ #: includes/country-functions.php:330, includes/country-functions.php:2442
1917
  msgid "Zimbabwe"
1918
  msgstr ""
1919
 
4589
  msgid "Chubut"
4590
  msgstr ""
4591
 
4592
+ #: includes/country-functions.php:1738, includes/country-functions.php:2330
4593
  msgid "C&oacute;rdoba"
4594
  msgstr ""
4595
 
4613
  msgid "La Pampa"
4614
  msgstr ""
4615
 
4616
+ #: includes/country-functions.php:1744, includes/country-functions.php:2339
4617
  msgid "La Rioja"
4618
  msgstr ""
4619
 
4713
  msgid "Yukon"
4714
  msgstr ""
4715
 
4716
+ #: includes/country-functions.php:2313
4717
  msgid "A Coru&ntilde;a"
4718
  msgstr ""
4719
 
4720
+ #: includes/country-functions.php:2314
4721
  msgid "Álava"
4722
  msgstr ""
4723
 
4724
+ #: includes/country-functions.php:2315
4725
  msgid "Albacete"
4726
  msgstr ""
4727
 
4728
+ #: includes/country-functions.php:2316
4729
  msgid "Alicante"
4730
  msgstr ""
4731
 
4732
+ #: includes/country-functions.php:2317
4733
  msgid "Almer&iacute;a"
4734
  msgstr ""
4735
 
4736
+ #: includes/country-functions.php:2318
4737
  msgid "Asturias"
4738
  msgstr ""
4739
 
4740
+ #: includes/country-functions.php:2319
4741
  msgid "&Aacute;vila"
4742
  msgstr ""
4743
 
4744
+ #: includes/country-functions.php:2320
4745
  msgid "Badajoz"
4746
  msgstr ""
4747
 
4748
+ #: includes/country-functions.php:2321
4749
  msgid "Baleares"
4750
  msgstr ""
4751
 
4752
+ #: includes/country-functions.php:2322
4753
  msgid "Barcelona"
4754
  msgstr ""
4755
 
4756
+ #: includes/country-functions.php:2323
4757
  msgid "Burgos"
4758
  msgstr ""
4759
 
4760
+ #: includes/country-functions.php:2324
4761
  msgid "C&aacute;ceres"
4762
  msgstr ""
4763
 
4764
+ #: includes/country-functions.php:2325
4765
  msgid "C&aacute;diz"
4766
  msgstr ""
4767
 
4768
+ #: includes/country-functions.php:2326
4769
  msgid "Cantabria"
4770
  msgstr ""
4771
 
4772
+ #: includes/country-functions.php:2327
4773
  msgid "Castell&oacute;n"
4774
  msgstr ""
4775
 
4776
+ #: includes/country-functions.php:2328
4777
  msgid "Ceuta"
4778
  msgstr ""
4779
 
4780
+ #: includes/country-functions.php:2329
4781
  msgid "Ciudad Real"
4782
  msgstr ""
4783
 
4784
+ #: includes/country-functions.php:2331
4785
  msgid "Cuenca"
4786
  msgstr ""
4787
 
4788
+ #: includes/country-functions.php:2332
4789
  msgid "Girona"
4790
  msgstr ""
4791
 
4792
+ #: includes/country-functions.php:2333
4793
  msgid "Granada"
4794
  msgstr ""
4795
 
4796
+ #: includes/country-functions.php:2334
4797
  msgid "Guadalajara"
4798
  msgstr ""
4799
 
4800
+ #: includes/country-functions.php:2335
4801
  msgid "Gipuzkoa"
4802
  msgstr ""
4803
 
4804
+ #: includes/country-functions.php:2336
4805
  msgid "Huelva"
4806
  msgstr ""
4807
 
4808
+ #: includes/country-functions.php:2337
4809
  msgid "Huesca"
4810
  msgstr ""
4811
 
4812
+ #: includes/country-functions.php:2338
4813
  msgid "Ja&eacute;n"
4814
  msgstr ""
4815
 
4816
+ #: includes/country-functions.php:2340
4817
  msgid "Las Palmas"
4818
  msgstr ""
4819
 
4820
+ #: includes/country-functions.php:2341
4821
  msgid "Le&oacute;n"
4822
  msgstr ""
4823
 
4824
+ #: includes/country-functions.php:2342
4825
  msgid "Lleida"
4826
  msgstr ""
4827
 
4828
+ #: includes/country-functions.php:2343
4829
  msgid "Lugo"
4830
  msgstr ""
4831
 
4832
+ #: includes/country-functions.php:2344
4833
  msgid "Madrid"
4834
  msgstr ""
4835
 
4836
+ #: includes/country-functions.php:2345
4837
  msgid "M&aacute;laga"
4838
  msgstr ""
4839
 
4840
+ #: includes/country-functions.php:2346
4841
  msgid "Melilla"
4842
  msgstr ""
4843
 
4844
+ #: includes/country-functions.php:2347
4845
  msgid "Murcia"
4846
  msgstr ""
4847
 
4848
+ #: includes/country-functions.php:2348
4849
  msgid "Navarra"
4850
  msgstr ""
4851
 
4852
+ #: includes/country-functions.php:2349
4853
  msgid "Ourense"
4854
  msgstr ""
4855
 
4856
+ #: includes/country-functions.php:2350
4857
  msgid "Palencia"
4858
  msgstr ""
4859
 
4860
+ #: includes/country-functions.php:2351
4861
  msgid "Pontevedra"
4862
  msgstr ""
4863
 
4864
+ #: includes/country-functions.php:2352
4865
  msgid "Salamanca"
4866
  msgstr ""
4867
 
4868
+ #: includes/country-functions.php:2353
4869
  msgid "Santa Cruz de Tenerife"
4870
  msgstr ""
4871
 
4872
+ #: includes/country-functions.php:2354
4873
  msgid "Segovia"
4874
  msgstr ""
4875
 
4876
+ #: includes/country-functions.php:2355
4877
  msgid "Sevilla"
4878
  msgstr ""
4879
 
4880
+ #: includes/country-functions.php:2356
4881
  msgid "Soria"
4882
  msgstr ""
4883
 
4884
+ #: includes/country-functions.php:2357
4885
  msgid "Tarragona"
4886
  msgstr ""
4887
 
4888
+ #: includes/country-functions.php:2358
4889
  msgid "Teruel"
4890
  msgstr ""
4891
 
4892
+ #: includes/country-functions.php:2359
4893
  msgid "Toledo"
4894
  msgstr ""
4895
 
4896
+ #: includes/country-functions.php:2360
4897
  msgid "Valencia"
4898
  msgstr ""
4899
 
4900
+ #: includes/country-functions.php:2361
4901
  msgid "Valladolid"
4902
  msgstr ""
4903
 
4904
+ #: includes/country-functions.php:2362
4905
  msgid "Bizkaia"
4906
  msgstr ""
4907
 
4908
+ #: includes/country-functions.php:2363
4909
  msgid "Zamora"
4910
  msgstr ""
4911
 
4912
+ #: includes/country-functions.php:2364
4913
  msgid "Zaragoza"
4914
  msgstr ""
4915
 
6151
  msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
6152
  msgstr ""
6153
 
6154
+ #: includes/shortcodes.php:595, includes/forms/template.php:689, includes/forms/template.php:719, includes/forms/template.php:1937, includes/forms/widget.php:172, includes/gateways/stripe/includes/give-stripe-scripts.php:54, includes/gateways/stripe/includes/payment-methods/class-give-stripe-checkout.php:556, src/Form/Template.php:230, src/Form/Template.php:240, src/Onboarding/DefaultFormFactory.php:39, src/Onboarding/DefaultFormFactory.php:43, src/Onboarding/DefaultFormFactory.php:119, src/Form/Template/Options.php:56, src/Form/Template/Options.php:58, src/Form/Template/Options.php:131, src/Views/Form/Templates/Sequoia/Actions.php:221, src/Views/Form/Templates/Sequoia/Actions.php:266, src/Views/Form/Templates/Sequoia/optionConfig.php:68, src/Views/Form/Templates/Sequoia/optionConfig.php:70, src/Views/Form/Templates/Sequoia/Sequoia.php:67
6155
  msgid "Donate Now"
6156
  msgstr ""
6157
 
6382
  msgid "View Donor Information"
6383
  msgstr ""
6384
 
6385
+ #: includes/admin/admin-actions.php:1025
6386
  msgid "Error: Security issue."
6387
  msgstr ""
6388
 
6389
+ #: includes/admin/admin-actions.php:1059
6390
  msgid "Error: Unable to save the address. Please check if address already exist."
6391
  msgstr ""
6392
 
6393
+ #: includes/admin/admin-actions.php:1088
6394
  msgid "Successfully added a new address to the donor."
6395
  msgstr ""
6396
 
6397
+ #: includes/admin/admin-actions.php:1104
6398
  msgid "Error: Unable to delete address."
6399
  msgstr ""
6400
 
6401
+ #: includes/admin/admin-actions.php:1112
6402
  msgid "Successfully removed a address of donor."
6403
  msgstr ""
6404
 
6405
+ #: includes/admin/admin-actions.php:1124
6406
  msgid "Error: Unable to update address. Please check if address already exist."
6407
  msgstr ""
6408
 
6409
+ #: includes/admin/admin-actions.php:1142
6410
  msgid "Successfully updated a address of donor"
6411
  msgstr ""
6412
 
6413
+ #: includes/admin/admin-actions.php:1163, includes/admin/payments/view-payment-details.php:734, src/Receipt/DonationReceipt.php:148
6414
  msgid "Billing Address"
6415
  msgstr ""
6416
 
6417
+ #: includes/admin/admin-actions.php:1180
6418
  msgid "Personal Address"
6419
  msgstr ""
6420
 
6421
+ #: includes/admin/admin-actions.php:1314
6422
  msgid "An error occurred while flushing the cache."
6423
  msgstr ""
6424
 
6425
+ #: includes/admin/admin-actions.php:1308
6426
  msgid "Cache flushed successfully."
6427
  msgstr ""
6428
 
6429
+ #: includes/admin/admin-actions.php:1412
6430
  msgid "Your GiveWP add-on is not receiving critical updates and new features because you have %1$s license key. Please <a href=\"%2$s\" title=\"%3$s\">activate your license</a> to receive updates and <a href=\"%4$s\" target=\"_blank\" title=\"%5$s\">priority support</a>"
6431
  msgid_plural "Your GiveWP add-ons are not receiving critical updates and new features because you have %1$s license keys. Please <a href=\"%2$s\" title=\"%3$s\">activate your license</a> to receive updates and <a href=\"%4$s\" target=\"_blank\" title=\"%5$s\">priority support</a>"
6432
  msgstr[0] ""
6433
  msgstr[1] ""
6434
 
6435
+ #: includes/admin/admin-actions.php:1420, includes/admin/settings/class-settings-license.php:114, includes/admin/settings/class-settings-license.php:125, includes/admin/settings/class-settings-license.php:127
6436
  msgid "Activate License"
6437
  msgstr ""
6438
 
6439
+ #: includes/admin/admin-actions.php:1422
6440
  msgid "Priority Support"
6441
  msgstr ""
6442
 
6539
  msgid "File"
6540
  msgstr ""
6541
 
6542
+ #: includes/admin/class-admin-settings.php:816, includes/admin/give-metabox-functions.php:1044, src/Views/Form/Templates/Sequoia/optionConfig.php:51, src/Views/Form/Templates/Sequoia/optionConfig.php:163
6543
  msgid "Image"
6544
  msgstr ""
6545
 
7616
  msgid "Display a GiveWP Donation Form in your theme's widget powered sidebar."
7617
  msgstr ""
7618
 
7619
+ #: includes/forms/widget.php:170, includes/forms/widget.php:177, src/Onboarding/DefaultFormFactory.php:124, src/Views/Form/Templates/Sequoia/Actions.php:290, src/Views/Form/Templates/Sequoia/optionConfig.php:103, src/Views/Form/Templates/Sequoia/optionConfig.php:105, src/Views/Form/Templates/Sequoia/Sequoia.php:69
7620
  msgid "Continue"
7621
  msgstr ""
7622
 
7688
  msgid "Global Option"
7689
  msgstr ""
7690
 
7691
+ #: includes/forms/widget.php:246, includes/gateways/offline-donations.php:298, includes/admin/emails/class-email-setting-field.php:166, includes/admin/forms/class-metabox-form-data.php:171, includes/admin/forms/class-metabox-form-data.php:364, includes/admin/forms/class-metabox-form-data.php:376, includes/admin/forms/class-metabox-form-data.php:387, includes/admin/forms/class-metabox-form-data.php:436, includes/admin/forms/class-metabox-form-data.php:503, includes/admin/settings/class-settings-advanced.php:77, includes/admin/settings/class-settings-advanced.php:109, includes/admin/settings/class-settings-advanced.php:131, includes/admin/settings/class-settings-advanced.php:158, includes/admin/settings/class-settings-advanced.php:180, includes/admin/settings/class-settings-advanced.php:218, includes/admin/settings/class-settings-advanced.php:266, includes/admin/settings/class-settings-display.php:97, includes/admin/settings/class-settings-display.php:108, includes/admin/settings/class-settings-display.php:139, includes/admin/settings/class-settings-display.php:161, includes/admin/settings/class-settings-display.php:172, includes/admin/settings/class-settings-display.php:183, includes/admin/settings/class-settings-display.php:202, includes/admin/settings/class-settings-display.php:233, includes/admin/settings/class-settings-display.php:244, includes/admin/settings/class-settings-display.php:275, includes/admin/settings/class-settings-gateways.php:68, includes/admin/settings/class-settings-gateways.php:114, includes/admin/settings/class-settings-gateways.php:305, includes/admin/settings/class-settings-general.php:93, includes/admin/settings/class-settings-general.php:104, includes/admin/settings/class-settings-general.php:379, includes/admin/tools/import/class-give-import-donations.php:946, includes/admin/tools/import/class-give-import-donations.php:957, includes/admin/tools/import/class-give-import-donations.php:968, includes/admin/tools/views/html-admin-page-system-info.php:486, includes/admin/tools/views/html-admin-page-system-info.php:574, includes/admin/tools/views/html-admin-page-system-info.php:611, includes/admin/tools/views/html-admin-page-system-info.php:689, includes/admin/tools/views/html-admin-page-system-info.php:726, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:396, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:424, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:467, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:495, src/Tracking/AdminSettings.php:41, src/DonorDashboards/Admin/Settings.php:97, src/Form/Template/Options.php:155, src/Form/Template/Options.php:178, src/PaymentGateways/PayPalStandard/PayPalStandard.php:69, src/PaymentGateways/PayPalStandard/PayPalStandard.php:80, src/Views/Form/Templates/Sequoia/optionConfig.php:24, src/Views/Form/Templates/Sequoia/optionConfig.php:115, src/Views/Form/Templates/Sequoia/optionConfig.php:193
7692
  msgid "Enabled"
7693
  msgstr ""
7694
 
7695
+ #: includes/forms/widget.php:247, includes/gateways/offline-donations.php:299, includes/admin/emails/class-email-setting-field.php:167, includes/admin/emails/class-email-setting-field.php:177, includes/admin/forms/class-metabox-form-data.php:172, includes/admin/forms/class-metabox-form-data.php:327, includes/admin/forms/class-metabox-form-data.php:352, includes/admin/forms/class-metabox-form-data.php:365, includes/admin/forms/class-metabox-form-data.php:377, includes/admin/forms/class-metabox-form-data.php:388, includes/admin/forms/class-metabox-form-data.php:437, includes/admin/forms/class-metabox-form-data.php:504, includes/admin/settings/class-settings-advanced.php:78, includes/admin/settings/class-settings-advanced.php:110, includes/admin/settings/class-settings-advanced.php:132, includes/admin/settings/class-settings-advanced.php:159, includes/admin/settings/class-settings-advanced.php:181, includes/admin/settings/class-settings-advanced.php:219, includes/admin/settings/class-settings-advanced.php:267, includes/admin/settings/class-settings-display.php:62, includes/admin/settings/class-settings-display.php:85, includes/admin/settings/class-settings-display.php:98, includes/admin/settings/class-settings-display.php:109, includes/admin/settings/class-settings-display.php:140, includes/admin/settings/class-settings-display.php:162, includes/admin/settings/class-settings-display.php:173, includes/admin/settings/class-settings-display.php:184, includes/admin/settings/class-settings-display.php:203, includes/admin/settings/class-settings-display.php:234, includes/admin/settings/class-settings-display.php:245, includes/admin/settings/class-settings-display.php:276, includes/admin/settings/class-settings-gateways.php:69, includes/admin/settings/class-settings-gateways.php:115, includes/admin/settings/class-settings-general.php:94, includes/admin/settings/class-settings-general.php:105, includes/admin/settings/class-settings-general.php:380, includes/admin/tools/import/class-give-import-donations.php:947, includes/admin/tools/import/class-give-import-donations.php:958, includes/admin/tools/import/class-give-import-donations.php:969, includes/admin/tools/views/html-admin-page-system-info.php:486, includes/admin/tools/views/html-admin-page-system-info.php:574, includes/admin/tools/views/html-admin-page-system-info.php:611, includes/admin/tools/views/html-admin-page-system-info.php:689, includes/admin/tools/views/html-admin-page-system-info.php:726, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:397, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:425, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:468, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:496, src/Tracking/AdminSettings.php:42, src/DonorDashboards/Admin/Settings.php:98, src/Form/Template/Options.php:156, src/Form/Template/Options.php:179, src/PaymentGateways/PayPalStandard/PayPalStandard.php:70, src/PaymentGateways/PayPalStandard/PayPalStandard.php:81, src/Views/Form/Templates/Sequoia/optionConfig.php:25, src/Views/Form/Templates/Sequoia/optionConfig.php:114, src/Views/Form/Templates/Sequoia/optionConfig.php:194
7696
  msgid "Disabled"
7697
  msgstr ""
7698
 
8113
  msgid "Delete Donor"
8114
  msgstr ""
8115
 
8116
+ #: includes/admin/donors/donors.php:74, includes/admin/emails/class-email-notification-table.php:203, includes/admin/emails/class-email-notification-table.php:237, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:771
8117
  msgid "Edit"
8118
  msgstr ""
8119
 
10877
  msgid "Payment is pending for unknown reasons. Contact PayPal support for assistance."
10878
  msgstr ""
10879
 
10880
+ #: includes/gateways/stripe/class-give-stripe.php:107
10881
  msgid "<strong>Action Needed:</strong> Please update the Recurring Donations add-on to version <strong>1.9.4+</strong> in order to be compatible with GiveWP <strong>2.5.5+</strong>. If you are experiencing any issues please rollback GiveWP to 2.5.4 or below using the <a href=\"%1$s\" target=\"_blank\">WP Rollback</a> plugin and <a href=\"%2$s\" target=\"_blank\">contact support</a> for prompt assistance."
10882
  msgstr ""
10883
 
10884
+ #: includes/gateways/stripe/class-give-stripe.php:195
10885
  msgid "Stripe - Credit Card"
10886
  msgstr ""
10887
 
10888
+ #: includes/gateways/stripe/class-give-stripe.php:196, includes/gateways/stripe/class-give-stripe.php:202, src/PaymentGateways/PayPalCommerce/PayPalCommerce.php:37
10889
  msgid "Credit Card"
10890
  msgstr ""
10891
 
10892
+ #: includes/gateways/stripe/class-give-stripe.php:201
10893
  msgid "Stripe - Checkout"
10894
  msgstr ""
10895
 
10896
+ #: includes/gateways/stripe/class-give-stripe.php:207
10897
  msgid "Stripe - SEPA Direct Debit"
10898
  msgstr ""
10899
 
10900
+ #: includes/gateways/stripe/class-give-stripe.php:208, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:116
10901
  msgid "SEPA Direct Debit"
10902
  msgstr ""
10903
 
10904
+ #: includes/gateways/stripe/class-give-stripe.php:213
10905
  msgid "Stripe - BECS Direct Debit"
10906
  msgstr ""
10907
 
10908
+ #: includes/gateways/stripe/class-give-stripe.php:214, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:117
10909
  msgid "BECS Direct Debit"
10910
  msgstr ""
10911
 
12458
  msgstr[0] ""
12459
  msgstr[1] ""
12460
 
12461
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:62, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:102, includes/gateways/stripe/includes/class-give-stripe-customer.php:373, includes/gateways/stripe/includes/class-give-stripe-customer.php:456, includes/gateways/stripe/includes/class-give-stripe-customer.php:488, includes/gateways/stripe/includes/class-give-stripe-customer.php:571, includes/gateways/stripe/includes/class-give-stripe-gateway.php:180, includes/gateways/stripe/includes/class-give-stripe-gateway.php:315, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389, includes/gateways/stripe/includes/class-give-stripe-gateway.php:468, includes/gateways/stripe/includes/class-give-stripe-logger.php:77, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:167, includes/gateways/stripe/includes/give-stripe-helpers.php:570, includes/gateways/stripe/includes/give-stripe-helpers.php:666, includes/gateways/stripe/includes/give-stripe-helpers.php:831, includes/gateways/stripe/includes/admin/admin-actions.php:258
12462
  msgid "Stripe Error"
12463
  msgstr ""
12464
 
12467
  msgid "The Stripe Gateway returned an error while creating the Checkout Session. Details: %s"
12468
  msgstr ""
12469
 
12470
+ #: includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:69, includes/gateways/stripe/includes/class-give-stripe-checkout-session.php:109, includes/gateways/stripe/includes/class-give-stripe-customer.php:468
12471
  msgid "An occurred while processing the donation with the gateway. Please try your donation again."
12472
  msgstr ""
12473
 
12502
  msgstr ""
12503
 
12504
  #. translators: %s Exception Message Body
12505
+ #: includes/gateways/stripe/includes/class-give-stripe-customer.php:459
12506
  msgid "The Stripe Gateway returned an error while creating the customer. Details: %s"
12507
  msgstr ""
12508
 
12509
+ #: includes/gateways/stripe/includes/class-give-stripe-customer.php:485, includes/gateways/stripe/includes/class-give-stripe-customer.php:570, includes/gateways/stripe/includes/class-give-stripe-gateway.php:187, includes/gateways/stripe/includes/class-give-stripe-gateway.php:242, includes/gateways/stripe/includes/class-give-stripe-gateway.php:282, includes/gateways/stripe/includes/class-give-stripe-gateway.php:322, includes/gateways/stripe/includes/class-give-stripe-gateway.php:388, includes/gateways/stripe/includes/give-stripe-helpers.php:673
12510
  msgid "An error occurred while processing the donation. Please try again."
12511
  msgstr ""
12512
 
12513
+ #: includes/gateways/stripe/includes/class-give-stripe-customer.php:489, includes/gateways/stripe/includes/class-give-stripe-customer.php:571, includes/gateways/stripe/includes/class-give-stripe-gateway.php:389
12514
  msgid "An error occurred retrieving or creating the "
12515
  msgstr ""
12516
 
12713
  msgstr ""
12714
 
12715
  #. translators: 1. Processing result.
12716
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:88
12717
  msgid "Processed event: %s"
12718
  msgstr ""
12719
 
12720
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:93
12721
  msgid "Stripe - Webhook Received"
12722
  msgstr ""
12723
 
12724
  #. translators: 1. Event ID 2. Event Type 3. Message
12725
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:96
12726
  msgid "Webhook received with ID %1$s and TYPE %2$s which processed and returned a message %3$s."
12727
  msgstr ""
12728
 
12729
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:84
12730
  msgid "Something went wrong with processing the payment gateway event."
12731
  msgstr ""
12732
 
12733
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:167
12734
  msgid "An error occurred while processing a webhook."
12735
  msgstr ""
12736
 
12737
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:194, includes/gateways/stripe/includes/class-give-stripe-webhooks.php:227
12738
  msgid "Charge succeeded in Stripe."
12739
  msgstr ""
12740
 
12741
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:258
12742
  msgid "Charge failed in Stripe."
12743
  msgstr ""
12744
 
12745
+ #: includes/gateways/stripe/includes/class-give-stripe-webhooks.php:290
12746
  msgid "Charge refunded in Stripe."
12747
  msgstr ""
12748
 
12777
  msgid "The Stripe Gateway returned an error while processing the donation."
12778
  msgstr ""
12779
 
12780
+ #: includes/gateways/stripe/includes/give-stripe-helpers.php:1172
12781
  msgid "By providing your IBAN and confirming this payment, you are authorizing %1$s and Stripe, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited."
12782
  msgstr ""
12783
 
12784
+ #: includes/gateways/stripe/includes/give-stripe-helpers.php:1179
12785
  msgid "By providing your bank account details and confirming this payment, you agree to this Direct Debit Request and the <a href=\"%1$s\" target=\"_blank\">Direct Debit Request service agreement</a>, and authorize Stripe Payments Australia Pty Ltd ACN 160 180 343 Direct Debit User ID number 507156 (“Stripe”) to debit your account through the Bulk Electronic Clearing System (BECS) on behalf of %2$s (the “Merchant”) for any amounts separately communicated to you by the Merchant. You certify that you are either an account holder or an authorized signatory on the account listed above."
12786
  msgstr ""
12787
 
12788
+ #: includes/gateways/stripe/includes/give-stripe-helpers.php:1516
12789
  msgid "Give - Stripe Error"
12790
  msgstr ""
12791
 
12792
+ #: includes/gateways/stripe/includes/give-stripe-helpers.php:1519
12793
  msgid "Unable to retrieve account details. Please contact support for assistance. Details:"
12794
  msgstr ""
12795
 
12924
  msgid "Stripe Checkout"
12925
  msgstr ""
12926
 
12927
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:191, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:907
12928
  msgid "Stripe Webhooks"
12929
  msgstr ""
12930
 
13062
  msgstr ""
13063
 
13064
  #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:580
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13065
  msgid "Stripe JS Incompatibility"
13066
  msgstr ""
13067
 
13068
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:581
13069
  msgid "If your site has problems with processing cards using Stripe JS, check this option to use a fallback method of processing."
13070
  msgstr ""
13071
 
13072
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:587
13073
  msgid "Stripe Styles"
13074
  msgstr ""
13075
 
13076
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:588
13077
  msgid "Edit the properties above to match the look and feel of your WordPress theme. These styles will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. Any valid CSS property can be defined, however, it must be formatted as JSON, not CSS. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#element-options\" target=\"_blank\">article</a>."
13078
  msgstr ""
13079
 
13080
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:595
13081
  msgid "Stripe Fonts"
13082
  msgstr ""
13083
 
13084
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:596
13085
  msgid "Select the type of font you want to load in Stripe Credit Card fields including Card Number, CVC and Expiration. For more information on Styling Stripe CC fields please see this <a href=\"https://stripe.com/docs/stripe-js/reference#stripe-elements\" target=\"_blank\">article</a>."
13086
  msgstr ""
13087
 
13088
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:601
13089
  msgid "Google Fonts"
13090
  msgstr ""
13091
 
13092
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:602, includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:615
13093
  msgid "Custom Fonts"
13094
  msgstr ""
13095
 
13096
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:607
13097
  msgid "Google Fonts URL"
13098
  msgstr ""
13099
 
13100
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:608
13101
  msgid "Please enter the Google Fonts URL which is applied to your theme to have the Stripe Credit Card fields reflect the same fonts."
13102
  msgstr ""
13103
 
13104
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:616
13105
  msgid "Edit the font properties above to match the fonts of your WordPress theme. These font properties will be applied to Stripe Credit Card fields including Card Number, CVC and Expiration. However, it must be formatted as JSON, not CSS."
13106
  msgstr ""
13107
 
13108
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:693
13109
  msgid "You are connected! Now this is important: Please configure your Stripe webhook to finalize the setup."
13110
  msgstr ""
13111
 
13112
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:697
13113
  msgid "In order for Stripe to function properly, you must add a new Stripe webhook endpoint. To do this please visit the <a href='https://dashboard.stripe.com/webhooks' target='_blank'>Webhooks Section of your Stripe Dashboard</a> and click the <strong>Add endpoint</strong> button and paste the following URL:"
13114
  msgstr ""
13115
 
13116
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:700
13117
  msgid "Stripe webhooks are required so GiveWP can communicate properly with the payment gateway to confirm payment completion, renewals, and more."
13118
  msgstr ""
13119
 
13120
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:707
13121
  msgid "Manage Your Stripe Accounts"
13122
  msgstr ""
13123
 
13124
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:708
13125
  msgid "Connect to the Stripe payment gateway using this section. Multiple Stripe accounts can be connected simultaneously. All donation forms will use the \"Default Account\" unless configured otherwise. To specify a different Stripe account for a form, configure the settings within the \"Stripe Account\" tab on the individual form edit screen."
13126
  msgstr ""
13127
 
13128
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:716
13129
  msgid "NOTE: You are using the free Stripe payment gateway integration. This includes an additional 2%% fee for processing one-time donations. This fee is removed by activating the premium <a href=\"%1$s\" target=\"_blank\">Stripe add-on</a> and never applies to subscription donations made through the <a href=\"%2$s\" target=\"_blank\">Recurring Donations add-on</a>. <a href=\"%3$s\" target=\"_blank\">Learn More ></a>"
13130
  msgstr ""
13131
 
13132
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:822
13133
  msgid "No Stripe Accounts Connected."
13134
  msgstr ""
13135
 
13136
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:746
13137
  msgid "Are you sure you want to disconnect this Stripe account?"
13138
  msgstr ""
13139
 
13140
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:776
13141
  msgid "Update"
13142
  msgstr ""
13143
 
13144
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:789
13145
  msgid "Set as Default"
13146
  msgstr ""
13147
 
13148
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:781
13149
  msgid "Default Account"
13150
  msgstr ""
13151
 
13152
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:796
13153
  msgid "Connection Method:"
13154
  msgstr ""
13155
 
13156
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:811, src/PaymentGateways/PayPalCommerce/AdminSettingFields.php:167
13157
  msgid "Disconnect"
13158
  msgstr ""
13159
 
13160
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:865
13161
  msgid "Give 2.7.0 introduces the ability to connect a single site to multiple Stripe accounts. To use this feature, you need to complete database updates. "
13162
  msgstr ""
13163
 
13164
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:868
13165
  msgid "to complete your pending database updates."
13166
  msgstr ""
13167
 
13168
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:831
13169
  msgid "Connect a New Stripe Account"
13170
  msgstr ""
13171
 
13172
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:850
13173
  msgid "Stripe Connection"
13174
  msgstr ""
13175
 
13176
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:880
13177
  msgid "Remove GiveWP as an Authorized Application for my Stripe account."
13178
  msgstr ""
13179
 
13180
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:882
13181
  msgid "Removing GiveWP as an Authorized Application for your Stripe account will remove the connection between the website you are disconnecting as well as any other sites that you have connected to GiveWP using the same Stripe account and connect method. Proceed with caution when disconnecting if you have multiple sites connected."
13182
  msgstr ""
13183
 
13184
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:886
13185
  msgid "View authorized applications in Stripe"
13186
  msgstr ""
13187
 
13188
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:914
13189
  msgid "In order for Stripe to function properly, you must configure your Stripe webhooks."
13190
  msgstr ""
13191
 
13192
  #. translators: 1. Webhook settings page.
13193
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:917
13194
  msgid " You can visit your <a href=\"%1$s\" target=\"_blank\">Stripe Account Dashboard</a> to add a new webhook. "
13195
  msgstr ""
13196
 
13197
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:920
13198
  msgid "Please add a new webhook endpoint for the following URL:"
13199
  msgstr ""
13200
 
13201
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:924
13202
  msgid "Webhook URL:"
13203
  msgstr ""
13204
 
13205
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:934
13206
  msgid "Last webhook received on"
13207
  msgstr ""
13208
 
13209
  #. translators: 1. Documentation on webhook setup.
13210
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:943
13211
  msgid "See our <a href=\"%1$s\" target=\"_blank\">documentation</a> for more information."
13212
  msgstr ""
13213
 
13214
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:951
13215
  msgid "Stripe webhooks are critical to configure so that GiveWP can recieve communication properly from the payment gateway. Webhooks for test-mode donations are configured separately on the Stripe dashboard. Note: webhooks do not function on localhost or websites in maintenance mode."
13216
  msgstr ""
13217
 
13218
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:991
13219
  msgid "Base Styles"
13220
  msgstr ""
13221
 
13222
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1005
13223
  msgid "Empty Styles"
13224
  msgstr ""
13225
 
13226
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1021
13227
  msgid "Invalid Styles"
13228
  msgstr ""
13229
 
13230
+ #: includes/gateways/stripe/includes/admin/class-give-stripe-admin-settings.php:1037
13231
  msgid "Complete Styles"
13232
  msgstr ""
13233
 
13364
  msgid "How much would you like to donate? As a contributor to %s we make sure your donation goes directly to supporting our cause."
13365
  msgstr ""
13366
 
13367
+ #: src/Onboarding/DefaultFormFactory.php:127, src/Views/Form/Templates/Sequoia/optionConfig.php:130, src/Views/Form/Templates/Sequoia/optionConfig.php:132, src/Views/Form/Templates/Sequoia/Sequoia.php:71
13368
  msgid "Add Your Information"
13369
  msgstr ""
13370
 
13371
+ #: src/Onboarding/DefaultFormFactory.php:128, src/Views/Form/Templates/Sequoia/Actions.php:240, src/Views/Form/Templates/Sequoia/optionConfig.php:140, src/Views/Form/Templates/Sequoia/optionConfig.php:142
13372
  msgid "Who's giving today?"
13373
  msgstr ""
13374
 
13375
+ #: src/Onboarding/DefaultFormFactory.php:129, src/Views/Form/Templates/Sequoia/Actions.php:241, src/Views/Form/Templates/Sequoia/optionConfig.php:150, src/Views/Form/Templates/Sequoia/optionConfig.php:152
13376
  msgid "We’ll never share this information with anyone."
13377
  msgstr ""
13378
 
13379
+ #: src/Onboarding/DefaultFormFactory.php:134, src/Views/Form/Templates/Sequoia/optionConfig.php:173, src/Views/Form/Templates/Sequoia/optionConfig.php:175
13380
  msgid "A great big thank you!"
13381
  msgstr ""
13382
 
13383
+ #: src/Onboarding/DefaultFormFactory.php:135, src/Views/Form/Templates/Sequoia/optionConfig.php:183, src/Views/Form/Templates/Sequoia/optionConfig.php:185
13384
  msgid "{name}, your contribution means a lot and will be put to good use making a difference. We’ve sent your donation receipt to {donor_email}. "
13385
  msgstr ""
13386
 
13387
+ #: src/Onboarding/DefaultFormFactory.php:137, src/Views/Form/Templates/Sequoia/optionConfig.php:204, src/Views/Form/Templates/Sequoia/optionConfig.php:206
13388
  msgid "Help us out by sharing with friends and followers that you supported the cause!"
13389
  msgstr ""
13390
 
13391
+ #: src/Onboarding/DefaultFormFactory.php:138, src/Views/Form/Templates/Sequoia/optionConfig.php:214, src/Views/Form/Templates/Sequoia/optionConfig.php:216
13392
  msgid "I just gave to this cause. Who's next?"
13393
  msgstr ""
13394
 
14584
  msgid "Step description will show up here if any"
14585
  msgstr ""
14586
 
14587
+ #: src/Views/Form/Templates/Sequoia/Actions.php:265
14588
  msgid "How much would you like to donate? As a contributor to %s we make sure your donation goes directly to supporting our cause. Thank you for your generosity!"
14589
  msgstr ""
14590
 
14591
+ #: src/Views/Form/Templates/Sequoia/Actions.php:312
14592
  msgid "Donate with %1$s"
14593
  msgstr ""
14594
 
14596
  msgid "%1$s Step 1: %2$s Introduction"
14597
  msgstr ""
14598
 
14599
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:16, src/Views/Form/Templates/Sequoia/optionConfig.php:76, src/Views/Form/Templates/Sequoia/optionConfig.php:122, src/Views/Form/Templates/Sequoia/optionConfig.php:159
14600
  msgid "Step description goes here."
14601
  msgstr ""
14602
 
14608
  msgid "If enabled, a headline and description show for the first step of the donation process."
14609
  msgstr ""
14610
 
14611
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:31, src/Views/Form/Templates/Sequoia/optionConfig.php:136, src/Views/Form/Templates/Sequoia/optionConfig.php:169
14612
  msgid "Headline"
14613
  msgstr ""
14614
 
14616
  msgid "The headline displays at the top of step one, and defaults to the Form Title. Best practice: limit the headline to fewer than 8 words."
14617
  msgstr ""
14618
 
14619
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:41, src/Views/Form/Templates/Sequoia/optionConfig.php:146, src/Views/Form/Templates/Sequoia/optionConfig.php:179
14620
  msgid "Description"
14621
  msgstr ""
14622
 
14648
  msgid "%1$s Step 2: %2$s Payment Amount"
14649
  msgstr ""
14650
 
14651
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:80, src/Views/Form/Templates/Sequoia/optionConfig.php:126
14652
  msgid "Header Label"
14653
  msgstr ""
14654
 
14655
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:81, src/Views/Form/Templates/Sequoia/optionConfig.php:127
14656
  msgid "The Header Label displays at the top of this step, and is designed to focus the donor's attention on what this step is about. Best Practice: limit this to fewer than 4 words."
14657
  msgstr ""
14658
 
14660
  msgid "Content displays before the level amounts, and is designed to provide context for those levels. Best practice: limit this to 1-2 short sentences crafted to drive the donor to decide and to remove friction."
14661
  msgstr ""
14662
 
14663
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:109
14664
+ msgid "Decimal amounts"
14665
+ msgstr ""
14666
+
14667
  #: src/Views/Form/Templates/Sequoia/optionConfig.php:110
14668
+ msgid "Do you want to enable decimal amounts? When the setting is disabled, decimal values are rounded."
14669
+ msgstr ""
14670
+
14671
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:121
14672
  msgid "%1$s Step 3: %2$s Payment Information"
14673
  msgstr ""
14674
 
14675
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:137
14676
  msgid "The Headline introduces the section where donors provide information about themselves. Best practice: limit the headline to fewer than 5 words."
14677
  msgstr ""
14678
 
14679
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:147
14680
  msgid "The description displays below the checkout step, and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that they are making a wise decision."
14681
  msgstr ""
14682
 
14683
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:158
14684
  msgid "%1$s Step 4: %2$s Thank You"
14685
  msgstr ""
14686
 
14687
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:164
14688
  msgid "This image appears above the main thank you content. If no image is provided, a check mark icon will appear. For best results use an image in 16x9 aspect ratio at least 680x400px."
14689
  msgstr ""
14690
 
14691
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:170
14692
  msgid "This message displays in large font on the thank you screen. Best practice: short, sweet, and sincere works best."
14693
  msgstr ""
14694
 
14695
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:180
14696
  msgid "The description is displayed directly below the main headline and should be 1-2 sentences. You may use <a href=\"http://docs.givewp.com/email-tags\" target=\"_blank\">any of the available template tags</a> within this message."
14697
  msgstr ""
14698
 
14699
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:188
14700
  msgid "Social Sharing"
14701
  msgstr ""
14702
 
14703
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:189
14704
  msgid "Enable to display links for donors to share on social media that they donated."
14705
  msgstr ""
14706
 
14707
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:200
14708
  msgid "Sharing Instruction"
14709
  msgstr ""
14710
 
14711
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:201
14712
  msgid "Sharing instructions display above the social sharing buttons. Best practice: be direct, bold, and confident here. Donors share when they are asked to."
14713
  msgstr ""
14714
 
14715
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:210
14716
  msgid "Twitter Message"
14717
  msgstr ""
14718
 
14719
+ #: src/Views/Form/Templates/Sequoia/optionConfig.php:211
14720
  msgid "This puts \"words in the mouth\" of your donor to share with their Twitter followers."
14721
  msgstr ""
14722
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, fundraising, crowdfunding, givewp, give
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
- Stable tag: 2.10.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -232,6 +232,17 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
232
 
233
  == Changelog ==
234
 
 
 
 
 
 
 
 
 
 
 
 
235
  = 2.10.4: April 29th, 2021 =
236
  * Security: Resolved Authorized XSS vulnerability - note, you had to be logged in as admin to exploit it
237
  * Changed: Removed PHAR files from vendor directory to meet wp.org standards
5
  Requires at least: 4.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 2.11.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
232
 
233
  == Changelog ==
234
 
235
+ = 2.11.0: May 19th, 2021 =
236
+ * New: Multi-Step form template has a new setting to enable showing decimals in amounts
237
+ * New: Donor Dashboard is now fully translatable
238
+ * Changed: Indian state of Odisha (formerly Orissa) is now updated to reflect legal name change
239
+ * Changed: Onboarding includes KR (Repulic of Korea) currency option
240
+ * Changed: Removed legacy option to custom load Stripe SDK as it no longer did anything
241
+ * Fix: Editing a donor's address no longer removes spacing between words
242
+ * Fix: All email templates can now be disabled
243
+ * Fix: Applying Fee Recovery now correctly handles cent rounding in Stripe
244
+ * Fix: Importing donations now works on all main browsers
245
+
246
  = 2.10.4: April 29th, 2021 =
247
  * Security: Resolved Authorized XSS vulnerability - note, you had to be logged in as admin to exploit it
248
  * Changed: Removed PHAR files from vendor directory to meet wp.org standards
src/DonorDashboards/App.php CHANGED
@@ -121,7 +121,9 @@ class App {
121
  * Enqueue assets for front-end donor dashboards
122
  *
123
  * @since 2.10.0
124
- **@return void
 
 
125
  */
126
  public function loadAssets() {
127
  // Load assets only if rendering donor dashboard.
@@ -137,6 +139,12 @@ class App {
137
  true
138
  );
139
 
 
 
 
 
 
 
140
  $recaptcha_key = give_get_option( 'recaptcha_key' );
141
  $recaptcha_secret = give_get_option( 'recaptcha_secret' );
142
  $recaptcha_enabled = ( give_is_setting_enabled( give_get_option( 'enable_recaptcha' ) ) ) && ! empty( $recaptcha_key ) && ! empty( $recaptcha_secret ) ? true : false;
121
  * Enqueue assets for front-end donor dashboards
122
  *
123
  * @since 2.10.0
124
+ * @since 2.11.0 Set script translations.
125
+ *
126
+ * @return void
127
  */
128
  public function loadAssets() {
129
  // Load assets only if rendering donor dashboard.
139
  true
140
  );
141
 
142
+ /**
143
+ * @link https://make.wordpress.org/core/2018/11/09/new-javascript-i18n-support-in-wordpress/
144
+ * "...this is to allow WordPress to selectively load only the necessary translations to ensure everything is as fast as can be"
145
+ */
146
+ wp_set_script_translations( 'give-donor-dashboards-app', 'give' );
147
+
148
  $recaptcha_key = give_get_option( 'recaptcha_key' );
149
  $recaptcha_secret = give_get_option( 'recaptcha_secret' );
150
  $recaptcha_enabled = ( give_is_setting_enabled( give_get_option( 'enable_recaptcha' ) ) ) && ! empty( $recaptcha_key ) && ! empty( $recaptcha_secret ) ? true : false;
src/DonorDashboards/resources/js/app/components/annual-receipt-table/annual-receipt-row/index.js CHANGED
@@ -1,6 +1,5 @@
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
  import { __ } from '@wordpress/i18n';
3
- ;
4
 
5
  const AnnualReceiptRow = ( { annualReceipt } ) => {
6
  const { year, amount, count, statementUrl } = annualReceipt[ 1 ];
1
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
2
  import { __ } from '@wordpress/i18n';
 
3
 
4
  const AnnualReceiptRow = ( { annualReceipt } ) => {
5
  const { year, amount, count, statementUrl } = annualReceipt[ 1 ];
src/DonorDashboards/resources/js/app/components/avatar-control/index.js CHANGED
@@ -1,4 +1,5 @@
1
  import { useCallback, useState, useEffect } from 'react';
 
2
  import { useDropzone } from 'react-dropzone';
3
 
4
  import './style.scss';
@@ -28,7 +29,7 @@ const AvatarControl = ( { url, file, onChange } ) => {
28
  return (
29
  <div className="give-donor-dashboard-avatar-control">
30
  <label className="give-donor-dashboard-avatar-control__label">
31
- Avatar
32
  </label>
33
  <div className="give-donor-dashboard-avatar-control__input" { ...getRootProps() }>
34
  <input { ...getInputProps() } />
1
  import { useCallback, useState, useEffect } from 'react';
2
+ import { __ } from '@wordpress/i18n';
3
  import { useDropzone } from 'react-dropzone';
4
 
5
  import './style.scss';
29
  return (
30
  <div className="give-donor-dashboard-avatar-control">
31
  <label className="give-donor-dashboard-avatar-control__label">
32
+ { __( 'Avatar', 'give' ) }
33
  </label>
34
  <div className="give-donor-dashboard-avatar-control__input" { ...getRootProps() }>
35
  <input { ...getInputProps() } />
src/DonorDashboards/resources/js/app/components/currency-control/index.js CHANGED
@@ -9,7 +9,6 @@ import { toUniqueId, toKebabCase } from '../../utils';
9
  import './style.scss';
10
 
11
  import { __ } from '@wordpress/i18n';
12
- ;
13
 
14
  const CurrencyControl = ( { label, onChange, value, placeholder, currency, min, max, width } ) => {
15
  const id = toUniqueId( label );
9
  import './style.scss';
10
 
11
  import { __ } from '@wordpress/i18n';
 
12
 
13
  const CurrencyControl = ( { label, onChange, value, placeholder, currency, min, max, width } ) => {
14
  const id = toUniqueId( label );
src/DonorDashboards/resources/js/app/components/donation-row/index.js CHANGED
@@ -38,7 +38,7 @@ const DonationRow = ( { donation } ) => {
38
  ) }
39
  </div>
40
  <div className="give-donor-dashboard-table__pill">
41
- <div className="give-donor-dashboard-table__donation-id">ID: { payment.serialCode }</div>
42
  <div className="give-donor-dashboard-table__donation-receipt">
43
  <Link to={ `/donation-history/${ id }` }>
44
  { __( 'View Receipt', 'give' ) } <FontAwesomeIcon icon="arrow-right" />
38
  ) }
39
  </div>
40
  <div className="give-donor-dashboard-table__pill">
41
+ <div className="give-donor-dashboard-table__donation-id">{ __( 'ID', 'give' ) }: { payment.serialCode }</div>
42
  <div className="give-donor-dashboard-table__donation-receipt">
43
  <Link to={ `/donation-history/${ id }` }>
44
  { __( 'View Receipt', 'give' ) } <FontAwesomeIcon icon="arrow-right" />
src/DonorDashboards/resources/js/app/components/select-control/index.js CHANGED
@@ -10,7 +10,6 @@ import { useAccentColor } from '../../hooks';
10
  import './style.scss';
11
 
12
  import { __ } from '@wordpress/i18n';
13
- ;
14
 
15
  const SelectControl = ( { label, value, isLoading, onChange, options, placeholder, width, isClearable } ) => {
16
  if ( options && options.length < 2 ) {
10
  import './style.scss';
11
 
12
  import { __ } from '@wordpress/i18n';
 
13
 
14
  const SelectControl = ( { label, value, isLoading, onChange, options, placeholder, width, isClearable } ) => {
15
  if ( options && options.length < 2 ) {
src/DonorDashboards/resources/js/app/components/subscription-manager/amount-control/index.js CHANGED
@@ -75,7 +75,7 @@ const AmountControl = ( { form, payment, onChange, value } ) => {
75
  <div>
76
  { selectValue === 'custom_amount' && (
77
  <CurrencyControl
78
- label="Custom Amount"
79
  min={ form.custom_amount.minimum ? parseFloat( form.custom_amount.minimum ) : null }
80
  max={ form.custom_amount.maximum ? parseFloat( form.custom_amount.maximum ) : null }
81
  value={ customAmount }
75
  <div>
76
  { selectValue === 'custom_amount' && (
77
  <CurrencyControl
78
+ label={ __( 'Custom Amount', 'give' ) }
79
  min={ form.custom_amount.minimum ? parseFloat( form.custom_amount.minimum ) : null }
80
  max={ form.custom_amount.maximum ? parseFloat( form.custom_amount.maximum ) : null }
81
  value={ customAmount }
src/DonorDashboards/resources/js/app/components/subscription-manager/index.js CHANGED
@@ -4,7 +4,6 @@ import { Fragment, useState, useEffect } from 'react';
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
 
6
  import { __ } from '@wordpress/i18n';
7
- ;
8
 
9
  import AmountControl from './amount-control';
10
  import PaymentMethodControl from './payment-method-control';
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
 
6
  import { __ } from '@wordpress/i18n';
 
7
 
8
  import AmountControl from './amount-control';
9
  import PaymentMethodControl from './payment-method-control';
src/DonorDashboards/resources/js/app/components/subscription-receipt/index.js CHANGED
@@ -1,7 +1,5 @@
1
  import { Fragment } from 'react';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import { __ } from '@wordpress/i18n';
4
- ;
5
 
6
  const SubscriptionReceipt = ( { subscription } ) => {
7
 
1
  import { Fragment } from 'react';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
 
 
3
 
4
  const SubscriptionReceipt = ( { subscription } ) => {
5
 
src/DonorDashboards/resources/js/app/components/subscription-row/index.js CHANGED
@@ -1,7 +1,7 @@
1
  import { Link } from 'react-router-dom';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
  import { __ } from '@wordpress/i18n';
4
- ;
5
  import { useState, Fragment } from 'react';
6
  import SubscriptionCancelModal from '../subscription-cancel-modal';
7
  import { useWindowSize } from '../../hooks';
1
  import { Link } from 'react-router-dom';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
  import { __ } from '@wordpress/i18n';
4
+
5
  import { useState, Fragment } from 'react';
6
  import SubscriptionCancelModal from '../subscription-cancel-modal';
7
  import { useWindowSize } from '../../hooks';
src/DonorDashboards/resources/js/app/components/subscription-table/index.js CHANGED
@@ -1,7 +1,6 @@
1
  import { Fragment, useState } from 'react';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
  import { __ } from '@wordpress/i18n';
4
- ;
5
 
6
  import Table from '../table';
7
  import SubscriptionRow from '../subscription-row';
1
  import { Fragment, useState } from 'react';
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
  import { __ } from '@wordpress/i18n';
 
4
 
5
  import Table from '../table';
6
  import SubscriptionRow from '../subscription-row';
src/DonorDashboards/resources/js/app/components/tab-menu/index.js CHANGED
@@ -3,7 +3,6 @@ import { useState, Fragment } from 'react';
3
  import { useSelector } from 'react-redux';
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
  import { __ } from '@wordpress/i18n';
6
- ;
7
 
8
  // Internal dependencies
9
  import TabLink from '../tab-link';
3
  import { useSelector } from 'react-redux';
4
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
  import { __ } from '@wordpress/i18n';
 
6
 
7
  // Internal dependencies
8
  import TabLink from '../tab-link';
src/DonorDashboards/resources/js/app/tabs/annual-receipts/content.js CHANGED
@@ -1,7 +1,6 @@
1
  import { Fragment, useEffect } from 'react';
2
 
3
  import { __ } from '@wordpress/i18n';
4
- ;
5
 
6
  import Heading from '../../components/heading';
7
  import AnnualReceiptTable from '../../components/annual-receipt-table';
1
  import { Fragment, useEffect } from 'react';
2
 
3
  import { __ } from '@wordpress/i18n';
 
4
 
5
  import Heading from '../../components/heading';
6
  import AnnualReceiptTable from '../../components/annual-receipt-table';
src/DonorDashboards/resources/js/app/tabs/annual-receipts/index.js CHANGED
@@ -1,8 +1,9 @@
1
  // Internal dependencies
2
  import Content from './content';
 
3
 
4
  export const registerAnnualReceiptsTab = () => window.giveDonorDashboard.utils.registerTab( {
5
- label: 'Annual Receipts',
6
  icon: 'receipt',
7
  slug: 'annual-receipts',
8
  content: Content,
1
  // Internal dependencies
2
  import Content from './content';
3
+ import { __ } from '@wordpress/i18n';
4
 
5
  export const registerAnnualReceiptsTab = () => window.giveDonorDashboard.utils.registerTab( {
6
+ label: __( 'Annual Receipts', 'give' ),
7
  icon: 'receipt',
8
  slug: 'annual-receipts',
9
  content: Content,
src/DonorDashboards/resources/js/app/tabs/dashboard/index.js CHANGED
@@ -1,8 +1,9 @@
1
  // Internal dependencies
2
  import Content from './content';
 
3
 
4
  export const registerDashboardTab = () => window.giveDonorDashboard.utils.registerTab( {
5
- label: 'Dashboard',
6
  icon: 'home',
7
  slug: 'dashboard',
8
  content: Content,
1
  // Internal dependencies
2
  import Content from './content';
3
+ import { __ } from '@wordpress/i18n';
4
 
5
  export const registerDashboardTab = () => window.giveDonorDashboard.utils.registerTab( {
6
+ label: __( 'Dashboard', 'give' ),
7
  icon: 'home',
8
  slug: 'dashboard',
9
  content: Content,
src/DonorDashboards/resources/js/app/tabs/donation-history/content.js CHANGED
@@ -3,7 +3,6 @@ import { Fragment } from 'react';
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
 
5
  import { __ } from '@wordpress/i18n';
6
- ;
7
 
8
  import Heading from '../../components/heading';
9
  import Button from '../../components/button';
3
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
 
5
  import { __ } from '@wordpress/i18n';
 
6
 
7
  import Heading from '../../components/heading';
8
  import Button from '../../components/button';
src/DonorDashboards/resources/js/app/tabs/donation-history/dashboard-content.js CHANGED
@@ -7,7 +7,6 @@ import Stats from './stats';
7
  import { useSelector } from './hooks';
8
 
9
  import { __ } from '@wordpress/i18n';
10
- ;
11
 
12
  const DashboardContent = () => {
13
  const donations = useSelector( ( state ) => state.donations );
7
  import { useSelector } from './hooks';
8
 
9
  import { __ } from '@wordpress/i18n';
 
10
 
11
  const DashboardContent = () => {
12
  const donations = useSelector( ( state ) => state.donations );
src/DonorDashboards/resources/js/app/tabs/donation-history/index.js CHANGED
@@ -1,5 +1,4 @@
1
  import { __ } from '@wordpress/i18n';
2
- ;
3
 
4
  // Internal dependencies
5
  import Content from './content';
1
  import { __ } from '@wordpress/i18n';
 
2
 
3
  // Internal dependencies
4
  import Content from './content';
src/DonorDashboards/resources/js/app/tabs/donation-history/stats/index.js CHANGED
@@ -2,7 +2,6 @@ import { useSelector } from '../hooks';
2
  import { useAccentColor } from '../../../hooks';
3
 
4
  import { __ } from '@wordpress/i18n';
5
- ;
6
 
7
  import './style.scss';
8
  import { Fragment } from 'react';
2
  import { useAccentColor } from '../../../hooks';
3
 
4
  import { __ } from '@wordpress/i18n';
 
5
 
6
  import './style.scss';
7
  import { Fragment } from 'react';
src/DonorDashboards/resources/js/app/tabs/donation-history/utils/index.js CHANGED
@@ -39,7 +39,7 @@ export const fetchDonationsDataFromAPI = () => {
39
  .catch( ( { response } ) => {
40
  const { status, data } = response;
41
  if ( status === 403 && data.code === 'rest_cookie_invalid_nonce' ) {
42
- applicationDispatch( setApplicationError( __('Request was attempted with an invalid nonce. Try refreshing the page, and if the problem persists contact the site administrator and alert them of this error.', 'give') ) );
43
  }
44
  dispatch( setQuerying( false ) );
45
  } );
39
  .catch( ( { response } ) => {
40
  const { status, data } = response;
41
  if ( status === 403 && data.code === 'rest_cookie_invalid_nonce' ) {
42
+ applicationDispatch( setApplicationError( __('The site is unable to verify your access to this data. Try refreshing the page, and if the problem persists reach out to the site administrator.', 'give') ) );
43
  }
44
  dispatch( setQuerying( false ) );
45
  } );
src/DonorDashboards/resources/js/app/tabs/edit-profile/address-controls/index.js CHANGED
@@ -1,6 +1,6 @@
1
  import { Fragment } from 'react';
2
  import { __ } from '@wordpress/i18n';
3
- ;
4
  import AddressFields from '../address-fields';
5
 
6
  import Button from '../../../components/button';
1
  import { Fragment } from 'react';
2
  import { __ } from '@wordpress/i18n';
3
+
4
  import AddressFields from '../address-fields';
5
 
6
  import Button from '../../../components/button';
src/DonorDashboards/resources/js/app/tabs/edit-profile/address-fields/index.js CHANGED
@@ -2,7 +2,6 @@ import { Fragment, useState, useEffect } from 'react';
2
  import { useSelector, useDispatch } from 'react-redux';
3
  import { setStates } from '../../../store/actions';
4
  import { __ } from '@wordpress/i18n';
5
- ;
6
 
7
  import SelectControl from '../../../components/select-control';
8
  import TextControl from '../../../components/text-control';
2
  import { useSelector, useDispatch } from 'react-redux';
3
  import { setStates } from '../../../store/actions';
4
  import { __ } from '@wordpress/i18n';
 
5
 
6
  import SelectControl from '../../../components/select-control';
7
  import TextControl from '../../../components/text-control';
src/DonorDashboards/resources/js/app/tabs/edit-profile/content.js CHANGED
@@ -15,7 +15,6 @@ import AddressControls from './address-controls';
15
  import { Fragment, useState, useEffect } from 'react';
16
  import { useSelector } from 'react-redux';
17
  import { __ } from '@wordpress/i18n';
18
- ;
19
 
20
  import './style.scss';
21
 
@@ -34,14 +33,15 @@ const Content = () => {
34
  const titlePrefixOptions = [
35
  {
36
  value: 'Mr.',
37
- label: 'Mr.',
38
  },
39
  {
40
  value: 'Ms.',
41
- label: 'Ms.',
42
- }, {
 
43
  value: 'Mrs.',
44
- label: 'Mrs.',
45
  },
46
  ];
47
 
15
  import { Fragment, useState, useEffect } from 'react';
16
  import { useSelector } from 'react-redux';
17
  import { __ } from '@wordpress/i18n';
 
18
 
19
  import './style.scss';
20
 
33
  const titlePrefixOptions = [
34
  {
35
  value: 'Mr.',
36
+ label: __( 'Mr.', 'give' ),
37
  },
38
  {
39
  value: 'Ms.',
40
+ label: __( 'Ms.', 'give' ),
41
+ },
42
+ {
43
  value: 'Mrs.',
44
+ label: __( 'Mrs.', 'give' ),
45
  },
46
  ];
47
 
src/DonorDashboards/resources/js/app/tabs/edit-profile/email-controls/index.js CHANGED
@@ -1,6 +1,6 @@
1
  import { Fragment } from 'react';
2
  import { __ } from '@wordpress/i18n';
3
- ;
4
  import TextControl from '../../../components/text-control';
5
  import FieldRow from '../../../components/field-row';
6
  import Button from '../../../components/button';
1
  import { Fragment } from 'react';
2
  import { __ } from '@wordpress/i18n';
3
+
4
  import TextControl from '../../../components/text-control';
5
  import FieldRow from '../../../components/field-row';
6
  import Button from '../../../components/button';
src/DonorDashboards/resources/js/app/tabs/edit-profile/index.js CHANGED
@@ -1,8 +1,9 @@
1
  // Internal dependencies
2
  import Content from './content';
 
3
 
4
  export const registerEditProfileTab = () => window.giveDonorDashboard.utils.registerTab( {
5
- label: 'Edit Profile',
6
  icon: 'cog',
7
  slug: 'edit-profile',
8
  content: Content,
1
  // Internal dependencies
2
  import Content from './content';
3
+ import { __ } from '@wordpress/i18n';
4
 
5
  export const registerEditProfileTab = () => window.giveDonorDashboard.utils.registerTab( {
6
+ label: __( 'Edit Profile', 'give' ),
7
  icon: 'cog',
8
  slug: 'edit-profile',
9
  content: Content,
src/DonorDashboards/resources/js/app/tabs/recurring-donations/content.js CHANGED
@@ -2,7 +2,6 @@ import { useLocation, Link } from 'react-router-dom';
2
  import { Fragment } from 'react';
3
 
4
  import { __ } from '@wordpress/i18n';
5
- ;
6
 
7
  import Heading from '../../components/heading';
8
  import Divider from '../../components/divider';
2
  import { Fragment } from 'react';
3
 
4
  import { __ } from '@wordpress/i18n';
 
5
 
6
  import Heading from '../../components/heading';
7
  import Divider from '../../components/divider';
src/DonorDashboards/resources/js/app/tabs/recurring-donations/index.js CHANGED
@@ -1,3 +1,5 @@
 
 
1
  // Internal dependencies
2
  import Content from './content';
3
 
@@ -5,11 +7,11 @@ import { fetchSubscriptionsDataFromAPI } from './utils';
5
 
6
  export const registerRecurringDonationsTab = () => {
7
 
8
-
9
  fetchSubscriptionsDataFromAPI();
10
 
11
  window.giveDonorDashboard.utils.registerTab( {
12
- label: 'Recurring Donations',
13
  icon: 'sync',
14
  slug: 'recurring-donations',
15
  content: Content,
1
+ import { __ } from '@wordpress/i18n';
2
+
3
  // Internal dependencies
4
  import Content from './content';
5
 
7
 
8
  export const registerRecurringDonationsTab = () => {
9
 
10
+
11
  fetchSubscriptionsDataFromAPI();
12
 
13
  window.giveDonorDashboard.utils.registerTab( {
14
+ label: __( 'Recurring Donations', 'give' ),
15
  icon: 'sync',
16
  slug: 'recurring-donations',
17
  content: Content,
src/Onboarding/LocaleCollection.php CHANGED
@@ -6,6 +6,7 @@ namespace Give\Onboarding;
6
  * Fork of woocommerce/18n/locale-info
7
  *
8
  * @since 2.8.0
 
9
  */
10
  class LocaleCollection {
11
 
@@ -172,6 +173,15 @@ class LocaleCollection {
172
  'weight_unit' => 'kg',
173
  'dimension_unit' => 'cm',
174
  ],
 
 
 
 
 
 
 
 
 
175
  'LI' => [
176
  'currency_code' => 'CHF',
177
  'currency_pos' => 'left_space',
6
  * Fork of woocommerce/18n/locale-info
7
  *
8
  * @since 2.8.0
9
+ * @since 2.11.0 Added KR locale info (#5831)
10
  */
11
  class LocaleCollection {
12
 
173
  'weight_unit' => 'kg',
174
  'dimension_unit' => 'cm',
175
  ],
176
+ 'KR' => [
177
+ 'currency_code' => 'KRW',
178
+ 'currency_pos' => 'right',
179
+ 'thousand_sep' => ',',
180
+ 'decimal_sep' => '.',
181
+ 'num_decimals' => 0,
182
+ 'weight_unit' => 'kg',
183
+ 'dimension_unit' => 'cm',
184
+ ],
185
  'LI' => [
186
  'currency_code' => 'CHF',
187
  'currency_pos' => 'left_space',
src/Onboarding/Setup/templates/section.html CHANGED
@@ -3,8 +3,8 @@
3
  <h2>{{ title }}</h2>
4
  {{ badge }}
5
  </header>
6
- <main>
7
  {{ contents }}
8
- </main>
9
  {{ footer }}
10
  </section>
3
  <h2>{{ title }}</h2>
4
  {{ badge }}
5
  </header>
6
+ <div>
7
  {{ contents }}
8
+ </div>
9
  {{ footer }}
10
  </section>
src/ValueObjects/Money.php CHANGED
@@ -7,32 +7,61 @@ namespace Give\ValueObjects;
7
  * @package Give\ValueObjects
8
  *
9
  * @since 2.9.0
 
10
  */
11
  class Money {
12
  /**
13
- * @var int|string
 
14
  */
15
- private $amount;
16
 
17
  /**
18
- * @var int
19
  */
20
- private $minorAmount;
21
 
22
  /**
23
- * @var string
 
 
24
  */
25
- private $currency;
 
 
 
26
 
27
  /**
28
- * @var array
 
 
 
 
 
29
  */
30
- private $currencyData;
 
 
31
 
32
  /**
33
- * Return Money class object.
 
 
34
  *
 
 
 
 
 
 
 
 
 
 
 
 
35
  * @since 2.9.0
 
36
  *
37
  * @param int|string $amount Amount value without currency formatting
38
  * @param string $currency
@@ -40,33 +69,35 @@ class Money {
40
  * @return Money
41
  */
42
  public static function of( $amount, $currency ) {
43
- $object = new static();
44
-
45
- $object->amount = $amount;
46
- $object->currency = $currency;
47
- $object->currencyData = self::getCurrencyData( $currency );
48
 
49
- return $object;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
 
52
  /**
53
- * Return Money class object.
54
- *
55
  * @since 2.9.0
56
  *
57
- * @param int|string $amount
58
  * @param string $currency
59
  *
60
  * @return Money
61
  */
62
- public static function ofMinor( $amount, $currency ) {
63
- $object = new static();
64
-
65
- $object->minorAmount = $amount;
66
- $object->currency = $currency;
67
- $object->currencyData = self::getCurrencyData( $currency );
68
-
69
- return $object;
70
  }
71
 
72
  /**
@@ -88,53 +119,4 @@ class Money {
88
 
89
  return $currenciesData[ $currency ];
90
  }
91
-
92
- /**
93
- * Get amount in smallest unit of currency.
94
- *
95
- * @sicne 2.9.0
96
- *
97
- * @return int
98
- */
99
- public function getMinorAmount() {
100
- if ( $this->minorAmount ) {
101
- return $this->minorAmount;
102
- }
103
-
104
- $decimals = $this->getNumberDecimals();
105
-
106
- $tensMultiplier = 10 ** $decimals;
107
-
108
- return $this->minorAmount = absint( $this->amount * $tensMultiplier );
109
- }
110
-
111
- /**
112
- * Get amount in smallest unit of currency.
113
- *
114
- * @sicne 2.9.0
115
- *
116
- * @return string
117
- */
118
- public function getAmount() {
119
- if ( $this->amount ) {
120
- return $this->amount;
121
- }
122
-
123
- $decimals = $this->getNumberDecimals();
124
-
125
- $tensMultiplier = 10 ** $decimals;
126
-
127
- return $this->amount = absint( $this->minorAmount / $tensMultiplier );
128
- }
129
-
130
- /**
131
- * Returns the number of decimals based on the currency
132
- *
133
- * @since 2.9.0
134
- *
135
- * @return int
136
- */
137
- private function getNumberDecimals() {
138
- return $this->currencyData['setting']['number_decimals'];
139
- }
140
  }
7
  * @package Give\ValueObjects
8
  *
9
  * @since 2.9.0
10
+ * @since 2.11.0 Refactored to make the minor amount the base.
11
  */
12
  class Money {
13
  /**
14
+ * The amount in smallest unit of currency.
15
+ * @var int
16
  */
17
+ protected $minorAmount;
18
 
19
  /**
20
+ * @var array
21
  */
22
+ protected $currencyData;
23
 
24
  /**
25
+ * Money constructor.
26
+ * @param int $minorAmount
27
+ * @param array $currencyData
28
  */
29
+ public function __construct( $minorAmount, $currencyData ) {
30
+ $this->minorAmount = $minorAmount;
31
+ $this->currencyData = $currencyData;
32
+ }
33
 
34
  /**
35
+ * Get amount in smallest unit of currency.
36
+ *
37
+ * @sicne 2.9.0
38
+ * @since 2.11.0 Round minor amount to account for floating point precision.
39
+ *
40
+ * @return int
41
  */
42
+ public function getMinorAmount() {
43
+ return $this->minorAmount;
44
+ }
45
 
46
  /**
47
+ * Get amount in smallest unit of currency.
48
+ *
49
+ * @sicne 2.9.0
50
  *
51
+ * @return string
52
+ */
53
+ public function getAmount() {
54
+ if ( $this->currencyData['setting']['number_decimals'] ) {
55
+ return $this->minorAmount / ( 10 ** $this->currencyData['setting']['number_decimals'] );
56
+ }
57
+ return $this->minorAmount;
58
+ }
59
+
60
+ // Static Methods and Factories
61
+
62
+ /**
63
  * @since 2.9.0
64
+ * @since 2.11.0 Converts the amount to a minor amount when creating an instance.
65
  *
66
  * @param int|string $amount Amount value without currency formatting
67
  * @param string $currency
69
  * @return Money
70
  */
71
  public static function of( $amount, $currency ) {
 
 
 
 
 
72
 
73
+ $currencyData = self::getCurrencyData( $currency );
74
+
75
+ /**
76
+ * When working with float values, be careful when casting to an integer.
77
+ * Due to "floating point precision", the output may not match the expected value.
78
+ *
79
+ * @link https://www.php.net/manual/en/language.types.float.php
80
+ * This can lead to confusing results:
81
+ * for example, floor((0.1+0.7)*10) will usually return 7 instead of the expected 8,
82
+ * since the internal representation will be something like 7.9999999999999991118....
83
+ */
84
+ $amount = absint(
85
+ round( $amount * ( 10 ** $currencyData['setting']['number_decimals'] ) )
86
+ );
87
+
88
+ return new static( $amount, $currencyData );
89
  }
90
 
91
  /**
 
 
92
  * @since 2.9.0
93
  *
94
+ * @param int|string $minorAmount
95
  * @param string $currency
96
  *
97
  * @return Money
98
  */
99
+ public static function ofMinor( $minorAmount, $currency ) {
100
+ return new static( $minorAmount, self::getCurrencyData( $currency ) );
 
 
 
 
 
 
101
  }
102
 
103
  /**
119
 
120
  return $currenciesData[ $currency ];
121
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
src/Views/Form/Templates/Sequoia/Actions.php CHANGED
@@ -24,9 +24,16 @@ class Actions {
24
  // Get Template options
25
  $this->templateOptions = FormTemplateUtils::getOptions();
26
 
 
 
 
 
 
27
  // Set zero number of decimal.
28
- add_filter( 'give_get_currency_formatting_settings', [ $this, 'setupZeroNumberOfDecimalInCurrencyFormattingSetting' ], 1 );
29
- add_filter( 'give_get_option_number_decimals', [ $this, 'setupZeroNumberOfDecimal' ], 1 );
 
 
30
 
31
  // Handle personal section html template.
32
  add_action( 'wp_ajax_give_cancel_login', [ $this, 'cancelLoginAjaxHanleder' ], 9 );
24
  // Get Template options
25
  $this->templateOptions = FormTemplateUtils::getOptions();
26
 
27
+ // Get decimal numbers option
28
+ $decimalNumbersOption = isset( $this->templateOptions['payment_amount']['decimals_enabled'] )
29
+ ? $this->templateOptions['payment_amount']['decimals_enabled']
30
+ : 'disabled';
31
+
32
  // Set zero number of decimal.
33
+ if ( 'disabled' === $decimalNumbersOption ) {
34
+ add_filter( 'give_get_currency_formatting_settings', [ $this, 'setupZeroNumberOfDecimalInCurrencyFormattingSetting' ], 1 );
35
+ add_filter( 'give_get_option_number_decimals', [ $this, 'setupZeroNumberOfDecimal' ], 1 );
36
+ }
37
 
38
  // Handle personal section html template.
39
  add_action( 'wp_ajax_give_cancel_login', [ $this, 'cancelLoginAjaxHanleder' ], 9 );
src/Views/Form/Templates/Sequoia/assets/js/form.js CHANGED
@@ -455,6 +455,10 @@
455
  setupFFMInputs();
456
  setupInputIcons();
457
 
 
 
 
 
458
  /**
459
  * Limited scope of optional input labels, specifically to User Info, see issue #5160.
460
  */
@@ -849,4 +853,35 @@
849
  window.parentIFrame.sendMessage( { action: 'giveScrollIframeInToView' } );
850
  }
851
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
  }( jQuery ) );
455
  setupFFMInputs();
456
  setupInputIcons();
457
 
458
+ if ( 'enabled' === templateOptions.payment_amount.decimals_enabled ) {
459
+ updateFormDonationLevelsLabels();
460
+ }
461
+
462
  /**
463
  * Limited scope of optional input labels, specifically to User Info, see issue #5160.
464
  */
853
  window.parentIFrame.sendMessage( { action: 'giveScrollIframeInToView' } );
854
  }
855
  }
856
+
857
+ /**
858
+ * Update decimal donation levels amount
859
+ *
860
+ * @since 2.11.0
861
+ */
862
+ function updateFormDonationLevelsLabels() {
863
+ $( '.give-form' ).each( ( i, form ) => {
864
+ const donationForm = $( form );
865
+ const donationLevels = Give.form.fn.getVariablePrices( donationForm );
866
+ const symbol = Give.form.fn.getInfo( 'currency_symbol', donationForm );
867
+ const position = Give.form.fn.getInfo( 'currency_position', donationForm );
868
+ const precision = Give.form.fn.getInfo( 'number_decimals', donationForm );
869
+
870
+ $.each( donationLevels, function( j, level ) {
871
+ if ( 'custom' === level.price_id ) {
872
+ return;
873
+ }
874
+
875
+ const amount = Give.fn.numberHasDecimal( level.amount )
876
+ ? Give.fn.formatCurrency( level.amount, { symbol, position, precision }, donationForm )
877
+ : level.amount;
878
+
879
+ const donationLevelLabel = '<div class="currency currency--' + position + '">' + symbol + '</div>' + amount;
880
+
881
+ donationForm
882
+ .find( '.give-btn-level-' + level.price_id )
883
+ .html( donationLevelLabel );
884
+ } );
885
+ } );
886
+ }
887
  }( jQuery ) );
src/Views/Form/Templates/Sequoia/optionConfig.php CHANGED
@@ -104,6 +104,17 @@ return [
104
  ],
105
  'default' => __( 'Continue', 'give' ),
106
  ],
 
 
 
 
 
 
 
 
 
 
 
107
  ],
108
  ],
109
  'payment_information' => [
104
  ],
105
  'default' => __( 'Continue', 'give' ),
106
  ],
107
+ [
108
+ 'id' => 'decimals_enabled',
109
+ 'name' => __( 'Decimal amounts', 'give' ),
110
+ 'desc' => __( 'Do you want to enable decimal amounts? When the setting is disabled, decimal values are rounded.', 'give' ),
111
+ 'type' => 'radio_inline',
112
+ 'default' => 'disabled',
113
+ 'options' => [
114
+ 'disabled' => __( 'Disabled', 'give' ),
115
+ 'enabled' => __( 'Enabled', 'give' ),
116
+ ],
117
+ ],
118
  ],
119
  ],
120
  'payment_information' => [
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5128c662424ce006940518806f690101::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit9bc52646b892e1fe21ac61c2198601e9::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -27,12 +27,12 @@ class InstalledVersions
27
  private static $installed = array (
28
  'root' =>
29
  array (
30
- 'pretty_version' => '2.10.4',
31
- 'version' => '2.10.4.0',
32
  'aliases' =>
33
  array (
34
  ),
35
- 'reference' => '5ad7b7e345b5f8428f4036e3dad456ec3add0da3',
36
  'name' => 'impress-org/give',
37
  ),
38
  'versions' =>
@@ -71,12 +71,12 @@ private static $installed = array (
71
  ),
72
  'impress-org/give' =>
73
  array (
74
- 'pretty_version' => '2.10.4',
75
- 'version' => '2.10.4.0',
76
  'aliases' =>
77
  array (
78
  ),
79
- 'reference' => '5ad7b7e345b5f8428f4036e3dad456ec3add0da3',
80
  ),
81
  'kjohnson/format-object-list' =>
82
  array (
27
  private static $installed = array (
28
  'root' =>
29
  array (
30
+ 'pretty_version' => '2.11.0',
31
+ 'version' => '2.11.0.0',
32
  'aliases' =>
33
  array (
34
  ),
35
+ 'reference' => 'f283440cc1d26330ae1ad5b87c48dd11198cadbb',
36
  'name' => 'impress-org/give',
37
  ),
38
  'versions' =>
71
  ),
72
  'impress-org/give' =>
73
  array (
74
+ 'pretty_version' => '2.11.0',
75
+ 'version' => '2.11.0.0',
76
  'aliases' =>
77
  array (
78
  ),
79
+ 'reference' => 'f283440cc1d26330ae1ad5b87c48dd11198cadbb',
80
  ),
81
  'kjohnson/format-object-list' =>
82
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit5128c662424ce006940518806f690101
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit5128c662424ce006940518806f690101
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit5128c662424ce006940518806f690101', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit5128c662424ce006940518806f690101', '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\ComposerStaticInit5128c662424ce006940518806f690101::getInitializer($loader));
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 ComposerAutoloaderInit9bc52646b892e1fe21ac61c2198601e9
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit9bc52646b892e1fe21ac61c2198601e9', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit9bc52646b892e1fe21ac61c2198601e9', '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\ComposerStaticInit9bc52646b892e1fe21ac61c2198601e9::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 ComposerStaticInit5128c662424ce006940518806f690101
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
@@ -96,9 +96,9 @@ class ComposerStaticInit5128c662424ce006940518806f690101
96
  public static function getInitializer(ClassLoader $loader)
97
  {
98
  return \Closure::bind(function () use ($loader) {
99
- $loader->prefixLengthsPsr4 = ComposerStaticInit5128c662424ce006940518806f690101::$prefixLengthsPsr4;
100
- $loader->prefixDirsPsr4 = ComposerStaticInit5128c662424ce006940518806f690101::$prefixDirsPsr4;
101
- $loader->classMap = ComposerStaticInit5128c662424ce006940518806f690101::$classMap;
102
 
103
  }, null, ClassLoader::class);
104
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit9bc52646b892e1fe21ac61c2198601e9
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 = ComposerStaticInit9bc52646b892e1fe21ac61c2198601e9::$prefixLengthsPsr4;
100
+ $loader->prefixDirsPsr4 = ComposerStaticInit9bc52646b892e1fe21ac61c2198601e9::$prefixDirsPsr4;
101
+ $loader->classMap = ComposerStaticInit9bc52646b892e1fe21ac61c2198601e9::$classMap;
102
 
103
  }, null, ClassLoader::class);
104
  }
vendor/composer/installed.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php return array (
2
  'root' =>
3
  array (
4
- 'pretty_version' => '2.10.4',
5
- 'version' => '2.10.4.0',
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '5ad7b7e345b5f8428f4036e3dad456ec3add0da3',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
@@ -45,12 +45,12 @@
45
  ),
46
  'impress-org/give' =>
47
  array (
48
- 'pretty_version' => '2.10.4',
49
- 'version' => '2.10.4.0',
50
  'aliases' =>
51
  array (
52
  ),
53
- 'reference' => '5ad7b7e345b5f8428f4036e3dad456ec3add0da3',
54
  ),
55
  'kjohnson/format-object-list' =>
56
  array (
1
  <?php return array (
2
  'root' =>
3
  array (
4
+ 'pretty_version' => '2.11.0',
5
+ 'version' => '2.11.0.0',
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => 'f283440cc1d26330ae1ad5b87c48dd11198cadbb',
10
  'name' => 'impress-org/give',
11
  ),
12
  'versions' =>
45
  ),
46
  'impress-org/give' =>
47
  array (
48
+ 'pretty_version' => '2.11.0',
49
+ 'version' => '2.11.0.0',
50
  'aliases' =>
51
  array (
52
  ),
53
+ 'reference' => 'f283440cc1d26330ae1ad5b87c48dd11198cadbb',
54
  ),
55
  'kjohnson/format-object-list' =>
56
  array (