Give – Donation Plugin and Fundraising Platform - Version 2.5.13

Version Description

Download this release

Release Info

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

Code changes from version 2.5.12 to 2.5.13

.eslintrc.json ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "root": true,
3
+ "parser": "babel-eslint",
4
+ "extends": ["wordpress", "plugin:react/recommended"],
5
+ "env": {
6
+ "browser": false,
7
+ "es6": true,
8
+ "node": true,
9
+ "mocha": true
10
+ },
11
+ "parserOptions": {
12
+ "sourceType": "module",
13
+ "ecmaFeatures": {
14
+ "jsx": true
15
+ }
16
+ },
17
+ "globals": {
18
+ "wp": true,
19
+ "wpApiSettings": true,
20
+ "window": true,
21
+ "document": true,
22
+ "giveApiSettings": true
23
+ },
24
+ "plugins": ["react"],
25
+ "settings": {
26
+ "react": {
27
+ "pragma": "wp"
28
+ }
29
+ },
30
+ "rules": {
31
+ "linebreak-style": 0,
32
+ "array-bracket-spacing": ["error", "always"],
33
+ "brace-style": ["error", "1tbs"],
34
+ "camelcase": ["error", {"properties": "never"}],
35
+ "comma-dangle": ["error", "always-multiline"],
36
+ "comma-spacing": "error",
37
+ "comma-style": "error",
38
+ "computed-property-spacing": ["error", "always"],
39
+ "constructor-super": "error",
40
+ "dot-notation": "error",
41
+ "eol-last": "error",
42
+ "eqeqeq": "error",
43
+ "func-call-spacing": "error",
44
+ "indent": ["error", "tab", {"SwitchCase": 1}],
45
+ "jsx-quotes": "error",
46
+ "key-spacing": "error",
47
+ "keyword-spacing": "error",
48
+ "lines-around-comment": "off",
49
+ "no-alert": "error",
50
+ "no-bitwise": "error",
51
+ "no-caller": "error",
52
+ "no-console": "error",
53
+ "no-const-assign": "error",
54
+ "no-debugger": "error",
55
+ "no-dupe-args": "error",
56
+ "no-dupe-class-members": "error",
57
+ "no-dupe-keys": "error",
58
+ "no-duplicate-case": "error",
59
+ "no-duplicate-imports": "error",
60
+ "no-else-return": "error",
61
+ "no-eval": "error",
62
+ "no-extra-semi": "error",
63
+ "no-fallthrough": "error",
64
+ "no-lonely-if": "error",
65
+ "no-mixed-operators": "error",
66
+ "no-mixed-spaces-and-tabs": "error",
67
+ "no-multiple-empty-lines": ["error", {"max": 1}],
68
+ "no-multi-spaces": "error",
69
+ "no-multi-str": "off",
70
+ "no-negated-in-lhs": "error",
71
+ "no-nested-ternary": "error",
72
+ "no-redeclare": "error",
73
+ "no-restricted-syntax": [
74
+ "error",
75
+ {
76
+ "selector": "ImportDeclaration[source.value=/^@wordpress\\u002F.+\\u002F/]",
77
+ "message": "Path access on WordPress dependencies is not allowed."
78
+ },
79
+ {
80
+ "selector": "ImportDeclaration[source.value=/^blocks$/]",
81
+ "message": "Use @wordpress/blocks as import path instead."
82
+ },
83
+ {
84
+ "selector": "ImportDeclaration[source.value=/^components$/]",
85
+ "message": "Use @wordpress/components as import path instead."
86
+ },
87
+ {
88
+ "selector": "ImportDeclaration[source.value=/^date$/]",
89
+ "message": "Use @wordpress/date as import path instead."
90
+ },
91
+ {
92
+ "selector": "ImportDeclaration[source.value=/^editor$/]",
93
+ "message": "Use @wordpress/editor as import path instead."
94
+ },
95
+ {
96
+ "selector": "ImportDeclaration[source.value=/^element$/]",
97
+ "message": "Use @wordpress/element as import path instead."
98
+ },
99
+ {
100
+ "selector": "ImportDeclaration[source.value=/^i18n$/]",
101
+ "message": "Use @wordpress/i18n as import path instead."
102
+ },
103
+ {
104
+ "selector": "ImportDeclaration[source.value=/^data$/]",
105
+ "message": "Use @wordpress/data as import path instead."
106
+ },
107
+ {
108
+ "selector": "ImportDeclaration[source.value=/^utils$/]",
109
+ "message": "Use @wordpress/utils as import path instead."
110
+ },
111
+ {
112
+ "selector": "CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
113
+ "message": "Translate function arguments must be string literals."
114
+ },
115
+ {
116
+ "selector": "CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
117
+ "message": "Translate function arguments must be string literals."
118
+ },
119
+ {
120
+ "selector": "CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])",
121
+ "message": "Translate function arguments must be string literals."
122
+ }
123
+ ],
124
+ "no-shadow": "error",
125
+ "no-undef": "error",
126
+ "no-undef-init": "error",
127
+ "no-unreachable": "error",
128
+ "no-unsafe-negation": "error",
129
+ "no-unused-expressions": "error",
130
+ "no-unused-vars": "error",
131
+ "no-useless-computed-key": "error",
132
+ "no-useless-constructor": "error",
133
+ "no-useless-return": "error",
134
+ "no-var": "error",
135
+ "no-whitespace-before-property": "error",
136
+ "object-curly-spacing": ["error", "always"],
137
+ "padded-blocks": ["error", "never"],
138
+ "prefer-const": "error",
139
+ "quote-props": ["error", "as-needed"],
140
+ "react/display-name": "off",
141
+ "react/jsx-curly-spacing": [
142
+ "error",
143
+ {
144
+ "when": "always",
145
+ "children": true
146
+ }
147
+ ],
148
+ "react/jsx-equals-spacing": "error",
149
+ "react/jsx-indent": ["error", "tab"],
150
+ "react/jsx-indent-props": ["error", "tab"],
151
+ "react/jsx-key": "error",
152
+ "react/jsx-tag-spacing": "error",
153
+ "react/no-children-prop": "off",
154
+ "react/no-find-dom-node": "warn",
155
+ "react/prop-types": "off",
156
+ "semi": "error",
157
+ "semi-spacing": "error",
158
+ "space-before-blocks": ["error", "always"],
159
+ "space-before-function-paren": ["error", "never"],
160
+ "space-in-parens": ["error", "always"],
161
+ "space-infix-ops": ["error", {"int32Hint": false}],
162
+ "space-unary-ops": [
163
+ "error",
164
+ {
165
+ "overrides": {
166
+ "!": true
167
+ }
168
+ }
169
+ ],
170
+ "template-curly-spacing": ["error", "always"],
171
+ "valid-jsdoc": ["error", {"requireReturn": false}],
172
+ "valid-typeof": "error",
173
+ "yoda": "off"
174
+ }
175
+ }
.huskyrc.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "lint-staged"
4
+ }
5
+ }
.lintstagedrc.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ {
2
+ "*.json": ["prettier --write", "git add"],
3
+ "*.php": ["npm run lint:textdomain", "./vendor/bin/phpcbf --standard=WordPress", "git add"],
4
+ "*.{js,jsx}": ["eslint --fix", "git add"],
5
+ "*.scss": ["stylelint --fix", "git add"]
6
+ }
.prettierignore ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ignore node modules
2
+ node_modules/*
3
+
4
+ # Ignore Composer packages
5
+ vendor/*
6
+
7
+ # Ignore Directories
8
+ sample-data/*
9
+
10
+ # Ignore Files
11
+ phpcs.xml
12
+ package-lock.json
13
+ composer.lock
.prettierrc.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ {
2
+ "tabWidth": 4,
3
+ "trailingComma": "es5",
4
+ "printWidth": 120,
5
+ "bracketSpacing": false,
6
+ "singleQuote": true
7
+ }
.stylelintrc.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ {
2
+ "extends": ["stylelint-config-wordpress", "stylelint-prettier/recommended"],
3
+ "rules": {}
4
+ }
assets/dist/js/give.js CHANGED
@@ -18,7 +18,7 @@
18
  * http://www.gnu.org/licenses/gpl.html
19
  *
20
  * Thanks to Amir-Hossein Sobhi for some excellent contributions!
21
- */!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),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(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.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,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",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 o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,A=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?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),O&&n.setExpression("top",O);else if(c.centerY)v&&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(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var T=c.onBlock?c.onBlock:t,G=c.showOverlay&&!g?T:t,M=g?T:t;c.showOverlay&&_._fadeIn(c.fadeIn,G),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(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 u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(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,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(149).jQuery?(i=[n(39)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},149:function(e,t){(function(t){e.exports=t}).call(this,{})},150:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.1";var y,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)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=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<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)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(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},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(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},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(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},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.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)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.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)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(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")};var A=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=A(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=A(function(e,t,n){e[n]=t}),h.countBy=A(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var T=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(T):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var G=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else G(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return G(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(G(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=G(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?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 r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(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},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=G(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.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}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(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),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=G(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(G(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(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},U=function(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 i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var q=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof q&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H=h.invert(V),R=function(e){var t=function(t){return e[t]},n="(?:"+h.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}};h.escape=R(V),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(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=h.isFunction(o)?o.call(e):o}return e};var W=0;h.uniqueId=function(e){var t=++W+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(50),n(151)(e))},151: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}},152:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),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"]'),s=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="cart-state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),console.log(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?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.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?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.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")),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",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"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c: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<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&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"),e(document).trigger("give_donation_value_updated",[o,f,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"),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 c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},17:function(e,t,n){"use strict";var r={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=commonL10n.dismiss||"";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>")}}},i={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: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 s=Give.fn.getParameterByName("level-id"),l=r.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"}):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)]=[]})},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"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},a={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[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:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=parseFloat(e).toFixed(r.precision),s=t.precision?".0":"",l="",c="",u="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(s=o.substring(o.indexOf("."),o.length)),l=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(l=r.thousand+l),i=(u=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+l+s).lastIndexOf("."),e=u=u.slice(0,i)+(u.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),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?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.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:a.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))}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},357:function(e,t,n){"use strict";n.r(t);n(146),n(76),n(147),n(57),n(78);var r=n(17),i=(n(152),n(14)),o=n.n(i);function a(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")])})}
22
  /*!
23
  * Give AJAX JS
24
  *
18
  * http://www.gnu.org/licenses/gpl.html
19
  *
20
  * Thanks to Amir-Hossein Sobhi for some excellent contributions!
21
+ */!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),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(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.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,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",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 o=null,a=[];function s(s,c){var f,m,v=s==window,g=c&&void 0!==c.message?c.message:void 0;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),f=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),g=void 0===g?c.message:g,v&&o&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(s).data("blockUI.onUnblock",c.onUnblock);var b,_,w,C,x=c.baseZ;b=n||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),_=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&v?(C='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):c.theme?(C='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',c.title&&(C+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),C+='<div class="ui-widget-content ui-dialog-content"></div>',C+="</div>"):C=v?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(C),g&&(c.theme?(w.css(m),w.addClass("ui-widget-content")):w.css(f)),c.theme||_.css(c.overlayCSS),_.css("position",v?"fixed":"absolute"),(n||c.forceIframe)&&b.css("opacity",0);var k=[b,_,w],I=e(v?"body":s);e.each(k,function(){this.appendTo(I)}),c.theme&&c.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var j=i&&(!e.support.boxModel||e("object,embed",v?null:s).length>0);if(r||j){if(v&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var S=p(s,"borderTopWidth"),E=p(s,"borderLeftWidth"),O=S?"(0 - "+S+")":0,A=E?"(0 - "+E+")":0;e.each(k,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?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),O&&n.setExpression("top",O);else if(c.centerY)v&&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(!c.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';n.setExpression("top",r)}})}if(g&&(c.theme?w.find(".ui-widget-content").append(g):w.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||c.forceIframe)&&c.showOverlay&&b.show(),c.fadeIn){var T=c.onBlock?c.onBlock:t,G=c.showOverlay&&!g?T:t,M=g?T:t;c.showOverlay&&_._fadeIn(c.fadeIn,G),g&&w._fadeIn(c.fadeIn,M)}else c.showOverlay&&_.show(),g&&w.show(),c.onBlock&&c.onBlock.bind(w)();if(u(1,s,c),v?(o=w[0],a=e(c.focusableElements,o),c.focusInput&&setTimeout(d,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(w[0],c.centerX,c.centerY),c.timeout){var P=setTimeout(function(){v?e.unblockUI(c):e(s).unblock(c)},c.timeout);e(s).data("blockUI.timeout",P)}}}function l(t,n){var r,i,s=t==window,l=e(t),f=l.data("blockUI.history"),d=l.data("blockUI.timeout");d&&(clearTimeout(d),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),u(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),i=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),s&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,function(){0==--r&&c(i,f,n,t)})):c(i,f,n,t)}function c(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 u(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(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,f):e(document).unbind(s,f)}}function f(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout(function(){d(i)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function d(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(149).jQuery?(i=[n(39)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},149:function(e,t){(function(t){e.exports=t}).call(this,{})},150:function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,m=Object.keys,v=Object.create,g=function(){},h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};t.nodeType?i._=h:(!n.nodeType&&n.exports&&(t=n.exports=h),t._=h),h.VERSION="1.9.2";var y,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)}},_=function(e,t,n){return h.iteratee!==y?h.iteratee(e,t):null==e?h.identity:h.isFunction(e)?b(e,t,n):h.isObject(e)&&!h.isArray(e)?h.matcher(e):h.property(e)};h.iteratee=y=function(e,t){return _(e,t,1/0)};var w=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<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)}},C=function(e){if(!h.isObject(e))return{};if(v)return v(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},k=function(e,t){return null!=e&&d.call(e,t)},I=function(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},j=Math.pow(2,53)-1,S=x("length"),E=function(e){var t=S(e);return"number"==typeof t&&t>=0&&t<=j};h.each=h.forEach=function(e,t,n){var r,i;if(t=b(t,n),E(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=h.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},h.map=h.collect=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var O=function(e){return function(t,n,r,i){var o=arguments.length>=3;return function(t,n,r,i){var o=!E(t)&&h.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var l=o?o[s]:s;r=n(r,t[l],l,t)}return r}(t,b(n,i,4),r,o)}};h.reduce=h.foldl=h.inject=O(1),h.reduceRight=h.foldr=O(-1),h.find=h.detect=function(e,t,n){var r=(E(e)?h.findIndex:h.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},h.filter=h.select=function(e,t,n){var r=[];return t=_(t,n),h.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},h.reject=function(e,t,n){return h.filter(e,h.negate(_(t)),n)},h.every=h.all=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(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},h.some=h.any=function(e,t,n){t=_(t,n);for(var r=!E(e)&&h.keys(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},h.contains=h.includes=h.include=function(e,t,n,r){return E(e)||(e=h.values(e)),("number"!=typeof n||r)&&(n=0),h.indexOf(e,t,n)>=0},h.invoke=w(function(e,t,n){var r,i;return h.isFunction(t)?i=t:h.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),h.map(e,function(e){var o=i;if(!o){if(r&&r.length&&(e=I(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})}),h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matcher(t))},h.findWhere=function(e,t){return h.find(e,h.matcher(t))},h.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)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r>o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)});return o},h.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)for(var s=0,l=(e=E(e)?e:h.values(e)).length;s<l;s++)null!=(r=e[s])&&r<o&&(o=r);else t=_(t,n),h.each(e,function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)});return o},h.shuffle=function(e){return h.sample(e,1/0)},h.sample=function(e,t,n){if(null==t||n)return E(e)||(e=h.values(e)),e[h.random(e.length-1)];var r=E(e)?h.clone(e):h.values(e),i=S(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=h.random(a,o),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,t)},h.sortBy=function(e,t,n){var r=0;return t=_(t,n),h.pluck(h.map(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")};var A=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=_(r,i),h.each(n,function(t,i){var a=r(t,i,n);e(o,t,a)}),o}};h.groupBy=A(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=A(function(e,t,n){e[n]=t}),h.countBy=A(function(e,t,n){k(e,n)?e[n]++:e[n]=1});var T=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;h.toArray=function(e){return e?h.isArray(e)?u.call(e):h.isString(e)?e.match(T):E(e)?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:E(e)?e.length:h.keys(e).length},h.partition=A(function(e,t,n){e[n?0:1].push(t)},!0),h.first=h.head=h.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:h.initial(e,e.length-t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:h.rest(e,Math.max(0,e.length-t))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,Boolean)};var G=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=S(e);o<a;o++){var s=e[o];if(E(s)&&(h.isArray(s)||h.isArguments(s)))if(t)for(var l=0,c=s.length;l<c;)r[i++]=s[l++];else G(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};h.flatten=function(e,t){return G(e,t,!1)},h.without=w(function(e,t){return h.difference(e,t)}),h.uniq=h.unique=function(e,t,n,r){h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=_(n,r));for(var i=[],o=[],a=0,s=S(e);a<s;a++){var l=e[a],c=n?n(l,a,e):l;t&&!n?(a&&o===c||i.push(l),o=c):n?h.contains(o,c)||(o.push(c),i.push(l)):h.contains(i,l)||i.push(l)}return i},h.union=w(function(e){return h.uniq(G(e,!0,!0))}),h.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=S(e);r<i;r++){var o=e[r];if(!h.contains(t,o)){var a;for(a=1;a<n&&h.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},h.difference=w(function(e,t){return t=G(t,!0,!0),h.filter(e,function(e){return!h.contains(t,e)})}),h.unzip=function(e){for(var t=e&&h.max(e,S).length||0,n=Array(t),r=0;r<t;r++)n[r]=h.pluck(e,r);return n},h.zip=w(h.unzip),h.object=function(e,t){for(var n={},r=0,i=S(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var M=function(e){return function(t,n,r){n=_(n,r);for(var i=S(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};h.findIndex=M(1),h.findLastIndex=M(-1),h.sortedIndex=function(e,t,n,r){for(var i=(n=_(n,r,1))(t),o=0,a=S(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var P=function(e,t,n){return function(r,i,o){var a=0,s=S(r);if("number"==typeof o)e>0?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 r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),h.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};h.indexOf=P(1,h.findIndex,h.sortedIndex),h.lastIndexOf=P(-1,h.findLastIndex),h.range=function(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},h.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var L=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=C(e.prototype),a=e.apply(o,i);return h.isObject(a)?a:o};h.bind=w(function(e,t,n){if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");var r=w(function(i){return L(e,r,t,this,n.concat(i))});return r}),h.partial=w(function(e,t){var n=h.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return L(e,r,this,this,a)};return r}),h.partial.placeholder=h,h.bindAll=w(function(e,t){var n=(t=G(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=h.bind(e[r],e)}}),h.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return k(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},h.delay=w(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),h.defer=h.partial(h.delay,h,1),h.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:h.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=h.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c},h.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=w(function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=h.delay(o,t,this,a);return i});return a.cancel=function(){clearTimeout(r),r=null},a},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.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}},h.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},h.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},h.once=h.partial(h.before,2),h.restArguments=w;var N=!{toString:null}.propertyIsEnumerable("toString"),Q=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(e,t){var n=Q.length,r=e.constructor,i=h.isFunction(r)&&r.prototype||s,o="constructor";for(k(e,o)&&!h.contains(t,o)&&t.push(o);n--;)(o=Q[n])in e&&e[o]!==i[o]&&!h.contains(t,o)&&t.push(o)};h.keys=function(e){if(!h.isObject(e))return[];if(m)return m(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return N&&B(e,t),t},h.allKeys=function(e){if(!h.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&B(e,t),t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},h.mapObject=function(e,t,n){t=_(t,n);for(var r=h.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()};var z=function(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),s=a.length,l=0;l<s;l++){var c=a[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}};h.extend=z(h.allKeys),h.extendOwn=h.assign=z(h.keys),h.findKey=function(e,t,n){t=_(t,n);for(var r,i=h.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var U,F,D=function(e,t,n){return t in n};h.pick=w(function(e,t){var n={},r=t[0];if(null==e)return n;h.isFunction(r)?(t.length>1&&(r=b(r,t[1])),t=h.allKeys(e)):(r=D,t=G(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n}),h.omit=w(function(e,t){var n,r=t[0];return h.isFunction(r)?(r=h.negate(r),t.length>1&&(n=t[1])):(t=h.map(G(t,!1,!1),String),r=function(e,n){return!h.contains(t,n)}),h.pick(e,r,n)}),h.defaults=z(h.allKeys,!0),h.create=function(e,t){var n=C(e);return t&&h.extendOwn(n,t),n},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e},h.isMatch=function(e,t){var n=h.keys(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},U=function(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 i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&F(e,t,n,r)},F=function(e,t,n,r){e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return l.valueOf.call(e)===l.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(h.isFunction(a)&&a instanceof a&&h.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===e)return r[c]===t;if(n.push(e),r.push(t),o){if((c=e.length)!==t.length)return!1;for(;c--;)if(!U(e[c],t[c],n,r))return!1}else{var u,d=h.keys(e);if(c=d.length,h.keys(t).length!==c)return!1;for(;c--;)if(u=d[c],!k(t,u)||!U(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},h.isEqual=function(e,t){return U(e,t)},h.isEmpty=function(e){return null==e||(E(e)&&(h.isArray(e)||h.isString(e)||h.isArguments(e))?0===e.length:0===h.keys(e).length)},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=p||function(e){return"[object Array]"===f.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(e){h["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return k(e,"callee")});var q=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof q&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return!h.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&isNaN(e)},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){if(!h.isArray(t))return k(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},h.noConflict=function(){return i._=o,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return h.isArray(e)?function(t){return I(t,e)}:x(e)},h.propertyOf=function(e){return null==e?function(){}:function(t){return h.isArray(t)?I(e,t):e[t]}},h.matcher=h.matches=function(e){return e=h.extendOwn({},e),function(t){return h.isMatch(t,e)}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=b(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var V={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},H=h.invert(V),R=function(e){var t=function(t){return e[t]},n="(?:"+h.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}};h.escape=R(V),h.unescape=R(H),h.result=function(e,t,n){h.isArray(t)||(t=[t]);var r=t.length;if(!r)return h.isFunction(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=h.isFunction(o)?o.call(e):o}return e};var W=0;h.uniqueId=function(e){var t=++W+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Z=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+K[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r,i=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,function(t,n,r,i,s){return a+=e.slice(o,s).replace(Z,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,h)},l=t.variable||"obj";return s.source="function("+l+"){\n"+a+"}",s},h.chain=function(e){var t=h(e);return t._chain=!0,t};var J=function(e,t){return e._chain?h(t).chain():t};h.mixin=function(e){return h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),J(this,n.apply(h,e))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],J(this,n)}}),h.each(["concat","join","slice"],function(e){var t=a[e];h.prototype[e]=function(){return J(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return h}.apply(t,[]))||(n.exports=r)}()}).call(this,n(50),n(151)(e))},151: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}},152:function(e,t){jQuery(function(e){var t=jQuery("form.give-form"),n=e(document);e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),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"]'),s=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="cart-state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),console.log(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?(s.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),s.attr("required",!0)):(s.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),s.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?(s.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),s.attr("required",!0)):(s.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),s.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")),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",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"),s=void 0!==r?r:e(this).val(),l=Give.form.fn.getInfo("decimal_separator",o),c=Give.form.fn.getMinimumAmount(o),u=Give.form.fn.getMaximumAmount(o),f=0===s?c: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<c?Give.notice.fn.renderNotice("bad_minimum",o):f>=c&&m.slideUp(300,function(){e(this).remove()}),0===v.length&&f>u?Give.notice.fn.renderNotice("bad_maximum",o):f<=u&&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"),e(document).trigger("give_donation_value_updated",[o,f,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"),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 c=n.find(".card-type");null===s?(c.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):c.removeClass().addClass("card-type "+s)}else if(r.indexOf("card_expiry")>-1){var u=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(u.month),n.find(".card-expiry-year").val(u.year)}}})})},17:function(e,t,n){"use strict";var r={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=commonL10n.dismiss||"";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>")}}},i={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: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 s=Give.fn.getParameterByName("level-id"),l=r.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"}):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)]=[]})},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"))})}}}},o={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},a={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)a[e[t]].init&&a[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:a.form.fn.getInfo("decimal_separator",n),thousand:a.form.fn.getInfo("thousands_separator",n),precision:a.form.fn.getInfo("number_decimals",n),currency:a.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=parseFloat(e).toFixed(r.precision),s=t.precision?".0":"",l="",c="",u="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(s=o.substring(o.indexOf("."),o.length)),l=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(l=r.thousand+l),i=(u=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+l+s).lastIndexOf("."),e=u=u.slice(0,i)+(u.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),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?a.cache["form_"+a.form.fn.getInfo("form-id",n)][e]=t:a.cache[e]=t},getCache:function(e,t){var n,r=a.cache["form_"+a.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":a.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:a.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))}},cache:{}};a.notice=r,a.form=i,a.donor=o;t.a=a},357:function(e,t,n){"use strict";n.r(t);n(146),n(76),n(147),n(57),n(78);var r=n(17),i=(n(152),n(14)),o=n.n(i);function a(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")])})}
22
  /*!
23
  * Give AJAX JS
24
  *
assets/dist/js/gutenberg.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},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=355)}({1:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},10:function(e,t,n){var l=n(14),a=n(21);e.exports=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?a(e):t}},11:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},12:function(e,t,n){var l=n(59);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&&l(e,t)}},14:function(e,t){function n(e){return(n="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 l(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=l=function(e){return n(e)}:e.exports=l=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},l(t)}e.exports=l},143:function(e,t){e.exports=lodash},21: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}},26:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},344:function(e,t,n){},345:function(e,t,n){},346:function(e,t,n){},355:function(e,t,n){"use strict";n.r(t);n(344);var l=function(e){var t,n=e.size,l=void 0===n?"24px":n,a=e.color,o=e.className;switch(a){case"white":t="#FFFFFF";break;case"grey":t="#555d66";break;default:t="#66BB6A"}return wp.element.createElement("svg",{id:"Layer_1",width:l,height:l,className:o,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"100 0 404 400"},wp.element.createElement("g",{id:"Layer_2"},wp.element.createElement("circle",{fill:t,cx:"300",cy:"200",r:"200"}),wp.element.createElement("defs",null,wp.element.createElement("circle",{id:"SVGID_1_",cx:"300",cy:"200",r:"200"})),wp.element.createElement("clippath",{id:"SVGID_2_"},wp.element.createElement("use",{xlinkHref:"#SVGID_1_",overflow:"visible"})),wp.element.createElement("path",{clipPath:"url(#SVGID_2_)",fill:"#FFF",d:"M328.5,214.2c0.8,1.8,2.5,3.3,2.5,3.3c35.4,4.3,85.5-0.5,123.7-5.6 c-21.9,47.1-61.1,78.4-96.9,78.4c-67.4,0-119.3-81.7-119.3-81.7c20.9-18.3,55.2-78.4,104.8-78.4s71.2,27.2,71.2,27.2l5.6-8.9 c0,0-23.2-81.2-88.8-81.2S195.9,175.1,155.2,199.7c0,0,56,132.8,178.6,132.8c102.8,0,128.8-98.2,133.6-122.6 c13.7-2,25.2-4.1,32.6-5.3c2.5-5.6,5.3-15.5,3.3-28.8c-41,15.8-103.1,33.6-175.8,33.6C327.2,209.4,327.5,212,328.5,214.2z"})))},a={id:{type:"number"},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:""},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"}},o=n(38),r=n.n(o),i=n(143);function c(){return wpApiSettings.root.replace("/wp-json/","")}var s=wp.i18n.__,m=function(){return wp.element.createElement("p",{className:"give-blank-slate__help"},"Need help ? Get started with ",wp.element.createElement("a",{href:"http://docs.givewp.com/give101/",target:"_blank",rel:"noopener noreferrer"},s("GiveWP 101")))},u=(n(345),function(){return wp.element.createElement("div",{className:"placeholder-animation"},wp.element.createElement("div",{className:"timeline-wrapper"},wp.element.createElement("div",{className:"timeline-item"},wp.element.createElement("div",{className:"animated-background"},wp.element.createElement("div",{className:"layer label layer-4"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-5"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer label layer-6"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-7"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer h1 layer-8"},wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}))))))}),p=(wp.i18n.__,function(e){var t=e.noIcon,n=e.isLoader,a=e.title,o=e.description,r=e.children,i=e.helpLink,c=wp.element.createElement(u,null),s=wp.element.createElement("div",{className:"block-loaded"},!!a&&wp.element.createElement("h2",{className:"give-blank-slate__heading"},a),!!o&&wp.element.createElement("p",{className:"give-blank-slate__message"},o),r,!!i&&wp.element.createElement(m,null));return wp.element.createElement("div",{className:"give-blank-slate"},!t&&wp.element.createElement(l,{size:"80",className:"give-blank-slate__image"}),n?c:s)}),d=wp.i18n.__,w=wp.components.Button,f=function(){return wp.element.createElement(p,{title:d("No donation forms found."),description:d("The first step towards accepting online donations is to create a form."),helpLink:!0},wp.element.createElement(w,{isPrimary:!0,isLarge:!0,className:"give-blank-slate__cta",href:"".concat(c(),"/wp-admin/post-new.php?post_type=give_forms")},d("Create Donation Form")))},h=n(26),v=n.n(h),y=n(1),g=n.n(y),b=n(8),E=n.n(b),C=n(10),_=n.n(C),S=n(11),k=n.n(S),N=n(21),T=n.n(N),x=n(12),D=n.n(x),P=wp.element.Component,F=wp.components.BaseControl,B=function(e){function t(e){var n;return g()(this,t),(n=_()(this,k()(t).call(this,e))).state={},n.saveSetting=n.saveSetting.bind(T()(n)),n.saveState=n.saveState.bind(T()(n)),n}return D()(t,e),E()(t,[{key:"saveSetting",value:function(e,t){this.props.setAttributes(v()({},e,t))}},{key:"saveState",value:function(e,t){this.setState(v()({},e,t))}},{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$input=this.$el.chosen({width:"100%"}).data("chosen"),this.handleChange=this.handleChange.bind(this),this.$el.on("change",this.handleChange)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.chosen("destroy")}},{key:"handleChange",value:function(e){this.props.onChange(e.target.value)}},{key:"componentDidUpdate",value:function(){var e=jQuery(".chosen-base-control").closest(".chosen-container").find(".chosen-search-input");this.$input.search_field.autocomplete({source:function(t,n){var l={action:"give_block_donation_form_search_results",search:t.term};jQuery.post(ajaxurl,l,function(l){jQuery(".give-block-chosen-select").empty(),(l=JSON.parse(l)).length>0&&(n(jQuery.map(l,function(e){jQuery(".give-block-chosen-select").append('<option value="'+e.id+'">'+e.name+"</option>")})),jQuery(".give-block-chosen-select").trigger("chosen:updated"),e.val(t.term))})}})}},{key:"render",value:function(){var e=this;return wp.element.createElement(F,{className:"give-chosen-base-control"},wp.element.createElement("select",{className:"give-select give-select-chosen give-block-chosen-select",ref:function(t){return e.el=t}},this.props.options.map(function(e,t){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))}}]),t}(P),O=wp.i18n.__,I=wp.data.withSelect,j=wp.components,A=(j.SelectControl,j.Button),G=j.Placeholder,M=j.Spinner,L={value:"0",label:O("-- Select Form --")},q=I(function(e){return{forms:e("core").getEntityRecords("postType","give_forms",{per_page:30})}})(function(e){var t,n=e.forms,l=e.attributes,a=e.setAttributes,o=l.prevId;return n?n&&0===n.length?wp.element.createElement(f,null):wp.element.createElement(p,{title:O("Donation Form")},wp.element.createElement(B,{className:"give-blank-slate__select",options:(t=[],Object(i.isUndefined)(n)||(t=n.map(function(e){var t=e.id,n=e.title.rendered;return{value:t,label:""===n?"".concat(t," : ").concat(O("No form title")):n}})),t.unshift(L),t),onChange:function(e){a({id:Number(e)})}}),wp.element.createElement(A,{isPrimary:!0,isLarge:!0,href:"".concat(c(),"/wp-admin/post-new.php?post_type=give_forms")},O("Add New Form")),"  ",o&&wp.element.createElement(A,{isLarge:!0,onClick:function(){a({id:Number(o)}),a({prevId:void 0})}},O("Cancel"))):wp.element.createElement(G,null,wp.element.createElement(M,null))}),R=wp.i18n.__,W={};W.displayStyles=[{value:"onpage",label:R("Full Form")},{value:"modal",label:R("Modal")},{value:"reveal",label:R("Reveal")},{value:"button",label:R("One Button Launch")}],W.contentPosition=[{value:"above",label:R("Above")},{value:"below",label:R("Below")}];var z=W,Q=wp.i18n.__,$=wp.blockEditor.InspectorControls,V=wp.components,U=V.PanelBody,H=V.SelectControl,J=V.ToggleControl,X=V.TextControl,K=function(e){function t(e){var n;return g()(this,t),(n=_()(this,k()(t).call(this,e))).state={continueButtonTitle:n.props.attributes.continueButtonTitle},n.saveSetting=n.saveSetting.bind(T()(n)),n.saveState=n.saveState.bind(T()(n)),n}return D()(t,e),E()(t,[{key:"saveSetting",value:function(e,t){this.props.setAttributes(v()({},e,t))}},{key:"saveState",value:function(e,t){this.setState(v()({},e,t))}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.displayStyle,l=t.showTitle,a=t.showGoal,o=t.showContent,r=t.contentDisplay;return wp.element.createElement($,{key:"inspector"},wp.element.createElement(U,{title:Q("Display")},wp.element.createElement(H,{label:Q("Form Format"),name:"displayStyle",value:n,options:z.displayStyles,onChange:function(t){return e.saveSetting("displayStyle",t)}}),"reveal"===n&&wp.element.createElement(X,{name:"continueButtonTitle",label:Q("Continue Button Title"),value:this.state.continueButtonTitle,onChange:function(t){return e.saveState("continueButtonTitle",t)},onBlur:function(t){return e.saveSetting("continueButtonTitle",t.target.value)}})),wp.element.createElement(U,{title:Q("Settings")},wp.element.createElement(J,{label:Q("Title"),name:"showTitle",checked:!!l,onChange:function(t){return e.saveSetting("showTitle",t)}}),wp.element.createElement(J,{label:Q("Goal"),name:"showGoal",checked:!!a,onChange:function(t){return e.saveSetting("showGoal",t)}}),wp.element.createElement(J,{label:Q("Content"),name:"contentDisplay",checked:!!r,onChange:function(t){return e.saveSetting("contentDisplay",t)}}),r&&wp.element.createElement(H,{label:Q("Content Position"),name:"showContent",value:o,options:z.contentPosition,onChange:function(t){return e.saveSetting("showContent",t)}})))}}]),t}(wp.element.Component),Y=(n(346),wp.i18n.__),Z=function(e){return wp.element.createElement("div",{className:"give-block-controls"},wp.element.createElement("div",{className:"control-popup"},wp.element.createElement("div",{className:"control-button change-form",onClick:function(){e.setAttributes({prevId:e.attributes.id}),e.setAttributes({id:0})}},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-image-rotate"}),wp.element.createElement("span",null,Y("Change Form")))),wp.element.createElement("a",{className:"control-button edit-form",href:"".concat(c(),"/wp-admin/post.php?post=").concat(e.attributes.id,"&action=edit"),target:"_blank",rel:"noopener noreferrer",tooltip:Y("Edit donation form")},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-edit"}),wp.element.createElement("span",null,Y("Edit Form"))))))},ee=wp.components.ServerSideRender,te=function(e){var t=e.attributes,n=e.isSelected,l=e.className;return t.id?wp.element.createElement("div",{className:n?"".concat(l," isSelected"):l},wp.element.createElement(K,r()({},e)),wp.element.createElement(Z,r()({},e)),wp.element.createElement(ee,{block:"give/donation-form",attributes:t})):wp.element.createElement(q,r()({},e))},ne=wp.i18n.__,le=((0,wp.blocks.registerBlockType)("give/donation-form",{title:ne("Donation Form"),description:ne("The GiveWP Donation Form block inserts an existing donation form into the page. Each donation form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ne("donation")],supports:{html:!1},attributes:a,edit:te,save:function(){return null}}),{formsPerPage:{type:"string",default:"12"},formIDs:{type:"string",default:""},excludedFormIDs:{type:"string",default:""},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"string",default:""},tags:{type:"string",default:""},columns:{type:"string",default:"best-fit"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},displayType:{type:"string",default:"redirect"}}),ae=wp.i18n.__,oe={};oe.orderBy=[{value:"date",label:ae("Date Created")},{value:"name",label:ae("Form Name")},{value:"amount_donated",label:ae("Amount Donated")},{value:"number_donations",label:ae("Number of Donations")},{value:"menu_order",label:ae("Menu Order")},{value:"post__in",label:ae("Provided Form IDs")},{value:"closest_to_goal",label:ae("Closest To Goal")}],oe.order=[{value:"DESC",label:ae("Descending")},{value:"ASC",label:ae("Ascending")}],oe.columns=[{value:"best-fit",label:ae("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],oe.displayType=[{value:"redirect",label:ae("Redirect")},{value:"modal_reveal",label:ae("Modal")}];var re=oe,ie=wp.i18n.__,ce=wp.blockEditor.InspectorControls,se=wp.components,me=se.PanelBody,ue=se.SelectControl,pe=se.ToggleControl,de=se.TextControl,we=function(e){var t=e.attributes,n=e.setAttributes,l=t.formsPerPage,a=t.formIDs,o=t.excludedFormIDs,r=t.orderBy,i=t.order,c=t.categories,s=t.tags,m=t.columns,u=t.showTitle,p=t.showExcerpt,d=t.showGoal,w=t.showFeaturedImage,f=t.displayType,h=function(e,t){n(v()({},e,t))};return wp.element.createElement(ce,{key:"inspector"},wp.element.createElement(me,{title:ie("Form Grid Settings")},wp.element.createElement(de,{name:"formsPerPage",label:ie("Forms Per Page"),value:l,onChange:function(e){return h("formsPerPage",e)}}),wp.element.createElement(de,{name:"formIDs",label:ie("Form IDs"),value:a,onChange:function(e){return h("formIDs",e)}}),wp.element.createElement(de,{name:"excludedFormIDs",label:ie("Excluded Form IDs"),value:o,onChange:function(e){return h("excludedFormIDs",e)}}),wp.element.createElement(ue,{label:ie("Order By"),name:"orderBy",value:r,options:re.orderBy,onChange:function(e){return h("orderBy",e)}}),wp.element.createElement(ue,{label:ie("Order"),name:"order",value:i,options:re.order,onChange:function(e){return h("order",e)}}),wp.element.createElement(de,{name:"categories",label:ie("Categories"),value:c,onChange:function(e){return h("categories",e)}}),wp.element.createElement(de,{name:"tags",label:ie("Tags"),value:s,onChange:function(e){return h("tags",e)}}),wp.element.createElement(ue,{label:ie("Columns"),name:"columns",value:m,options:re.columns,onChange:function(e){return h("columns",e)}}),wp.element.createElement(pe,{name:"showTitle",label:ie("Show Title"),checked:!!u,onChange:function(e){return h("showTitle",e)}}),wp.element.createElement(pe,{name:"showExcerpt",label:ie("Show Excerpt"),checked:!!p,onChange:function(e){return h("showExcerpt",e)}}),wp.element.createElement(pe,{name:"showGoal",label:ie("Show Goal"),checked:!!d,onChange:function(e){return h("showGoal",e)}}),wp.element.createElement(pe,{name:"showFeaturedImage",label:ie("Show Featured Image"),checked:!!w,onChange:function(e){return h("showFeaturedImage",e)}}),wp.element.createElement(ue,{label:ie("Display Type"),name:"displayType",value:f,options:re.displayType,onChange:function(e){return h("displayType",e)}})))},fe=(wp.i18n.__,wp.element.Fragment),he=wp.components.ServerSideRender,ve=(0,wp.data.withSelect)(function(e){return{forms:e("core").getEntityRecords("postType","give_forms")}})(function(e){var t=e.attributes;return wp.element.createElement(fe,null,wp.element.createElement(we,r()({},e)),wp.element.createElement(he,{block:"give/donation-form-grid",attributes:t}))}),ye=wp.i18n.__,ge=((0,wp.blocks.registerBlockType)("give/donation-form-grid",{title:ye("Donation Form Grid"),description:ye("The GiveWP Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ye("donation"),ye("grid")],supports:{html:!1},attributes:le,edit:ve,save:function(){return null}}),wp.i18n.__),be={donorsPerPage:{type:"string",default:"12"},formID:{type:"string",default:"0"},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"best-fit"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showDate:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"140"},readMoreText:{type:"string",default:ge("Read more")},loadMoreText:{type:"string",default:ge("Load more")},avatarSize:{type:"string",default:"60"}},Ee=wp.i18n.__,Ce={};Ce.columns=[{value:"best-fit",label:Ee("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],Ce.order=[{value:"DESC",label:Ee("Descending")},{value:"ASC",label:Ee("Ascending")}],Ce.orderBy=[{value:"donation_amount",label:Ee("Donation Amount")},{value:"post_date",label:Ee("Date Created")}];var _e=Ce,Se=wp.i18n.__,ke=wp.blockEditor.InspectorControls,Ne=wp.components,Te=Ne.PanelBody,xe=Ne.SelectControl,De=Ne.ToggleControl,Pe=Ne.TextControl,Fe=function(e){var t=e.attributes,n=e.setAttributes,l=t.donorsPerPage,a=t.formID,o=t.orderBy,r=t.order,i=t.columns,c=t.showAvatar,s=t.showName,m=t.showTotal,u=t.showDate,p=t.showComments,d=t.showAnonymous,w=t.onlyComments,f=t.commentLength,h=t.readMoreText,y=t.loadMoreText,g=function(e,t){n(v()({},e,t))};return wp.element.createElement(ke,{key:"inspector"},wp.element.createElement(Te,{title:Se("Donor Wall Settings")},wp.element.createElement(Pe,{name:"donorsPerPage",label:Se("Donors Per Page"),value:l,onChange:function(e){return g("donorsPerPage",e)}}),wp.element.createElement(Pe,{name:"formID",label:Se("Form ID"),value:a,onChange:function(e){return g("formID",e)}}),wp.element.createElement(xe,{label:Se("Order By"),name:"orderBy",value:o,options:_e.orderBy,onChange:function(e){return g("orderBy",e)}}),wp.element.createElement(xe,{label:Se("Order"),name:"order",value:r,options:_e.order,onChange:function(e){return g("order",e)}}),wp.element.createElement(xe,{label:Se("Columns"),name:"columns",value:i,options:_e.columns,onChange:function(e){return g("columns",e)}}),wp.element.createElement(De,{name:"showAvatar",label:Se("Show Avatar"),checked:!!c,onChange:function(e){return g("showAvatar",e)}}),wp.element.createElement(De,{name:"showName",label:Se("Show Name"),checked:!!s,onChange:function(e){return g("showName",e)}}),wp.element.createElement(De,{name:"showTotal",label:Se("Show Total"),checked:!!m,onChange:function(e){return g("showTotal",e)}}),wp.element.createElement(De,{name:"showDate",label:Se("Show Time"),checked:!!u,onChange:function(e){return g("showDate",e)}}),wp.element.createElement(De,{name:"showComments",label:Se("Show Comments"),checked:!!p,onChange:function(e){return g("showComments",e)}}),wp.element.createElement(De,{name:"showAnonymous",label:Se("Show Anonymous"),checked:!!d,onChange:function(e){return g("showAnonymous",e)}}),wp.element.createElement(De,{name:"onlyComments",label:Se("Only Donors with Comments"),checked:!!w,onChange:function(e){return g("onlyComments",e)}}),wp.element.createElement(Pe,{name:"commentLength",label:Se("Comment Length"),value:f,onChange:function(e){return g("commentLength",e)}}),wp.element.createElement(Pe,{name:"readMoreText",label:Se("Read More Text"),value:h,onChange:function(e){return g("readMoreText",e)}}),wp.element.createElement(Pe,{name:"loadMoreText",label:Se("Load More Text"),value:y,onChange:function(e){return g("loadMoreText",e)}})))},Be=wp.element.Fragment,Oe=wp.components.ServerSideRender,Ie=function(e){var t=e.attributes;return wp.element.createElement(Be,null,wp.element.createElement(Fe,r()({},e)),wp.element.createElement(Oe,{block:"give/donor-wall",attributes:t}))},je=wp.i18n.__;(0,wp.blocks.registerBlockType)("give/donor-wall",{title:je("Donor Wall"),description:je("The GiveWP Donor Wall block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[je("donation"),je("wall")],supports:{html:!1},attributes:be,edit:Ie,save:function(){return null}})},38:function(e,t,n){var l=n(26);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}},59:function(e,t){function n(t,l){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,l)}e.exports=n},8:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}e.exports=function(e,t,l){return t&&n(e.prototype,t),l&&n(e,l),e}}});
1
+ !function(e){var t={};function n(l){if(t[l])return t[l].exports;var a=t[l]={i:l,l:!1,exports:{}};return e[l].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},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 l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(l,a,function(t){return e[t]}.bind(null,a));return l},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=355)}({1:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},10:function(e,t,n){var l=n(14),a=n(21);e.exports=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?a(e):t}},11:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},12:function(e,t,n){var l=n(59);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&&l(e,t)}},14:function(e,t){function n(e){return(n="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 l(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=l=function(e){return n(e)}:e.exports=l=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},l(t)}e.exports=l},143:function(e,t){e.exports=lodash},21: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}},26:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},344:function(e,t,n){},345:function(e,t,n){},346:function(e,t,n){},355:function(e,t,n){"use strict";n.r(t);n(344);var l=function(e){var t,n=e.size,l=void 0===n?"24px":n,a=e.color,o=e.className;switch(a){case"white":t="#FFFFFF";break;case"grey":t="#555d66";break;default:t="#66BB6A"}return wp.element.createElement("svg",{id:"Layer_1",width:l,height:l,className:o,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"100 0 404 400"},wp.element.createElement("g",{id:"Layer_2"},wp.element.createElement("circle",{fill:t,cx:"300",cy:"200",r:"200"}),wp.element.createElement("defs",null,wp.element.createElement("circle",{id:"SVGID_1_",cx:"300",cy:"200",r:"200"})),wp.element.createElement("clippath",{id:"SVGID_2_"},wp.element.createElement("use",{xlinkHref:"#SVGID_1_",overflow:"visible"})),wp.element.createElement("path",{clipPath:"url(#SVGID_2_)",fill:"#FFF",d:"M328.5,214.2c0.8,1.8,2.5,3.3,2.5,3.3c35.4,4.3,85.5-0.5,123.7-5.6 c-21.9,47.1-61.1,78.4-96.9,78.4c-67.4,0-119.3-81.7-119.3-81.7c20.9-18.3,55.2-78.4,104.8-78.4s71.2,27.2,71.2,27.2l5.6-8.9 c0,0-23.2-81.2-88.8-81.2S195.9,175.1,155.2,199.7c0,0,56,132.8,178.6,132.8c102.8,0,128.8-98.2,133.6-122.6 c13.7-2,25.2-4.1,32.6-5.3c2.5-5.6,5.3-15.5,3.3-28.8c-41,15.8-103.1,33.6-175.8,33.6C327.2,209.4,327.5,212,328.5,214.2z"})))},a={id:{type:"number"},prevId:{type:"number"},displayStyle:{type:"string",default:"onpage"},continueButtonTitle:{type:"string",default:""},showTitle:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},contentDisplay:{type:"boolean",default:!0},showContent:{type:"string",default:"above"}},o=n(38),r=n.n(o),i=n(143);function c(){return wpApiSettings.root.replace("/wp-json/","")}var s=wp.i18n.__,m=function(){return wp.element.createElement("p",{className:"give-blank-slate__help"},"Need help ? Get started with ",wp.element.createElement("a",{href:"http://docs.givewp.com/give101/",target:"_blank",rel:"noopener noreferrer"},s("GiveWP 101")))},u=(n(345),function(){return wp.element.createElement("div",{className:"placeholder-animation"},wp.element.createElement("div",{className:"timeline-wrapper"},wp.element.createElement("div",{className:"timeline-item"},wp.element.createElement("div",{className:"animated-background"},wp.element.createElement("div",{className:"layer label layer-4"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-5"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer label layer-6"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap small"}),wp.element.createElement("div",{className:"layer h2 layer-7"},wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"})),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer-gap medium"}),wp.element.createElement("div",{className:"layer h1 layer-8"},wp.element.createElement("div",{className:"layer-item opaque"}),wp.element.createElement("div",{className:"layer-item"}),wp.element.createElement("div",{className:"layer-item opaque"}))))))}),p=(wp.i18n.__,function(e){var t=e.noIcon,n=e.isLoader,a=e.title,o=e.description,r=e.children,i=e.helpLink,c=wp.element.createElement(u,null),s=wp.element.createElement("div",{className:"block-loaded"},!!a&&wp.element.createElement("h2",{className:"give-blank-slate__heading"},a),!!o&&wp.element.createElement("p",{className:"give-blank-slate__message"},o),r,!!i&&wp.element.createElement(m,null));return wp.element.createElement("div",{className:"give-blank-slate"},!t&&wp.element.createElement(l,{size:"80",className:"give-blank-slate__image"}),n?c:s)}),d=wp.i18n.__,w=wp.components.Button,f=function(){return wp.element.createElement(p,{title:d("No donation forms found."),description:d("The first step towards accepting online donations is to create a form."),helpLink:!0},wp.element.createElement(w,{isPrimary:!0,isLarge:!0,className:"give-blank-slate__cta",href:"".concat(c(),"/wp-admin/post-new.php?post_type=give_forms")},d("Create Donation Form")))},h=n(26),v=n.n(h),y=n(1),g=n.n(y),b=n(8),E=n.n(b),C=n(10),_=n.n(C),S=n(11),k=n.n(S),N=n(21),T=n.n(N),x=n(12),D=n.n(x),P=wp.element.Component,F=wp.components.BaseControl,B=function(e){function t(e){var n;return g()(this,t),(n=_()(this,k()(t).call(this,e))).state={},n.saveSetting=n.saveSetting.bind(T()(n)),n.saveState=n.saveState.bind(T()(n)),n}return D()(t,e),E()(t,[{key:"saveSetting",value:function(e,t){this.props.setAttributes(v()({},e,t))}},{key:"saveState",value:function(e,t){this.setState(v()({},e,t))}},{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$input=this.$el.chosen({width:"100%"}).data("chosen"),this.handleChange=this.handleChange.bind(this),this.$el.on("change",this.handleChange)}},{key:"componentWillUnmount",value:function(){this.$el.off("change",this.handleChange),this.$el.chosen("destroy")}},{key:"handleChange",value:function(e){this.props.onChange(e.target.value)}},{key:"componentDidUpdate",value:function(){var e=jQuery(".chosen-base-control").closest(".chosen-container").find(".chosen-search-input");this.$input.search_field.autocomplete({source:function(t,n){var l={action:"give_block_donation_form_search_results",search:t.term};jQuery.post(ajaxurl,l,function(l){jQuery(".give-block-chosen-select").empty(),(l=JSON.parse(l)).length>0&&(n(jQuery.map(l,function(e){jQuery(".give-block-chosen-select").append('<option value="'+e.id+'">'+e.name+"</option>")})),jQuery(".give-block-chosen-select").trigger("chosen:updated"),e.val(t.term))})}})}},{key:"render",value:function(){var e=this;return wp.element.createElement(F,{className:"give-chosen-base-control"},wp.element.createElement("select",{className:"give-select give-select-chosen give-block-chosen-select",ref:function(t){return e.el=t}},this.props.options.map(function(e,t){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))}}]),t}(P),O=wp.i18n.__,I=wp.data.withSelect,j=wp.components,A=(j.SelectControl,j.Button),G=j.Placeholder,M=j.Spinner,L={value:"0",label:O("-- Select Form --")},q=I(function(e){return{forms:e("core").getEntityRecords("postType","give_forms",{per_page:30})}})(function(e){var t,n=e.forms,l=e.attributes,a=e.setAttributes,o=l.prevId;return n?n&&0===n.length?wp.element.createElement(f,null):wp.element.createElement(p,{title:O("Donation Form")},wp.element.createElement(B,{className:"give-blank-slate__select",options:(t=[],Object(i.isUndefined)(n)||(t=n.map(function(e){var t=e.id,n=e.title.rendered;return{value:t,label:""===n?"".concat(t," : ").concat(O("No form title")):n}})),t.unshift(L),t),onChange:function(e){a({id:Number(e)})}}),wp.element.createElement(A,{isPrimary:!0,isLarge:!0,href:"".concat(c(),"/wp-admin/post-new.php?post_type=give_forms")},O("Add New Form")),"  ",o&&wp.element.createElement(A,{isLarge:!0,onClick:function(){a({id:Number(o)}),a({prevId:void 0})}},O("Cancel"))):wp.element.createElement(G,null,wp.element.createElement(M,null))}),R=wp.i18n.__,W={};W.displayStyles=[{value:"onpage",label:R("Full Form")},{value:"modal",label:R("Modal")},{value:"reveal",label:R("Reveal")},{value:"button",label:R("One Button Launch")}],W.contentPosition=[{value:"above",label:R("Above")},{value:"below",label:R("Below")}];var z=W,Q=wp.i18n.__,$=wp.blockEditor.InspectorControls,V=wp.components,U=V.PanelBody,H=V.SelectControl,J=V.ToggleControl,X=V.TextControl,K=function(e){function t(e){var n;return g()(this,t),(n=_()(this,k()(t).call(this,e))).state={continueButtonTitle:n.props.attributes.continueButtonTitle},n.saveSetting=n.saveSetting.bind(T()(n)),n.saveState=n.saveState.bind(T()(n)),n}return D()(t,e),E()(t,[{key:"saveSetting",value:function(e,t){this.props.setAttributes(v()({},e,t))}},{key:"saveState",value:function(e,t){this.setState(v()({},e,t))}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.displayStyle,l=t.showTitle,a=t.showGoal,o=t.showContent,r=t.contentDisplay;return wp.element.createElement($,{key:"inspector"},wp.element.createElement(U,{title:Q("Display")},wp.element.createElement(H,{label:Q("Form Format"),name:"displayStyle",value:n,options:z.displayStyles,onChange:function(t){return e.saveSetting("displayStyle",t)}}),"reveal"===n&&wp.element.createElement(X,{name:"continueButtonTitle",label:Q("Continue Button Title"),value:this.state.continueButtonTitle,onChange:function(t){return e.saveState("continueButtonTitle",t)},onBlur:function(t){return e.saveSetting("continueButtonTitle",t.target.value)}})),wp.element.createElement(U,{title:Q("Settings")},wp.element.createElement(J,{label:Q("Title"),name:"showTitle",checked:!!l,onChange:function(t){return e.saveSetting("showTitle",t)}}),wp.element.createElement(J,{label:Q("Goal"),name:"showGoal",checked:!!a,onChange:function(t){return e.saveSetting("showGoal",t)}}),wp.element.createElement(J,{label:Q("Content"),name:"contentDisplay",checked:!!r,onChange:function(t){return e.saveSetting("contentDisplay",t)}}),r&&wp.element.createElement(H,{label:Q("Content Position"),name:"showContent",value:o,options:z.contentPosition,onChange:function(t){return e.saveSetting("showContent",t)}})))}}]),t}(wp.element.Component),Y=(n(346),wp.i18n.__),Z=function(e){return wp.element.createElement("div",{className:"give-block-controls"},wp.element.createElement("div",{className:"control-popup"},wp.element.createElement("div",{className:"control-button change-form",onClick:function(){e.setAttributes({prevId:e.attributes.id}),e.setAttributes({id:0})}},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-image-rotate"}),wp.element.createElement("span",null,Y("Change Form")))),wp.element.createElement("a",{className:"control-button edit-form",href:"".concat(c(),"/wp-admin/post.php?post=").concat(e.attributes.id,"&action=edit"),target:"_blank",rel:"noopener noreferrer",tooltip:Y("Edit donation form")},wp.element.createElement("div",null,wp.element.createElement("span",{className:"dashicons dashicons-edit"}),wp.element.createElement("span",null,Y("Edit Form"))))))},ee=wp.serverSideRender,te=function(e){var t=e.attributes,n=e.isSelected,l=e.className;return t.id?wp.element.createElement("div",{className:n?"".concat(l," isSelected"):l},wp.element.createElement(K,r()({},e)),wp.element.createElement(Z,r()({},e)),wp.element.createElement(ee,{block:"give/donation-form",attributes:t})):wp.element.createElement(q,r()({},e))},ne=wp.i18n.__,le=((0,wp.blocks.registerBlockType)("give/donation-form",{title:ne("Donation Form"),description:ne("The GiveWP Donation Form block inserts an existing donation form into the page. Each donation form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ne("donation")],supports:{html:!1},attributes:a,edit:te,save:function(){return null}}),{formsPerPage:{type:"string",default:"12"},formIDs:{type:"string",default:""},excludedFormIDs:{type:"string",default:""},orderBy:{type:"string",default:"date"},order:{type:"string",default:"DESC"},categories:{type:"string",default:""},tags:{type:"string",default:""},columns:{type:"string",default:"best-fit"},showTitle:{type:"boolean",default:!0},showExcerpt:{type:"boolean",default:!0},showGoal:{type:"boolean",default:!0},showFeaturedImage:{type:"boolean",default:!0},displayType:{type:"string",default:"redirect"}}),ae=wp.i18n.__,oe={};oe.orderBy=[{value:"date",label:ae("Date Created")},{value:"title",label:ae("Form Name")},{value:"amount_donated",label:ae("Amount Donated")},{value:"number_donations",label:ae("Number of Donations")},{value:"menu_order",label:ae("Menu Order")},{value:"post__in",label:ae("Provided Form IDs")},{value:"closest_to_goal",label:ae("Closest To Goal")}],oe.order=[{value:"DESC",label:ae("Descending")},{value:"ASC",label:ae("Ascending")}],oe.columns=[{value:"best-fit",label:ae("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],oe.displayType=[{value:"redirect",label:ae("Redirect")},{value:"modal_reveal",label:ae("Modal")}];var re=oe,ie=wp.i18n.__,ce=wp.blockEditor.InspectorControls,se=wp.components,me=se.PanelBody,ue=se.SelectControl,pe=se.ToggleControl,de=se.TextControl,we=function(e){var t=e.attributes,n=e.setAttributes,l=t.formsPerPage,a=t.formIDs,o=t.excludedFormIDs,r=t.orderBy,i=t.order,c=t.categories,s=t.tags,m=t.columns,u=t.showTitle,p=t.showExcerpt,d=t.showGoal,w=t.showFeaturedImage,f=t.displayType,h=function(e,t){n(v()({},e,t))};return wp.element.createElement(ce,{key:"inspector"},wp.element.createElement(me,{title:ie("Form Grid Settings")},wp.element.createElement(de,{name:"formsPerPage",label:ie("Forms Per Page"),value:l,onChange:function(e){return h("formsPerPage",e)}}),wp.element.createElement(de,{name:"formIDs",label:ie("Form IDs"),value:a,onChange:function(e){return h("formIDs",e)}}),wp.element.createElement(de,{name:"excludedFormIDs",label:ie("Excluded Form IDs"),value:o,onChange:function(e){return h("excludedFormIDs",e)}}),wp.element.createElement(ue,{label:ie("Order By"),name:"orderBy",value:r,options:re.orderBy,onChange:function(e){return h("orderBy",e)}}),wp.element.createElement(ue,{label:ie("Order"),name:"order",value:i,options:re.order,onChange:function(e){return h("order",e)}}),wp.element.createElement(de,{name:"categories",label:ie("Categories"),value:c,onChange:function(e){return h("categories",e)}}),wp.element.createElement(de,{name:"tags",label:ie("Tags"),value:s,onChange:function(e){return h("tags",e)}}),wp.element.createElement(ue,{label:ie("Columns"),name:"columns",value:m,options:re.columns,onChange:function(e){return h("columns",e)}}),wp.element.createElement(pe,{name:"showTitle",label:ie("Show Title"),checked:!!u,onChange:function(e){return h("showTitle",e)}}),wp.element.createElement(pe,{name:"showExcerpt",label:ie("Show Excerpt"),checked:!!p,onChange:function(e){return h("showExcerpt",e)}}),wp.element.createElement(pe,{name:"showGoal",label:ie("Show Goal"),checked:!!d,onChange:function(e){return h("showGoal",e)}}),wp.element.createElement(pe,{name:"showFeaturedImage",label:ie("Show Featured Image"),checked:!!w,onChange:function(e){return h("showFeaturedImage",e)}}),wp.element.createElement(ue,{label:ie("Display Type"),name:"displayType",value:f,options:re.displayType,onChange:function(e){return h("displayType",e)}})))},fe=(wp.i18n.__,wp.element.Fragment),he=wp.serverSideRender,ve=(0,wp.data.withSelect)(function(e){return{forms:e("core").getEntityRecords("postType","give_forms")}})(function(e){var t=e.attributes;return wp.element.createElement(fe,null,wp.element.createElement(we,r()({},e)),wp.element.createElement(he,{block:"give/donation-form-grid",attributes:t}))}),ye=wp.i18n.__,ge=((0,wp.blocks.registerBlockType)("give/donation-form-grid",{title:ye("Donation Form Grid"),description:ye("The GiveWP Donation Form Grid block insert an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[ye("donation"),ye("grid")],supports:{html:!1},attributes:le,edit:ve,save:function(){return null}}),wp.i18n.__),be={donorsPerPage:{type:"string",default:"12"},formID:{type:"string",default:"0"},orderBy:{type:"string",default:"post_date"},order:{type:"string",default:"DESC"},paged:{type:"string",default:"1"},columns:{type:"string",default:"best-fit"},showAvatar:{type:"boolean",default:!0},showName:{type:"boolean",default:!0},showTotal:{type:"boolean",default:!0},showDate:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showAnonymous:{type:"boolean",default:!0},onlyComments:{type:"boolean",default:!1},commentLength:{type:"string",default:"140"},readMoreText:{type:"string",default:ge("Read more")},loadMoreText:{type:"string",default:ge("Load more")},avatarSize:{type:"string",default:"60"}},Ee=wp.i18n.__,Ce={};Ce.columns=[{value:"best-fit",label:Ee("Best Fit")},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],Ce.order=[{value:"DESC",label:Ee("Descending")},{value:"ASC",label:Ee("Ascending")}],Ce.orderBy=[{value:"donation_amount",label:Ee("Donation Amount")},{value:"post_date",label:Ee("Date Created")}];var _e=Ce,Se=wp.i18n.__,ke=wp.blockEditor.InspectorControls,Ne=wp.components,Te=Ne.PanelBody,xe=Ne.SelectControl,De=Ne.ToggleControl,Pe=Ne.TextControl,Fe=function(e){var t=e.attributes,n=e.setAttributes,l=t.donorsPerPage,a=t.formID,o=t.orderBy,r=t.order,i=t.columns,c=t.showAvatar,s=t.showName,m=t.showTotal,u=t.showDate,p=t.showComments,d=t.showAnonymous,w=t.onlyComments,f=t.commentLength,h=t.readMoreText,y=t.loadMoreText,g=function(e,t){n(v()({},e,t))};return wp.element.createElement(ke,{key:"inspector"},wp.element.createElement(Te,{title:Se("Donor Wall Settings")},wp.element.createElement(Pe,{name:"donorsPerPage",label:Se("Donors Per Page"),value:l,onChange:function(e){return g("donorsPerPage",e)}}),wp.element.createElement(Pe,{name:"formID",label:Se("Form ID"),value:a,onChange:function(e){return g("formID",e)}}),wp.element.createElement(xe,{label:Se("Order By"),name:"orderBy",value:o,options:_e.orderBy,onChange:function(e){return g("orderBy",e)}}),wp.element.createElement(xe,{label:Se("Order"),name:"order",value:r,options:_e.order,onChange:function(e){return g("order",e)}}),wp.element.createElement(xe,{label:Se("Columns"),name:"columns",value:i,options:_e.columns,onChange:function(e){return g("columns",e)}}),wp.element.createElement(De,{name:"showAvatar",label:Se("Show Avatar"),checked:!!c,onChange:function(e){return g("showAvatar",e)}}),wp.element.createElement(De,{name:"showName",label:Se("Show Name"),checked:!!s,onChange:function(e){return g("showName",e)}}),wp.element.createElement(De,{name:"showTotal",label:Se("Show Total"),checked:!!m,onChange:function(e){return g("showTotal",e)}}),wp.element.createElement(De,{name:"showDate",label:Se("Show Time"),checked:!!u,onChange:function(e){return g("showDate",e)}}),wp.element.createElement(De,{name:"showComments",label:Se("Show Comments"),checked:!!p,onChange:function(e){return g("showComments",e)}}),wp.element.createElement(De,{name:"showAnonymous",label:Se("Show Anonymous"),checked:!!d,onChange:function(e){return g("showAnonymous",e)}}),wp.element.createElement(De,{name:"onlyComments",label:Se("Only Donors with Comments"),checked:!!w,onChange:function(e){return g("onlyComments",e)}}),wp.element.createElement(Pe,{name:"commentLength",label:Se("Comment Length"),value:f,onChange:function(e){return g("commentLength",e)}}),wp.element.createElement(Pe,{name:"readMoreText",label:Se("Read More Text"),value:h,onChange:function(e){return g("readMoreText",e)}}),wp.element.createElement(Pe,{name:"loadMoreText",label:Se("Load More Text"),value:y,onChange:function(e){return g("loadMoreText",e)}})))},Be=wp.element.Fragment,Oe=wp.serverSideRender,Ie=function(e){var t=e.attributes;return wp.element.createElement(Be,null,wp.element.createElement(Fe,r()({},e)),wp.element.createElement(Oe,{block:"give/donor-wall",attributes:t}))},je=wp.i18n.__;(0,wp.blocks.registerBlockType)("give/donor-wall",{title:je("Donor Wall"),description:je("The GiveWP Donor Wall block inserts an existing donation form into the page. Each form's presentation can be customized below."),category:"give",icon:wp.element.createElement(l,{color:"grey"}),keywords:[je("donation"),je("wall")],supports:{html:!1},attributes:be,edit:Ie,save:function(){return null}})},38:function(e,t,n){var l=n(26);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){l(e,t,n[t])})}return e}},59:function(e,t){function n(t,l){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,l)}e.exports=n},8:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}e.exports=function(e,t,l){return t&&n(e.prototype,t),l&&n(e,l),e}}});
blocks/donation-form-grid/data/options.js CHANGED
@@ -11,7 +11,7 @@ const giveFormOptions = {};
11
  // Form Order By
12
  giveFormOptions.orderBy = [
13
  {value: 'date', label: __('Date Created')},
14
- {value: 'name', label: __('Form Name')},
15
  {value: 'amount_donated', label: __('Amount Donated')},
16
  {value: 'number_donations', label: __('Number of Donations')},
17
  {value: 'menu_order', label: __('Menu Order')},
11
  // Form Order By
12
  giveFormOptions.orderBy = [
13
  {value: 'date', label: __('Date Created')},
14
+ {value: 'title', label: __('Form Name')},
15
  {value: 'amount_donated', label: __('Amount Donated')},
16
  {value: 'number_donations', label: __('Number of Donations')},
17
  {value: 'menu_order', label: __('Menu Order')},
blocks/donation-form-grid/edit/block.js CHANGED
@@ -7,7 +7,7 @@ const { __ } = wp.i18n;
7
  * WordPress dependencies
8
  */
9
  const { Fragment } = wp.element;
10
- const { ServerSideRender } = wp.components;
11
  const { withSelect } = wp.data;
12
 
13
  /**
7
  * WordPress dependencies
8
  */
9
  const { Fragment } = wp.element;
10
+ const ServerSideRender = wp.serverSideRender;
11
  const { withSelect } = wp.data;
12
 
13
  /**
blocks/donation-form/edit/block.js CHANGED
@@ -1,7 +1,7 @@
1
  /**
2
  * WordPress dependencies
3
  */
4
- const { ServerSideRender } = wp.components;
5
 
6
  /**
7
  * Internal dependencies
1
  /**
2
  * WordPress dependencies
3
  */
4
+ const ServerSideRender = wp.serverSideRender;
5
 
6
  /**
7
  * Internal dependencies
blocks/donor-wall/edit/block.js CHANGED
@@ -2,7 +2,7 @@
2
  * Wordpress dependencies
3
  */
4
  const { Fragment } = wp.element;
5
- const { ServerSideRender } = wp.components;
6
 
7
  /**
8
  * Internal dependencies
2
  * Wordpress dependencies
3
  */
4
  const { Fragment } = wp.element;
5
+ const ServerSideRender = wp.serverSideRender;
6
 
7
  /**
8
  * Internal dependencies
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.5.12
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
@@ -411,7 +411,7 @@ if ( ! class_exists( 'Give' ) ) :
411
  */
412
  public function __clone() {
413
  // Cloning instances of the class is forbidden.
414
- give_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ), '1.0' );
415
  }
416
 
417
  /**
@@ -424,7 +424,7 @@ if ( ! class_exists( 'Give' ) ) :
424
  */
425
  public function __wakeup() {
426
  // Unserializing instances of the class is forbidden.
427
- give_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ), '1.0' );
428
  }
429
 
430
  /**
@@ -439,7 +439,7 @@ if ( ! class_exists( 'Give' ) ) :
439
 
440
  // Plugin version.
441
  if ( ! defined( 'GIVE_VERSION' ) ) {
442
- define( 'GIVE_VERSION', '2.5.12' );
443
  }
444
 
445
  // Plugin Root File.
5
  * Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
6
  * Author: GiveWP
7
  * Author URI: https://givewp.com/
8
+ * Version: 2.5.13
9
  * Text Domain: give
10
  * Domain Path: /languages
11
  *
411
  */
412
  public function __clone() {
413
  // Cloning instances of the class is forbidden.
414
+ give_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ) );
415
  }
416
 
417
  /**
424
  */
425
  public function __wakeup() {
426
  // Unserializing instances of the class is forbidden.
427
+ give_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?', 'give' ) );
428
  }
429
 
430
  /**
439
 
440
  // Plugin version.
441
  if ( ! defined( 'GIVE_VERSION' ) ) {
442
+ define( 'GIVE_VERSION', '2.5.13' );
443
  }
444
 
445
  // Plugin Root File.
includes/admin/shortcodes/shortcode-give-donation-grid.php CHANGED
@@ -61,7 +61,7 @@ class Give_Shortcode_Donation_Grid extends Give_Shortcode_Generator {
61
  'label' => esc_attr__( 'Order By:', 'give' ),
62
  'tooltip' => esc_attr__( 'Different parameter to set the order for the forms display in the form grid.', 'give' ),
63
  'options' => array(
64
- 'name' => esc_html__( 'Form Name', 'give' ),
65
  'amount_donated' => esc_html__( 'Amount Donated', 'give' ),
66
  'number_donations' => esc_html__( 'Number of Donations', 'give' ),
67
  'menu_order' => esc_html__( 'Menu Order', 'give' ),
61
  'label' => esc_attr__( 'Order By:', 'give' ),
62
  'tooltip' => esc_attr__( 'Different parameter to set the order for the forms display in the form grid.', 'give' ),
63
  'options' => array(
64
+ 'title' => esc_html__( 'Form Name', 'give' ),
65
  'amount_donated' => esc_html__( 'Amount Donated', 'give' ),
66
  'number_donations' => esc_html__( 'Number of Donations', 'give' ),
67
  'menu_order' => esc_html__( 'Menu Order', 'give' ),
includes/class-give-license-handler.php CHANGED
@@ -293,7 +293,7 @@ if ( ! class_exists( 'Give_License' ) ) :
293
  return false;
294
  }
295
 
296
- give_doing_it_wrong( __FUNCTION__, 'Use self::request_license_api instead', '2.5.0' );
297
 
298
  // Data to send to the API.
299
  $api_params = array(
293
  return false;
294
  }
295
 
296
+ give_doing_it_wrong( __FUNCTION__, 'Use self::request_license_api instead from GiveWP 2.5.0' );
297
 
298
  // Data to send to the API.
299
  $api_params = array(
includes/class-give-session.php CHANGED
@@ -609,7 +609,7 @@ class Give_Session {
609
  public function use_php_sessions() {
610
  $ret = false;
611
 
612
- give_doing_it_wrong( __FUNCTION__, __( 'We are using database session logic instead of PHP session', 'give' ), '2.2.0' );
613
 
614
  return (bool) apply_filters( 'give_use_php_sessions', $ret );
615
  }
@@ -629,7 +629,7 @@ class Give_Session {
629
 
630
  $start_session = true;
631
 
632
- give_doing_it_wrong( __FUNCTION__, __( 'We are using database session logic instead of PHP session', 'give' ), '2.2.0' );
633
 
634
 
635
  if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { // @codingStandardsIgnoreLine
609
  public function use_php_sessions() {
610
  $ret = false;
611
 
612
+ give_doing_it_wrong( __FUNCTION__, __( 'We are using database session logic instead of PHP session since GiveWP 2.2.0', 'give' ) );
613
 
614
  return (bool) apply_filters( 'give_use_php_sessions', $ret );
615
  }
629
 
630
  $start_session = true;
631
 
632
+ give_doing_it_wrong( __FUNCTION__, __( 'We are using database session logic instead of PHP session since GiveWP 2.2.0', 'give' ) );
633
 
634
 
635
  if ( ! empty( $_SERVER['REQUEST_URI'] ) ) { // @codingStandardsIgnoreLine
includes/currency-functions.php CHANGED
@@ -239,7 +239,7 @@ function give_currency_filter( $price = '', $args = array() ) {
239
  'form_id' => isset( $func_args[3] ) ? $func_args[3] : '',
240
  );
241
 
242
- give_doing_it_wrong( __FUNCTION__, 'Pass second argument as Array.', GIVE_VERSION );
243
  }
244
 
245
  // Set default values.
239
  'form_id' => isset( $func_args[3] ) ? $func_args[3] : '',
240
  );
241
 
242
+ give_doing_it_wrong( __FUNCTION__, 'Pass second argument as Array.' );
243
  }
244
 
245
  // Set default values.
includes/emails/class-give-emails.php CHANGED
@@ -337,7 +337,7 @@ class Give_Emails {
337
  public function send( $to, $subject, $message, $attachments = '' ) {
338
 
339
  if ( ! did_action( 'init' ) && ! did_action( 'admin_init' ) ) {
340
- give_doing_it_wrong( __FUNCTION__, esc_html__( 'You cannot send email with Give_Emails until init/admin_init has been reached.', 'give' ), null );
341
 
342
  return false;
343
  }
337
  public function send( $to, $subject, $message, $attachments = '' ) {
338
 
339
  if ( ! did_action( 'init' ) && ! did_action( 'admin_init' ) ) {
340
+ give_doing_it_wrong( __FUNCTION__, esc_html__( 'You cannot send email with Give_Emails until init/admin_init has been reached.', 'give' ) );
341
 
342
  return false;
343
  }
includes/forms/template.php CHANGED
@@ -745,6 +745,10 @@ function give_add_button_open_form( $form_id, $args ){
745
  * @param array $args Shortcode argument
746
  */
747
  echo apply_filters( 'give_display_checkout_button', $output, $form_id, $args );
 
 
 
 
748
  }
749
 
750
  /**
745
  * @param array $args Shortcode argument
746
  */
747
  echo apply_filters( 'give_display_checkout_button', $output, $form_id, $args );
748
+
749
+ // Remove action otherwise button will be added to coming form.
750
+ // @see https://github.com/impress-org/givewp/issues/4395
751
+ remove_action( 'give_post_form', 'give_add_button_open_form', 10 );
752
  }
753
 
754
  /**
includes/misc-functions.php CHANGED
@@ -1577,15 +1577,33 @@ function give_donation_history_table_end() {
1577
  *
1578
  * @param string $function
1579
  * @param string $message
1580
- * @param string $version
1581
  *
1582
  * @return void
1583
  * @since 1.8.18
 
1584
  */
1585
- function give_doing_it_wrong( $function, $message, $version ) {
1586
- $message .= "\nBacktrace:" . wp_debug_backtrace_summary();
 
 
 
 
 
 
 
 
 
 
 
 
 
1587
 
1588
- _doing_it_wrong( $function, $message, $version );
 
 
 
 
1589
  }
1590
 
1591
 
1577
  *
1578
  * @param string $function
1579
  * @param string $message
1580
+ * @param string $version deprecated
1581
  *
1582
  * @return void
1583
  * @since 1.8.18
1584
+ * @since 2.5.13 Refactor function
1585
  */
1586
+ function give_doing_it_wrong( $function, $message, $version = null ) {
1587
+ /**
1588
+ * Fires while calling function incorrectly.
1589
+ *
1590
+ * Allow you to hook to incorrect function call.
1591
+ *
1592
+ * @param string $function The function that was called.
1593
+ * @param string $replacement Optional. The function that should have been called.
1594
+ * @param string $version The plugin version that deprecated the function.
1595
+ *
1596
+ * @since 2.5.13
1597
+ */
1598
+ do_action( 'give_doing_it_wrong', $function, $message, $version );
1599
+
1600
+ $show_errors = current_user_can( 'manage_options' );
1601
 
1602
+ // Allow plugin to filter the output error trigger.
1603
+ if ( WP_DEBUG && apply_filters( 'give_doing_it_wrong_trigger_error', $show_errors ) ) {
1604
+ trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s', 'give' ), $function, $message ) );
1605
+ trigger_error( print_r( wp_debug_backtrace_summary(), 1 ) );// Limited to previous 1028 characters, but since we only need to move back 1 in stack that should be fine.
1606
+ }
1607
  }
1608
 
1609
 
includes/payments/class-give-payment.php CHANGED
@@ -763,7 +763,7 @@ final class Give_Payment {
763
  );
764
 
765
  if ( ! empty( $custom_payment_meta ) ) {
766
- give_doing_it_wrong( '_give_payment_meta', __( 'This custom meta key has been deprecated for performance reasons. Your custom meta data will still be stored but we recommend updating your code to store meta keys individually.', 'give' ), '2.0.0' );
767
 
768
  $this->update_meta( '_give_payment_meta', array_map( 'maybe_unserialize', $custom_payment_meta ) );
769
  }
763
  );
764
 
765
  if ( ! empty( $custom_payment_meta ) ) {
766
+ give_doing_it_wrong( '_give_payment_meta', __( 'This custom meta key has been deprecated for performance reasons. Your custom meta data will still be stored but we recommend updating your code to store meta keys individually from GiveWP 2.0.0.', 'give' ) );
767
 
768
  $this->update_meta( '_give_payment_meta', array_map( 'maybe_unserialize', $custom_payment_meta ) );
769
  }
languages/give.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 Give
2
  # This file is distributed under the same license as the Give package.
3
  msgid ""
4
  msgstr ""
@@ -63,7 +63,7 @@ msgstr ""
63
  msgid "GiveWP version %s is required to update this add-on."
64
  msgstr ""
65
 
66
- #: includes/ajax-functions.php:202, includes/country-functions.php:502, includes/country-functions.php:550, includes/country-functions.php:801, includes/admin/import-functions.php:457, includes/forms/template.php:1260, includes/admin/settings/class-settings-general.php:246, includes/admin/tools/export/class-batch-export-donors.php:189, includes/admin/tools/export/give-export-donations-exporter.php:198
67
  msgid "State"
68
  msgstr ""
69
 
@@ -461,7 +461,7 @@ msgstr ""
461
  msgid "The add-on did not activate successfully."
462
  msgstr ""
463
 
464
- #: includes/class-give-scripts.php:232, includes/class-give-scripts.php:285, includes/forms/template.php:1592, includes/admin/donors/class-donor-table.php:585, includes/admin/donors/donors.php:502, includes/admin/donors/donors.php:729, includes/admin/donors/donors.php:1116, includes/admin/payments/view-payment-details.php:674
465
  msgid "Cancel"
466
  msgstr ""
467
 
@@ -840,7 +840,7 @@ msgid "Please select an option"
840
  msgstr ""
841
 
842
  #: includes/class-give-session.php:612, includes/class-give-session.php:632
843
- msgid "We are using database session logic instead of PHP session"
844
  msgstr ""
845
 
846
  #: includes/class-give-stats.php:96, includes/admin/reports/graphing.php:505
@@ -5547,7 +5547,7 @@ msgstr ""
5547
  msgid "We're unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance."
5548
  msgstr ""
5549
 
5550
- #: includes/install.php:356, includes/forms/template.php:1794, includes/forms/template.php:1799, tests/unit-tests/tests-install.php:100, includes/admin/forms/class-metabox-form-data.php:581, includes/admin/settings/class-settings-display.php:305
5551
  msgid "Agree to Terms?"
5552
  msgstr ""
5553
 
@@ -5675,15 +5675,19 @@ msgstr ""
5675
  msgid "Email Sent!"
5676
  msgstr ""
5677
 
5678
- #: includes/misc-functions.php:2151, includes/misc-functions.php:2191
 
 
 
 
5679
  msgid "View the receipt in your browser &raquo;"
5680
  msgstr ""
5681
 
5682
- #: includes/misc-functions.php:2268
5683
  msgid "You are trying to access invalid donation receipt. Please try again."
5684
  msgstr ""
5685
 
5686
- #: includes/misc-functions.php:2289
5687
  msgid "You must be logged in to view this donation receipt."
5688
  msgstr ""
5689
 
@@ -6061,7 +6065,7 @@ msgstr ""
6061
  msgid "Please enter your username or email to log in."
6062
  msgstr ""
6063
 
6064
- #: includes/process-donation.php:943, templates/shortcode-login.php:51, includes/forms/template.php:1580
6065
  msgid "Reset Password"
6066
  msgstr ""
6067
 
@@ -6126,7 +6130,7 @@ msgstr ""
6126
  msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
6127
  msgstr ""
6128
 
6129
- #: includes/shortcodes.php:558, includes/forms/template.php:703, includes/forms/template.php:733, includes/forms/template.php:1974, includes/admin/forms/class-metabox-form-data.php:263, includes/admin/forms/class-metabox-form-data.php:273, includes/gateways/stripe/includes/give-stripe-scripts.php:59
6130
  msgid "Donate Now"
6131
  msgstr ""
6132
 
@@ -6183,7 +6187,7 @@ msgstr ""
6183
  msgid "Donation Email:"
6184
  msgstr ""
6185
 
6186
- #: templates/email-login-form.php:108, templates/shortcode-profile-editor.php:118, includes/admin/import-functions.php:473, includes/forms/template.php:886, includes/forms/template.php:897, includes/admin/donors/donors.php:812, includes/admin/tools/export/give-export-donations-exporter.php:189, includes/admin/tools/import/class-give-import-donations.php:483
6187
  msgid "Email Address"
6188
  msgstr ""
6189
 
@@ -6277,7 +6281,7 @@ msgstr ""
6277
  msgid "Username"
6278
  msgstr ""
6279
 
6280
- #: templates/shortcode-login.php:38, templates/shortcode-register.php:44, includes/forms/template.php:1564
6281
  msgid "Password"
6282
  msgstr ""
6283
 
@@ -6310,15 +6314,15 @@ msgstr ""
6310
  msgid "Change your Name"
6311
  msgstr ""
6312
 
6313
- #: templates/shortcode-profile-editor.php:52, includes/admin/class-give-welcome.php:685, includes/admin/class-give-welcome.php:687, includes/admin/import-functions.php:435, includes/forms/template.php:815, includes/forms/template.php:826, includes/admin/donors/donors.php:375, includes/admin/tools/export/give-export-donations-exporter.php:183, includes/admin/tools/import/class-give-import-donations.php:493
6314
  msgid "First Name"
6315
  msgstr ""
6316
 
6317
- #: templates/shortcode-profile-editor.php:60, includes/admin/class-give-welcome.php:692, includes/admin/class-give-welcome.php:694, includes/admin/import-functions.php:441, includes/forms/template.php:835, includes/forms/template.php:848, includes/admin/donors/donors.php:384, includes/admin/tools/export/give-export-donations-exporter.php:186
6318
  msgid "Last Name"
6319
  msgstr ""
6320
 
6321
- #: templates/shortcode-profile-editor.php:67, templates/shortcode-receipt.php:56, includes/admin/import-functions.php:445, includes/forms/template.php:858, includes/forms/template.php:868, includes/admin/tools/export/give-export-donations-exporter.php:192, includes/admin/tools/export/give-export-donations-functions.php:463
6322
  msgid "Company Name"
6323
  msgstr ""
6324
 
@@ -7280,7 +7284,7 @@ msgstr ""
7280
  msgid "Company"
7281
  msgstr ""
7282
 
7283
- #: includes/admin/import-functions.php:451, includes/forms/template.php:1194, includes/admin/tools/export/give-export-donations-exporter.php:195
7284
  msgid "Address 1"
7285
  msgstr ""
7286
 
@@ -7288,15 +7292,15 @@ msgstr ""
7288
  msgid "Address"
7289
  msgstr ""
7290
 
7291
- #: includes/admin/import-functions.php:454, includes/forms/template.php:1217, includes/admin/tools/export/class-batch-export-donors.php:187, includes/admin/tools/export/give-export-donations-exporter.php:196
7292
  msgid "Address 2"
7293
  msgstr ""
7294
 
7295
- #: includes/admin/import-functions.php:455, includes/forms/template.php:1238, includes/forms/template.php:1250, includes/admin/tools/export/class-batch-export-donors.php:188, includes/admin/tools/export/give-export-donations-exporter.php:197
7296
  msgid "City"
7297
  msgstr ""
7298
 
7299
- #: includes/admin/import-functions.php:462, includes/forms/template.php:1169, includes/admin/tools/export/class-batch-export-donors.php:191, includes/admin/tools/export/give-export-donations-exporter.php:200
7300
  msgid "Country"
7301
  msgstr ""
7302
 
@@ -7376,7 +7380,7 @@ msgstr ""
7376
  msgid "Form Name"
7377
  msgstr ""
7378
 
7379
- #: includes/admin/import-functions.php:533, includes/forms/template.php:792, includes/admin/donors/donors.php:358
7380
  msgid "Title"
7381
  msgstr ""
7382
 
@@ -7910,231 +7914,231 @@ msgstr ""
7910
  msgid "Choose Your Donation Amount"
7911
  msgstr ""
7912
 
7913
- #: includes/forms/template.php:786
7914
  msgid "Personal Info"
7915
  msgstr ""
7916
 
7917
- #: includes/forms/template.php:796
7918
  msgid "Title is used to personalize your donation record.."
7919
  msgstr ""
7920
 
7921
- #: includes/forms/template.php:819
7922
  msgid "First Name is used to personalize your donation record."
7923
  msgstr ""
7924
 
7925
- #: includes/forms/template.php:839
7926
  msgid "Last Name is used to personalize your donation record."
7927
  msgstr ""
7928
 
7929
- #: includes/forms/template.php:862
7930
  msgid "Donate on behalf of Company"
7931
  msgstr ""
7932
 
7933
- #: includes/forms/template.php:890
7934
  msgid "We will send the donation receipt to this address."
7935
  msgstr ""
7936
 
7937
- #: includes/forms/template.php:924
7938
  msgid "Make this an anonymous donation."
7939
  msgstr ""
7940
 
7941
- #: includes/forms/template.php:933
7942
  msgid "Would you like to prevent your name, image, and comment from being displayed publicly?"
7943
  msgstr ""
7944
 
7945
- #: includes/forms/template.php:933
7946
  msgid "Would you like to prevent your name and image from being displayed publicly?"
7947
  msgstr ""
7948
 
7949
- #: includes/forms/template.php:945
7950
  msgid "Comment"
7951
  msgstr ""
7952
 
7953
- #: includes/forms/template.php:949
7954
  msgid "Would you like to add a comment to this donation?"
7955
  msgstr ""
7956
 
7957
- #: includes/forms/template.php:955
7958
  msgid "Leave a comment"
7959
  msgstr ""
7960
 
7961
- #: includes/forms/template.php:1014, includes/gateways/stripe/includes/actions.php:46
7962
  msgid "Credit Card Info"
7963
  msgstr ""
7964
 
7965
- #: includes/forms/template.php:1018, includes/gateways/stripe/includes/actions.php:55
7966
  msgid "This is a secure SSL encrypted payment."
7967
  msgstr ""
7968
 
7969
- #: includes/forms/template.php:1023, includes/gateways/stripe/includes/actions.php:106, includes/gateways/stripe/includes/give-stripe-scripts.php:57
7970
  msgid "Card Number"
7971
  msgstr ""
7972
 
7973
- #: includes/forms/template.php:1025, includes/gateways/stripe/includes/actions.php:109
7974
  msgid "The (typically) 16 digits on the front of your credit card."
7975
  msgstr ""
7976
 
7977
- #: includes/forms/template.php:1030
7978
  msgid "Card number"
7979
  msgstr ""
7980
 
7981
- #: includes/forms/template.php:1036, includes/gateways/stripe/includes/actions.php:119, includes/gateways/stripe/includes/give-stripe-scripts.php:58
7982
  msgid "CVC"
7983
  msgstr ""
7984
 
7985
- #: includes/forms/template.php:1038, includes/gateways/stripe/includes/actions.php:122
7986
  msgid "The 3 digit (back) or 4 digit (front) value on your card."
7987
  msgstr ""
7988
 
7989
- #: includes/forms/template.php:1042
7990
  msgid "Security code"
7991
  msgstr ""
7992
 
7993
- #: includes/forms/template.php:1048, includes/forms/template.php:1054, includes/gateways/stripe/includes/actions.php:130, includes/gateways/stripe/includes/actions.php:141
7994
  msgid "Cardholder Name"
7995
  msgstr ""
7996
 
7997
- #: includes/forms/template.php:1050, includes/gateways/stripe/includes/actions.php:133
7998
  msgid "The name of the credit card account holder."
7999
  msgstr ""
8000
 
8001
- #: includes/forms/template.php:1070, includes/gateways/stripe/includes/actions.php:150
8002
  msgid "Expiration"
8003
  msgstr ""
8004
 
8005
- #: includes/forms/template.php:1072, includes/gateways/stripe/includes/actions.php:153
8006
  msgid "The date your credit card expires, typically on the front of the card."
8007
  msgstr ""
8008
 
8009
- #: includes/forms/template.php:1081
8010
  msgid "MM / YY"
8011
  msgstr ""
8012
 
8013
- #: includes/forms/template.php:1128, includes/admin/settings/class-settings-gateways.php:85
8014
  msgid "Billing Details"
8015
  msgstr ""
8016
 
8017
- #: includes/forms/template.php:1174
8018
  msgid "The country for your billing address."
8019
  msgstr ""
8020
 
8021
- #: includes/forms/template.php:1200
8022
  msgid "The primary billing address for your credit card."
8023
  msgstr ""
8024
 
8025
- #: includes/forms/template.php:1209
8026
  msgid "Address line 1"
8027
  msgstr ""
8028
 
8029
- #: includes/forms/template.php:1221
8030
  msgid "(optional) The suite, apartment number, post office box (etc) associated with your billing address."
8031
  msgstr ""
8032
 
8033
- #: includes/forms/template.php:1230
8034
  msgid "Address line 2"
8035
  msgstr ""
8036
 
8037
- #: includes/forms/template.php:1242
8038
  msgid "The city for your billing address."
8039
  msgstr ""
8040
 
8041
- #: includes/forms/template.php:1284
8042
  msgid "The state, province, or county for your billing address."
8043
  msgstr ""
8044
 
8045
- #: includes/forms/template.php:1312, includes/forms/template.php:1326
8046
  msgid "Zip / Postal Code"
8047
  msgstr ""
8048
 
8049
- #: includes/forms/template.php:1316
8050
  msgid "The zip or postal code for your billing address."
8051
  msgstr ""
8052
 
8053
- #: includes/forms/template.php:1414
8054
  msgid "Registration is required to donate."
8055
  msgstr ""
8056
 
8057
- #: includes/forms/template.php:1424
8058
  msgid "Create an account"
8059
  msgstr ""
8060
 
8061
- #: includes/forms/template.php:1425
8062
  msgid "Create an account on the site to see and manage donation history."
8063
  msgstr ""
8064
 
8065
- #: includes/forms/template.php:1437
8066
  msgid "Already have an account?"
8067
  msgstr ""
8068
 
8069
- #: includes/forms/template.php:1439, includes/forms/template.php:1588, includes/admin/forms/class-metabox-form-data.php:362, includes/admin/shortcodes/shortcode-give-login.php:24, includes/admin/shortcodes/shortcode-give-login.php:25
8070
  msgid "Login"
8071
  msgstr ""
8072
 
8073
- #: includes/forms/template.php:1511
8074
  msgid "Log In to Your Account"
8075
  msgstr ""
8076
 
8077
- #: includes/forms/template.php:1513
8078
  msgid "(optional)"
8079
  msgstr ""
8080
 
8081
- #: includes/forms/template.php:1519
8082
  msgid "Don't have an account?"
8083
  msgstr ""
8084
 
8085
- #: includes/forms/template.php:1524
8086
  msgid "Register as a part of your donation &raquo;"
8087
  msgstr ""
8088
 
8089
- #: includes/forms/template.php:1526
8090
  msgid "Register or donate as a guest &raquo;"
8091
  msgstr ""
8092
 
8093
- #: includes/forms/template.php:1549
8094
  msgid "Username or Email Address"
8095
  msgstr ""
8096
 
8097
- #: includes/forms/template.php:1558
8098
  msgid "Your username or email"
8099
  msgstr ""
8100
 
8101
- #: includes/forms/template.php:1571
8102
  msgid "Your password"
8103
  msgstr ""
8104
 
8105
- #: includes/forms/template.php:1663
8106
  msgid "Select Payment Method"
8107
  msgstr ""
8108
 
8109
- #: includes/forms/template.php:1810
8110
  msgid "Please enter valid terms and conditions in <a href=\"%s\">this form's settings</a>."
8111
  msgstr ""
8112
 
8113
- #: includes/forms/template.php:1825
8114
  msgid "Terms"
8115
  msgstr ""
8116
 
8117
- #: includes/forms/template.php:1846
8118
  msgid "Show Terms"
8119
  msgstr ""
8120
 
8121
- #: includes/forms/template.php:1848
8122
  msgid "Hide Terms"
8123
  msgstr ""
8124
 
8125
- #: includes/forms/template.php:1893, includes/admin/shortcodes/shortcode-give-donor-wall.php:154
8126
  msgid "Donation Total:"
8127
  msgstr ""
8128
 
8129
- #: includes/forms/template.php:2249, includes/gateways/stripe/includes/actions.php:72, includes/gateways/stripe/includes/actions.php:83, includes/gateways/stripe/includes/actions.php:91
8130
  msgid "Notice:"
8131
  msgstr ""
8132
 
8133
- #: includes/forms/template.php:2249
8134
  msgid "Test mode is enabled. While in test mode no live donations are processed."
8135
  msgstr ""
8136
 
8137
- #: includes/forms/template.php:2279
8138
  msgid "Please log in in order to complete your donation."
8139
  msgstr ""
8140
 
@@ -8457,7 +8461,7 @@ msgid "Status changed from %1$s to %2$s."
8457
  msgstr ""
8458
 
8459
  #: includes/payments/class-give-payment.php:766
8460
- msgid "This custom meta key has been deprecated for performance reasons. Your custom meta data will still be stored but we recommend updating your code to store meta keys individually."
8461
  msgstr ""
8462
 
8463
  #: includes/payments/functions.php:540, includes/admin/payments/class-payments-table.php:309
1
+ # Copyright (C) 2020 Give
2
  # This file is distributed under the same license as the Give package.
3
  msgid ""
4
  msgstr ""
63
  msgid "GiveWP version %s is required to update this add-on."
64
  msgstr ""
65
 
66
+ #: includes/ajax-functions.php:202, includes/country-functions.php:502, includes/country-functions.php:550, includes/country-functions.php:801, includes/admin/import-functions.php:457, includes/forms/template.php:1264, includes/admin/settings/class-settings-general.php:246, includes/admin/tools/export/class-batch-export-donors.php:189, includes/admin/tools/export/give-export-donations-exporter.php:198
67
  msgid "State"
68
  msgstr ""
69
 
461
  msgid "The add-on did not activate successfully."
462
  msgstr ""
463
 
464
+ #: includes/class-give-scripts.php:232, includes/class-give-scripts.php:285, includes/forms/template.php:1596, includes/admin/donors/class-donor-table.php:585, includes/admin/donors/donors.php:502, includes/admin/donors/donors.php:729, includes/admin/donors/donors.php:1116, includes/admin/payments/view-payment-details.php:674
465
  msgid "Cancel"
466
  msgstr ""
467
 
840
  msgstr ""
841
 
842
  #: includes/class-give-session.php:612, includes/class-give-session.php:632
843
+ msgid "We are using database session logic instead of PHP session since GiveWP 2.2.0"
844
  msgstr ""
845
 
846
  #: includes/class-give-stats.php:96, includes/admin/reports/graphing.php:505
5547
  msgid "We're unable to recognize your session. Please refresh the screen to try again; otherwise contact your website administrator for assistance."
5548
  msgstr ""
5549
 
5550
+ #: includes/install.php:356, includes/forms/template.php:1798, includes/forms/template.php:1803, tests/unit-tests/tests-install.php:100, includes/admin/forms/class-metabox-form-data.php:581, includes/admin/settings/class-settings-display.php:305
5551
  msgid "Agree to Terms?"
5552
  msgstr ""
5553
 
5675
  msgid "Email Sent!"
5676
  msgstr ""
5677
 
5678
+ #: includes/misc-functions.php:1604
5679
+ msgid "%1$s was called <strong>incorrectly</strong>. %2$s"
5680
+ msgstr ""
5681
+
5682
+ #: includes/misc-functions.php:2169, includes/misc-functions.php:2209
5683
  msgid "View the receipt in your browser &raquo;"
5684
  msgstr ""
5685
 
5686
+ #: includes/misc-functions.php:2286
5687
  msgid "You are trying to access invalid donation receipt. Please try again."
5688
  msgstr ""
5689
 
5690
+ #: includes/misc-functions.php:2307
5691
  msgid "You must be logged in to view this donation receipt."
5692
  msgstr ""
5693
 
6065
  msgid "Please enter your username or email to log in."
6066
  msgstr ""
6067
 
6068
+ #: includes/process-donation.php:943, templates/shortcode-login.php:51, includes/forms/template.php:1584
6069
  msgid "Reset Password"
6070
  msgstr ""
6071
 
6130
  msgid "Hey! We've raised {total} of the {total_goal} we are trying to raise for this campaign!"
6131
  msgstr ""
6132
 
6133
+ #: includes/shortcodes.php:558, includes/forms/template.php:703, includes/forms/template.php:733, includes/forms/template.php:1978, includes/admin/forms/class-metabox-form-data.php:263, includes/admin/forms/class-metabox-form-data.php:273, includes/gateways/stripe/includes/give-stripe-scripts.php:59
6134
  msgid "Donate Now"
6135
  msgstr ""
6136
 
6187
  msgid "Donation Email:"
6188
  msgstr ""
6189
 
6190
+ #: templates/email-login-form.php:108, templates/shortcode-profile-editor.php:118, includes/admin/import-functions.php:473, includes/forms/template.php:890, includes/forms/template.php:901, includes/admin/donors/donors.php:812, includes/admin/tools/export/give-export-donations-exporter.php:189, includes/admin/tools/import/class-give-import-donations.php:483
6191
  msgid "Email Address"
6192
  msgstr ""
6193
 
6281
  msgid "Username"
6282
  msgstr ""
6283
 
6284
+ #: templates/shortcode-login.php:38, templates/shortcode-register.php:44, includes/forms/template.php:1568
6285
  msgid "Password"
6286
  msgstr ""
6287
 
6314
  msgid "Change your Name"
6315
  msgstr ""
6316
 
6317
+ #: templates/shortcode-profile-editor.php:52, includes/admin/class-give-welcome.php:685, includes/admin/class-give-welcome.php:687, includes/admin/import-functions.php:435, includes/forms/template.php:819, includes/forms/template.php:830, includes/admin/donors/donors.php:375, includes/admin/tools/export/give-export-donations-exporter.php:183, includes/admin/tools/import/class-give-import-donations.php:493
6318
  msgid "First Name"
6319
  msgstr ""
6320
 
6321
+ #: templates/shortcode-profile-editor.php:60, includes/admin/class-give-welcome.php:692, includes/admin/class-give-welcome.php:694, includes/admin/import-functions.php:441, includes/forms/template.php:839, includes/forms/template.php:852, includes/admin/donors/donors.php:384, includes/admin/tools/export/give-export-donations-exporter.php:186
6322
  msgid "Last Name"
6323
  msgstr ""
6324
 
6325
+ #: templates/shortcode-profile-editor.php:67, templates/shortcode-receipt.php:56, includes/admin/import-functions.php:445, includes/forms/template.php:862, includes/forms/template.php:872, includes/admin/tools/export/give-export-donations-exporter.php:192, includes/admin/tools/export/give-export-donations-functions.php:463
6326
  msgid "Company Name"
6327
  msgstr ""
6328
 
7284
  msgid "Company"
7285
  msgstr ""
7286
 
7287
+ #: includes/admin/import-functions.php:451, includes/forms/template.php:1198, includes/admin/tools/export/give-export-donations-exporter.php:195
7288
  msgid "Address 1"
7289
  msgstr ""
7290
 
7292
  msgid "Address"
7293
  msgstr ""
7294
 
7295
+ #: includes/admin/import-functions.php:454, includes/forms/template.php:1221, includes/admin/tools/export/class-batch-export-donors.php:187, includes/admin/tools/export/give-export-donations-exporter.php:196
7296
  msgid "Address 2"
7297
  msgstr ""
7298
 
7299
+ #: includes/admin/import-functions.php:455, includes/forms/template.php:1242, includes/forms/template.php:1254, includes/admin/tools/export/class-batch-export-donors.php:188, includes/admin/tools/export/give-export-donations-exporter.php:197
7300
  msgid "City"
7301
  msgstr ""
7302
 
7303
+ #: includes/admin/import-functions.php:462, includes/forms/template.php:1173, includes/admin/tools/export/class-batch-export-donors.php:191, includes/admin/tools/export/give-export-donations-exporter.php:200
7304
  msgid "Country"
7305
  msgstr ""
7306
 
7380
  msgid "Form Name"
7381
  msgstr ""
7382
 
7383
+ #: includes/admin/import-functions.php:533, includes/forms/template.php:796, includes/admin/donors/donors.php:358
7384
  msgid "Title"
7385
  msgstr ""
7386
 
7914
  msgid "Choose Your Donation Amount"
7915
  msgstr ""
7916
 
7917
+ #: includes/forms/template.php:790
7918
  msgid "Personal Info"
7919
  msgstr ""
7920
 
7921
+ #: includes/forms/template.php:800
7922
  msgid "Title is used to personalize your donation record.."
7923
  msgstr ""
7924
 
7925
+ #: includes/forms/template.php:823
7926
  msgid "First Name is used to personalize your donation record."
7927
  msgstr ""
7928
 
7929
+ #: includes/forms/template.php:843
7930
  msgid "Last Name is used to personalize your donation record."
7931
  msgstr ""
7932
 
7933
+ #: includes/forms/template.php:866
7934
  msgid "Donate on behalf of Company"
7935
  msgstr ""
7936
 
7937
+ #: includes/forms/template.php:894
7938
  msgid "We will send the donation receipt to this address."
7939
  msgstr ""
7940
 
7941
+ #: includes/forms/template.php:928
7942
  msgid "Make this an anonymous donation."
7943
  msgstr ""
7944
 
7945
+ #: includes/forms/template.php:937
7946
  msgid "Would you like to prevent your name, image, and comment from being displayed publicly?"
7947
  msgstr ""
7948
 
7949
+ #: includes/forms/template.php:937
7950
  msgid "Would you like to prevent your name and image from being displayed publicly?"
7951
  msgstr ""
7952
 
7953
+ #: includes/forms/template.php:949
7954
  msgid "Comment"
7955
  msgstr ""
7956
 
7957
+ #: includes/forms/template.php:953
7958
  msgid "Would you like to add a comment to this donation?"
7959
  msgstr ""
7960
 
7961
+ #: includes/forms/template.php:959
7962
  msgid "Leave a comment"
7963
  msgstr ""
7964
 
7965
+ #: includes/forms/template.php:1018, includes/gateways/stripe/includes/actions.php:46
7966
  msgid "Credit Card Info"
7967
  msgstr ""
7968
 
7969
+ #: includes/forms/template.php:1022, includes/gateways/stripe/includes/actions.php:55
7970
  msgid "This is a secure SSL encrypted payment."
7971
  msgstr ""
7972
 
7973
+ #: includes/forms/template.php:1027, includes/gateways/stripe/includes/actions.php:106, includes/gateways/stripe/includes/give-stripe-scripts.php:57
7974
  msgid "Card Number"
7975
  msgstr ""
7976
 
7977
+ #: includes/forms/template.php:1029, includes/gateways/stripe/includes/actions.php:109
7978
  msgid "The (typically) 16 digits on the front of your credit card."
7979
  msgstr ""
7980
 
7981
+ #: includes/forms/template.php:1034
7982
  msgid "Card number"
7983
  msgstr ""
7984
 
7985
+ #: includes/forms/template.php:1040, includes/gateways/stripe/includes/actions.php:119, includes/gateways/stripe/includes/give-stripe-scripts.php:58
7986
  msgid "CVC"
7987
  msgstr ""
7988
 
7989
+ #: includes/forms/template.php:1042, includes/gateways/stripe/includes/actions.php:122
7990
  msgid "The 3 digit (back) or 4 digit (front) value on your card."
7991
  msgstr ""
7992
 
7993
+ #: includes/forms/template.php:1046
7994
  msgid "Security code"
7995
  msgstr ""
7996
 
7997
+ #: includes/forms/template.php:1052, includes/forms/template.php:1058, includes/gateways/stripe/includes/actions.php:130, includes/gateways/stripe/includes/actions.php:141
7998
  msgid "Cardholder Name"
7999
  msgstr ""
8000
 
8001
+ #: includes/forms/template.php:1054, includes/gateways/stripe/includes/actions.php:133
8002
  msgid "The name of the credit card account holder."
8003
  msgstr ""
8004
 
8005
+ #: includes/forms/template.php:1074, includes/gateways/stripe/includes/actions.php:150
8006
  msgid "Expiration"
8007
  msgstr ""
8008
 
8009
+ #: includes/forms/template.php:1076, includes/gateways/stripe/includes/actions.php:153
8010
  msgid "The date your credit card expires, typically on the front of the card."
8011
  msgstr ""
8012
 
8013
+ #: includes/forms/template.php:1085
8014
  msgid "MM / YY"
8015
  msgstr ""
8016
 
8017
+ #: includes/forms/template.php:1132, includes/admin/settings/class-settings-gateways.php:85
8018
  msgid "Billing Details"
8019
  msgstr ""
8020
 
8021
+ #: includes/forms/template.php:1178
8022
  msgid "The country for your billing address."
8023
  msgstr ""
8024
 
8025
+ #: includes/forms/template.php:1204
8026
  msgid "The primary billing address for your credit card."
8027
  msgstr ""
8028
 
8029
+ #: includes/forms/template.php:1213
8030
  msgid "Address line 1"
8031
  msgstr ""
8032
 
8033
+ #: includes/forms/template.php:1225
8034
  msgid "(optional) The suite, apartment number, post office box (etc) associated with your billing address."
8035
  msgstr ""
8036
 
8037
+ #: includes/forms/template.php:1234
8038
  msgid "Address line 2"
8039
  msgstr ""
8040
 
8041
+ #: includes/forms/template.php:1246
8042
  msgid "The city for your billing address."
8043
  msgstr ""
8044
 
8045
+ #: includes/forms/template.php:1288
8046
  msgid "The state, province, or county for your billing address."
8047
  msgstr ""
8048
 
8049
+ #: includes/forms/template.php:1316, includes/forms/template.php:1330
8050
  msgid "Zip / Postal Code"
8051
  msgstr ""
8052
 
8053
+ #: includes/forms/template.php:1320
8054
  msgid "The zip or postal code for your billing address."
8055
  msgstr ""
8056
 
8057
+ #: includes/forms/template.php:1418
8058
  msgid "Registration is required to donate."
8059
  msgstr ""
8060
 
8061
+ #: includes/forms/template.php:1428
8062
  msgid "Create an account"
8063
  msgstr ""
8064
 
8065
+ #: includes/forms/template.php:1429
8066
  msgid "Create an account on the site to see and manage donation history."
8067
  msgstr ""
8068
 
8069
+ #: includes/forms/template.php:1441
8070
  msgid "Already have an account?"
8071
  msgstr ""
8072
 
8073
+ #: includes/forms/template.php:1443, includes/forms/template.php:1592, includes/admin/forms/class-metabox-form-data.php:362, includes/admin/shortcodes/shortcode-give-login.php:24, includes/admin/shortcodes/shortcode-give-login.php:25
8074
  msgid "Login"
8075
  msgstr ""
8076
 
8077
+ #: includes/forms/template.php:1515
8078
  msgid "Log In to Your Account"
8079
  msgstr ""
8080
 
8081
+ #: includes/forms/template.php:1517
8082
  msgid "(optional)"
8083
  msgstr ""
8084
 
8085
+ #: includes/forms/template.php:1523
8086
  msgid "Don't have an account?"
8087
  msgstr ""
8088
 
8089
+ #: includes/forms/template.php:1528
8090
  msgid "Register as a part of your donation &raquo;"
8091
  msgstr ""
8092
 
8093
+ #: includes/forms/template.php:1530
8094
  msgid "Register or donate as a guest &raquo;"
8095
  msgstr ""
8096
 
8097
+ #: includes/forms/template.php:1553
8098
  msgid "Username or Email Address"
8099
  msgstr ""
8100
 
8101
+ #: includes/forms/template.php:1562
8102
  msgid "Your username or email"
8103
  msgstr ""
8104
 
8105
+ #: includes/forms/template.php:1575
8106
  msgid "Your password"
8107
  msgstr ""
8108
 
8109
+ #: includes/forms/template.php:1667
8110
  msgid "Select Payment Method"
8111
  msgstr ""
8112
 
8113
+ #: includes/forms/template.php:1814
8114
  msgid "Please enter valid terms and conditions in <a href=\"%s\">this form's settings</a>."
8115
  msgstr ""
8116
 
8117
+ #: includes/forms/template.php:1829
8118
  msgid "Terms"
8119
  msgstr ""
8120
 
8121
+ #: includes/forms/template.php:1850
8122
  msgid "Show Terms"
8123
  msgstr ""
8124
 
8125
+ #: includes/forms/template.php:1852
8126
  msgid "Hide Terms"
8127
  msgstr ""
8128
 
8129
+ #: includes/forms/template.php:1897, includes/admin/shortcodes/shortcode-give-donor-wall.php:154
8130
  msgid "Donation Total:"
8131
  msgstr ""
8132
 
8133
+ #: includes/forms/template.php:2253, includes/gateways/stripe/includes/actions.php:72, includes/gateways/stripe/includes/actions.php:83, includes/gateways/stripe/includes/actions.php:91
8134
  msgid "Notice:"
8135
  msgstr ""
8136
 
8137
+ #: includes/forms/template.php:2253
8138
  msgid "Test mode is enabled. While in test mode no live donations are processed."
8139
  msgstr ""
8140
 
8141
+ #: includes/forms/template.php:2283
8142
  msgid "Please log in in order to complete your donation."
8143
  msgstr ""
8144
 
8461
  msgstr ""
8462
 
8463
  #: includes/payments/class-give-payment.php:766
8464
+ msgid "This custom meta key has been deprecated for performance reasons. Your custom meta data will still be stored but we recommend updating your code to store meta keys individually from GiveWP 2.0.0."
8465
  msgstr ""
8466
 
8467
  #: includes/payments/functions.php:540, includes/admin/payments/class-payments-table.php:309
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donations, donation plugin, wordpress donation plugin, givewp, g
5
  Requires at least: 4.8
6
  Tested up to: 5.3
7
  Requires PHP: 5.6
8
- Stable tag: 2.5.12
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -17,7 +17,7 @@ Accept donations and begin fundraising with GiveWP, the highest rated WordPress
17
 
18
  Transform the way you accept online donations. With GiveWP you can accept charitable gifts through customizable donation forms, view donation statistics and reports, manage donors, and integrate with a wide variety of third-party gateways and services.
19
 
20
- [youtube https://www.youtube.com/watch?v=L5YudU2hido]
21
 
22
  = GiveWP's Features =
23
 
@@ -223,26 +223,32 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
223
 
224
  == Changelog ==
225
 
 
 
 
 
 
 
226
  = 2.5.12: December 31st, 2019 =
227
- * Fix: Resolved an issue with donation receipt emails and admin notifications not being sent out properly when a new donation is made. The cause of the issue was a security permission check incorrectly put in place in the previous version that was unable to be bypassed by new donors. We've reverted that change and fully tested to ensure emails are working as expected again. (https://github.com/impress-org/givewp/issues/4379)[#4379]
228
 
229
  = 2.5.11: December 23rd, 2019 =
230
- * Fix: Activating Give created a minor style conflict with the Gutenberg editor slightly pushing down some buttons. This has been resolved by refactoring the styles so they no longer conflict with WP Core elements. (https://github.com/impress-org/givewp/issues/4354)[#4354]
231
- * Fix: Sorting donation payments by taxonomy would result in AJAX fails in JavaScript. (https://github.com/impress-org/givewp/issues/2976)[#2976]
232
- * Improvement: New unit test added to test for the `give_verify_minimum_price()` function. (https://github.com/impress-org/givewp/issues/3232)[#3232]
233
- * Refactor: Removed duplicate code for fetching donor addresses to improve performance. (https://github.com/impress-org/givewp/issues/3253)[#3253]
234
- * Refactor: We removed the old notes column from the donor table now that that data has long been migrated over to a custom tables' column. (https://github.com/impress-org/givewp/issues/3632)[#3632]
235
- * Fix: Improved responsiveness in the donation forms list screen by preventing the copy shortcode button from overlapping with other columns on smaller screens. (https://github.com/impress-org/givewp/issues/4090)[#4090]
236
- * Fix: Ensure that empty donation receipt emails can not triggered incorrectly. (https://github.com/impress-org/givewp/issues/4185)[#4185]
237
- * Refactor: Adjusted meta capabilities so that they are not assigned to roles. (https://github.com/impress-org/givewp/issues/4212)[#4212]
238
- * Fix: Improved `give_send_back_to_checkout()` redirect functionality with `add_query_arg()` and `remove_query_arg()` for a dramatically simpler solution that provides for WordPress installed in a subdirectory. Thanks @luizbills for the contribution! (https://github.com/impress-org/givewp/issues/4311)[#4311]
239
- * Fix: Resolved several style issues with WordPress 5.3+'s new admin changes. (https://github.com/impress-org/givewp/issues/4315)[#4315]
240
- * Fix: The UK's County field is no longer required. This change is based on customer feedback this field should not be required. (https://github.com/impress-org/givewp/issues/4316)[#4316]
241
- * Fix: Resolve updates not showing up without a manual refresh of licenses. Previously add-on updates would be checked every few weeks. Now they are checked on every 48 hours. (https://github.com/impress-org/givewp/issues/4318)[#4318]
242
- * Fix: Resolved an error with Stripe that would occur if an existing donor would make a new donation using a different credit card. The error "The customer does not have a payment method with the ID..." will no longer appear now and donations will process as expected. (https://github.com/impress-org/givewp/issues/4328)[#4328]
243
- * Fix: Resolved an issue with Stripe Checkout if you chose to load scripts in the footer would result in a redirect loop depending on your set up. (https://github.com/impress-org/givewp/issues/4329)[#4329]
244
- * Fix: When clicking on the modal popup button it would previously be hidden from the DOM which could result in background jumpiness. Now the button is not hidden which leads to better theme compatibility. (https://github.com/impress-org/givewp/issues/4352)[#4352]
245
- * Fix: Corrected an broken URL in the in add-ons header. (https://github.com/impress-org/givewp/issues/4307)[#4307]
246
 
247
  = 2.5.10: October 28th, 2019 =
248
  * Fix: Resolved an issue with Stripe Checkout 2.0 and featured images not properly displaying for certain WP installs. [#4281](https://github.com/impress-org/givewp/issues/4281)
5
  Requires at least: 4.8
6
  Tested up to: 5.3
7
  Requires PHP: 5.6
8
+ Stable tag: 2.5.13
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
17
 
18
  Transform the way you accept online donations. With GiveWP you can accept charitable gifts through customizable donation forms, view donation statistics and reports, manage donors, and integrate with a wide variety of third-party gateways and services.
19
 
20
+ [youtube https://www.youtube.com/watch?v=gNdEelhjoKE]
21
 
22
  = GiveWP's Features =
23
 
223
 
224
  == Changelog ==
225
 
226
+ = 2.5.13: January 15th, 2020 =
227
+ * Fix: Resolved an issue when using button mode of multiple donation buttons appearing incorrectly within shortcodes, blocks, and widgets. [#4379](https://github.com/impress-org/givewp/issues/4379)
228
+ * Fix: Correct an ordering issue with the form grid when sorting by "Form Title" it was using the slug rather than the actual donation form title. [#4392](https://github.com/impress-org/givewp/issues/4392)
229
+ * Fix: Removed deprecated usage of `wp.components.ServerSideRender` in our Gutenberg blocks. [#4402](https://github.com/impress-org/givewp/issues/4402)
230
+ * Tweak: Refactored the `give_doing_it_wrong()` function so that it properly displays Give-specific messages for developers. [#2572](https://github.com/impress-org/givewp/issues/2572)
231
+
232
  = 2.5.12: December 31st, 2019 =
233
+ * Fix: Resolved an issue with donation receipt emails and admin notifications not being sent out properly when a new donation is made. The cause of the issue was a security permission check incorrectly put in place in the previous version that was unable to be bypassed by new donors. We've reverted that change and fully tested to ensure emails are working as expected again. [#4379](https://github.com/impress-org/givewp/issues/4379)
234
 
235
  = 2.5.11: December 23rd, 2019 =
236
+ * Fix: Activating Give created a minor style conflict with the Gutenberg editor slightly pushing down some buttons. This has been resolved by refactoring the styles so they no longer conflict with WP Core elements. [#4354](https://github.com/impress-org/givewp/issues/4354)
237
+ * Fix: Sorting donation payments by taxonomy would result in AJAX fails in JavaScript. [#2976](https://github.com/impress-org/givewp/issues/2976)
238
+ * Improvement: New unit test added to test for the `give_verify_minimum_price()` function. [#3232](https://github.com/impress-org/givewp/issues/3232)
239
+ * Refactor: Removed duplicate code for fetching donor addresses to improve performance. [#3253](https://github.com/impress-org/givewp/issues/3253)
240
+ * Refactor: We removed the old notes column from the donor table now that that data has long been migrated over to a custom tables' column. [#3632](https://github.com/impress-org/givewp/issues/3632)
241
+ * Fix: Improved responsiveness in the donation forms list screen by preventing the copy shortcode button from overlapping with other columns on smaller screens. [#4090](https://github.com/impress-org/givewp/issues/4090)
242
+ * Fix: Ensure that empty donation receipt emails can not triggered incorrectly. [#4185](https://github.com/impress-org/givewp/issues/4185)
243
+ * Refactor: Adjusted meta capabilities so that they are not assigned to roles. [#4212](https://github.com/impress-org/givewp/issues/4212)
244
+ * Fix: Improved `give_send_back_to_checkout()` redirect functionality with `add_query_arg()` and `remove_query_arg()` for a dramatically simpler solution that provides for WordPress installed in a subdirectory. Thanks @luizbills for the contribution! [#4311](https://github.com/impress-org/givewp/issues/4311)
245
+ * Fix: Resolved several style issues with WordPress 5.3+'s new admin changes. [#4315](https://github.com/impress-org/givewp/issues/4315)
246
+ * Fix: The UK's County field is no longer required. This change is based on customer feedback this field should not be required. [#4316](https://github.com/impress-org/givewp/issues/4316)
247
+ * Fix: Resolve updates not showing up without a manual refresh of licenses. Previously add-on updates would be checked every few weeks. Now they are checked on every 48 hours. [#4318](https://github.com/impress-org/givewp/issues/4318)
248
+ * Fix: Resolved an error with Stripe that would occur if an existing donor would make a new donation using a different credit card. The error "The customer does not have a payment method with the ID..." will no longer appear now and donations will process as expected. [#4328](https://github.com/impress-org/givewp/issues/4328)
249
+ * Fix: Resolved an issue with Stripe Checkout if you chose to load scripts in the footer would result in a redirect loop depending on your set up. [#4329](https://github.com/impress-org/givewp/issues/4329)
250
+ * Fix: When clicking on the modal popup button it would previously be hidden from the DOM which could result in background jumpiness. Now the button is not hidden which leads to better theme compatibility. [#4352](https://github.com/impress-org/givewp/issues/4352)
251
+ * Fix: Corrected an broken URL in the in add-ons header. [#4307](https://github.com/impress-org/givewp/issues/4307)
252
 
253
  = 2.5.10: October 28th, 2019 =
254
  * Fix: Resolved an issue with Stripe Checkout 2.0 and featured images not properly displaying for certain WP installs. [#4281](https://github.com/impress-org/givewp/issues/4281)
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit855b06f51add468f955e380c585a61da::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit44a960492db803d93d7ebfc99fde5196::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit855b06f51add468f955e380c585a61da
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit855b06f51add468f955e380c585a61da
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit855b06f51add468f955e380c585a61da', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit855b06f51add468f955e380c585a61da', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit855b06f51add468f955e380c585a61da::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit44a960492db803d93d7ebfc99fde5196
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit44a960492db803d93d7ebfc99fde5196', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit44a960492db803d93d7ebfc99fde5196', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit44a960492db803d93d7ebfc99fde5196::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit855b06f51add468f955e380c585a61da
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
@@ -48,9 +48,9 @@ class ComposerStaticInit855b06f51add468f955e380c585a61da
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
- $loader->prefixLengthsPsr4 = ComposerStaticInit855b06f51add468f955e380c585a61da::$prefixLengthsPsr4;
52
- $loader->prefixDirsPsr4 = ComposerStaticInit855b06f51add468f955e380c585a61da::$prefixDirsPsr4;
53
- $loader->classMap = ComposerStaticInit855b06f51add468f955e380c585a61da::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit44a960492db803d93d7ebfc99fde5196
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'S' =>
48
  public static function getInitializer(ClassLoader $loader)
49
  {
50
  return \Closure::bind(function () use ($loader) {
51
+ $loader->prefixLengthsPsr4 = ComposerStaticInit44a960492db803d93d7ebfc99fde5196::$prefixLengthsPsr4;
52
+ $loader->prefixDirsPsr4 = ComposerStaticInit44a960492db803d93d7ebfc99fde5196::$prefixDirsPsr4;
53
+ $loader->classMap = ComposerStaticInit44a960492db803d93d7ebfc99fde5196::$classMap;
54
 
55
  }, null, ClassLoader::class);
56
  }
wp-textdomain.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ const wpTextdomain = require( 'wp-textdomain' );
2
+
3
+ wpTextdomain( process.argv[ 2 ], {
4
+ domain: 'give',
5
+ fix: true,
6
+ } );