/* Do not modify this file directly. It is compiled from other files. */ /* global jQuery, jpSimplePaymentsStrings, confirm, _ */ /* eslint no-var: 0, quote-props: 0 */ !function(e,t,i){function a(e){var t=e.find("> .widget-inside > .form, > .widget-inside > form");t.find(".jetpack-simple-payments-add-product").on("click",c(t)),t.find(".jetpack-simple-payments-edit-product").on("click",m(t)),t.find(".jetpack-simple-payments-image-fieldset .placeholder, .jetpack-simple-payments-image > img").on("click",r(t)),t.find(".jetpack-simple-payments-remove-image").on("click",f(t)),t.find(".jetpack-simple-payments-save-product").on("click",j(t)),t.find(".jetpack-simple-payments-cancel-form").on("click",o(t)),t.find(".jetpack-simple-payments-delete-product").on("click",v(t)),t.find("select, input, textarea, checkbox").on("change input propertychange",_.debounce(function(){l(t)},250))}function p(){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("