// source --> https://orientacnedni.sk/wp-content/plugins/give/assets/dist/js/give.js?ver=2.3.2 !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],t):"object"==typeof exports?exports.Give=t(require("jQuery")):e.Give=t(e.jQuery)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(t,n){t.exports=e},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){e.exports=t.accounting=n(3)}).call(t,n(1))},function(e,t,n){/*! * accounting.js v0.4.1 * Copyright 2014 Open Exchange Rates * * Freely distributable under the MIT license. * Portions of accounting.js are inspired or borrowed from underscore.js * * Full details and documentation: * http://openexchangerates.github.io/accounting.js/ */ !function(n,r){function i(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function o(e){return p?p(e):"[object Array]"===m.call(e)}function a(e){return e&&"[object Object]"===m.call(e)}function s(e,t){var n;e=e||{},t=t||{};for(n in t)t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function l(e,t,n){var r,i,o=[];if(!e)return o;if(d&&e.map===d)return e.map(t,n);for(r=0,i=e.length;r3?p.length%3:0;return d+(m?p.substr(0,m)+i.thousand:"")+p.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+i.thousand)+(c?i.decimal+g(Math.abs(e),c).split(".")[1]:"")},y=f.formatMoney=function(e,t,n,r,i,d){if(o(e))return l(e,function(e){return y(e,t,n,r,i,d)});e=v(e);var p=s(a(t)?t:{symbol:t,precision:n,thousand:r,decimal:i,format:d},f.settings.currency),m=c(p.format);return(e>0?m.pos:e<0?m.neg:m.zero).replace("%s",p.symbol).replace("%v",h(Math.abs(e),u(p.precision),p.thousand,p.decimal))};f.formatColumn=function(e,t,n,r,d,p){if(!e)return[];var m=s(a(t)?t:{symbol:t,precision:n,thousand:r,decimal:d,format:p},f.settings.currency),g=c(m.format),y=g.pos.indexOf("%s")0?g.pos:e<0?g.neg:g.zero,r=n.replace("%s",m.symbol).replace("%v",h(Math.abs(e),u(m.precision),m.thousand,m.decimal));return r.length>b&&(b=r.length),r}),function(e,t){return i(e)&&e.length(e||u.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,r){var i;r.data&&(n=e.extend(r.data,n)),d("MarkupParse",[t,n,r]),e.each(n,function(n,r){if(void 0===r||!1===r)return!0;if(i=n.split("_"),i.length>1){var o=t.find(".mfp-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(".mfp-"+n).html(r)})},_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 m(),t=t?e.extend(!0,{},t):{},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:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=l?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var g,h,y,b=function(){y&&(h.after(y.addClass(g)).detach(),y=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),c("Close.inline",function(){b()})},getInline:function(n,r){if(b(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(h||(g=i.hiddenClass,h=f(g),g="mfp-"+g),y=o.after(h).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("
");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var _,w=function(){_&&e(document.body).removeClass(_)},C=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),_=t.st.ajax.cursor,c("Close.ajax",C),c("BeforeChange.ajax",C)},getAjax:function(n){_&&e(document.body).addClass(_),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};d("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),d("AjaxContentAdded")},error:function(){w(),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(r),""}}});var x,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),c("Open"+r,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),c("Close"+r,function(){n.cursor&&e(document.body).removeClass(n.cursor),u.off("resize.mfp")}),c("Resize"+r,t.resizeImage),t.isLowIE&&c("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,d("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){x&&clearInterval(x),x=setInterval(function(){if(r.naturalWidth>0)return void t._onImageHasSize(e);n>200&&clearInterval(x),n++,3===n?i(10):40===n?i(50):100===n&&i(500)},o)};i(1)},getImage:function(n,r){var i=0,o=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,d("ImageLoadComplete")):(i++,i<200?setTimeout(o,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=r.find(".mfp-img");if(l.length){var u=document.createElement("img");u.className="mfp-img",n.el&&n.el.find("img").length&&(u.alt=n.el.find("img").attr("alt")),n.img=e(u).on("load.mfploader",o).on("error.mfploader",a),u.src=n.src,l.is("img")&&(n.img=n.img.clone()),u=n.img[0],u.naturalWidth>0?n.hasSize=!0:u.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}});var I,j=function(){return void 0===I&&(I=void 0!==document.createElement("p").style.MozTransform),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,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},l=function(){t.content.css("visibility","visible")};c("BuildControls"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();o=s(e),o.css(t._getOffset()),t.wrap.append(o),i=setTimeout(function(){o.css(t._getOffset(!0)),i=setTimeout(function(){l(),setTimeout(function(){o.remove(),e=o=null,d("ZoomAnimationEnded")},16)},a)},16)}}),c("BeforeClose"+r,function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=s(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout(function(){o.css(t._getOffset())},16)}}),c("Close"+r,function(){t._allowZoom()&&(l(),o&&o.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r;r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var i=r.offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var s={width:r.width(),height:(l?r.innerHeight():r[0].offsetHeight)-a-o};return j()?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.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:'
',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"),c("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?S():"iframe"===n&&S(!0))}),c("Close.iframe",function(){S()})},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var E=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},O=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',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,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",c("Open"+i,function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),r.on("keydown"+i,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),c("UpdateStatus"+i,function(e,n){n.text&&(n.text=O(n.text,t.currItem.index,t.items.length))}),c("MarkupParse"+i,function(e,r,i,o){var a=t.items.length;i.counter=a>1?O(n.tCounter,o.index,a):""}),c("BuildControls"+i,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");i.click(function(){t.prev()}),o.click(function(){t.next()}),t.container.append(i.add(o))}}),c("Change"+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),c("Close"+i,function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=E(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=E(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,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=E(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),d("LazyLoad",r),"image"===r.type&&(r.img=e('').on("load.mfploader",function(){r.hasSize=!0}).on("error.mfploader",function(){r.hasSize=!0,r.loadError=!0,d("LazyLoadError",r)}).attr("src",r.src)),r.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,n>1&&(c("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),c("ElementParse.retina",function(t,r){r.src=e.replaceSrc(r,n)}))}}}}),m()})},function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each(function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after(''),r=n.next(),r.css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")})},jQuery(document).ready(function(e){function t(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),r=e.grep(n,function(e){return-1!==e.indexOf("give-icon")}),r.length&&(r=r.join(" "),t.removeClass(r),t.append(''))),t.addClass("hint--top"),150&&(o=i.substring(i.indexOf("."),i.length)),i=Math.floor(i).toString(),s=i.substring(i.length-3),l=i.substring(0,i.length-3),""!==l&&(s=r.thousand+s),u=l.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+s+o,c=u.lastIndexOf("."),u=u.slice(0,c)+(u.slice(c)+"000000000000").substr(0,t.precision+1),e=u,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;e=e.replace(n,""),0===e.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),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),r=n.exec(t);return r?r[2]?decodeURIComponent(r[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?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n=void 0,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=t.length?void 0!==r?r[e]:"":a.cache[e],n=void 0===n?"":n},__getCookie:function(e){var t="; "+document.cookie,n=t.split("; "+e+"="),r="";return 2===n.length&&(r=n.pop().split(";").shift()),r}},cache:{}};a.notice=r.a,a.form=i.a,a.donor=o.a,t.a=a},function(e,t,n){"use strict";t.a={fn:{renderNotice:function(e,t){var n=void 0;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('
'+this.getNotice(e,t)+"
");break;case"bad_maximum":n=jQuery('
'+this.getNotice(e,t)+"
")}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}}}},function(e,t,n){"use strict";t.a={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},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},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?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:n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e),void 0!==n&&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?(t=e.find('input[name="payment-mode"]:checked').val().trim(),void 0!==t?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+'"]').focus().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 s=Give.fn.getParameterByName("level-id"),l=r.find('*[data-price-id="'+s+'"]');if(l.length>0&&this.autoSetMultiLevel(l),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length)return void 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=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)]=[]})},field:{formatCreditCard:function(e){e.each(function(e,t){t=jQuery(t);var n=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"))})}}}}},function(e,t,n){"use strict";t.a={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}}},function(e,t){!function(e){"use strict";function t(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}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,n,r,i,o){e.addEventListener(n,t(r,i),o)}}(window)},,function(e,t){(function(t){e.exports=t}).call(t,{})},,function(e,t,n){n(15),e.exports=n(16)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"init",function(){return f}),n.d(t,"fn",function(){return d}),n.d(t,"form",function(){return p}),n.d(t,"notice",function(){return m}),n.d(t,"cache",function(){return v}),n.d(t,"donor",function(){return g});var r=n(17),i=(n.n(r),n(2)),o=(n.n(i),n(18)),a=(n.n(o),n(4)),s=(n.n(a),n(5)),l=(n.n(s),n(6)),u=n(22),c=(n.n(u),n(23)),f=(n.n(c),n(24),n(26),l.a.init),d=l.a.fn,p=l.a.form,m=l.a.notice,v=l.a.cache,g=l.a.donor},function(e,t){(function(){var e,t,n,r,i,o,a,s,l,u,c,f,d,p,m,v,g,h,y,b,_,w,C,x,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t9&&(t-=9),i+=t;return i%10==0},f=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},C=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a,s,l;for(null==e&&(e=""),r="0123456789",i="0123456789",a="",t=e.split(""),s=0,l=t.length;s-1&&(n=i[o]),a+=n;return a},g=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=h(e),e=e.replace(/\D/g,""),C(e,n)})},m=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),C(t,n)})},s=function(n){var r,i,o,a,s,l,u;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),u=r.val(),i=t(u+o),a=(u.replace(/\D/g,"")+o).length,l=16,i&&(l=i.length[i.length.length-1]),!(a>=l||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==u.length)))return s=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/,s.test(u)?(n.preventDefault(),setTimeout(function(){return r.val(u+" "+o)})):s.test(u+o)?(n.preventDefault(),setTimeout(function(){return r.val(u+o+" ")})):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s$/,""))})):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d$/,""))})):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),C(t,n)})},l=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout(function(){return n.val("0"+i+" / ")})):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout(function(){var e,t;return e=parseInt(i[0],10),t=parseInt(i[1],10),t>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")})):void 0},u=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},c=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return n=e(t.currentTarget),r=n.val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout(function(){return n.val(r.replace(/\d\s\/\s$/,""))})):void 0},p=function(t){var n;return n=e(t.currentTarget),setTimeout(function(){var e;return e=n.val(),e=h(e),e=e.replace(/\D/g,"").slice(0,4),C(e,n)})},w=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!f(r))return a=(r.val()+o).replace(/\D/g,""),i=t(a),i?a.length<=i.length[i.length.length-1]:a.length<=16},_=function(t){var n,r,i;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return i=n.val()+r,i=i.replace(/\D/g,""),!(i.length>6)&&void 0},y=function(t){var n,r,i;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!f(n))return i=n.val()+r,i.length<=4},x=function(t){var n,i,o,a,s;if(n=e(t.currentTarget),s=n.val(),a=e.payment.cardType(s)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e=0&&(!1===n.luhn||d(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(o=t,t=o.month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(i=n(r),null!=i?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e?(null!=(n=t(e))?n.type:void 0)||null:null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),i=e.grep(i,function(e){return e}),i.join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",i=n[3]||"",i.length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},function(e,t,n){var r=n(0);n(19);var i=n(20),o={};o.transitionDelay=250,o.blockWith=function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),s=i(a).first();return s&&s.preventDefault&&s.preventDefault(),r.blockUI({message:null}),setTimeout(function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always(function(){r.unblockUI()}).then(t.resolve,t.reject):r.unblockUI()},o.transitionDelay),t.promise()},o.makeBlocked=function(e){return i.wrap(e,o.blockWith)},e.exports=o},function(e,t,n){var r,i,o;!function(){"use strict";function a(e){function t(t,r){var o,v,g=t==window,h=r&&void 0!==r.message?r.message:void 0;if(r=e.extend({},e.blockUI.defaults,r||{}),!r.ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(r.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,r.overlayCSS||{}),o=e.extend({},e.blockUI.defaults.css,r.css||{}),r.onOverlayClick&&(r.overlayCSS.cursor="pointer"),v=e.extend({},e.blockUI.defaults.themedCSS,r.themedCSS||{}),h=void 0===h?r.message:h,g&&p&&n(window,{fadeOut:0}),h&&"string"!=typeof h&&(h.parentNode||h.jquery)){var y=h.jquery?h[0]:h,b={};e(t).data("blockUI.history",b),b.el=y,b.parent=y.parentNode,b.display=y.style.display,b.position=y.style.position,b.parent&&b.parent.removeChild(y)}e(t).data("blockUI.onUnblock",r.onUnblock);var _,w,C,x,k=r.baseZ;_=e(c||r.forceIframe?'':''),w=e(r.theme?'':''),r.theme&&g?(x='"):r.theme?(x='"):x=g?'':'',C=e(x),h&&(r.theme?(C.css(v),C.addClass("ui-widget-content")):C.css(o)),r.theme||w.css(r.overlayCSS),w.css("position",g?"fixed":"absolute"),(c||r.forceIframe)&&_.css("opacity",0);var I=[_,w,C],j=e(g?"body":t);e.each(I,function(){this.appendTo(j)}),r.theme&&r.draggable&&e.fn.draggable&&C.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=d&&(!e.support.boxModel||e("object,embed",g?null:t).length>0);if(f||S){if(g&&r.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(f||!e.support.boxModel)&&!g)var E=l(t,"borderTopWidth"),O=l(t,"borderLeftWidth"),G=E?"(0 - "+E+")":0,A=O?"(0 - "+O+")":0;e.each(I,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)g?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+r.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),g?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),A&&n.setExpression("left",A),G&&n.setExpression("top",G);else if(r.centerY)g&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!r.centerY&&g){var i=r.css&&r.css.top?parseInt(r.css.top,10):0,o="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+i+') + "px"';n.setExpression("top",o)}})}if(h&&(r.theme?C.find(".ui-widget-content").append(h):C.append(h),(h.jquery||h.nodeType)&&e(h).show()),(c||r.forceIframe)&&r.showOverlay&&_.show(),r.fadeIn){var T=r.onBlock?r.onBlock:u,M=r.showOverlay&&!h?T:u,P=h?T:u;r.showOverlay&&w._fadeIn(r.fadeIn,M),h&&C._fadeIn(r.fadeIn,P)}else r.showOverlay&&w.show(),h&&C.show(),r.onBlock&&r.onBlock.bind(C)();if(i(1,t,r),g?(p=C[0],m=e(r.focusableElements,p),r.focusInput&&setTimeout(a,20)):s(C[0],r.centerX,r.centerY),r.timeout){var N=setTimeout(function(){g?e.unblockUI(r):e(t).unblock(r)},r.timeout);e(t).data("blockUI.timeout",N)}}}function n(t,n){var o,a=t==window,s=e(t),l=s.data("blockUI.history"),u=s.data("blockUI.timeout");u&&(clearTimeout(u),s.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),i(0,t,n),null===n.onUnblock&&(n.onUnblock=s.data("blockUI.onUnblock"),s.removeData("blockUI.onUnblock"));var c;c=a?e("body").children().filter(".blockUI").add("body > .blockUI"):s.find(">.blockUI"),n.cursorReset&&(c.length>1&&(c[1].style.cursor=n.cursorReset),c.length>2&&(c[2].style.cursor=n.cursorReset)),a&&(p=m=null),n.fadeOut?(o=c.length,c.stop().fadeOut(n.fadeOut,function(){0==--o&&r(c,l,n,t)})):r(c,l,n,t)}function r(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function i(t,n,r){var i=n==window,a=e(n);if((t||(!i||p)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,r,o):e(document).unbind(s,o)}}function o(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var n=m,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){a(i)},10),!1}var o=t.data,s=e(t.target);return s.hasClass("blockOverlay")&&o.onOverlayClick&&o.onOverlayClick(t),s.parents("div."+o.blockMsgClass).length>0||0===s.parents().children().filter("div.blockUI").length}function a(e){if(m){var t=m[!0===e?m.length-1:0];t&&t.focus()}}function s(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-l(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-l(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0"),n&&(i.top=a>0?a+"px":"0")}function l(t,n){return parseInt(e.css(t,n),10)||0}e.fn._fadeIn=e.fn.fadeIn;var u=e.noop||function(){},c=/MSIE/.test(navigator.userAgent),f=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),d=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){n(window,e)},e.growlUI=function(t,n,r,i){var o=e('
');t&&o.append("

"+t+"

"),n&&o.append("

"+n+"

"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(n){if(this[0]===window)return e.blockUI(n),this;var r=e.extend({},e.blockUI.defaults,n||{});return this.each(function(){var t=e(this);r.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,n)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){n(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,m=[]}n(12)&&n(12).jQuery?(i=[n(0)],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)):a(jQuery)}()},function(e,t,n){(function(e,n){var r,i;!function(){var o="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},a=o._,s=Array.prototype,l=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,c=s.push,f=s.slice,d=l.toString,p=l.hasOwnProperty,m=Array.isArray,v=Object.keys,g=Object.create,h=function(){},y=function(e){return e instanceof y?e:this instanceof y?void(this._wrapped=e):new y(e)};void 0===t||t.nodeType?o._=y:(void 0!==n&&!n.nodeType&&n.exports&&(t=n.exports=y),t._=y),y.VERSION="1.9.1";var b,_=function(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)}},w=function(e,t,n){return y.iteratee!==b?y.iteratee(e,t):null==e?y.identity:y.isFunction(e)?_(e,t,n):y.isObject(e)&&!y.isArray(e)?y.matcher(e):y.property(e)};y.iteratee=b=function(e,t){return w(e,t,1/0)};var C=function(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=0&&t<=S};y.each=y.forEach=function(e,t,n){t=_(t,n);var r,i;if(O(e))for(r=0,i=e.length;r0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s=3;return t(e,_(n,i,4),r,o)}};y.reduce=y.foldl=y.inject=G(1),y.reduceRight=y.foldr=G(-1),y.find=y.detect=function(e,t,n){var r=O(e)?y.findIndex:y.findKey,i=r(e,t,n);if(void 0!==i&&-1!==i)return e[i]},y.filter=y.select=function(e,t,n){var r=[];return t=w(t,n),y.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},y.reject=function(e,t,n){return y.filter(e,y.negate(w(t)),n)},y.every=y.all=function(e,t,n){t=w(t,n);for(var r=!O(e)&&y.keys(e),i=(r||e).length,o=0;o=0},y.invoke=C(function(e,t,n){var r,i;return y.isFunction(t)?i=t:y.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),y.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=j(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=O(e)?e:y.values(e);for(var s=0,l=e.length;so&&(o=r)}else t=w(t,n),y.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},y.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=O(e)?e:y.values(e);for(var s=0,l=e.length;sr||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(f.call(r,a,s),y.isNaN),o>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&ot?(r&&(clearTimeout(r),r=null),s=u,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,c)),a};return u.cancel=function(){clearTimeout(r),s=0,r=i=o=null},u},y.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=C(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=y.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){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}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2),y.restArguments=C;var Q=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],z=function(e,t){var n=B.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||l,o="constructor";for(I(e,o)&&!y.contains(t,o)&&t.push(o);n--;)(o=B[n])in e&&e[o]!==i[o]&&!y.contains(t,o)&&t.push(o)};y.keys=function(e){if(!y.isObject(e))return[];if(v)return v(e);var t=[];for(var n in e)I(e,n)&&t.push(n);return Q&&z(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return Q&&z(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i1&&(r=_(r,t[1])),t=y.allKeys(e)):(r=F,t=M(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i1&&(n=t[1])):(t=y.map(M(t,!1,!1),String),r=function(e,n){return!y.contains(t,n)}),y.pick(e,r,n)}),y.defaults=U(y.allKeys,!0),y.create=function(e,t){var n=x(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o":">",'"':""","'":"'","`":"`"},R=y.invert(H),W=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(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}};y.escape=W(H),y.unescape=W(R),y.result=function(e,t,n){y.isArray(t)||(t=[t]);var r=t.length;if(!r)return y.isFunction(n)?n.call(e):n;for(var i=0;i/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,Z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Y=/\\|'|\r|\n|\u2028|\u2029/g,J=function(e){return"\\"+Z[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(t,n,r,a,s){return o+=e.slice(i,s).replace(Y,J),i=s+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",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";var a;try{a=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return a.call(this,e,y)};return s.source="function("+(t.variable||"obj")+"){\n"+o+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var X=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){return y.each(y.functions(e),function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),X(this,n.apply(y,e))}}),y},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=s[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],X(this,n)}}),y.each(["concat","join","slice"],function(e){var t=s[e];y.prototype[e]=function(){return X(this,t.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},r=[],void 0!==(i=function(){return y}.apply(t,r))&&(n.exports=i)}()}).call(t,n(1),n(21)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){jQuery(function(e){function t(){var t=e(this),n=t.parents("form");if("card_state"!==t.attr("id")){n.find("#card_state").empty().append('").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(e){var t="",i=e.states_label;if(t=void 0!==e.states_found&&!0===e.states_found?e.data:'',!1===n.hasClass("float-labels-enabled")){void 0!==e.states_require&&!0===e.states_require?n.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").removeClass("give-hidden"):n.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .give-required-indicator").addClass("give-hidden");var o=n.find('input[name="card_city"]');void 0!==e.city_require&&!0===e.city_require?(o.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),o.attr("required",!0)):(o.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),o.removeAttr("required"))}else n.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label").text(i);n.find('input[name="card_state"], select[name="card_state"]').closest("p").find("label .state-label-text").text(i),n.find('input[name="card_state"], select[name="card_state"]').replaceWith(t),void 0!==e.show_field&&!0===e.show_field?(n.find("p#give-card-state-wrap").removeClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-last"),n.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(n.find("p#give-card-state-wrap").addClass("give-hidden"),n.find("p#give-card-zip-wrap").addClass("form-row-wide"),n.find("p#give-card-zip-wrap").removeClass("form-row-last")),r.trigger("give_checkout_billing_address_updated",[e,n.attr("id")])}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}var n=jQuery("form.give-form"),r=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),r.on("change","#give_cc_address input.card_state, #give_cc_address select",t),r.on("give_gateway_loaded",function(){Give.form.fn.field.formatCreditCard(n)}),r.on("submit","#give_payment_mode",function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1}),r.on("click","#give-payment-mode-select input",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))}),r.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)}),r.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"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),u=Give.form.fn.getMinimumAmount(o),c=Give.form.fn.getMaximumAmount(o),f=0===s?u:Give.fn.unFormatCurrency(s,l),d=Give.form.fn.formatAmount(f,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===f||0===f){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),s=f=Give.fn.unFormatCurrency(p.val(),l),d=Give.form.fn.formatAmount(f,o,{}))}if(Give.fn.setCache("amount_"+f,i,o),e(this).val(d),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&&f=u&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>c?Give.notice.fn.renderNotice("bad_maximum",o):f<=c&&v.slideUp(300,function(){e(this).remove()})}a!==f&&o.find(".give-final-total-amount").attr("data-total",f).text(Give.fn.formatCurrency(f,{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(f,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"),jQuery(document).trigger("give_donation_value_updated",[o,f,i])}),r.on("click touchend",".give-donation-level-btn",function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))}),r.on("click touchend",".give-radio-input-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),r.on("change",".give-select-level",function(t){Give.form.fn.autoSetMultiLevel(e(this))}),r.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"),r=n.find("#"+e(this).attr("for"));r.length&&(r.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"),s=jQuery.payment.cardType(i.val()),l=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(l=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(l)):r.indexOf("card_cvc")>-1?(l=!jQuery.payment.validateCardCVC(o.val(),s),o.toggleError(l)):r.indexOf("card_expiry")>-1&&(l=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(l)),Give.form.fn.disable(t.parents("form"),l);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var u=n.find(".card-type");null===s?(u.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):u.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var c=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(c.month),n.find(".card-expiry-year").val(c.year)}}})})},function(e,t){function n(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}}),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){jQuery(e).unblock(),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(),jQuery(document).trigger("give_gateway_loaded",[t,jQuery(e).attr("id")])})}var r="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};/*! * Give AJAX JS * * @description: The Give AJAX scripts * @package: Give * @subpackage: Assets/JS * @copyright: Copyright (c) 2016, GiveWP * @license: http://opensource.org/licenses/gpl-2.0.php GNU Public License */ jQuery(document).ready(function(e){Give.form.fn.isFormExist()&&(e(".give-loading-text").hide(),e(".give-form").each(function(e,t){var n=void 0,r=void 0,i=void 0,o=void 0;t=jQuery(t),n=Give.form.fn.getNonceInfo(t),n.el.attr("data-donor-session")?!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn()||Give.form.fn.resetAllNonce(t):Give.form.fn.resetAllNonce(t),r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life"))),i=Date.now(),o=r-i,o=0>o?o:o+100,window.setTimeout(function(){Give.form.fn.resetAllNonce(t)},o)})),e(document).on("click",".give-checkout-login",function(t){var n=e(this),r=e(this).parents("form"),i=e(r).find('[id^="give-checkout-login-register"] .give-loading-text'),o={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};return i.show(),e.post(Give.fn.getGlobalVar("ajaxurl"),o,function(t){e(r).find("[id^=give-checkout-login-register]").html(t),e(r).find(".give-submit-button-wrap").hide()}).done(function(){i.hide(),give_fl_trigger()}),!1}),e(document).on("click",".give-checkout-register-cancel",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,function(t){e(r).find("[id^=give-checkout-login-register]").html(e.parseJSON(t.fields)),e(r).find(".give-submit-button-wrap").show()}).done(function(){give_fl_trigger()})}),e(document).on("click","[id^=give-login-fields] input[type=submit]",function(t){t.preventDefault();var i=e(this).val(),o=e(this).parents("form");e(this).val(Give.fn.getGlobalVar("purchase_loading")),o.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var a={action:"give_process_donation_login",give_ajax:1,give_user_login:o.find("[name=give_user_login]").val(),give_user_pass:o.find("[name=give_user_pass]").val(),give_form_id:o.find("[name=give-form-id]").val()};e.post(Give.fn.getGlobalVar("ajaxurl"),a,function(t){void 0!=e.trim(r(t.success))&&1==t.success&&void 0!=r(t.data)?(o.find(".give_errors").remove(),o.find("#give-payment-mode-select").after(t.data),o.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(o).then(function(e){n(o,o.find(".give-gateway-option-selected input").val())})):(o.find("[id^=give-login-fields] input[type=submit]").val(i),o.find(".give-loading-animation").fadeOut(),o.find(".give_errors").remove(),o.find("[id^=give-user-login-submit]").before(t.data))})}),e("select#give-gateway, input.give-gateway").on("change",function(t){t.preventDefault();var r=e(this).val();return"0"==r?(console.log("There was a problem loading the selected gateway"),!1):(n(e(this).parents("form"),r),!1)}),e("body").on("click","#give-confirm-email-btn",function(t){var n=e(this),r={action:"give_confirm_email_for_donations_access",email:n.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return n.text(Give.fn.getGlobalVar("loading")),n.attr("disabled","disabled"),e.post(Give.fn.getGlobalVar("ajaxurl"),r,function(e){e=JSON.parse(e),"error"===e.status?(n.closest("#give_user_history tfoot").hide(),n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),n.hide(),n.closest(".give-security-button-wrap").find("span").show())}),!1}),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',function(t){var n=e(this),r=n.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()||(i.fadeOut(),!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")))){t.preventDefault();var a=e(this).val();e(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),e.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",function(t){"success"==e.trim(t)?(r.find(".give_errors").remove(),e(o).submit(),r.trigger("give_form_validation_passed")):(n.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(t),Give.form.fn.disable(r,!1))})}});var t=document.getElementById("give-receipt");if(t){var i={action:"get_receipt",shortcode_atts:t.getAttribute("data-shortcode")},o=Give.fn.getParameterByName("donation_id");i[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),null!==o&&(i.donation_id=o),e.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:i,success:function(e){t.innerHTML=e}})}})},function(e,t,n){"use strict";var r=n(25),i=n.n(r),o="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};jQuery(function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),t.on("click touchend",".give-disabled",function(e){return e.preventDefault(),!1}),t.on("give_gateway_loaded",function(e,t,n){give_fl_trigger()}),t.on("give_checkout_billing_address_updated",function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()}),t.on("click",".give-btn-reveal",function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i=e("#give-payment-mode-select"),o="";return n.hide(),e("li",i).length>1&&(o="#give-payment-mode-select, "),r.find(o+"#give_purchase_form_wrap").slideDown(),!1}),t.on("click",".give-btn-modal",function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)});var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each(function(t,n){n=e(n),window.setTimeout(function(){n.slideUp()},n.data("dismiss-interval"))}),e("body").on("click",".give-notice-close",function(){e(this).hide(),e(this).closest(".give_notices").slideUp()}),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",function(t){if(t.persisted||o("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}})}),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){if(jQuery("body").addClass("give-modal-open"),e.hasClass("give-display-button-only")&&!t.data("content")){var n=jQuery(".give-form-content-wrap",e),r=jQuery(".give-form-title",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);n.length&&!jQuery(".give-form-content-wrap",t).length&&(n.hasClass("give_post_form-content")?t.append(n):t.prepend(n)),a.length&&!jQuery(".give_errors",t).length&&a.each(function(e,n){t.prepend(jQuery(n))}),o.length&&!jQuery(">.give_error",t).length&&o.each(function(e,n){t.prepend(jQuery(n))}),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),r.length&&!jQuery(".give-form-title",t).length&&t.prepend(r),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof i.a?window.give_float_labels.rebuild():window.give_float_labels=new i.a(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,function(t,n){e=jQuery("input",n),e.length&&jQuery.each(e,function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})})})},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=void 0!=o(e.states_found)&&1==e.states_found?e.data:'',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!=o(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}return!1}},function(e,t,n){var r,i;!function(n,o,a){"use strict";var s=function(e,t){this.el_=this.isString_(e)?o.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_(function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)},function(e){this.reset_(e)})},this.rebuild=function(){this.loop_(null,function(e){this.floatLabel_(e,!0)})}};s.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_(function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))},function(t){e.floatLabel_(t)})},initEvents_:function(){var e=this;e.events={blur:e.onBlur_.bind(e),change:e.onInput_.bind(e),focus:e.onFocus_.bind(e),input:e.onInput_.bind(e),reset:e.onReset_.bind(e)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this,n=t.getLabel_(e);n&&(e.classList.add(t.prefixed_(e.tagName.toLowerCase())),t.setLabel_(n,e),t.setPlaceholder_(n,e),t.wrapLabel_(n,e),t.handleEvents_(e,"add"),"function"==typeof t.config_[t.current_].customEvent&&t.config_[t.current_].customEvent.call(t,e))},createEl_:function(e,t){var n="string"==typeof e?o.createElement(e):e;t=t||{};for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach(function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])}),t},floatLabel_:function(e,t){var n=this;if(n.isValidField_(e)){if(n.hasParent_(e)){if(!0!==t)return;n.reset_(e)}n.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace(/[*:]/g,"").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach(function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])})},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=this,r=0;r>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t){return e<>>32-t}function s(e,t,n,r,i,s){return o(a(o(o(t,e),o(r,s)),i),n)}function l(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function u(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function f(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function d(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,r,i,a,s,d=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n>5]>>>t%32&255);return n}function m(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(m(t)),512+8*t.length),p(d(a.concat(r),640))}function h(e){var t,n,r="0123456789abcdef",i="";for(n=0;n>>4&15)+r.charAt(15&t);return i}function y(e){return unescape(encodeURIComponent(e))}function b(e){return v(y(e))}function _(e){return h(b(e))}function w(e,t){return g(y(e),y(t))}function C(e,t){return h(w(e,t))}function x(e,t,n){return t?n?w(t,e):C(t,e):n?b(e):_(e)}void 0!==(r=function(){return x}.call(t,n,t,e))&&(e.exports=r)}()},function(e,t,n){"use strict";t.decode=t.parse=n(31),t.encode=t.stringify=n(32)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c=0?(f=v.substr(0,g),d=v.substr(g+1)):(f=v,d=""),p=decodeURIComponent(f),m=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r