jQuery(document).ready(function(o){let e=o("form.wc-facebook-settings"),c=o("#wc_facebook_google_product_category_id"),t=c.val();e.on("submit",function(a){e.data("allow-submit")||c.val()===t||(a.preventDefault(),o("#wc-backbone-modal-dialog .modal-close").trigger("click"),new o.WCBackboneModal.View({target:"facebook-for-woocommerce-modal",string:{message:c.val()?facebook_for_woocommerce_settings_commerce.default_google_product_category_modal_message:facebook_for_woocommerce_settings_commerce.default_google_product_category_modal_message_empty,buttons:facebook_for_woocommerce_settings_commerce.default_google_product_category_modal_buttons}}),o(document.body).off("wc_backbone_modal_response.facebook_for_commerce").on("wc_backbone_modal_response.facebook_for_commerce",function(){e.data("allow-submit",!0).find(":submit").trigger("click")}))}),o(".woocommerce-help-tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200})});