!function(e){"use strict";e(document).on("click",".wsx-new-conversation",function(n){n.preventDefault(),e(this).hasClass("active")?(e(this).parent().siblings(".wsx-new-conversation-container").slideUp(),e(this).removeClass("active")):(e(".wsx-new-conversation-container").slideUp(),e(".wsx-new-conversation").removeClass("active"),e(this).parent().siblings(".wsx-new-conversation-container").slideToggle(),e(this).toggleClass("active"))}),e("#_wholesalex_dynamic_rules>.wholesalex_header_wrapper").remove(),jQuery(document).ready(function(){if(e(".wholesalex-bogo-badge-container").each(function(){const n=e(this),t=n.closest("li").find(".wc-block-components-product-image");t.length>0&&t.prepend(n)}),"undefined"!=typeof wholesalex_bogo_single){const{buy_x_get_one:n,buy_x_get_y:t}=wholesalex_bogo_single.content;let o="";if(n&&(o+=n),t&&(o+=t),o){const a=n&&t?'<div class="wholesalex-bogo-badge-container wsx-combined-bogo-badge">'.concat(o,"</div>"):o;e(".woocommerce-product-gallery").prepend(a)}}}),e("body").on("show_variation",".single_variation_wrap",function(n,t){const o=e(this).parent().find("[name=quantity]"),a=t.step||1,s=parseFloat(t.max_qty)||999999999,i=parseFloat(t.min_qty)||1;o.attr("step",a).trigger("change");let c=null!=i?i:parseFloat(o.val());c=Math.max(i,Math.min(c,s)),o.val(c).attr("min",i).attr("max",s).trigger("change")})}(jQuery),jQuery(document).ready(function(e){const n=".wc-block-cart__submit-button";function t(){e(".wc-block-components-notice-banner__content").length>0?e(n).hide():e(n).show()}t(),new MutationObserver(t).observe(document.body,{childList:!0,subtree:!0})});
//# sourceMappingURL=wholesalex-public.js.map