/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/assets/dist/js
NameSizeModeActions
admin-add-ons.js81130644editdlrm
admin-free-addon-modal.js1499860644editdlrm
admin-onboarding-wizard.js7546960644editdlrm
admin-reports-widget.js6982270644editdlrm
admin-reports.js10430690644editdlrm
admin-setup.js3050644editdlrm
admin-shortcodes.js25970644editdlrm
admin-upsell-addons-page.js1949140644editdlrm
admin-upsell-recurring-donations-settings-tab.js1510610644editdlrm
admin-upsell-sale-banner.js6880644editdlrm
admin-widgets.js55420644editdlrm
admin.js2795370644editdlrm
donor-dashboards-app.js12490320644editdlrm
donor-dashboards-block.js46580644editdlrm
give-admin-donation-forms.js8183080644editdlrm
give-classic-template.js131200644editdlrm
give-donation-summary.js84550644editdlrm
give-log-list-table-app.js7893940644editdlrm
give-migrations-list-table-app.js7874700644editdlrm
give-sequoia-template.js153000644editdlrm
give-stripe-becs.js38590644editdlrm
give-stripe-sepa.js38610644editdlrm
give-stripe.js75790644editdlrm
give.js1582780644editdlrm
gutenberg.js2650130644editdlrm
paypal-commerce.js403930644editdlrm
plugin-deactivation-survey.js310380644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/assets/dist/js/paypal-commerce.js (40393B)
(()=>{var e={87757:(e,t,r)=>{e.exports=r(35666)},35666:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(e,t,r);if("normal"===s.type){if(n=r.done?p:d,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=p,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,P=w&&w(w(x([])));P&&P!==r&&n.call(P,i)&&(b=P);var F=g.prototype=v.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,i,a,c){var s=l(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:x(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(87757),t=r.n(e);function n(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function o(e,t){for(var r=0;r1&&void 0!==arguments[1]&&arguments[1],r=Give.form.fn.getErrorHTML([{message:window.givePayPalCommerce.genericDonorErrorMessage}]);(t||this.isInTestMode())&&(r=e),this.showError(r)}},{key:"isProcessingEventForForm",value:function(e){return e===this.form.getAttribute("id")&&k.isPayPalCommerceSelected(this.jQueryForm)}},{key:"createOrderHandler",value:(c=t().mark((function e(r,n){var o,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Give.form.fn.removeErrors(this.jQueryForm),e.next=3,fetch("".concat(this.ajaxurl,"?action=give_paypal_commerce_create_order"),{method:"POST",body:k.getFormDataWithoutGiveActionField(this.form)});case 3:return o=e.sent,e.next=6,o.json();case 6:if((i=e.sent).success){e.next=9;break}throw i.data.error;case 9:return e.abrupt("return",i.data.id);case 10:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=c.apply(e,t);function a(e){n(i,r,o,a,s,"next",e)}function s(e){n(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e,t){return s.apply(this,arguments)})}],i&&o(r.prototype,i),a&&o(r,a),e}();const a=i;function c(e){return c="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},c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r
'),e}}])&&u(t.prototype,r),n&&u(t,n),i}(a);function y(e){return y="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},y(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t".concat(n,"")]:[]}t["".concat(e.field)].push("".concat(e.description,"."))}else r.push({message:e.description})})),t)r.push({message:t[n].join(" ")});Give.form.fn.addErrorsAndResetDonationButton(this.jQueryForm,Give.form.fn.getErrorHTML(r))}},{key:"submitDonationForm",value:function(){this.jQueryForm.off("submit"),this.jQueryForm.submit()}},{key:"toggleFields",value:function(){var e=k.isRecurringDonation(this.form)?"none":"block",t="none"===e&&!p.canShow(this.form);for(var r in this.toggleCardNameField(t),this.hostedCardFieldsContainers)this.hostedCardFieldsContainers[r].style.display=e,this.hostedCardFieldsContainers[r].parentElement.style.display=t?"none":"block";this.customCardFields.separator.style.display=t?"none":"flex"}},{key:"toggleCardNameField",value:function(e){var t=this.form.querySelector('input[name="card_name"]');t.parentElement.style.display=e?"none":"block",t.disabled=e}},{key:"getFieldTypeByFieldName",value:function(e){return"card_number"===e?"number":"card_cvc"===e?"cvv":"card_expiry"===e?"expirationDate":void 0}}],o=[{key:"canShow",value:function(){return!0===paypal.HostedFields.isEligible()&&!!window.givePayPalCommerce.supportsCustomPayments}}],n&&P(r.prototype,n),o&&P(r,o),l}(a);const E=O;function j(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=document.createElement("script");return r.src=e,ee(t,(function(e){r.setAttribute(e,t[e])})),r}function ee(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(r)}function te(e){var t=0;return ee(e,(function(){return t++})),t}z.prototype.catch=function(e){return this.then(null,e)},z.prototype.then=function(e,t){var r=new this.constructor(V);return U(this,new K(e,t,r)),r},z.prototype.finally=function(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){return t.reject(r)}))}))},z.all=function(e){return new z((function(t,r){if(!N(e))return r(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(e);if(0===n.length)return t([]);var o=n.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var c=a.then;if("function"==typeof c)return void c.call(a,(function(t){i(e,t)}),r)}n[e]=a,0==--o&&t(n)}catch(e){r(e)}}for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t={queryParams:{},dataAttributes:{}};ee(e,(function(r){"data-"===r.substring(0,5)?t.dataAttributes[r]=e[r]:t.queryParams[r]=e[r]}));var r=t.queryParams,n=t.dataAttributes;return{queryString:Z(r),dataAttributes:n}}(e),o=n.queryString,i=n.dataAttributes,a="".concat("https://www.paypal.com/sdk/js","?").concat(o);if(function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(!r)return null;var n=$(e,t);if(te(r.dataset)!==te(n.dataset))return null;var o=!0;return ee(r.dataset,(function(e){r.dataset[e]!==n.dataset[e]&&(o=!1)})),o?r:null}(a,i)&&window.paypal)return t(window.paypal);ne=!0,function(e){var t=e.url,r=e.dataAttributes,n=e.onSuccess,o=e.onError,i=$(t,r);i.onerror=o,i.onload=n,document.head.insertBefore(i,document.head.firstElementChild)}({url:a,dataAttributes:i,onSuccess:function(){return ne=!1,window.paypal?t(window.paypal):r(new Error("The window.paypal global variable is not available."))},onError:function(){return ne=!1,r(new Error('The script "'.concat(a,"\" didn't load correctly.")))}})}))}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t