PluginProbe ʕ •ᴥ•ʔ
Jetpack – WP Security, Backup, Speed, & Growth / 13.5.2
Jetpack – WP Security, Backup, Speed, & Growth v13.5.2
12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 14.4.2 14.5.1 14.6.1 14.7.1 14.8.1 14.9.2 15.0.3 15.1.2 15.2.1 15.3.2 15.4.1 15.5.1 15.6.1 15.7.2 15.8.1 15.9.2 16.0.2 16.1.3 16.2-a.5 16.2-a.3 16.1.2 16.2-a.1 16.1.1 16.1 16.1-beta 16.1-beta.2 16.1-beta.3 16.1-a.5 16.1-a.3 16.0.1 16.1-a.1 16.0 16.0-beta 16.0-a.7 16.0-a.5 15.9.1 16.0-a.3 16.0-a.1 15.9 15.9-beta 15.9-a.7 15.9-a.5 15.9-a.3 15.9-a.1 15.8 15.8-beta 15.8-a.7 15.8-a.5 5.2.5 5.3.4 5.4.4 5.5.5 5.6.5 5.7.5 5.8.4 5.9.4 6.0.4 6.1 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.2 6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.3 6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.4 6.4.1 6.4.2 6.4.3 6.4.4 6.4.5 6.4.6 6.5 6.5.1 6.5.2 6.5.3 6.5.4 6.6 6.6.1 6.6.2 6.6.3 6.6.4 6.6.5 6.7 6.7.1 6.7.2 6.7.3 6.7.4 6.8 6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.9 6.9.1 6.9.2 6.9.3 6.9.4 7.0 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1 7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.2 7.2.1 7.2.1.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3 7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3 4.7.4 4.8.5 4.9.3 5.0.3 5.1.4 trunk 10.0 10.0.1 10.0.2 10.1 10.1.1 10.1.2 10.2 10.2.1 10.2.2 10.2.3 10.3 10.3.1 10.3.2 10.4 10.4.1 10.4.2 10.5 10.5.1 10.5.2 10.5.3 10.6 10.6.1 10.6.2 10.7 10.7.1 10.7.2 10.8 10.8.1 10.8.2 10.9 10.9.1 10.9.2 10.9.3 11.0 11.0.1 11.0.2 11.1 11.1.1 11.1.2 11.1.3 11.1.4 11.2 11.2.1 11.2.2 11.3 11.3.1 11.3.2 11.3.3 11.3.4 11.4 11.4.1 11.4.2 11.5 11.5.1 11.5.2 11.5.3 11.6 11.6.1 11.6.2 11.7 11.7.1 11.7.2 11.7.3 11.8 11.8.3 11.8.4 11.8.5 11.8.6 11.9 11.9.1 11.9.2 11.9.3 12.0 12.0.1 12.0.2 12.1 12.1.1 12.1.2 12.2 12.2.1 12.2.2 12.3 12.3.1 12.4 12.4.1 12.5 12.5.1 12.6 12.6.1 12.6.2 12.6.3 12.7 12.7.1 12.7.2 12.8 12.8.1 12.8.2 12.9 12.9.1 12.9.2 12.9.3 12.9.4 13.0 13.0.1 13.1 13.1.1 13.1.2 13.1.3 13.1.4 13.2 13.2.1 13.2.2 13.2.3 13.3 13.3.1 13.3.2 13.4 13.4.1 13.4.2 13.4.3 13.4.4 13.5 13.5.1 13.6 13.6.1 13.7 13.7.1 13.8 13.8.1 13.8.2 13.9 13.9.1 14.0 14.1 14.2 14.2.1 14.3 14.4 14.4.1 14.5 14.6 14.7 14.8 14.9 14.9.1 15.0 15.0.1 15.0.2 15.1 15.1.1 15.2 15.3 15.3.1 15.4 15.5 15.6 15.7 15.7-a.1 15.7-a.3 15.7-a.5 15.7-a.7 15.7-beta
jetpack / _inc / build / widgets / simple-payments / customizer.min.js
jetpack / _inc / build / widgets / simple-payments Last commit date
customizer.min.asset.php 3 years ago customizer.min.js 3 years ago
customizer.min.js
1 lines
1 !function(e,t,i){var a=i(document);function p(e){e.find(".invalid").removeClass("invalid"),e.find(".jetpack-simple-payments-widget-title").add(".jetpack-simple-payments-products").add(".jetpack-simple-payments-add-product").add(".jetpack-simple-payments-edit-product").add(".jetpack-simple-payments-save-product").add(".jetpack-simple-payments-cancel-form").add(".jetpack-simple-payments-delete-product").attr("disabled","disabled"),e.find(".jetpack-simple-payments-form").show()}function n(e){e.find(".jetpack-simple-payments-widget-title").add(".jetpack-simple-payments-products").removeAttr("disabled"),e.find(".jetpack-simple-payments-form").hide()}function s(e,t){e.find(".jetpack-simple-payments-form-action").val(t).change()}function d(e){var t=e.find(".jetpack-simple-payments-form").is(":visible"),i=e.find(".jetpack-simple-payments-products").is(":visible"),a="edit"===e.find(".jetpack-simple-payments-form-action").val();t?e.find(".jetpack-simple-payments-save-product").add(".jetpack-simple-payments-cancel-form").removeAttr("disabled"):e.find(".jetpack-simple-payments-add-product").removeAttr("disabled"),t&&a&&e.find(".jetpack-simple-payments-delete-product").removeAttr("disabled"),i&&!t&&e.find(".jetpack-simple-payments-edit-product").removeAttr("disabled")}function c(e){e.find(".jetpack-simple-payments-add-product").add(".jetpack-simple-payments-edit-product").add(".jetpack-simple-payments-save-product").add(".jetpack-simple-payments-cancel-form").add(".jetpack-simple-payments-delete-product").attr("disabled","disabled")}a.ready((function(){a.on("widget-added",(function(a,m){m.is('[id*="jetpack_simple_payments_widget"]')&&function(a){var m=a.find("> .widget-inside > .form, > .widget-inside > form");m.find(".jetpack-simple-payments-add-product").on("click",function(e){return function(t){t.preventDefault(),p(e),s(e,"add")}}(m)),m.find(".jetpack-simple-payments-edit-product").on("click",function(e){return function(t){t.preventDefault(),p(e),s(e,"edit")}}(m)),m.find(".jetpack-simple-payments-image-fieldset .placeholder, .jetpack-simple-payments-image > img").on("click",function(e){return function(i){i.preventDefault();var a=e.find(".jetpack-simple-payments-image"),p=new t.media.view.MediaFrame.Select({title:"Choose Product Image",multiple:!1,library:{type:"image"},button:{text:"Choose Image"}});p.on("select",(function(){var t=p.state().get("selection").first().toJSON();e.find(".jetpack-simple-payments-image-fieldset .placeholder").hide(),a.find("img").attr("src",t.url).show(),e.find(".jetpack-simple-payments-image").show(),e.find(".jetpack-simple-payments-form-image-id").val(t.id).change()})),p.open()}}(m)),m.find(".jetpack-simple-payments-remove-image").on("click",function(e){return function(t){t.preventDefault(),e.find(".jetpack-simple-payments-image-fieldset .placeholder").show(),e.find(".jetpack-simple-payments-image").hide(),e.find(".jetpack-simple-payments-form-image-id").val("").change()}}(m)),m.find(".jetpack-simple-payments-save-product").on("click",function(a){return function(p){p.preventDefault();var m=a.find(".jetpack-simple-payments-form-product-id").val();if(function(e){e.find(".invalid").removeClass("invalid");var t=!1,i=e.find(".jetpack-simple-payments-form-product-title").val();i||(e.find(".jetpack-simple-payments-form-product-title").addClass("invalid"),t=!0);var a=e.find(".jetpack-simple-payments-form-product-price").val();(!a||isNaN(a)||parseFloat(a)<=0)&&(e.find(".jetpack-simple-payments-form-product-price").addClass("invalid"),t=!0);var p,n="JPY"===e.find(".jetpack-simple-payments-form-product-currency").val()?0:2,s=(p=a.split(".")).length>2?null:p[1]?p[1].length:0;(null===s||s>n)&&(e.find(".jetpack-simple-payments-form-product-price").addClass("invalid"),t=!0);var d=e.find(".jetpack-simple-payments-form-product-email").val(),c=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(d);return d&&c||(e.find(".jetpack-simple-payments-form-product-email").addClass("invalid"),t=!0),!t}(a)){c(a),a.find(".spinner").show();var o=t.ajax.post("customize-jetpack-simple-payments-button-save",{"customize-jetpack-simple-payments-nonce":e.settings.nonce["customize-jetpack-simple-payments"],customize_changeset_uuid:e.settings.changeset.uuid,params:{product_post_id:m,post_title:a.find(".jetpack-simple-payments-form-product-title").val(),post_content:a.find(".jetpack-simple-payments-form-product-description").val(),image_id:a.find(".jetpack-simple-payments-form-image-id").val(),currency:a.find(".jetpack-simple-payments-form-product-currency").val(),price:a.find(".jetpack-simple-payments-form-product-price").val(),multiple:a.find(".jetpack-simple-payments-form-product-multiple").is(":checked")?1:0,email:a.find(".jetpack-simple-payments-form-product-email").val()}});o.done((function(e){var t=a.find("select.jetpack-simple-payments-products"),p=t.find('option[value="'+m+'"]');p.length>0?p.text(e.product_post_title):(t.append(i("<option>",{value:e.product_post_id,text:e.product_post_title})),t.val(e.product_post_id).change()),a.find(".jetpack-simple-payments-products-fieldset").show(),a.find(".jetpack-simple-payments-products-warning").hide(),s(a,"clear"),n(a)})),o.fail((function(e){var t={post_title:"product-title",price:"product-price",email:"product-email"};e.forEach((function(e){t.hasOwnProperty(e.code)&&a.find(".jetpack-simple-payments-form-"+t[e.code]).addClass("invalid")})),d(a)}))}}}(m)),m.find(".jetpack-simple-payments-cancel-form").on("click",function(e){return function(t){t.preventDefault(),n(e),e.find(".jetpack-simple-payments-add-product, .jetpack-simple-payments-edit-product").attr("disabled","disabled"),s(e,"clear")}}(m)),m.find(".jetpack-simple-payments-delete-product").on("click",function(a){return function(p){if(p.preventDefault(),confirm(jpSimplePaymentsStrings.deleteConfirmation)){var d=parseInt(a.find(".jetpack-simple-payments-form-product-id").val(),10);d&&(c(a),a.find(".spinner").show(),t.ajax.post("customize-jetpack-simple-payments-button-delete",{"customize-jetpack-simple-payments-nonce":e.settings.nonce["customize-jetpack-simple-payments"],customize_changeset_uuid:e.settings.changeset.uuid,params:{product_post_id:d}}).done((function(){var e=a.find("select.jetpack-simple-payments-products")[0];e.remove(e.selectedIndex),e.dispatchEvent(new Event("change")),0===i(e).has("option").length&&(a.find(".jetpack-simple-payments-products-fieldset").hide(),a.find(".jetpack-simple-payments-products-warning").show()),s(a,"clear"),n(a)})))}}}(m)),m.find("select, input, textarea, checkbox").on("change input propertychange",_.debounce((function(){c(m)}),250))}(m)})),a.on("widget-synced widget-updated",(function(a,p){if(p.is('[id*="jetpack_simple_payments_widget"]')){a.preventDefault(),t.ajax.post("customize-jetpack-simple-payments-buttons-get",{"customize-jetpack-simple-payments-nonce":e.settings.nonce["customize-jetpack-simple-payments"],customize_changeset_uuid:e.settings.changeset.uuid}).done((function(e){var t=0;i(document).find("select.jetpack-simple-payments-products").each((function(a,p){var n=i(p);t=n.val(),n.find("option").remove(),n.append(i.map(e,(function(e){return i("<option>",{value:e.ID,text:e.post_title})}))),n.val(t)}))}));var n=p.find("> .widget-inside > .form, > .widget-inside > form");d(n),function(e){var t=parseInt(e.find(".jetpack-simple-payments-form-image-id").val(),10),i=e.find(".jetpack-simple-payments-form-image-src").val(),a=e.find(".jetpack-simple-payments-image-fieldset .placeholder"),p=e.find(".jetpack-simple-payments-image > img"),n=e.find(".jetpack-simple-payments-image");t&&i?(p.attr("src",i),a.hide(),n.show()):(a.show(),p.removeAttr("src"),n.hide())}(n)}}))}))}(wp.customize,wp,jQuery);