function fusionCalcWoocommerceTabsLayout(e){jQuery(e).each((function(){var e=jQuery(this).parent().width(),o=jQuery(this).find("li").length,r=(e-e%o)/o,t=e-r*(o-1);jQuery(this).css("width",e+"px"),jQuery(this).find("li").css("width",r+"px"),jQuery(this).find("li:last").css("width",t+"px").addClass("no-border-right")}))}function reinitAftarAjax(){jQuery('.fusion-update-cart, a[href="http://mdae-technology.azurewebsites.net/?page=#updateCart"]').off("click"),jQuery('.fusion-update-cart, a[href="http://mdae-technology.azurewebsites.net/?page=#updateCart"]').on("click",(function(e){return e.preventDefault(),jQuery(".cart .actions > .button").trigger("click"),!1})),setTimeout((function(){jQuery(".crossfade-images").each((function(){fusionResizeCrossfadeImagesContainer(jQuery(this))}))}),1e3)}jQuery(window).on("load",(function(){jQuery(".woocommerce-store-notice__dismiss-link").on("click",(function(){var e=fusion.getAdminbarHeight();jQuery("#wrapper").css("margin-top",""),jQuery(".fusion-header").css("top",e)})),jQuery(".variations_form").find(".variations .single_variation_wrap .woocommerce-variation-description").remove(),"function"==typeof jQuery.fn.equalHeights&&0 li").length&&jQuery(".double-sidebars.woocommerce .social-share > li").equalHeights(),jQuery(".adsw-attribute-option").length&&jQuery("body").on("show_variation",".variations_form",(function(){jQuery(".product-type-variable .variations_form > .single_variation_wrap .woocommerce-variation-price").css("display","inline-block"),jQuery(".product-type-variable .variations_form > .single_variation_wrap .woocommerce-variation-price .price").css("margin-top","0"),jQuery(".product-type-variable .variations_form > .single_variation_wrap .woocommerce-variation-availability").css("display","inline-block")}))})),jQuery(document).ready((function(){var e;jQuery("body").on("change",".woocommerce-cart-form .qty",(function(e){const o=jQuery(this),r=o.closest("tr"),t=r.length?r.index():0,i=parseInt(o.val()),a=o.attr("name").replace("cart[","").replace("][qty]",""),c=o.closest(".cart_item").find(".product-subtotal"),n=jQuery(".fusion-dynamic-cart-count-wrapper"),u=jQuery(".fusion-widget-cart-number"),s=jQuery(".fusion-menu-cart-items"),l=jQuery(".awb-woo-mini-cart"),d=jQuery(".woocommerce-cart-form .shop_table").prev("h2");jQuery(".post-content").find(".fusion-woo-cart-totals-wrapper table, .fusion-button, .cart_totals table").addClass("awb-disabled"),jQuery.ajax({type:"POST",url:avadaWooCommerceVars.ajaxurl,data:{action:"live_update_cart",cart_item_key:a,quantity:i,security:avadaWooCommerceVars.cart_nonce},success:function(e){if(e.success){const o=parseInt(e.data.cart_items);if(n.length){let e=1===o?n.data("singular"):n.data("plural");n.contents().filter((function(){return 3===this.nodeType})).first().replaceWith(e),n.children(".fusion-dynamic-cart-count").text(o)}if(u.length&&u.html(o),s.length){const e=s.find('.fusion-menu-cart-item[data-cart-item-key="'+a+'"]');e.length&&e.find(".fusion-menu-cart-item-quantity .awb-quantity").html(i)}if(l.length){let o=l.find(".woocommerce-mini-cart li").eq(t);o.length&&o.find(".quantity").contents().filter((function(){return 3===this.nodeType})).first().each((function(){let e=this.nodeValue.match(/^(\d+)(\D*)/);e&&(this.nodeValue=i+e[2])})),l.find(".woocommerce-mini-cart__total").find(".woocommerce-Price-amount").html(jQuery(e.data.fragments[".cart_totals"]).find(".woocommerce-Price-amount").html())}d.length&&d.html(d.html().replace(/\d+/,o)),c.html(e.data.subtotal_html),jQuery(".cart_totals").html(jQuery(e.data.fragments[".cart_totals"]).html())}},complete:function(){jQuery(".post-content").find(".fusion-woo-cart-totals-wrapper table, .fusion-button, .cart_totals table").removeClass("awb-disabled")}})}));let o=!1;jQuery(document).on("click",".woocommerce-cart-form .product-remove > a",(function(e){o=!0})),jQuery(document).on("click",".woocommerce-cart .restore-item",(function(e){o=!0})),jQuery(window).on("updated_wc_div",(function(){if(o){const e=jQuery(".fusion-dynamic-cart-count-wrapper"),r=jQuery(".fusion-widget-cart-number");let t=0;if(jQuery(".woocommerce-cart-form").first().find(".cart_item input.qty").each((function(){let e=parseInt(jQuery(this).val(),10);isNaN(e)||(t+=e)})),e.length){let o=1===t?e.data("singular"):e.data("plural");e.contents().filter((function(){return 3===this.nodeType})).first().replaceWith(o),e.children(".fusion-dynamic-cart-count").text(t)}r.length&&r.html(t),o=!1}})),jQuery('.fusion-update-cart, a[href="http://mdae-technology.azurewebsites.net/?page=#updateCart"]').on("click",(function(e){return e.preventDefault(),jQuery(".cart .actions > .button").trigger("click"),!1})),jQuery(".fusion-apply-coupon").on("click",(function(e){e.preventDefault(),jQuery(".cart .actions .coupon #coupon_code").val(jQuery("#avada_coupon_code").val()),jQuery(".cart .actions .coupon .button").trigger("click")})),jQuery(".woocommerce-store-notice").length&&jQuery(".woocommerce-store-notice").is(":visible")&&!jQuery(".fusion-top-frame").is(":visible")&&(jQuery("#wrapper").css("margin-top",jQuery(".woocommerce-store-notice").outerHeight()),0'),jQuery(".woocommerce-tabs #comments > h2").each((function(){jQuery(this).replaceWith((function(){return"

"+jQuery(this).html()+"

"}))})),"block"===jQuery("body .sidebar").css("display")&&fusionCalcWoocommerceTabsLayout(".woocommerce-tabs .tabs-horizontal"),jQuery(".sidebar .products,.fusion-footer-widget-area .products,#slidingbar-area .products").each((function(){jQuery(this).removeClass("products-4"),jQuery(this).removeClass("products-3"),jQuery(this).removeClass("products-2"),jQuery(this).addClass("products-1")})),jQuery(".subcategory-products").each((function(){jQuery(this).addClass("products-"+avadaWooCommerceVars.woocommerce_shop_page_columns)})),jQuery(".woocommerce-tabs ul.tabs li a").off("click"),jQuery("body").on("click",".woocommerce-tabs > ul.tabs li a",(function(){var e=jQuery(this),o=e.closest(".woocommerce-tabs");return jQuery("ul.tabs li",o).removeClass("active"),jQuery("> div.panel",o).hide(),jQuery("div"+e.attr("href"),o).show(),e.parent().addClass("active"),!1})),jQuery(".continue-checkout").length||jQuery(document).on("checkout_error",(function(){var e=fusion.getAdminbarHeight(),o=jQuery(".fusion-header-wrapper").find("div"),r=0;jQuery("html, body").stop(),o.each((function(){"fixed"===jQuery(this).css("position")&&(r=jQuery(this).height())})),jQuery(".woocommerce-NoticeGroup-checkout").length&&jQuery("html, body").animate({scrollTop:jQuery(".woocommerce-NoticeGroup-checkout").offset().top-e-r-10},500)})),jQuery("body").on("click",".woocommerce-checkout-nav a,.continue-checkout",(function(e){var o,r,t,i=fusion.getAdminbarHeight(),a=jQuery(".fusion-header-wrapper").find("div"),c=0;a.each((function(){"fixed"===jQuery(this).css("position")&&(c=jQuery(this).height())})),e.preventDefault(),jQuery(".avada-woocommerce-error").remove(),0
'+avadaWooCommerceVars.woocommerce_checkout_error+"
"),jQuery(document.body).trigger("avada_checkout_error",[avadaWooCommerceVars.woocommerce_checkout_error]),011){for(e=0;e<10;e++)r+=o[e]+" ";jQuery(this).html(r)}})),jQuery(".wc-tabs li").on("click",(function(){var e=jQuery(this).attr("aria-controls");setTimeout((function(){jQuery("#"+e).find(".awb-carousel").length&&"function"==typeof generateSwiperCarousel&&generateSwiperCarousel(),jQuery("#"+e).find(".fusion-gallery").each((function(){jQuery(this).isotope()})),jQuery("#"+e).find(".fusion-blog-shortcode").each((function(){jQuery(this).find(".fusion-blog-layout-grid").isotope()})),jQuery("#"+e).find(".crossfade-images").each((function(){fusionResizeCrossfadeImagesContainer(jQuery(this))})),"function"==typeof jQuery.fn.fusionCalcFlipBoxesHeight&&jQuery("#"+e).find(".flip-box-inner-wrapper").each((function(){jQuery(this).fusionCalcFlipBoxesHeight()})),jQuery("#"+e).find(".fusion-portfolio").each((function(){jQuery(this).find(".fusion-portfolio-wrapper").isotope()})),"function"==typeof jQuery.fn.reinitializeGoogleMap&&jQuery("#"+e).find(".shortcode-map").each((function(){jQuery(this).reinitializeGoogleMap()}))}),150)}))})),jQuery(document).ready((function(){var e=jQuery("#calc_shipping_country").parents(".avada-shipping-calculator-form").find("#calc_shipping_state_field");e.length&&("hidden"===e.find("#calc_shipping_state").attr("type")?e.hide():e.show())})),jQuery(window).on("updated_wc_div",(function(){reinitAftarAjax()})),jQuery(window).on("fusion-dynamic-content-render",(function(e,o){var r=jQuery(o).find(".fusion-woo-slider");0