window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",window.wc_order_attribution.sbjsDataToSchema(window.sbjs.get));; (function ($) { /** * refresh cart when payment method changed */ if (awdr_params.refresh_order_review == '1') { $(document).on('change', 'input[name="payment_method"],input[name="billing_city"],input[name="billing_postcode"]', function () { refreshCart(); }); /** * refresh cart when Email changed */ $(document).on('blur', 'input[name="billing_email"], select#billing_state', function () { refreshCart(); }); } function refreshCart() { $('body').trigger('update_checkout'); } $(document).ready(function ($) { function init_events() { if (awdr_params.enable_update_price_with_qty == 'show_dynamically') { function getWDRDPTarget(form, target, is_variable){ let $price_place = ''; if (form.find(target).length) { $price_place = form.find(target).first(); if(is_variable === true){ if (!form.find(target+' .price').length) { $price_place.html("
"); } $price_place = form.find(target+' .price').first(); } } else { $price_place = $(target).first(); if(is_variable === true){ if (!$(target+' .price').length) { $price_place.html("
"); } $price_place = $(target+' .price').first(); } } return $price_place; } $(document).on('change', '[name="quantity"]', function (){ var awdr_qty_object = $(this); setTimeout(function(){ var $qty = awdr_qty_object.val(); var $product_id = 0; var $price_place = ""; var form = awdr_qty_object.closest("form"); if (form.find('button[name="add-to-cart"]').length) { $product_id = form.find('button[name="add-to-cart"]').first().val(); var target = 'div.product p.price'; if(awdr_params.custom_target_simple_product != undefined){ if(awdr_params.custom_target_simple_product != ""){ target = awdr_params.custom_target_simple_product; } } $price_place = getWDRDPTarget(form, target, false); } else if (form.find('input[name="variation_id"]').length) { $product_id = form.find('input[name="variation_id"]').val(); var target = 'div.product .woocommerce-variation-price'; if(awdr_params.custom_target_variable_product != undefined){ if(awdr_params.custom_target_variable_product != ""){ target = awdr_params.custom_target_variable_product; } } $price_place = getWDRDPTarget(form, target, true); } else if (form.find('input[name="add-to-cart"]').length) { $product_id = form.find('input[name="add-to-cart"]').first().val(); var target = 'div.product p.price'; if(awdr_params.custom_target_simple_product != undefined){ if(awdr_params.custom_target_simple_product != ""){ target = awdr_params.custom_target_simple_product; } } $price_place = getWDRDPTarget(form, target, false); } if(!$product_id || $product_id == 0){ if(awdr_params.custom_simple_product_id_selector != undefined){ if(awdr_params.custom_simple_product_id_selector != ""){ let simple_product_id_selector = awdr_params.custom_simple_product_id_selector; $product_id = $(simple_product_id_selector).val(); let target = 'div.product p.price'; if(awdr_params.custom_target_simple_product != undefined){ if(awdr_params.custom_target_simple_product != ""){ target = awdr_params.custom_target_simple_product; } } $price_place = getWDRDPTarget(form, target, false); } } if(awdr_params.custom_variable_product_id_selector != undefined){ if(awdr_params.custom_variable_product_id_selector != ""){ let variable_product_id_selector = awdr_params.custom_variable_product_id_selector; $product_id = $(variable_product_id_selector).val(); let target = 'div.product .woocommerce-variation-price'; if(awdr_params.custom_target_variable_product != undefined){ if(awdr_params.custom_target_variable_product != ""){ target = awdr_params.custom_target_variable_product; } } $price_place = getWDRDPTarget(form, target, true); } } } if (!$product_id || !$price_place || $product_id == 0) { return; } var data = { action: 'wdr_ajax', method: 'get_price_html', product_id: $product_id, qty: $qty, awdr_nonce: awdr_params.nonce, }; $.ajax({ url: awdr_params.ajaxurl, data: data, type: 'POST', success: function (response) { if (response.price_html) { $price_place.html(response.price_html) } else { if(response.original_price_html != undefined){ $price_place.html(response.original_price_html) } } }, error: function (response) { $price_place.html("") } }); }, 0); }); } } if (awdr_params.js_init_trigger) { $(document).on(awdr_params.js_init_trigger, function () { init_events(); }); } init_events(); if (awdr_params.awdr_dynamic_bulk_table_status == "1") { if(awdr_params.awdr_dynamic_bulk_table_off == "on"){ function awdr_load_variation_table(variation_id){ setTimeout(function(){ if(variation_id != '' && variation_id != '0'){ var data = { action: 'wdr_ajax', method: 'get_variable_product_bulk_table', product_id: variation_id, awdr_nonce: awdr_params.nonce, }; let awdr_opacity = 'div.awdr-bulk-customizable-table'; if(awdr_params.awdr_opacity_to_bulk_table != undefined){ if(awdr_params.awdr_opacity_to_bulk_table != ""){ awdr_opacity = awdr_params.awdr_opacity_to_bulk_table; } } $.ajax({ url: awdr_params.ajaxurl, data: data, type: 'POST', beforeSend: function () { $(awdr_opacity).css('opacity','0.5'); }, complete: function () { $(awdr_opacity).css('opacity','1'); }, success: function (response) { if (response.bulk_table) { $('.awdr-bulk-customizable-table').html(response.bulk_table); } }, error: function (response) { $('.awdr-bulk-customizable-table').html("") } }); } }, 100); } $( ".single_variation_wrap" ).on( "hide_variation", function ( event ) { let variation_id = $(this).closest('form').find('input[name="product_id"]').val(); awdr_load_variation_table(variation_id); }); $( ".single_variation_wrap" ).on( "show_variation", function ( event, variation, purchasable ) { let variation_id = variation.variation_id; if(variation.is_bundled != undefined){ if(variation.is_bundled == true){ return; } } awdr_load_variation_table(variation_id); }); } } }); })(jQuery);; (function ($) { $.extend({ AdvanceWooDiscountRules: { form: null, product_id: null, quantity: 0, options: [], target: null, getDynamicDiscountPriceFromCartForm: function($form, $target, $options){ if (typeof $options !== 'undefined') { this.options = $options; } if (typeof $target !== 'undefined') { this.target = $target; } if (typeof $form !== 'undefined' && $form.is('form')) { this.form = $form; } else { this.logError("Incorrect form provided"); } this.product_id = this.getProductIdFromForm(); this.quantity = this.getProductQuantityFromForm(); this.getDiscountPriceForProduct(); }, getDiscountPriceForProduct: function () { if(this.product_id === null || this.product_id == 0){ this.logError("Invalid product"); return []; } var data = { action: 'awdr_get_product_discount', product_id: this.product_id, qty: this.quantity, awdr_nonce: awdr_params.nonce, }; if (typeof this.options.custom_price !== 'undefined') { data.custom_price = this.options.custom_price; } var $target = this.target; var $options = this.options; $.ajax({ url: awdr_params.ajaxurl, data: data, type: 'POST', success: function (response) { $(document.body).trigger("advanced_woo_discount_rules_on_get_response_for_dynamic_discount", [ response, $target, $options ]); //return response; }, error: function (response) { } }); }, getProductIdFromForm: function () { var variationIdEl = this.form.find('[name="variation_id"]'); var productIdEl = this.form.find('[name="add-to-cart"]'); if (variationIdEl.length) { return parseInt(variationIdEl.val()); } else if (productIdEl.length) { return parseInt(productIdEl.val()); } return false; }, getProductQuantityFromForm: function () { var $input = this.form.find('input[name="quantity"]'); if ($input.length === 0) { return 0; } return $input.val(); }, logError: function($text) { console.error("Advance discount rule error: %s", $text); } } }); })(jQuery); ; !function(r,a){function e(t,e,i){var s;void 0===i&&(i=o),(s=new Date).setTime(s.getTime()+i),i="expires="+s.toUTCString(),document.cookie=t+"="+e+"; "+i+"; path=/"}function s(t){for(var e=t+"=",i=decodeURIComponent(document.cookie).split(";"),s=0;sc-1&&this.clicks.splice(0,1),this.clicks.push(t),n.set(this.COOKIE_NAME,this.clicks.join(",")))},l),WC_PRL.cookies.recently_viewed=(_=WC_PRL.cookies.model,h=WC_PRL.params.recently_views_max_cookie_num,u.prototype.init=function(){var t;this.cookie_raw=_.get(this.COOKIE_NAME),""!==this.cookie_raw&&((t=this.cookie_raw.split(",")).length&&(this.viewed_ids=r.map(t[0].split("|"),function(t){return parseInt(t,10)}),1h&&this.viewed_ids.shift(),t=parseInt(t,10);var e=this.viewed_ids.indexOf(t);-1h&&this.viewed_cat_ids.shift(),t=parseInt(t,10);var e=this.viewed_cat_ids.indexOf(t);-1h&&this.viewed_tag_ids.shift(),t=parseInt(t,10);var e=this.viewed_tag_ids.indexOf(t);-1{"use strict";const e=window.wp.i18n,t="woocommerce-google-analytics",o="experimental__woocommerce_blocks",c=window.wp.hooks,r=(e,t)=>({id:s(e),name:e.name,quantity:t,category:l(e),price:i(e.prices.price,e.prices.currency_minor_unit)}),n=(e,t)=>({id:s(e),name:e.name,list_name:t,category:l(e),price:i(e.prices.price,e.prices.currency_minor_unit)}),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(parseInt(e,10)/10**t).toString()},a=(e,t,o)=>{(0,c.removeAction)(e,t),(0,c.addAction)(e,t,o)},s=e=>e.sku?e.sku:"#"+e.id,l=e=>"categories"in e&&e.categories.length?e.categories[0].name:"";let m=-1;const u=e=>t=>{let{storeCart:o}=t;m!==e&&(_(0===e?"begin_checkout":"checkout_progress",{items:o.cartItems.map(r),coupon:o.cartCoupons[0]?.code||"",currency:o.cartTotals.currency_code,value:i(o.cartTotals.total_price,o.cartTotals.currency_minor_unit),checkout_step:e}),m=e)},p=e=>{let{step:t,option:o,value:c}=e;return()=>{_("set_checkout_option",{checkout_step:t,checkout_option:o,value:c}),m=t}},_=(e,t)=>{if("function"!=typeof gtag)throw new Error("Function gtag not implemented.");window.gtag("event",e,t)};a(`${o}-checkout-render-checkout-form`,t,(e=>{let{...t}=e;return u(0)(t)})),a(`${o}-checkout-set-email-address`,t,(e=>{let{...t}=e;return u(1)(t)})),a(`${o}-checkout-set-shipping-address`,t,(e=>{let{...t}=e;return u(2)(t)})),a(`${o}-checkout-set-billing-address`,t,(e=>{let{...t}=e;return u(3)(t)})),a(`${o}-checkout-set-phone-number`,t,(e=>{let{step:t,...o}=e;u("shipping"===t?2:3)(o)})),a(`${o}-checkout-set-selected-shipping-rate`,t,(t=>{let{shippingRateId:o}=t;p({step:4,option:(0,e.__)("Shipping Method","woo-gutenberg-products-block"),value:o})()})),a(`${o}-checkout-set-active-payment-method`,t,(t=>{let{paymentMethodSlug:o}=t;p({step:5,option:(0,e.__)("Payment Method","woo-gutenberg-products-block"),value:o})()})),a(`${o}-product-list-render`,t,(t=>{let{products:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;_("view_item_list",{event_category:"engagement",event_label:(0,e.__)("Viewing products","woocommerce-google-analytics-integration"),items:o.map(((e,t)=>({...n(e,c),list_position:t+1})))})})),a(`${o}-cart-add-item`,t,(t=>{let{product:o,quantity:c=1}=t;_("add_to_cart",{event_category:"ecommerce",event_label:(0,e.__)("Add to Cart","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-cart-set-item-quantity`,t,(t=>{let{product:o,quantity:c=1}=t;_("change_cart_quantity",{event_category:"ecommerce",event_label:(0,e.__)("Change Cart Item Quantity","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-cart-remove-item`,t,(t=>{let{product:o,quantity:c=1}=t;_("remove_from_cart",{event_category:"ecommerce",event_label:(0,e.__)("Remove Cart Item","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-checkout-submit`,t,(()=>{_("add_payment_info")})),a(`${o}-product-view-link`,t,(t=>{let{product:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;_("select_content",{content_type:"product",items:[n(o,c)]})})),a(`${o}-product-search`,t,(e=>{let{searchTerm:t}=e;_("search",{search_term:t})})),a(`${o}-product-render`,t,(t=>{let{product:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;o&&_("view_item",{items:[n(o,c)]})})),a(`${o}-store-notice-create`,t,(e=>{let{status:t,content:o}=e;"error"===t&&_("exception",{description:o,fatal:!1})}))})();; /** * Identify browser on site if they are logged in. * * Object possibly containing user/commenter email address: * @typedef {Object} klUser * @property {string} currect_user_email - Email of logged in user * @property {string} commenter_email - Email of logged in commenter * */ function klIdentifyBrowser(klUser) { var klaviyo = window.klaviyo || []; if (klUser.current_user_email) { klaviyo.push(["identify", { "$email": klUser.current_user_email }]); } else { // See if current user is a commenter if (klUser.commenter_email) { klaviyo.push(["identify", { "$email": klUser.commenter_email }]); } } } window.addEventListener("load", function() { !function(){if(!window.klaviyo){window._klOnsite=window._klOnsite||[];try{window.klaviyo=new Proxy({},{get:function(n,i){return"push"===i?function(){var n;(n=window._klOnsite).push.apply(n,arguments)}:function(){for(var n=arguments.length,o=new Array(n),w=0;w=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),e=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?e<=index+1?0:index+1:index-1<0?e-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&(active_tab.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),($this=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":$this.css("margin-left"),"margin-left":0}),($this=jQuery(this).find("ul.wpb_thumbnails-fluid")).width($this.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1')}),vc_initVideoBackgrounds();var callSkrollInit=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("
").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),$parallaxElement.attr("data-bottom-top","top: "+-(skrollrSize-100)+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui=panel.find(".isotope, .wpb_image_grid_ul"),$pie_charts=panel.find(".wpb_gmaps_widget"),0
').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).on("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){return void 0!==url&&null!==(url=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&url[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width();$this.css("perspective",4*width+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner"),frontHeight=(hoverBoxInner.css("min-height",0),$this.find(".vc-hoverbox-front-inner").outerHeight()),$this=$this.find(".vc-hoverbox-back-inner").outerHeight(),frontHeight=$this').append(e),l=r.find("link"),i=0,s=!1;0===l.length?a(e):(setTimeout(function(){i<=l.length&&!s&&(a(m(r.html())),s=!0)},500),l.each(function(){void 0!==m(this).attr("id")&&-1!==m(this).attr("id").indexOf("theme_settings_")&&m("head").find('link[id*="theme_settings_"]:not([id*="theme_settings_default"])').remove()}),l.each(function(){var e,o,t=m(this),n=t.attr("id"),d=t.attr("href");void 0!==n&&(e=-1!==n.indexOf("theme_settings_"),o=-1!==n.indexOf("theme_settings_default"),t.remove(),void 0!==woodmart_page_css[n]||o?++i>=l.length&&!s&&(a(m(r.html())),s=!0):m("head").append(t.on("load",function(){i++,e||(woodmart_page_css[n]=d),i>=l.length&&!s&&(a(m(r.html())),s=!0)})))}))},woodmartThemeModule.debounce=function(n,d,a){var r;return function(){var e=this,o=arguments,t=a&&!r;clearTimeout(r),r=setTimeout(function(){r=null,a||n.apply(e,o)},d),t&&n.apply(e,o)}},woodmartThemeModule.wdElementorAddAction=function(e,o){woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&elementorFrontend.hooks.addAction(e,o)})},woodmartThemeModule.wdElementorAddAction("frontend/element_ready/global",function(e){e.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),woodmartThemeModule.$document.trigger("wdElementorGlobalReady")}),m.each(["frontend/element_ready/column","frontend/element_ready/container"],function(e,o){woodmartThemeModule.wdElementorAddAction(o,function(e){e.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),setTimeout(function(){woodmartThemeModule.$document.trigger("wdElementorColumnReady")},100)})}),woodmartThemeModule.setupMainCarouselArg=function(){woodmartThemeModule.$mainCarouselWrapper=m(".woocommerce-product-gallery");var e=1;(woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")||woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-carousel_two_columns"))&&(e=2),woodmartThemeModule.mainCarouselArg={rtl:woodmartThemeModule.$body.hasClass("rtl"),items:e,autoplay:woodmart_settings.product_slider_autoplay,autoplayTimeout:3e3,loop:woodmart_settings.product_slider_autoplay,center:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered"),startPosition:woodmartThemeModule.$mainCarouselWrapper.hasClass("thumbs-position-centered")?woodmart_settings.centered_gallery_start:0,dots:"yes"===woodmart_settings.product_slider_dots||woodmartThemeModule.$mainCarouselWrapper.find(".woocommerce-product-gallery__wrapper").data("hide_pagination_control")&&"yes"!==woodmartThemeModule.$mainCarouselWrapper.find(".woocommerce-product-gallery__wrapper").data("hide_pagination_control"),nav:!0,autoHeight:"yes"===woodmart_settings.product_slider_auto_height,navText:!1,navClass:["owl-prev wd-btn-arrow","owl-next wd-btn-arrow"]}},woodmartThemeModule.shopLoadMoreBtn=".wd-products-load-more.load-on-scroll",woodmartThemeModule.$window.on("elementor/frontend/init",function(){elementorFrontend.isEditMode()&&"enabled"===woodmart_settings.elementor_no_gap&&(m.each(["frontend/element_ready/section","frontend/element_ready/container"],function(e,o){woodmartThemeModule.wdElementorAddAction(o,function(e){e.attr("style")&&0===e.attr("style").indexOf("transform:translate3d")&&!e.hasClass("wd-parallax-on-scroll")&&e.attr("style",""),e.removeClass("wd-animated"),e.data("wd-waypoint",""),e.removeClass("wd-anim-ready"),woodmartThemeModule.$document.trigger("wdElementorSectionReady")}),elementorFrontend.hooks.addAction(o,function(e){var o,t=e.data("model-cid");void 0!==elementorFrontend.config.elements.data[t]&&(o="",void 0!==elementorFrontend.config.elements.data[t].attributes.elType&&("container"===elementorFrontend.config.elements.data[t].attributes.elType?o=elementorFrontend.config.elements.data[t].attributes.boxed_width.size:"section"===elementorFrontend.config.elements.data[t].attributes.elType&&(o=elementorFrontend.config.elements.data[t].attributes.content_width.size)),o||e.addClass("wd-negative-gap"))})}),elementor.channels.editor.on("change:section change:container",function(e){var o,t=e.elementSettingsModel.changed;void 0===t.content_width&&void 0===t.boxed_width||(o=[],void 0!==t.content_width?o=t.content_width.size:void 0!==t.boxed_width&&(o=t.boxed_width.size),t=e._parent.model.id,e=m(".elementor-element-"+t),o?e.removeClass("wd-negative-gap"):e.addClass("wd-negative-gap"))}))}),woodmartThemeModule.$window.on("load",function(){m(".wd-preloader").delay(parseInt(woodmart_settings.preloader_delay)).addClass("preloader-hide"),m(".wd-preloader-style").remove(),setTimeout(function(){m(".wd-preloader").remove()},200)}),woodmartThemeModule.googleMapsCallback=function(){return""}}(jQuery),window.onload=function(){function o(e){jQuery(window).trigger("wdEventStarted"),t()}var e=["keydown","scroll","mouseover","touchmove","touchstart","mousedown","mousemove"],t=function(){e.forEach(function(e){window.removeEventListener(e,o)})};e.forEach(function(e){window.addEventListener(e,o)})};; !function(e){woodmartThemeModule.woocommerceNotices=function(){woodmartThemeModule.$body.on("click",".woocommerce-error, .woocommerce-info, .woocommerce-message, div.wpcf7-response-output, #yith-wcwl-popup-message, .mc4wp-alert, .dokan-store-contact .alert-success, .yith_ywraq_add_item_product_message",function(){o(e(this))});var o=function(o){o.removeClass("shown-notice").addClass("hidden-notice")}},e(document).ready(function(){woodmartThemeModule.woocommerceNotices()})}(jQuery);; !function(o){woodmartThemeModule.siteScroll=function(){window.innerWidth>woodmartThemeModule.windowWidth&&o("html").addClass("wd-scrollbar")},o(document).ready(function(){woodmartThemeModule.siteScroll()})}(jQuery);;