diff --git a/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php b/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php index c6fabfa1..13a7ab72 100644 --- a/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php +++ b/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php @@ -5,9 +5,9 @@ * Description: The easiest way to sell digital products with WordPress. * Author: Easy Digital Downloads * Author URI: https://easydigitaldownloads.com - * Version: 3.1.1.2 + * Version: 3.1.1.3 * Text Domain: easy-digital-downloads - * Domain Path: languages + * Domain Path: /languages * Requires at least: 5.4 * Requires PHP: 7.1 * @@ -27,7 +27,7 @@ * @package EDD * @category Core * @author Easy Digital Downloads - * @version 3.1.1.2 + * @version 3.1.1.3 */ // Exit if accessed directly. diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php index 3b070d06..e1848217 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php @@ -858,6 +858,12 @@ class EDD_Payment_History_Table extends List_Table { 'type' => $type, ) ); + // If no specific ordering has been requested, order by `date_created`. + if ( empty( $_GET['orderby'] ) ) { + $args['orderby'] = 'date_created'; + $args['order'] = 'DESC'; + } + // Update args by search query. if ( ! empty( $search ) ) { $args = $this->parse_search( $search, $args ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php b/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php index a54b51f8..00116e32 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php @@ -355,7 +355,7 @@ final class Easy_Digital_Downloads { // Plugin version. if ( ! defined( 'EDD_VERSION' ) ) { - define( 'EDD_VERSION', '3.1.1.2' ); + define( 'EDD_VERSION', '3.1.1.3' ); } // Make sure CAL_GREGORIAN is defined. diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-edd-requirements-check.php b/wp-content/plugins/easy-digital-downloads/includes/class-edd-requirements-check.php index d80d8fb3..f238b4a8 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-edd-requirements-check.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-edd-requirements-check.php @@ -69,9 +69,6 @@ final class EDD_Requirements_Check { $this->file = EDD_PLUGIN_FILE; $this->base = EDD_PLUGIN_BASE; - // Always load translations - add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); - // Load or quit $this->met() ? $this->load() @@ -416,6 +413,9 @@ final class EDD_Requirements_Check { /** * Plugin specific text-domain loader. * + * @deprecated 3.1.1.3. Since EDD no longer bundles any language files, + * and WordPress Core automatically loads the custom wp-content/languages/easy-digital-downloads/.mo file if it's found, + * this is no longer needed. * @since 1.4 * @return void */ @@ -492,6 +492,7 @@ final class EDD_Requirements_Check { /** * Load a .mo file for the old textdomain if one exists. * + * @deprecated 3.1.1.3 * @see https://github.com/10up/grunt-wp-plugin/issues/21#issuecomment-62003284 */ public function load_old_textdomain( $mofile, $textdomain ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php index 13d14b8a..ff9428b0 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php @@ -846,30 +846,8 @@ abstract class Table extends Base { */ private function get_db_version() { $this->db_version = $this->is_global() - ? get_network_option( get_main_network_id(), $this->db_version_key, false ) - : get_option( $this->db_version_key, false ); - - /** - * If the DB version is higher than the stated version and is 12 digits - * long, we need to update it to our new, shorter format of 9 digits. - * - * This is only for 3.0 beta testers, and can be removed in 3.0.1 or above. - * - * @link https://github.com/easydigitaldownloads/easy-digital-downloads/issues/7579 - */ - if ( version_compare( $this->db_version, $this->version, '<=' ) || ( 12 !== strlen( $this->db_version ) ) ) { - return; - } - - // Parse the new version number from the existing. Converting from - // {YYYY}{mm}{dd}{xxxx} to {YYYY}{mm}{dd}{x} - $date = substr( $this->db_version, 0, 8 ); - $increment = substr( $this->db_version, 8, 4 ); - - // Trims off the three prefixed zeros. - $this->db_version = intval( $date . intval( $increment ) ); - - $this->set_db_version( $this->db_version ); + ? get_network_option( get_main_network_id(), $this->db_version_key, 1 ) + : get_option( $this->db_version_key, 1 ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/tables/class-customers.php b/wp-content/plugins/easy-digital-downloads/includes/database/tables/class-customers.php index 6ed90a6d..672db177 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/tables/class-customers.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/tables/class-customers.php @@ -38,7 +38,7 @@ final class Customers extends Table { * @since 3.0 * @var int */ - protected $version = 202301021; + protected $version = 202303220; /** * Array of upgrade versions and methods @@ -48,9 +48,9 @@ final class Customers extends Table { * @var array */ protected $upgrades = array( - '202002141' => 202002141, '202006101' => 202006101, '202301021' => 202301021, + '202303220' => 202303220, ); /** @@ -248,4 +248,18 @@ final class Customers extends Table { return $this->is_success( $return_result ); } + + /** + * Upgrades the customer database for sites which got into a bit of a snarl with the database versions. + * + * @since 3.1.1.3 + * @return bool + */ + protected function __202303220() { + if ( $this->needs_initial_upgrade() ) { + return $this->__202301021(); + } + + return true; + } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js index 7471663c..0125b9bc 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=110)}([function(e,t,r){"use strict";r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"d",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return c.b})),r.d(t,"j",(function(){return c.c})),r.d(t,"b",(function(){return c.a})),r.d(t,"i",(function(){return s})),r.d(t,"k",(function(){return d})),r.d(t,"e",(function(){return l})),r.d(t,"c",(function(){return f})),r(32),r(33),r(34),r(35);var n=r(19),o=r(20),i=r.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],r=e.nextElementSibling;r;)1===r.nodeType&&t.push(r),r=r.nextElementSibling;return t}var c=r(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}r(7)},function(e,t,r){var n=r(66)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){function r(e,r,n,o,i,a,u){try{var c=e[a](u),s=c.value}catch(e){return void n(e)}c.done?r(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var n=this,o=arguments;return new t((function(t,i){var a=e.apply(n,o);function u(e){r(a,t,i,u,c,"next",e)}function c(e){r(a,t,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(38))},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";function n(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,r){if(window.eddStripe[e]=t,r)return window.eddStripe[e]}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return s})),r.d(t,"e",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return y})),r.d(t,"d",(function(){return m}));var n=r(3),o=r.n(n),i=r(1),a=r.n(i),u=r(31),c=r(0);function s(){Object(u.a)(),!1!==window.eddStripe.elementMounted&&(window.eddStripe.paymentMethodType="",window.eddStripe.intentFingerprint="",window.eddStripe.intentType="",window.eddStripe.intentId="",h(),e(document).off("click","#edd_purchase_form #edd_purchase_submit [type=submit]"),document.getElementById("edd-purchase-button").addEventListener("click",function(){var t=o()(a.a.mark((function t(r){var n,o,i,c,s,l,h,g,w,_,S,j,O,x,P,E,k;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("stripe"===e('input[name="edd-gateway"]').val()&&e(".edd_cart_total .edd_cart_amount").data("total")>0){t.next=2;break}return t.abrupt("return");case 2:if(m()){t.next=4;break}return t.abrupt("return",!1);case 4:if(r.preventDefault(),p(),n=Object(u.b)(document.getElementById("edd_purchase_form")),o="","apple_pay"!==window.eddStripe.paymentMethodType){t.next=14;break}return t.next=11,b(n);case 11:i=t.sent,c=i.paymentMethod.id,o=c;case 14:return t.prev=14,t.next=17,d(o);case 17:return s=t.sent,l=s.token,h=s.client_secret,g=s.intent_type,w=s.intent_fingerprint,_=s.intent_id,window.eddStripe.intentType=g,window.eddStripe.intentFingerprint=w,window.eddStripe.intentId=_,e("#edd-process-checkout-nonce").val(l),S="PaymentIntent"===g?"confirmPayment":"confirmSetup",j={clientSecret:h,confirmParams:{},redirect:"if_required"},"apple_pay"===window.eddStripe.paymentMethodType?j.confirmParams.payment_method=o:(j.elements=window.eddStripe.configuredElement,j.confirmParams.payment_method_data={billing_details:n}),t.next=32,window.eddStripe[S](j);case 32:if(O=t.sent,!(x=O.error)){t.next=38;break}return v(x),y(),t.abrupt("return",!1);case 38:return t.next=40,f();case 40:P=t.sent,E=P.intent,k=P.nonce,e("#edd-process-checkout-nonce").val(k),"succeeded"===E.status?window.location.replace(edd_stripe_vars.successPageUri):window.location.replace(edd_stripe_vars.failurePageUri),t.next=52;break;case 47:return t.prev=47,t.t0=t.catch(14),v(t.t0),y(),t.abrupt("return",!1);case 52:case"end":return t.stop()}}),t,null,[[14,47]])})));return function(_x){return t.apply(this,arguments)}}()))}function d(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e("#edd-process-stripe-token"),t.abrupt("return",Object(c.a)("edds_process_purchase_form",{form_data:e("#edd_purchase_form").serialize(),timestamp:n.length?n.data("timestamp"):"",token:n.length?n.data("token"):"",intent_type:window.eddStripe.intentType,intent_id:window.eddStripe.intentId,intent_fingerprint:window.eddStripe.intentFingerprint,payment_method_id:r}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){var t=e("#edd_purchase_form"),r=e("#edd-process-stripe-token"),n=t.serialize();if(0===t.length){var o=e("#edd-process-checkout-nonce").val();n="edd-process-checkout-nonce=".concat(o)}return Object(c.a)("edds_create_and_complete_order",{form_data:n,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",intent_id:window.eddStripe.intentId,intent_type:window.eddStripe.intentType})}function p(){window.eddStripe.paymentElement.update({readOnly:!0});var t=e("#edd-purchase-button");e(".edd-loading-ajax").length||t.parent().append(''),t.attr("data-edd-button-state","updating"),t.prop("disabled","disabled"),t.prop("readonly","readonly"),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove()}function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.eddStripe.paymentElement.update({readOnly:!1});var r=e("#edd-purchase-button");r.attr("data-edd-button-state","disabled"),r.prop("disabled","disabled"),r.prop("readonly","readonly"),e(".edd-loading-ajax").remove(),t&&(e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove())}function y(){window.eddStripe.paymentElement.update({readOnly:!1});var t=e("#edd-purchase-button");t.attr("data-edd-button-state","ready"),t.prop("disabled",""),t.prop("readonly",""),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide()}function v(t){console.log(t);var r=t.code,n=t.message,o=(t.type,window.edd_stripe_vars.elementsCustomizations.i18n.errorMessages);n||(n=edd_stripe_vars.generic_error);var i=r&&o[r]?o[r]:n,a=Object(c.g)(i);r&&"incomplete"!==r&&Object(c.a)("edds_payment_elements_rate_limit_tick"),e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(a),e(document.body).trigger("edd_checkout_error",[t]),"incomplete"===r&&e(".edd-stripe-alert").removeClass("edd-alert-error").addClass("edd-alert-warn"),window.console&&t.responseText&&window.console.error(t.responseText),h(!1)}function m(){var e=document.getElementById("edd_purchase_form");return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||(e.reportValidity(),h(),!1)}function b(e){return window.eddStripe.createPaymentMethod({elements:window.eddStripe.configuredElement,params:{billing_details:e}}).then((function(e){var t=e.error,r=e.paymentMethod;return t&&v(t),{paymentMethod:r}})).catch((function(e){return v(e),y(),!1}))}}).call(this,r(6))},,,function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(5),o=r(48),i=r(10),a=r(49),u=r(57),c=r(90),s=o("wks"),d=n.Symbol,l=c?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(u&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(14),o=r(26),i=r(23);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));var n=r(4),o=r.n(n),i=r(2),a=r.n(i);function u(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 c(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function m(e){return v(e)?function(e,t){var r=y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&v(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r1&&void 0!==arguments[1]?arguments[1]:"error",r=document.createElement("p");return r.classList.add("edd-alert"),r.classList.add("edd-stripe-alert"),r.style.clear="both","error"===t?r.classList.add("edd-alert-error"):r.classList.add("edd-alert-success"),r.innerHTML=e||edd_stripe_vars.generic_error,r}function o(t){var r=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,u=void 0===a||a,c=e(i),s=n(o,r);!0===u?c.html(s):c.before(s)}function i(t){e(t).html("")}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return i}))}).call(this,r(6))},function(e,t,r){e.exports=r(63).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(42),o=r(44);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(16);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(14),o=r(45),i=r(27),a=r(25),u=Object.defineProperty;t.f=n?u:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(16);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(5),o=r(17);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return S}));var n=r(3),o=r.n(n),i=r(2),a=r.n(i),u=r(1),c=r.n(u),s=r(0),d=r(7),l=r(11);function f(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 p(e){for(var t=1;t');var t,r=document.querySelector("#edds-sample-input"),n=document.querySelector("#edds-sample-input",":focus"),o=document.querySelector("#edds-sample-input",":hover"),i=window.getComputedStyle(r),a=window.getComputedStyle(n),u=window.getComputedStyle(o),c=h.theme,s=p(p({},{colorText:i.getPropertyValue("color"),colorBackground:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),colorIconTab:i.getPropertyValue("color")}),h.variables),l={borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-right"),borderBottom:i.getPropertyValue("border-bottom"),borderLeft:i.getPropertyValue("border-left"),backgroundColor:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),borderColor:i.getPropertyValue("border-color")},f={borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-right"),borderBottom:u.getPropertyValue("border-bottom"),borderLeft:u.getPropertyValue("border-left"),backgroundColor:u.getPropertyValue("background-color"),borderRadius:u.getPropertyValue("border-radius"),borderColor:u.getPropertyValue("border-color")},y={borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:a.getPropertyValue("background-color"),borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},v=document.querySelector("#edds-sample-label"),m=window.getComputedStyle(v),b={".Input":l,".Input:focus":y,".Input:hover":f,".Label":{fontSize:m.getPropertyValue("font-size"),fontWeight:m.getPropertyValue("font-weight"),fontFamily:m.getPropertyValue("font-family"),color:m.getPropertyValue("color")},".CheckboxInput":{borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-top"),borderBottom:i.getPropertyValue("border-top"),borderLeft:i.getPropertyValue("border-top"),borderRadius:i.getPropertyValue("border-radius"),backgroundColor:i.getPropertyValue("background-color")},".CheckboxInput:hover":{borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-top"),borderBottom:u.getPropertyValue("border-top"),borderLeft:u.getPropertyValue("border-top")},".CodeInput":l,".CodeInput:focus":y},g=document.querySelector(".edd-gateway-option:not(.edd-gateway-option-selected)");if(null!==g&&!1===Object(d.a)("singleGateway")){var w=document.querySelector(".edd-gateway-option-selected"),_=window.getComputedStyle(g),S=window.getComputedStyle(w);t={".Tab":{border:_.getPropertyValue("border"),backgroundColor:_.getPropertyValue("background-color"),borderRadius:_.getPropertyValue("border-radius")},".Tab--selected":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")},".Tab:hover":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")}}}else t={".Tab":l,".Tab--selected":{borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:"#fff",borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},".Tab:hover":y};e("#edds-sample-label").remove();var j=p(p({},b),t);return Object.keys(h.rules).forEach((function(e){var t={};j[e]&&(t=j[e]),j[e]=p(p({},t),h.rules[e])})),{theme:c,labels:h.labels,variables:s,rules:j}}(),n=[];h.fonts.length&&h.fonts.forEach((function(e){return n.push(e)}));var o={mode:"payment",amount:t,locale:edd_stripe_vars.locale,currency:edd_stripe_vars.currency.toLowerCase(),loader:"always",payment_method_types:["card","link"],appearance:r,fonts:n};Object(s.c)("Stripe.elements() creation options",o);var i=window.eddStripe.elements(o);window.eddStripe.configuredElement=i;var a={defaultValues:{billingDetails:S(document.getElementById("edd_purchase_form"))},fields:{billingDetails:{name:"auto",email:"never",phone:"never",address:"never"}},layout:h.layout,wallets:h.wallets,business:{name:edd_stripe_vars.store_name}},u={};"true"===h.cartHasSubscription&&(u={terms:{card:"always"}});var c=p(p({},a),u);Object(s.c)("element.create() options",c);var l=i.create("payment",c);window.eddStripe.paymentElement=l,l.mount(Object(d.a)("elementsTarget")),l.on("ready",(function(){setTimeout(v,500)})),window.eddStripe.elementMounted=!0}}function v(){var e=jQuery(window),t=jQuery(document);e.keydown((function(e){if(13==e.keyCode)return e.preventDefault(),!1})),e.on("edd_quantity_updated",(function(){return m("quantity updated")})),e.on("edd_discount_applied",(function(){return m("discount applied")})),e.on("edd_discount_removed",(function(){return m("discount removed")})),e.on("edd_taxes_recalculated",(function(){return m("taxes recalcluated")})),t.on("change",":input[required]",(function(){w()})),t.on("change","#edd_cc_address .edd-input, #edd_cc_address .edd-select",(function(){setTimeout((function(){w()}),300)})),window.eddStripe.paymentElement.on("change",(function(e){Object(l.e)(),!0===e.complete?(window.eddStripe.elementComplete=!0,window.eddStripe.paymentMethodType=e.value.type,Object(l.b)()):(window.eddStripe.elementComplete=!1,Object(l.a)())}))}function m(_x){return b.apply(this,arguments)}function b(){return(b=o()(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=g())||Object(l.b)(),window.eddStripe.configuredElement.update({amount:r}),!0===window.eddStripe.elementComplete&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){var e,t;return e=jQuery(".edd_cart_total .edd_cart_amount"),t=parseFloat(e.data("total")),"false"===edd_stripe_vars.is_zero_decimal&&(t=Math.round(100*t)),t}function w(){return _.apply(this,arguments)}function _(){return(_=o()(c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=jQuery("#edd_purchase_form")[0],(r=S(t)).address.country&&window.eddStripe.configuredElement.update({locale:r.address.country}),window.eddStripe.paymentElement.update({defaultValues:{billingDetails:r}}),!0===window.eddStripe.elementComplete&&Object(l.d)()&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){var t=Object(s.e)(e.querySelector("#edd-email"));return null===t&&(t=Object(s.e)(e.querySelector("#edd_email"))),{email:t,phone:Object(s.e)(e.querySelector(".edd-phone")),address:{line1:Object(s.e)(e.querySelector("#card_address")),line2:Object(s.e)(e.querySelector("#card_address_2")),city:Object(s.e)(e.querySelector("#card_city")),state:Object(s.e)(e.querySelector("#card_state")),postal_code:Object(s.e)(e.querySelector("#card_zip")),country:Object(s.e)(e.querySelector("#billing_country"))}}}}).call(this,r(6))},function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,r){var n=r(4).default,o=r(37);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(4).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(5),o=r(40).f,i=r(17),a=r(69),u=r(28),c=r(74),s=r(81);e.exports=function(e,t){var r,d,l,f,p,h=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[h]||u(h,{}):(n[h]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(r,d))&&p.value:r[d],!s(y?d:h+(v?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;c(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},function(e,t,r){var n=r(14),o=r(41),i=r(23),a=r(24),u=r(25),c=r(10),s=r(45),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t,!0),s)try{return d(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(9),o=r(43),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(14),o=r(9),i=r(68);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(47),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(5),o=r(28),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(73),o=r(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(10),o=r(24),i=r(79).indexOf,a=r(50);e.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},function(e,t,r){var n=r(53),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t){e.exports={}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i}));var n=r(11),o=r(7);function i(){if(Object(o.b)("elementsTarget","#edd-stripe-payment-element"),"1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');window.eddStripe.isBuyNow=!1,t&&"stripe"===t.value?(Object(o.b)("singleGateway",!0),Object(n.c)()):(Object(o.b)("singleGateway",!1),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&Object(n.c)()})))}}r.d(t,"a",(function(){return n.c}))}).call(this,r(6))},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(2),o=r.n(n);function i(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,r;return t=e,(r=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var r=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",r,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var r=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(r),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(c);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var r=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));r.length>0&&r[0].focus(),0===r.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var r=t.indexOf(document.activeElement);e.shiftKey&&0===r&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&r===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,r),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var r in t)l(r);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),r=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var r=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===r[n]&&(r[n]=[]),r[n].push(e)})),r}(r,t.openTrigger);if(!0!==t.debugMode||!1!==f(r,n))for(var o in n){var i=n[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var r=t||{};r.targetModal=e,!0===r.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(r)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var h=p;function y(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 v(e){for(var t=1;t1)for(var r=1;r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t,r){var n=r(39),o=r(82);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){var n=r(5),o=r(16),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(5),o=r(17),i=r(10),a=r(28),u=r(46),c=r(70),s=c.get,d=c.enforce,l=String(String).split("String");(e.exports=function(e,t,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),d(r).source=l.join("string"==typeof t?t:"")),e!==n?(c?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=r:o(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(e,t,r){var n,o,i,a=r(71),u=r(5),c=r(16),s=r(17),d=r(10),l=r(72),f=r(50),p=u.WeakMap;if(a){var h=new p,y=h.get,v=h.has,m=h.set;n=function(e,t){return m.call(h,e,t),t},o=function(e){return y.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var b=l("state");f[b]=!0,n=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(5),o=r(46),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(48),o=r(49),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(10),o=r(75),i=r(40),a=r(26);e.exports=function(e,t){for(var r=o(t),u=a.f,c=i.f,s=0;sd;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(53),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(9),o=/#|\.prototype\./,i=function(e,t){var r=u[a(e)];return r==s||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(14),o=r(9),i=r(83),a=r(55),u=r(41),c=r(56),s=r(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(n&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,d=1,l=a.f,f=u.f;o>d;)for(var p,h=s(arguments[d++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)p=y[m++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:d},function(e,t,r){var n=r(51),o=r(54);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(85);n({target:"Array",stat:!0,forced:!r(95)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(86),o=r(56),i=r(88),a=r(89),u=r(52),c=r(91),s=r(92);e.exports=function(e){var t,r,d,l,f,p,h=o(e),y="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,g=s(h),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),null==g||y==Array&&a(g))for(r=new y(t=u(h.length));t>w;w++)p=b?m(h[w],w):h[w],c(r,w,p);else for(f=(l=g.call(h)).next,r=new y;!(d=f.call(l)).done;w++)p=b?i(l,m,[d.value,w],!0):d.value,c(r,w,p);return r.length=w,r}},function(e,t,r){var n=r(87);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(15),o=r(58),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(57);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(25),o=r(26),i=r(23);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){var n=r(93),o=r(58),i=r(15)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(94),o=r(43),i=r(15)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:a?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n={};n[r(15)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(15)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},,,,,,,,,,,function(e,t,r){},,,,function(e,t,r){"use strict";r.r(t),r(106);var n=r(0),o=r(59),i=r(62);function a(){Object(n.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){window.eddStripe.activeBuyNow=e;var t,r,a=e.currentTarget.dataset,u=a.downloadId,c=a.nonce,s=e.currentTarget.dataset.token.length?e.currentTarget.dataset.token:"",d=e.currentTarget.dataset.timestamp.length?e.currentTarget.dataset.timestamp:"";if(u){e.preventDefault(),e.stopImmediatePropagation();var l=null,f=1,p=e.currentTarget.closest(".edd_download_purchase_form"),h=p.querySelector(".edd_price_option_".concat(u,":checked"));h&&(l=h.value);var y=p.querySelector('input[name="edd_download_quantity"]');y&&(f=y.value),t={downloadId:u,priceId:l,quantity:f,nonce:c,addToCartForm:p,timestamp:d,token:s},r=document.querySelector("#edds-buy-now-modal-content"),i.a.open("edds-buy-now",{onShow:function(){var e,i,a,u,c,s,d,l;r.innerHTML='',(e=t.downloadId,i=t.priceId,a=t.quantity,u=t.nonce,c=t.addToCartForm,s=t.timestamp,d=t.token,l={download_id:e,price_id:i,quantity:a,nonce:u,post_data:jQuery(c).serialize(),timestamp:s,token:d},Object(n.a)("edds_add_to_cart",l)).then((function(e){var t=e.checkout;window.eddStripe.isBuyNow=!0,r.innerHTML=t;var n=document.querySelector("#edds-buy-now-modal-content #edd-purchase-button");n.length&&(n.value=edd_stripe_vars.formLoadingText),window.EDD_Checkout.init(),document.querySelector("#edds-buy-now-modal-content .edd_cart_amount").dataset.total>0&&(window.eddStripe.singleGateway=!0,Object(o.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){window.eddStripe.intentId="",window.eddStripe.clientSecret="",window.eddStripe.intentType="",window.eddStripe.intentFingerprint="",Object(n.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,r=document.querySelector(".edd_cart_amount").dataset,n=r.total,o=r.totalCurrency;"0"!==n&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var u=r(31);!function(){try{window.eddStripe=new Stripe(edd_stripe_vars.publishable_key,{betas:["elements_enable_deferred_intent_beta_1"]}),window.eddStripe._plugin={domReady:n.d,apiRequest:n.a,generateNotice:n.g,createAndMountElement:u.a,getBillingDetails:u.b},Object(n.d)(o.b,a)}catch(e){alert(e.message)}}()}]); \ No newline at end of file +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=110)}([function(e,t,r){"use strict";r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"d",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return c.b})),r.d(t,"j",(function(){return c.c})),r.d(t,"b",(function(){return c.a})),r.d(t,"i",(function(){return s})),r.d(t,"k",(function(){return d})),r.d(t,"e",(function(){return l})),r.d(t,"c",(function(){return f})),r(32),r(33),r(34),r(35);var n=r(19),o=r(20),i=r.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],r=e.nextElementSibling;r;)1===r.nodeType&&t.push(r),r=r.nextElementSibling;return t}var c=r(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}r(7)},function(e,t,r){var n=r(66)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){function r(e,r,n,o,i,a,u){try{var c=e[a](u),s=c.value}catch(e){return void n(e)}c.done?r(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var n=this,o=arguments;return new t((function(t,i){var a=e.apply(n,o);function u(e){r(a,t,i,u,c,"next",e)}function c(e){r(a,t,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(38))},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";function n(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,r){if(window.eddStripe[e]=t,r)return window.eddStripe[e]}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return s})),r.d(t,"e",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return y})),r.d(t,"d",(function(){return m}));var n=r(3),o=r.n(n),i=r(1),a=r.n(i),u=r(31),c=r(0);function s(){Object(u.a)(),!1!==window.eddStripe.elementMounted&&(window.eddStripe.paymentMethodType="",window.eddStripe.intentFingerprint="",window.eddStripe.intentType="",window.eddStripe.intentId="",h(),e(document).off("click","#edd_purchase_form #edd_purchase_submit [type=submit]"),document.getElementById("edd-purchase-button").addEventListener("click",function(){var t=o()(a.a.mark((function t(r){var n,o,i,c,s,l,h,g,w,_,S,j,O,x,P,E,k;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("stripe"===e('input[name="edd-gateway"]').val()&&e(".edd_cart_total .edd_cart_amount").data("total")>0){t.next=2;break}return t.abrupt("return");case 2:if(m()){t.next=4;break}return t.abrupt("return",!1);case 4:if(r.preventDefault(),p(),n=Object(u.b)(document.getElementById("edd_purchase_form")),o="","apple_pay"!==window.eddStripe.paymentMethodType){t.next=14;break}return t.next=11,b(n);case 11:i=t.sent,c=i.paymentMethod.id,o=c;case 14:return t.prev=14,t.next=17,d(o);case 17:return s=t.sent,l=s.token,h=s.client_secret,g=s.intent_type,w=s.intent_fingerprint,_=s.intent_id,window.eddStripe.intentType=g,window.eddStripe.intentFingerprint=w,window.eddStripe.intentId=_,e("#edd-process-checkout-nonce").val(l),S="PaymentIntent"===g?"confirmPayment":"confirmSetup",j={clientSecret:h,confirmParams:{},redirect:"if_required"},"apple_pay"===window.eddStripe.paymentMethodType?j.confirmParams.payment_method=o:(j.elements=window.eddStripe.configuredElement,j.confirmParams.payment_method_data={billing_details:n}),t.next=32,window.eddStripe[S](j);case 32:if(O=t.sent,!(x=O.error)){t.next=38;break}return v(x),y(),t.abrupt("return",!1);case 38:return t.next=40,f();case 40:P=t.sent,E=P.intent,k=P.nonce,e("#edd-process-checkout-nonce").val(k),"succeeded"===E.status?window.location.replace(edd_stripe_vars.successPageUri):window.location.replace(edd_stripe_vars.failurePageUri),t.next=52;break;case 47:return t.prev=47,t.t0=t.catch(14),v(t.t0),y(),t.abrupt("return",!1);case 52:case"end":return t.stop()}}),t,null,[[14,47]])})));return function(_x){return t.apply(this,arguments)}}()))}function d(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e("#edd-process-stripe-token"),t.abrupt("return",Object(c.a)("edds_process_purchase_form",{form_data:e("#edd_purchase_form").serialize(),timestamp:n.length?n.data("timestamp"):"",token:n.length?n.data("token"):"",intent_type:window.eddStripe.intentType,intent_id:window.eddStripe.intentId,intent_fingerprint:window.eddStripe.intentFingerprint,payment_method_id:r}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){var t=e("#edd_purchase_form"),r=e("#edd-process-stripe-token"),n=t.serialize();if(0===t.length){var o=e("#edd-process-checkout-nonce").val();n="edd-process-checkout-nonce=".concat(o)}return Object(c.a)("edds_create_and_complete_order",{form_data:n,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",intent_id:window.eddStripe.intentId,intent_type:window.eddStripe.intentType})}function p(){window.eddStripe.paymentElement.update({readOnly:!0});var t=e("#edd-purchase-button");e(".edd-loading-ajax").length||t.parent().append(''),t.attr("data-edd-button-state","updating"),t.prop("disabled","disabled"),t.prop("readonly","readonly"),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove()}function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.eddStripe.paymentElement.update({readOnly:!1});var r=e("#edd-purchase-button");r.attr("data-edd-button-state","disabled"),r.prop("disabled","disabled"),r.prop("readonly","readonly"),e(".edd-loading-ajax").remove(),t&&(e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove())}function y(){window.eddStripe.paymentElement.update({readOnly:!1});var t=e("#edd-purchase-button");t.attr("data-edd-button-state","ready"),t.prop("disabled",""),t.prop("readonly",""),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide()}function v(t){console.log(t);var r=t.code,n=t.message,o=(t.type,window.edd_stripe_vars.elementsCustomizations.i18n.errorMessages);n||(n=edd_stripe_vars.generic_error);var i=r&&o[r]?o[r]:n,a=Object(c.g)(i);r&&"incomplete"!==r&&Object(c.a)("edds_payment_elements_rate_limit_tick"),e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(a),e(document.body).trigger("edd_checkout_error",[t]),"incomplete"===r&&e(".edd-stripe-alert").removeClass("edd-alert-error").addClass("edd-alert-warn"),window.console&&t.responseText&&window.console.error(t.responseText),h(!1)}function m(){var e=document.getElementById("edd_purchase_form");return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||(e.reportValidity(),h(),!1)}function b(e){return window.eddStripe.createPaymentMethod({elements:window.eddStripe.configuredElement,params:{billing_details:e}}).then((function(e){var t=e.error,r=e.paymentMethod;return t&&v(t),{paymentMethod:r}})).catch((function(e){return v(e),y(),!1}))}}).call(this,r(6))},,,function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(5),o=r(48),i=r(10),a=r(49),u=r(57),c=r(90),s=o("wks"),d=n.Symbol,l=c?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(u&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(14),o=r(26),i=r(23);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));var n=r(4),o=r.n(n),i=r(2),a=r.n(i);function u(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 c(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function m(e){return v(e)?function(e,t){var r=y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&v(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r1&&void 0!==arguments[1]?arguments[1]:"error",r=document.createElement("p");return r.classList.add("edd-alert"),r.classList.add("edd-stripe-alert"),r.style.clear="both","error"===t?r.classList.add("edd-alert-error"):r.classList.add("edd-alert-success"),r.innerHTML=e||edd_stripe_vars.generic_error,r}function o(t){var r=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,u=void 0===a||a,c=e(i),s=n(o,r);!0===u?c.html(s):c.before(s)}function i(t){e(t).html("")}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return i}))}).call(this,r(6))},function(e,t,r){e.exports=r(63).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(42),o=r(44);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(16);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(14),o=r(45),i=r(27),a=r(25),u=Object.defineProperty;t.f=n?u:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(16);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(5),o=r(17);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return S}));var n=r(3),o=r.n(n),i=r(2),a=r.n(i),u=r(1),c=r.n(u),s=r(0),d=r(7),l=r(11);function f(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 p(e){for(var t=1;t');var t,r=document.querySelector("#edds-sample-input"),n=document.querySelector("#edds-sample-input",":focus"),o=document.querySelector("#edds-sample-input",":hover"),i=window.getComputedStyle(r),a=window.getComputedStyle(n),u=window.getComputedStyle(o),c=h.theme,s=p(p({},{colorText:i.getPropertyValue("color"),colorBackground:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),colorIconTab:i.getPropertyValue("color")}),h.variables),l={borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-right"),borderBottom:i.getPropertyValue("border-bottom"),borderLeft:i.getPropertyValue("border-left"),backgroundColor:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),borderColor:i.getPropertyValue("border-color")},f={borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-right"),borderBottom:u.getPropertyValue("border-bottom"),borderLeft:u.getPropertyValue("border-left"),backgroundColor:u.getPropertyValue("background-color"),borderRadius:u.getPropertyValue("border-radius"),borderColor:u.getPropertyValue("border-color")},y={borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:a.getPropertyValue("background-color"),borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},v=document.querySelector("#edds-sample-label"),m=window.getComputedStyle(v),b={".Input":l,".Input:focus":y,".Input:hover":f,".Label":{fontSize:m.getPropertyValue("font-size"),fontWeight:m.getPropertyValue("font-weight"),fontFamily:m.getPropertyValue("font-family"),color:m.getPropertyValue("color")},".CheckboxInput":{borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-top"),borderBottom:i.getPropertyValue("border-top"),borderLeft:i.getPropertyValue("border-top"),borderRadius:i.getPropertyValue("border-radius"),backgroundColor:i.getPropertyValue("background-color")},".CheckboxInput:hover":{borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-top"),borderBottom:u.getPropertyValue("border-top"),borderLeft:u.getPropertyValue("border-top")},".CodeInput":l,".CodeInput:focus":y},g=document.querySelector(".edd-gateway-option:not(.edd-gateway-option-selected)");if(null!==g&&!1===Object(d.a)("singleGateway")){var w=document.querySelector(".edd-gateway-option-selected"),_=window.getComputedStyle(g),S=window.getComputedStyle(w);t={".Tab":{border:_.getPropertyValue("border"),backgroundColor:_.getPropertyValue("background-color"),borderRadius:_.getPropertyValue("border-radius")},".Tab--selected":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")},".Tab:hover":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")}}}else t={".Tab":l,".Tab--selected":{borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:"#fff",borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},".Tab:hover":y};e("#edds-sample-label").remove();var j=p(p({},b),t);return Object.keys(h.rules).forEach((function(e){var t={};j[e]&&(t=j[e]),j[e]=p(p({},t),h.rules[e])})),{theme:c,labels:h.labels,variables:s,rules:j}}(),n=[];h.fonts.length&&h.fonts.forEach((function(e){return n.push(e)}));var o={mode:"payment",amount:t,locale:edd_stripe_vars.locale,currency:edd_stripe_vars.currency.toLowerCase(),loader:"always",appearance:r,fonts:n};h.paymentMethodTypes.length?o.payment_method_types=h.paymentMethodTypes:o.automatic_payment_methods={enabled:!0},Object(s.c)("Stripe.elements() creation options",o);var i=window.eddStripe.elements(o);window.eddStripe.configuredElement=i;var a={defaultValues:{billingDetails:S(document.getElementById("edd_purchase_form"))},fields:{billingDetails:{name:"auto",email:"never",phone:"never",address:"never"}},layout:h.layout,wallets:h.wallets,business:{name:edd_stripe_vars.store_name}},u={};"true"===h.cartHasSubscription&&(u={terms:{card:"always"}});var c=p(p({},a),u);Object(s.c)("element.create() options",c);var l=i.create("payment",c);window.eddStripe.paymentElement=l,l.mount(Object(d.a)("elementsTarget")),l.on("ready",(function(){setTimeout(v,500)})),window.eddStripe.elementMounted=!0}}function v(){var e=jQuery(window),t=jQuery(document);e.keydown((function(e){if(13==e.keyCode)return e.preventDefault(),!1})),e.on("edd_quantity_updated",(function(){return m("quantity updated")})),e.on("edd_discount_applied",(function(){return m("discount applied")})),e.on("edd_discount_removed",(function(){return m("discount removed")})),e.on("edd_taxes_recalculated",(function(){return m("taxes recalcluated")})),t.on("change",":input[required]",(function(){w()})),t.on("change","#edd_cc_address .edd-input, #edd_cc_address .edd-select",(function(){setTimeout((function(){w()}),300)})),window.eddStripe.paymentElement.on("change",(function(e){Object(l.e)(),!0===e.complete?(window.eddStripe.elementComplete=!0,window.eddStripe.paymentMethodType=e.value.type,Object(l.b)()):(window.eddStripe.elementComplete=!1,Object(l.a)())}))}function m(_x){return b.apply(this,arguments)}function b(){return(b=o()(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=g())||Object(l.b)(),window.eddStripe.configuredElement.update({amount:r}),!0===window.eddStripe.elementComplete&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){var e,t;return e=jQuery(".edd_cart_total .edd_cart_amount"),t=parseFloat(e.data("total")),"false"===edd_stripe_vars.is_zero_decimal&&(t=Math.round(100*t)),t}function w(){return _.apply(this,arguments)}function _(){return(_=o()(c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=jQuery("#edd_purchase_form")[0],(r=S(t)).address.country&&window.eddStripe.configuredElement.update({locale:r.address.country}),window.eddStripe.paymentElement.update({defaultValues:{billingDetails:r}}),!0===window.eddStripe.elementComplete&&Object(l.d)()&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){var t=Object(s.e)(e.querySelector("#edd-email"));return null===t&&(t=Object(s.e)(e.querySelector("#edd_email"))),{email:t,phone:Object(s.e)(e.querySelector(".edd-phone")),address:{line1:Object(s.e)(e.querySelector("#card_address")),line2:Object(s.e)(e.querySelector("#card_address_2")),city:Object(s.e)(e.querySelector("#card_city")),state:Object(s.e)(e.querySelector("#card_state")),postal_code:Object(s.e)(e.querySelector("#card_zip")),country:Object(s.e)(e.querySelector("#billing_country"))}}}}).call(this,r(6))},function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,r){var n=r(4).default,o=r(37);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(4).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(5),o=r(40).f,i=r(17),a=r(69),u=r(28),c=r(74),s=r(81);e.exports=function(e,t){var r,d,l,f,p,h=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[h]||u(h,{}):(n[h]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(r,d))&&p.value:r[d],!s(y?d:h+(v?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;c(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},function(e,t,r){var n=r(14),o=r(41),i=r(23),a=r(24),u=r(25),c=r(10),s=r(45),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t,!0),s)try{return d(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(9),o=r(43),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(14),o=r(9),i=r(68);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(47),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(5),o=r(28),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(73),o=r(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(10),o=r(24),i=r(79).indexOf,a=r(50);e.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},function(e,t,r){var n=r(53),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t){e.exports={}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i}));var n=r(11),o=r(7);function i(){if(Object(o.b)("elementsTarget","#edd-stripe-payment-element"),"1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');window.eddStripe.isBuyNow=!1,t&&"stripe"===t.value?(Object(o.b)("singleGateway",!0),Object(n.c)()):(Object(o.b)("singleGateway",!1),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&Object(n.c)()})))}}r.d(t,"a",(function(){return n.c}))}).call(this,r(6))},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(2),o=r.n(n);function i(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,r;return t=e,(r=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var r=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",r,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var r=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(r),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(c);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var r=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));r.length>0&&r[0].focus(),0===r.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var r=t.indexOf(document.activeElement);e.shiftKey&&0===r&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&r===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,r),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var r in t)l(r);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),r=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var r=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===r[n]&&(r[n]=[]),r[n].push(e)})),r}(r,t.openTrigger);if(!0!==t.debugMode||!1!==f(r,n))for(var o in n){var i=n[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var r=t||{};r.targetModal=e,!0===r.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(r)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var h=p;function y(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 v(e){for(var t=1;t1)for(var r=1;r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t,r){var n=r(39),o=r(82);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){var n=r(5),o=r(16),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(5),o=r(17),i=r(10),a=r(28),u=r(46),c=r(70),s=c.get,d=c.enforce,l=String(String).split("String");(e.exports=function(e,t,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),d(r).source=l.join("string"==typeof t?t:"")),e!==n?(c?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=r:o(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(e,t,r){var n,o,i,a=r(71),u=r(5),c=r(16),s=r(17),d=r(10),l=r(72),f=r(50),p=u.WeakMap;if(a){var h=new p,y=h.get,v=h.has,m=h.set;n=function(e,t){return m.call(h,e,t),t},o=function(e){return y.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var b=l("state");f[b]=!0,n=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(5),o=r(46),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(48),o=r(49),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(10),o=r(75),i=r(40),a=r(26);e.exports=function(e,t){for(var r=o(t),u=a.f,c=i.f,s=0;sd;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(53),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(9),o=/#|\.prototype\./,i=function(e,t){var r=u[a(e)];return r==s||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(14),o=r(9),i=r(83),a=r(55),u=r(41),c=r(56),s=r(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(n&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,d=1,l=a.f,f=u.f;o>d;)for(var p,h=s(arguments[d++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)p=y[m++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:d},function(e,t,r){var n=r(51),o=r(54);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(85);n({target:"Array",stat:!0,forced:!r(95)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(86),o=r(56),i=r(88),a=r(89),u=r(52),c=r(91),s=r(92);e.exports=function(e){var t,r,d,l,f,p,h=o(e),y="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,g=s(h),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),null==g||y==Array&&a(g))for(r=new y(t=u(h.length));t>w;w++)p=b?m(h[w],w):h[w],c(r,w,p);else for(f=(l=g.call(h)).next,r=new y;!(d=f.call(l)).done;w++)p=b?i(l,m,[d.value,w],!0):d.value,c(r,w,p);return r.length=w,r}},function(e,t,r){var n=r(87);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(15),o=r(58),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(57);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(25),o=r(26),i=r(23);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){var n=r(93),o=r(58),i=r(15)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(94),o=r(43),i=r(15)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:a?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n={};n[r(15)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(15)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},,,,,,,,,,,function(e,t,r){},,,,function(e,t,r){"use strict";r.r(t),r(106);var n=r(0),o=r(59),i=r(62);function a(){Object(n.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){window.eddStripe.activeBuyNow=e;var t,r,a=e.currentTarget.dataset,u=a.downloadId,c=a.nonce,s=e.currentTarget.dataset.token.length?e.currentTarget.dataset.token:"",d=e.currentTarget.dataset.timestamp.length?e.currentTarget.dataset.timestamp:"";if(u){e.preventDefault(),e.stopImmediatePropagation();var l=null,f=1,p=e.currentTarget.closest(".edd_download_purchase_form"),h=p.querySelector(".edd_price_option_".concat(u,":checked"));h&&(l=h.value);var y=p.querySelector('input[name="edd_download_quantity"]');y&&(f=y.value),t={downloadId:u,priceId:l,quantity:f,nonce:c,addToCartForm:p,timestamp:d,token:s},r=document.querySelector("#edds-buy-now-modal-content"),i.a.open("edds-buy-now",{onShow:function(){var e,i,a,u,c,s,d,l;r.innerHTML='',(e=t.downloadId,i=t.priceId,a=t.quantity,u=t.nonce,c=t.addToCartForm,s=t.timestamp,d=t.token,l={download_id:e,price_id:i,quantity:a,nonce:u,post_data:jQuery(c).serialize(),timestamp:s,token:d},Object(n.a)("edds_add_to_cart",l)).then((function(e){var t=e.checkout;window.eddStripe.isBuyNow=!0,r.innerHTML=t;var n=document.querySelector("#edds-buy-now-modal-content #edd-purchase-button");n.length&&(n.value=edd_stripe_vars.formLoadingText),window.EDD_Checkout.init(),document.querySelector("#edds-buy-now-modal-content .edd_cart_amount").dataset.total>0&&(window.eddStripe.singleGateway=!0,Object(o.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){window.eddStripe.intentId="",window.eddStripe.clientSecret="",window.eddStripe.intentType="",window.eddStripe.intentFingerprint="",Object(n.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,r=document.querySelector(".edd_cart_amount").dataset,n=r.total,o=r.totalCurrency;"0"!==n&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var u=r(31);!function(){try{window.eddStripe=new Stripe(edd_stripe_vars.publishable_key,{betas:["elements_enable_deferred_intent_beta_1"]}),window.eddStripe._plugin={domReady:n.d,apiRequest:n.a,generateNotice:n.g,createAndMountElement:u.a,getBillingDetails:u.b},Object(n.d)(o.b,a)}catch(e){alert(e.message)}}()}]); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php index f6c48c89..ff47fc00 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php @@ -3,7 +3,7 @@ * Plugin Name: Easy Digital Downloads - Stripe Pro Payment Gateway * Plugin URI: https://easydigitaldownloads.com/downloads/stripe-gateway/ * Description: Adds a payment gateway for Stripe.com - * Version: 2.9.2 + * Version: 2.9.2.1 * Requires at least: 5.4 * Requires PHP: 7.1 * Author: Easy Digital Downloads @@ -44,7 +44,7 @@ function edd_stripe_core_bootstrap() { } if ( ! defined( 'EDD_STRIPE_VERSION' ) ) { - define( 'EDD_STRIPE_VERSION', '2.9.2' ); + define( 'EDD_STRIPE_VERSION', '2.9.2.1' ); } if ( ! defined( 'EDD_STRIPE_API_VERSION' ) ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php index dff061a6..66584627 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php @@ -112,12 +112,16 @@ function edds_add_settings( $settings ) { 'type' => 'text', ), 'stripe_restrict_assets' => array( - 'id' => 'stripe_restrict_assets', - 'name' => ( __( 'Restrict Stripe Assets', 'easy-digital-downloads' ) ), - 'desc' => ( __( 'Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality.', 'easy-digital-downloads' ) ), - 'type' => 'checkbox', - 'tooltip_title' => __( 'Loading Javascript from Stripe', 'easy-digital-downloads' ), - 'tooltip_desc' => __( 'Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. Read more about Stripe\'s recommended setup here: https://stripe.com/docs/web/setup.', 'easy-digital-downloads' ), + 'id' => 'stripe_restrict_assets', + 'name' => ( __( 'Restrict Stripe Assets', 'easy-digital-downloads' ) ), + 'check' => ( __( 'Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality.', 'easy-digital-downloads' ) ), + 'type' => 'checkbox_description', + 'desc' => sprintf( + /* translators: 1. opening link tag; 2. closing link tag */ + __( 'Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. %1$sLearn more about Stripe\'s recommended setup.%2$s', 'easy-digital-downloads' ), + '', + '' + ), ), ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php index ca37f00e..c9bb1af9 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php @@ -226,14 +226,15 @@ function edds_get_stripe_payment_elements_fonts() { */ function edds_gather_payment_element_customizations() { $customizations = array( - 'theme' => edds_get_stripe_payment_elements_theme(), - 'variables' => edds_get_stripe_payment_elements_variables(), - 'rules' => edds_get_stripe_payment_elements_rules(), - 'layout' => edds_get_stripe_payment_elements_layout(), - 'wallets' => edds_get_stripe_payment_elements_wallets(), - 'labels' => edds_get_stripe_payment_elements_label_style(), - 'fonts' => edds_get_stripe_payment_elements_fonts(), - 'i18n' => array( + 'theme' => edds_get_stripe_payment_elements_theme(), + 'variables' => edds_get_stripe_payment_elements_variables(), + 'rules' => edds_get_stripe_payment_elements_rules(), + 'layout' => edds_get_stripe_payment_elements_layout(), + 'wallets' => edds_get_stripe_payment_elements_wallets(), + 'labels' => edds_get_stripe_payment_elements_label_style(), + 'fonts' => edds_get_stripe_payment_elements_fonts(), + 'paymentMethodTypes' => edds_payment_element_payment_method_types(), + 'i18n' => array( 'errorMessages' => edds_get_localized_error_messages(), ), ); @@ -260,3 +261,37 @@ function edds_payment_element_js_vars( $stripe_vars ) { return $stripe_vars; } add_filter( 'edd_stripe_js_vars', 'edds_payment_element_js_vars', 10, 1 ); + +/** + * Returns an array of payment method types. + * + * By default this is empty to allow the automatic payment methods to take over, but in the event someone + * wants to alter this, they can at their own risk as EDD controls what payment methods are availbale + * at the platform level. + * + * As of 2.9.2.1 - EDD only supports 'card' and 'link' as options. + * + * @since 2.9.2.1 + * + * @return array The allowed payment_method_types + */ +function edds_payment_element_payment_method_types() { + /** + * Allows passing payment_method_types to the elements and intent. + * + * This is by default empty, but you can alter this on an account level if needed. + * + * @since 2.9.2.1 + * + * @example + * add_filter( 'edds_stripe_payment_elements_payment_method_types', function( $payment_method_types ) { + * return array( + * 'card', + * 'link', + * ); + * } ); + * + * @param array The allowed payment elements payment method types. + */ + return apply_filters( 'edds_stripe_payment_elements_payment_method_types', array() ); +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php index 49bb4af2..3df20740 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php @@ -152,12 +152,13 @@ function edds_process_purchase_form( $purchase_data ) { if ( ! empty( $_REQUEST['payment_method_id'] ) ) { $intent_args['payment_method'] = sanitize_text_field( $_REQUEST['payment_method_id'] ); } else { - $payment_method_types = array( - 'card', - 'link', - ); + $payment_method_types = edds_payment_element_payment_method_types(); - $intent_args['payment_method_types'] = $payment_method_types; + if ( ! empty( $payment_method_types ) ) { + $intent_args['payment_method_types'] = $payment_method_types; + } else { + $intent_args['automatic_payment_methods'] = array( 'enabled' => true ); + } } // Create a SetupIntent for a non-payment carts. diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php index 6877ef25..e8a5485b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'easy-digital-downloads/edd-stripe', 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'a63eec57c1f5da47c09cc9cd8cf4162f8c65652a', + 'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ 'easy-digital-downloads/edd-stripe' => array( 'pretty_version' => 'dev-master', 'version' => 'dev-master', - 'reference' => 'a63eec57c1f5da47c09cc9cd8cf4162f8c65652a', + 'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php b/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php index a038a1c6..8b586f1d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php +++ b/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php @@ -848,7 +848,7 @@ function edd_process_profile_editor_updates( $data ) { $customers = edd_get_customers( array( 'email' => $email, - 'user_id__not_in' => $user_id, + 'user_id__not_in' => array( $user_id ), ) ); // Make sure the new email doesn't belong to another user. diff --git a/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot b/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot index ff4b4cba..01533932 100644 --- a/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot +++ b/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the Easy Digital Downloads plugin. msgid "" msgstr "" -"Project-Id-Version: Easy Digital Downloads 3.1.1.2\n" +"Project-Id-Version: Easy Digital Downloads 3.1.1.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-03-17T17:50:58+00:00\n" +"POT-Creation-Date: 2023-03-23T21:29:08+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: easy-digital-downloads\n" @@ -17,7 +17,7 @@ msgstr "" #. Plugin Name of the plugin #. Author of the plugin #: includes/blocks/includes/functions.php:27 -#: src/Admin/Onboarding/Steps/Tools.php:139 +#: src/Admin/Onboarding/Steps/Tools.php:128 msgid "Easy Digital Downloads" msgstr "" @@ -2685,16 +2685,16 @@ msgstr "" msgid "Move to Trash" msgstr "" -#: includes/admin/payments/class-payments-table.php:1097 -#: includes/admin/payments/class-payments-table.php:1100 +#: includes/admin/payments/class-payments-table.php:1103 +#: includes/admin/payments/class-payments-table.php:1106 msgid "Confirmation Required" msgstr "" -#: includes/admin/payments/class-payments-table.php:1098 +#: includes/admin/payments/class-payments-table.php:1104 msgid "You are about to permanently delete orders from your store. Once deleted, these orders are not recoverable. Are you sure you want to continue?" msgstr "" -#: includes/admin/payments/class-payments-table.php:1101 +#: includes/admin/payments/class-payments-table.php:1107 msgid "You are about to permanently delete this order from your store. Once deleted, this order is not recoverable. Are you sure you want to continue?" msgstr "" @@ -6100,7 +6100,7 @@ msgstr "" #: includes/admin/tracking.php:145 #: includes/admin/tracking.php:270 -#: src/Admin/Onboarding/Steps/Tools.php:86 +#: src/Admin/Onboarding/Steps/Tools.php:241 msgid "Join the EDD Community" msgstr "" @@ -6117,7 +6117,7 @@ msgid "Do not allow" msgstr "" #: includes/admin/tracking.php:290 -#: src/Admin/Onboarding/Steps/Tools.php:90 +#: src/Admin/Onboarding/Steps/Tools.php:245 msgid "Help us provide a better experience and faster fixes by sharing some anonymous data about how you use Easy Digital Downloads." msgstr "" @@ -8504,23 +8504,23 @@ msgstr "" msgid "The date this payment was changed to the `completed` status." msgstr "" -#: includes/class-edd-requirements-check.php:165 +#: includes/class-edd-requirements-check.php:162 msgid "This plugin is not fully active." msgstr "" -#: includes/class-edd-requirements-check.php:175 +#: includes/class-edd-requirements-check.php:172 msgid "Requires %1$s (%2$s), but (%3$s) is installed." msgstr "" -#: includes/class-edd-requirements-check.php:185 +#: includes/class-edd-requirements-check.php:182 msgid "Requires %1$s (%2$s), but it appears to be missing." msgstr "" -#: includes/class-edd-requirements-check.php:195 +#: includes/class-edd-requirements-check.php:192 msgid "Requirements" msgstr "" -#: includes/class-edd-requirements-check.php:205 +#: includes/class-edd-requirements-check.php:202 msgid "Easy Digital Download Requirements" msgstr "" @@ -10487,8 +10487,8 @@ msgid "In order to be compatible with future versions of the Stripe payment gate msgstr "" #: includes/gateways/stripe/includes/admin/notices/php-requirement.php:84 -#: includes/gateways/stripe/includes/admin/settings.php:330 -#: includes/gateways/stripe/includes/admin/settings.php:399 +#: includes/gateways/stripe/includes/admin/settings.php:334 +#: includes/gateways/stripe/includes/admin/settings.php:403 msgid "Need help upgrading? Ask your web host!" msgstr "" @@ -10591,86 +10591,83 @@ msgstr "" msgid "Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:119 -msgid "Loading Javascript from Stripe" -msgstr "" - -#: includes/gateways/stripe/includes/admin/settings.php:120 -msgid "Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. Read more about Stripe's recommended setup here: https://stripe.com/docs/web/setup." -msgstr "" - -#: includes/gateways/stripe/includes/admin/settings.php:130 -msgid "Elements Mode" -msgstr "" - -#: includes/gateways/stripe/includes/admin/settings.php:131 -msgid "Toggle between using the legacy Card Elements Stripe integration and the new Payment Elements experience." +#. translators: 1. opening link tag; 2. closing link tag +#: includes/gateways/stripe/includes/admin/settings.php:121 +msgid "Stripe advises that their Javascript library be loaded on every page to take advantage of their advanced fraud detection rules. If you are not concerned with this, enable this setting to only load the Javascript when necessary. %1$sLearn more about Stripe's recommended setup.%2$s" msgstr "" #: includes/gateways/stripe/includes/admin/settings.php:134 -msgid "Card Element" +msgid "Elements Mode" msgstr "" #: includes/gateways/stripe/includes/admin/settings.php:135 -msgid "Payment Element" +msgid "Toggle between using the legacy Card Elements Stripe integration and the new Payment Elements experience." msgstr "" #: includes/gateways/stripe/includes/admin/settings.php:138 -msgid "Transitioning to Payment Elements" +msgid "Card Element" msgstr "" #: includes/gateways/stripe/includes/admin/settings.php:139 +msgid "Payment Element" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:142 +msgid "Transitioning to Payment Elements" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:143 msgid "You are seeing this option because your store has been using Card Elements prior to the EDD Stripe 2.9.0 update.

To ensure that we do not affect your current checkout experience, you can use this setting to toggle between the Card Elements (legacy) and Payment Elements (updated version) to ensure that any customizations or theming you have done still function properly.

Please be advised, that in a future version of the Stripe extension, we will deprecate the Card Elements, so take this time to update your store!" msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:145 -#: includes/gateways/stripe/includes/admin/settings.php:158 +#: includes/gateways/stripe/includes/admin/settings.php:149 +#: includes/gateways/stripe/includes/admin/settings.php:162 msgid "Prepaid Cards" msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:146 +#: includes/gateways/stripe/includes/admin/settings.php:150 msgid "Allow prepaid cards as valid payment method." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:160 +#: includes/gateways/stripe/includes/admin/settings.php:164 msgid "Prepaid card allowance can now be managed in your Stripe Radar Rules." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:169 +#: includes/gateways/stripe/includes/admin/settings.php:173 msgid "Split Credit Card Form" msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:170 +#: includes/gateways/stripe/includes/admin/settings.php:174 msgid "Use separate card number, expiration, and CVC fields in payment forms." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:177 -#: includes/gateways/stripe/includes/admin/settings.php:185 +#: includes/gateways/stripe/includes/admin/settings.php:181 +#: includes/gateways/stripe/includes/admin/settings.php:189 msgid "Show Previously Used Cards" msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:178 +#: includes/gateways/stripe/includes/admin/settings.php:182 msgid "Provides logged in customers with a list of previous used payment methods for faster checkout." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:187 +#: includes/gateways/stripe/includes/admin/settings.php:191 msgid "Previously used cards are now managed by Link by Stripe, for even better conversions and security." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:201 +#: includes/gateways/stripe/includes/admin/settings.php:205 msgid "You have disabled the \"Test Mode\" option. Once you have saved your changes, please verify your Stripe connection, especially if you have not previously connected in with \"Test Mode\" disabled." msgstr "" #. translators: %1$s Future PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate. #. translators: %1$s PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings.php:312 -#: includes/gateways/stripe/includes/admin/settings.php:384 +#: includes/gateways/stripe/includes/admin/settings.php:316 +#: includes/gateways/stripe/includes/admin/settings.php:388 msgid "Processing credit cards with Stripe requires PHP version %1$s or higher. It looks like you're using version %2$s, which means you will need to %3$supgrade your version of PHP before acceping credit card payments%4$s." msgstr "" #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings.php:336 -#: includes/gateways/stripe/includes/admin/settings.php:404 +#: includes/gateways/stripe/includes/admin/settings.php:340 +#: includes/gateways/stripe/includes/admin/settings.php:408 msgid "Many web hosts can give you instructions on how/where to upgrade your version of PHP through their control panel, or may even be able to do it for you. If you need to change hosts, please see %1$sour hosting recommendations%2$s." msgstr "" @@ -11087,7 +11084,7 @@ msgstr "" #: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:713 #: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:919 #: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1056 -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:656 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:657 msgid "Stripe Error" msgstr "" @@ -11130,43 +11127,43 @@ msgstr "" msgid "Charge not refunded in Stripe, as checkbox was not selected." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:304 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:305 msgid "Stripe Error 002" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:306 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:307 msgid "There was an error while processing a Stripe payment. Order data: %s" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:322 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:323 msgid "Stripe Error 003" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:357 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:358 msgid "Error 1001: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:368 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:369 msgid "Error 1002: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:380 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:381 msgid "Error 1003: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:392 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:393 msgid "Error 1004: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:409 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:410 msgid "Error 1005: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:441 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:442 msgid "Error 1006: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:634 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:635 msgid "Error 1007: An error occurred completing the order, but your payment may have gone through. Please contact the site administrator." msgstr "" @@ -13263,64 +13260,64 @@ msgstr "" msgid "You already have a solution installed for this feature." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:98 +#: src/Admin/Onboarding/Steps/Tools.php:87 msgid "Based on your selection above, the following plugins will be installed:" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:102 +#: src/Admin/Onboarding/Steps/Tools.php:91 msgid "Some features were not able to be installed!" msgstr "" #. translators: list of plugins that were not able to be installed or activated -#: src/Admin/Onboarding/Steps/Tools.php:107 +#: src/Admin/Onboarding/Steps/Tools.php:96 msgid "Don't worry, everything will still work without them! You can install %s later by going to Plugins > Add New." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:112 +#: src/Admin/Onboarding/Steps/Tools.php:101 msgid "Continue" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:118 +#: src/Admin/Onboarding/Steps/Tools.php:107 msgid "Plugins were successfully installed!" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:134 +#: src/Admin/Onboarding/Steps/Tools.php:123 msgid "Essential eCommerce Features" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:135 +#: src/Admin/Onboarding/Steps/Tools.php:124 msgid "Get all the essential eCommerce features to sell digital products with WordPress." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:146 +#: src/Admin/Onboarding/Steps/Tools.php:135 msgid "Optimize Checkout" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:147 +#: src/Admin/Onboarding/Steps/Tools.php:136 msgid "Improve the checkout experience by auto-creating user accounts for new customers." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:156 +#: src/Admin/Onboarding/Steps/Tools.php:145 msgid "Reliable Email Delivery" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:157 +#: src/Admin/Onboarding/Steps/Tools.php:146 msgid "Email deliverability is one of the most important services for an eCommerce store. Don’t leave your customers in the dark." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:169 +#: src/Admin/Onboarding/Steps/Tools.php:158 msgid "Analytics Tools" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:170 +#: src/Admin/Onboarding/Steps/Tools.php:159 msgid "Get the #1 analytics plugin to see useful information about your visitors right inside your WordPress dashboard." msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:186 +#: src/Admin/Onboarding/Steps/Tools.php:175 msgid "SEO" msgstr "" -#: src/Admin/Onboarding/Steps/Tools.php:187 +#: src/Admin/Onboarding/Steps/Tools.php:176 msgid "Get the tools used by millions of smart business owners to analyze and optimize their store’s traffic with SEO." msgstr "" diff --git a/wp-content/plugins/easy-digital-downloads/readme.txt b/wp-content/plugins/easy-digital-downloads/readme.txt index 27dd27ae..94d61471 100644 --- a/wp-content/plugins/easy-digital-downloads/readme.txt +++ b/wp-content/plugins/easy-digital-downloads/readme.txt @@ -4,9 +4,9 @@ Plugin URI: https://easydigitaldownloads.com Contributors: easydigitaldownloads, am, cklosows, littlerchicken, smub, mordauk, sunnyratilal, chriscct7, section214, sumobi, sdavis2702, mindctrl, sksmatt, SpencerFinnell, johnstonphilip, brashrebel, drewapicture, johnjamesjacoby, nosegraze, lisacee, zkawesome Tags: ecommerce, payments, sell, digital store, stripe Requires at least: 5.4 -Tested up to: 6.1 +Tested up to: 6.2 Requires PHP: 7.1 -Stable Tag: 3.1.1.2 +Stable Tag: 3.1.1.3 License: GNU Version 2 or Any Later Version Sell your digital products with the #1 eCommerce plugin written for digital creators by digital creators. @@ -226,6 +226,15 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi == Changelog == += 3.1.1.3, March 23, 2023 = +* Improvement: The orders list table in the admin now sorts orders by date as the default. +* Improvement: Removed unnecessary options in the onboarding wizard. +* Improvement - Stripe: Store owners can now [control which payment methods to accept within their Stripe account](https://easydigitaldownloads.com/docs/stripe/#how-to-manage-payment-methods). +* Improvement - Stripe: We've added a better explanation for the Restrict Stripe Assets setting. +* Change: Translations are now always managed by WordPress.org. +* Fix: Existing tables might not have been updated correctly. +* Fix: Attempting to update the default email address from the profile editor could fail in some circumstances. + = 3.1.1.2, March 17, 2023 = * Improvement: The order details screen in the admin has been updated to use the Currency class to be consistent with customer receipts. * Improvement: Determining whether a plugin is a core extension for telemetry data has been improved. diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/Onboarding/Steps/Tools.php b/wp-content/plugins/easy-digital-downloads/src/Admin/Onboarding/Steps/Tools.php index 3b0eae60..97fd1098 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/Onboarding/Steps/Tools.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/Onboarding/Steps/Tools.php @@ -81,18 +81,7 @@ class Tools extends Step { ?> -
-

- -

- - -
- -
-
+ telemetry(); ?>

@@ -235,4 +224,30 @@ class Tools extends Step { return $available_plugins; } + + /** + * Outputs the telemetry checkbox. + * + * @since 3.1.1.3 + * @return void + */ + private function telemetry() { + if ( edd_is_pro() ) { + return; + } + ?> +
+

+ +

+ + +
+ +
+
+ 202301251, - '202302131' => 202302131, + '202303220' => 202303220, ); /** @@ -103,8 +102,6 @@ final class Notifications extends Table { 'remote-id' => false, ); - $columns = $this->get_db()->get_results( "SHOW FIELDS FROM {$this->table_name} WHERE Field = 'remote_id';" ); - if ( false === $this->column_exists( 'source' ) ) { $source = $this->get_db()->query( "ALTER TABLE {$this->table_name} ADD COLUMN `source` varchar(20) NOT NULL DEFAULT 'api' AFTER `remote_id`;" @@ -134,4 +131,16 @@ final class Notifications extends Table { return true; } + + /** + * Runs another database upgrade for sites which got into a bit of a snarl with the database versions. + * + * @since 3.1.1.3 + * @return bool + */ + protected function __202303220() { + $this->__202301251(); + + return $this->__202302131(); + } } diff --git a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php index 8f39a47d..1f72d555 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php +++ b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php @@ -36,6 +36,9 @@ class Licenses { * @return array */ private function get_pro_license() { + if ( ! edd_is_pro() ) { + return false; + } $pro_license = new License( 'pro' ); return array( diff --git a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php index 1f97d679..33f425da 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php +++ b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Settings.php @@ -30,8 +30,15 @@ class Settings { foreach ( $section_settings as $setting_key => $setting ) { $value = $this->get_setting_value( $tab_key, $section_key, $setting_key ); // If the value is null, it's a skipped setting. - if ( ! is_null( $value ) ) { - $setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] ); + if ( is_null( $value ) ) { + continue; + } + $setting_id = isset( $setting['id'] ) ? $setting['id'] : sanitize_title( $setting['name'] ); + if ( is_array( $value ) ) { + foreach ( $value as $v ) { + $data[ "{$setting_id}_{$v}" ] = 1; + } + } else { $data[ $setting_id ] = $value; } } diff --git a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php index b7ae2086..6af9a80c 100644 --- a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php +++ b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'easydigitaldownloads/easy-digital-downloads', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e', + 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ 'easydigitaldownloads/easy-digital-downloads' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => '6900e8959df5a7b66fb1c4c033324d2f92f4b97e', + 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),