!function(e,t){"use strict";const o=()=>{if("undefined"!=typeof wc_single_product_params&&wc_single_product_params.flexslider.directionNav){var t=e(window);t.on("load",(function(){o()})),t.resize((function(){o()}))}function o(){var t=e(".woocommerce-product-gallery--with-images");t.length&&t.each((function(){var t=e(this),o=e(this).find(".flex-direction-nav"),c=e(this).find(".flex-control-thumbs");if(o.length&&c.length){var n=-(c.outerHeight()+o.find("a").outerHeight())/2;n&&t.find(".flex-direction-nav a").css("margin-block-start",n)}}))}},c=()=>{if(void 0===t.addedToCartNotice)return;if("object"==typeof wpex_wc_cart_off_canvas_params&&wpex_wc_cart_off_canvas_params.auto_open&&1===parseInt(wpex_wc_cart_off_canvas_params.auto_open))return;const o=t.addedToCartNotice||"was added to your shopping cart.";let c="";e("body").on("click",".product .ajax_add_to_cart",(function(){e(".wpex-added-to-cart-notice").remove();const t=e(this).closest(".product"),n=t.find(".woocommerce-loop-product__link img:first"),i=t.find(".woocommerce-loop-product__title");n.length&&i.length&&(c='<div class="wpex-added-to-cart-notice wpex-hidden wpex-sm-flex wpex-z-popover wpex-fixed wpex-bottom-0 wpex-right-0 wpex-sm-m-30 wpex-surface-1 wpex-text-2 wpex-shadow-xl wpex-overflow-hidden wpex-duration-400"><div class="wpex-added-to-cart-notice__inner wpex-inner wpex-flex wpex-items-center wpex-justify-center"><div class="wpex-added-to-cart-notice__image wpex-image"><img class="wpex-align-middle wpex-object-fit wpex-h-100 wpex-w-100" src="'+n.attr("src")+'"></div><div class="wpex-added-to-cart-notice__text wpex-p-10 wpex-text wpex-flex-1"><strong class="wpex-text-1 wpex-bold">'+i.text()+"</strong> "+o+"</div></div></div>")})),e(document).on("added_to_cart",(function(){c&&(e("body").append(c),c="")}))};"function"!=typeof window.wpexWooQBActions&&(window.wpexWooQBActions=function(t){e(document).on("click",".wpex-quantity-btns .plus, .wpex-quantity-btns .minus",(function(){const t=e(this).closest(".quantity").find(".qty");let o=parseFloat(t.val()),c=parseFloat(t.attr("max")),n=parseFloat(t.attr("min")),i=t.attr("step");return o&&""!==o&&"NaN"!==o||(o=0),""!==c&&"NaN"!==c||(c=""),""!==n&&"NaN"!==n||(n=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!==parseFloat(i)||(i=1),e(this).is(".plus")?c&&(c==o||o>c)?t.val(c):t.val(o+parseFloat(i)):n&&(n==o||o<n)?t.val(n):o>0&&t.val(o-parseFloat(i)),t.trigger("change"),!1}))});e(document).ready((function(){"undefined"!=typeof jQuery&&void 0!==jQuery.fn.select2&&jQuery("#calc_shipping_country").select2(),void 0!==window.vc_rowBehaviour&&e(".wc-tabs .description_tab").click((function(){setTimeout((function(){vc_rowBehaviour()}),10)})),o(),(()=>{const e=document.querySelector(".wpex-woo-product-accordion");e&&-1!==window.location.href.indexOf("#comment-")&&e.querySelector('[aria-controls="wpex-woo-product-accordion-section--reviews"]').click()})(),c(),wpexWooQBActions(),t.disable_scroll_to_notices&&(e("body").hasClass("woocommerce-cart")||e("body").hasClass("woocommerce-checkout"))&&(()=>{const t=()=>{e.scroll_to_notices=()=>0};if("function"==typeof e.scroll_to_notices)t();else{const o=setInterval((()=>{"function"==typeof e.scroll_to_notices&&(clearInterval(o),t())}),100);setTimeout((()=>clearInterval(o)),5e3)}})()})),document.addEventListener("click",(e=>{if(!e.target.closest("body.single-product .entry-summary a.woocommerce-review-link"))return;const t=document.querySelector(".woocommerce-tabs"),o=document.querySelector(".reviews_tab a");t&&o&&(e.preventDefault(),o.click(),"undefined"==typeof wpex&&"function"!=typeof wpex.scrollTo||wpex.scrollTo(t,-20))})),e(document).on("qv_loader_stop quick-view-displayed",(function(e){"object"==typeof wpex&&"function"==typeof wpex.customSelects&&wpex.customSelects()}))}(jQuery,wpex_wc_params);