(function($){ $(document).ready(function(){ $('body').on('added_to_cart removed_from_cart', function(e, fragments){ if(fragments){ $.each(fragments, function(key, value){ $(key.replace('_wd', '')).replaceWith(value); }); }}); }); $('body').on('wc_fragments_refreshed wc_fragments_loaded', function(){ if(typeof wd_cart_fragments_params!=='undefined'){ var wc_fragments=JSON.parse(sessionStorage.getItem(wd_cart_fragments_params.fragment_name)), cart_hash_key=wd_cart_fragments_params.cart_hash_key, cart_hash=sessionStorage.getItem(cart_hash_key), cookie_hash=Cookies.get('woocommerce_cart_hash'), cart_created=sessionStorage.getItem('wc_cart_created'), day_in_ms=(24 * 60 * 60 * 1000); if(cart_hash===null||cart_hash===undefined||cart_hash===''){ cart_hash=''; } if(cookie_hash===null||cookie_hash===undefined||cookie_hash===''){ cookie_hash=''; } if(cart_hash&&(cart_created===null||cart_created===undefined||cart_created==='')){ throw 'No cart_created'; } if(cart_created){ var cart_expiration=((1 * cart_created) + day_in_ms), timestamp_now=(new Date()).getTime(); if(cart_expiration < timestamp_now){ throw 'Fragment expired'; }} if(wc_fragments&&wc_fragments['div.widget_shopping_cart_content']&&cart_hash===cookie_hash){ $.each(wc_fragments, function(key, value){ $(key.replace('_wd', '')).replaceWith(value); }); }} }); })(jQuery); (function($){ 'use strict'; if(typeof wpcf7==='undefined'||wpcf7===null){ return; } wpcf7=$.extend({ cached: 0, inputs: [] }, wpcf7); $(function(){ wpcf7.supportHtml5=(function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; })(); $('div.wpcf7 > form').each(function(){ var $form=$(this); wpcf7.initForm($form); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.initForm=function(form){ var $form=$(form); $form.submit(function(event){ if(! wpcf7.supportHtml5.placeholder){ $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val('').removeClass('placeheld'); }); } if(typeof window.FormData==='function'){ wpcf7.submit($form); event.preventDefault(); }}); $('.wpcf7-submit', $form).after(''); wpcf7.toggleSubmit($form); $form.on('click', '.wpcf7-acceptance', function(){ wpcf7.toggleSubmit($form); }); $('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){ var name=$(this).attr('name'); $form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); $('.wpcf7-list-item.has-free-text', $form).each(function(){ var $freetext=$(':input.wpcf7-free-text', this); var $wrap=$(this).closest('.wpcf7-form-control'); if($(':checkbox, :radio', this).is(':checked')){ $freetext.prop('disabled', false); }else{ $freetext.prop('disabled', true); } $wrap.on('change', ':checkbox, :radio', function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); if(! wpcf7.supportHtml5.placeholder){ $('[placeholder]', $form).each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){ $form.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){ $form.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } $('.wpcf7-character-count', $form).each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function(target){ var $target=$(target); var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $(':input[name="' + name + '"]', $form).each(function(){ updateCount(this); $(this).keyup(function(){ updateCount(this); }); }); }); $form.on('change', '.wpcf7-validates-as-url', function(){ var val=$.trim($(this).val()); if(val && ! val.match(/^[a-z][a-z0-9.+-]*:/i) && -1!==val.indexOf('.')){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; wpcf7.submit=function(form){ if(typeof window.FormData!=='function'){ return; } var $form=$(form); $('.ajax-loader', $form).addClass('is-active'); wpcf7.clearResponse($form); var formData=new FormData($form.get(0)); var detail={ id: $form.closest('div.wpcf7').attr('id'), status: 'init', inputs: [], formData: formData }; $.each($form.serializeArray(), function(i, field){ if('_wpcf7'==field.name){ detail.contactFormId=field.value; }else if('_wpcf7_version'==field.name){ detail.pluginVersion=field.value; }else if('_wpcf7_locale'==field.name){ detail.contactFormLocale=field.value; }else if('_wpcf7_unit_tag'==field.name){ detail.unitTag=field.value; }else if('_wpcf7_container_post'==field.name){ detail.containerPostId=field.value; }else if(field.name.match(/^_wpcf7_\w+_free_text_/)){ var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, ''); detail.inputs.push({ name: owner + '-free-text', value: field.value }); }else if(field.name.match(/^_/)){ }else{ detail.inputs.push(field); }}); wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail); var ajaxSuccess=function(data, status, xhr, $form){ detail.id=$(data.into).attr('id'); detail.status=data.status; detail.apiResponse=data; var $message=$('.wpcf7-response-output', $form); switch(data.status){ case 'validation_failed': $.each(data.invalidFields, function(i, n){ $(n.into, $form).each(function(){ wpcf7.notValidTip(this, n.message); $('.wpcf7-form-control', this).addClass('wpcf7-not-valid'); $('[aria-invalid]', this).attr('aria-invalid', 'true'); }); }); $message.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); wpcf7.triggerEvent(data.into, 'invalid', detail); break; case 'acceptance_missing': $message.addClass('wpcf7-acceptance-missing'); $form.addClass('unaccepted'); wpcf7.triggerEvent(data.into, 'unaccepted', detail); break; case 'spam': $message.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'aborted': $message.addClass('wpcf7-aborted'); $form.addClass('aborted'); wpcf7.triggerEvent(data.into, 'aborted', detail); break; case 'mail_sent': $message.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': $message.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); break; default: var customStatusClass='custom-' + data.status.replace(/[^0-9a-z]+/i, '-'); $message.addClass('wpcf7-' + customStatusClass); $form.addClass(customStatusClass); } wpcf7.refill($form, data); wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); wpcf7.toggleSubmit($form); } if(! wpcf7.supportHtml5.placeholder){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); } $message.html('').append(data.message).slideDown('fast'); $message.attr('role', 'alert'); $('.screen-reader-response', $form.closest('.wpcf7')).each(function(){ var $response=$(this); $response.html('').attr('role', '').append(data.message); if(data.invalidFields){ var $invalids=$(''); $.each(data.invalidFields, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }); }; $.ajax({ type: 'POST', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'), data: formData, dataType: 'json', processData: false, contentType: false }).done(function(data, status, xhr){ ajaxSuccess(data, status, xhr, $form); $('.ajax-loader', $form).removeClass('is-active'); }).fail(function(xhr, status, error){ var $e=$('
    ').text(error.message); $form.after($e); }); }; wpcf7.triggerEvent=function(target, name, detail){ var $target=$(target); var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: detail }); $target.get(0).dispatchEvent(event); $target.trigger('wpcf7:' + name, detail); $target.trigger(name + '.wpcf7', detail); }; wpcf7.toggleSubmit=function(form, state){ var $form=$(form); var $submit=$('input:submit', $form); if(typeof state!=='undefined'){ $submit.prop('disabled', ! state); return; } if($form.hasClass('wpcf7-acceptance-as-validation')){ return; } $submit.prop('disabled', false); $('.wpcf7-acceptance', $form).each(function(){ var $span=$(this); var $input=$('input:checkbox', $span); if(! $span.hasClass('optional')){ if($span.hasClass('invert')&&$input.is(':checked') || ! $span.hasClass('invert')&&! $input.is(':checked')){ $submit.prop('disabled', true); return false; }} }); }; wpcf7.notValidTip=function(target, message){ var $target=$(target); $('.wpcf7-not-valid-tip', $target).remove(); $('') .text(message).appendTo($target); if($target.is('.use-floating-validation-tip *')){ var fadeOut=function(target){ $(target).not(':hidden').animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }; $target.on('mouseover', '.wpcf7-not-valid-tip', function(){ fadeOut(this); }); $target.on('focus', ':input', function(){ fadeOut($('.wpcf7-not-valid-tip', $target)); }); }}; wpcf7.refill=function(form, data){ var $form=$(form); var refillCaptcha=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); $form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }; var refillQuiz=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); $form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }; if(typeof data==='undefined'){ $.ajax({ type: 'GET', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'), beforeSend: function(xhr){ var nonce=$form.find(':input[name="_wpnonce"]').val(); if(nonce){ xhr.setRequestHeader('X-WP-Nonce', nonce); }}, dataType: 'json' }).done(function(data, status, xhr){ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }}); }else{ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }} }; wpcf7.clearResponse=function(form){ var $form=$(form); $form.removeClass('invalid spam sent failed'); $form.siblings('.screen-reader-response').html('').attr('role', ''); $('.wpcf7-not-valid-tip', $form).remove(); $('[aria-invalid]', $form).attr('aria-invalid', 'false'); $('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid'); $('.wpcf7-response-output', $form) .hide().empty().removeAttr('role') .removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked'); }; wpcf7.apiSettings.getRoute=function(path){ var url=wpcf7.apiSettings.root; url=url.replace(wpcf7.apiSettings.namespace, wpcf7.apiSettings.namespace + path); return url; };})(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,active_tab,collapsible,$this=jQuery(this);$this.attr("data-interval"),collapsible=!1===(active_tab=!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")&&($tabs.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();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("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);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);getColumnsCount(jQuery(this));jQuery(this).hasClass("columns_count_1")&&900;var carousel_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousel_li.css({"margin-right":carousel_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).on("resize",function(){screen_size!=(screen_size=getSizeName())&&window.setTimeout(function(){location.reload()},20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(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"})}else 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(),callSkrollInit=!1,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,skrollrStart,$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+")"),skrollrStart=-(skrollrSize-100),$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),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++}});var screen_size=getSizeName();function getSizeName(){var screen_w=jQuery(window).width();return 1170
    ').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,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("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){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[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),perspective=4*$this.width()+"px";$this.css("perspective",perspective)})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=$this.find(".vc-hoverbox-front-inner").outerHeight(),backHeight=$this.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=backHeight",{method:"GET"===a?"GET":"POST",action:n,style:"display:none"}),o=("GET"!==a&&"POST"!==a&&r.append(f("",{type:"hidden",name:"_method",value:a.toLowerCase()})),t.data);if("string"==typeof o)f.each(o.split("&"),function(t,e){e=e.split("=");r.append(f("",{type:"hidden",name:e[0],value:e[1]}))});else if(Array.isArray(o))f.each(o,function(t,e){r.append(f("",{type:"hidden",name:e.name,value:e.value}))});else if("object"==typeof o)for(e in o)r.append(f("",{type:"hidden",name:e,value:o[e]}));f(document.body).append(r),r.submit()}function x(t){t&&t.readyState<4&&(t.onreadystatechange=f.noop,t.abort())}function g(){return(new Date).getTime()}function y(t){t=t.clone();return t.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)}),t.contents()}function c(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function j(t){var e=document.createElement("a");return e.href=t,e}function s(t){return t.href.replace(/#.*/,"")}function u(t,e){return t&&e?((e=f.extend({},e)).container=t,e):f.isPlainObject(t)?t:{container:t}}function d(t,e){return t.filter(e).add(t.find(e))}function v(t){return f.parseHTML(t,document,!0)}function w(t,e,n){var a,r={},o=/]*>([\s\S.]*)<\/body>/i)[0])),null!=(e=t.match(/]*>([\s\S.]*)<\/head>/i))?f(v(e[0])):a):a=f(v(t)),0===a.length||(r.title=d(e,"title").last().text(),n.fragment?(t=a,(t="body"!==n.fragment?d(t,n.fragment).first():t).length&&(r.contents="body"===n.fragment?t:t.contents(),r.title||(r.title=t.attr("title")||t.data("title")))):o||(r.contents=a),r.contents&&(r.contents=r.contents.not(function(){return f(this).is("title")}),r.contents.find("title").remove(),r.scripts=d(r.contents,"script[src]").remove(),r.contents=r.contents.not(r.scripts)),r.title&&(r.title=null==(e=r.title)?"":"string"==typeof e?e.trim():(e+"").replace("/^[\\s\ufeff ]+|[\\s\ufeff ]+$/g",""))),r}r&&r.container&&(h.state=r),"state"in window.history&&(l=!1);var b={},T=[],E=[];function S(t,e){for(;t.length>e;)delete b[t.shift()]}function C(){return f("meta").filter(function(){var t=f(this).attr("http-equiv");return t&&"X-PJAX-VERSION"===t.toUpperCase()}).attr("content")}function P(){f.fn.pjax=t,f.pjax=h,f.pjax.enable=f.noop,f.pjax.disable=A,f.pjax.click=a,f.pjax.submit=e,f.pjax.reload=n,f.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:C},f(window).on("popstate.pjax",o)}function A(){f.fn.pjax=function(){return this},f.pjax=i,f.pjax.enable=P,f.pjax.disable=f.noop,f.pjax.click=f.noop,f.pjax.submit=f.noop,f.pjax.reload=function(){window.location.reload()},f(window).off("popstate.pjax",o)}"state"in f.Event.prototype||f.event.addProp("state"),f.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),(f.support.pjax?P:A)()}(jQuery); var woodmartThemeModule={};!function(m){woodmartThemeModule.supports_html5_storage=!1;try{woodmartThemeModule.supports_html5_storage="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wd","test"),window.sessionStorage.removeItem("wd")}catch(e){woodmartThemeModule.supports_html5_storage=!1}woodmartThemeModule.$window=m(window),woodmartThemeModule.$document=m(document),woodmartThemeModule.$body=m("body"),woodmartThemeModule.windowWidth=woodmartThemeModule.$window.width(),woodmartThemeModule.removeURLParameter=function(e,o){var t=e.split("?");if(2<=t.length){for(var n=encodeURIComponent(o)+"=",d=t[1].split(/[&;]/g),a=d.length;0').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); !function(t){woodmartThemeModule.ajaxFilters=function(){var e,o;!woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")||void 0===t.fn.pjax||woodmartThemeModule.$body.hasClass("single-product")||woodmartThemeModule.$body.hasClass("elementor-editor-active")||0===t('.products[data-source="main_loop"]').length||(e=!1,woodmartThemeModule.$body.on("click",".post-type-archive-product .products-footer .woocommerce-pagination a",function(){o(!0)}),woodmartThemeModule.$document.pjax(woodmart_settings.ajax_links,".main-page-wrapper",{timeout:woodmart_settings.pjax_timeout,scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),"click"===woodmart_settings.price_filter_action?woodmartThemeModule.$document.on("click",".widget_price_filter form .button",function(){var o=t(".widget_price_filter form");return t.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:o.attr("action"),data:o.serialize(),scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}}),!1}):"submit"===woodmart_settings.price_filter_action&&woodmartThemeModule.$document.on("submit",".widget_price_filter form",function(o){t.pjax.submit(o,".main-page-wrapper")}),woodmartThemeModule.$document.on("pjax:error",function(o,e,t){console.log("pjax error "+t)}),woodmartThemeModule.$document.on("pjax:start",function(){var o=t(".site-content");o.removeClass("ajax-loaded"),o.addClass("ajax-loading"),woodmartThemeModule.$document.trigger("wdPjaxStart"),woodmartThemeModule.$window.trigger("scroll.loaderVerticalPosition")}),woodmartThemeModule.$document.on("pjax:complete",function(){woodmartThemeModule.$window.off("scroll.loaderVerticalPosition"),o(!1),woodmartThemeModule.$document.trigger("wood-images-loaded"),t(".wd-scroll-content").on("scroll",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),"undefined"!=typeof woodmart_wpml_js_data&&woodmart_wpml_js_data.languages&&t.each(woodmart_wpml_js_data.languages,function(o,e){t(".wpml-ls-item-"+e.code+" .wpml-ls-link").attr("href",e.url)})}),woodmartThemeModule.$document.on("pjax:beforeReplace",function(){t(".filters-area").hasClass("filters-opened")&&"yes"===woodmart_settings.shop_filters_close&&(e=!0,woodmartThemeModule.$body.addClass("body-filters-opened"))}),woodmartThemeModule.$document.on("wdShopPageInit",function(){var o=t(".site-content");e&&(t(".filters-area").css("display","block"),woodmartThemeModule.openFilters(200),e=!1),o.removeClass("ajax-loading"),o.addClass("ajax-loaded")}),o=function(o){if("no"===woodmart_settings.ajax_scroll&&!1===o)return!1;o=t(woodmart_settings.ajax_scroll_class).offset().top-woodmart_settings.ajax_scroll_offset;t("html, body").stop().animate({scrollTop:o},400)})},t(document).ready(function(){woodmartThemeModule.ajaxFilters()}),window.addEventListener("popstate",function(){woodmartThemeModule.ajaxFilters()})}(jQuery); !function(e){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.sortByWidget()}),woodmartThemeModule.sortByWidget=function(){var o;woodmartThemeModule.$body.hasClass("woodmart-ajax-shop-on")&&void 0!==e.fn.pjax&&((o=e(".woocommerce-ordering")).on("change","select.orderby",function(){var o=e(this).closest("form");o.find('[name="_pjax"]').remove(),e.pjax({container:".main-page-wrapper",timeout:woodmart_settings.pjax_timeout,url:"?"+o.serialize(),scrollTo:!1,renderCallback:function(e,o,t){woodmartThemeModule.removeDuplicatedStylesFromHTML(o,function(o){e.html(o),t(),woodmartThemeModule.$document.trigger("wdShopPageInit"),woodmartThemeModule.$document.trigger("wood-images-loaded")})}})}),o.on("submit",function(o){o.preventDefault(o)}))},e(document).ready(function(){woodmartThemeModule.sortByWidget()}),window.addEventListener("popstate",function(){woodmartThemeModule.sortByWidget()})}(jQuery); !function(o){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.shopPageInit()}),woodmartThemeModule.shopPageInit=function(){woodmartThemeModule.clickOnScrollButton(woodmartThemeModule.shopLoadMoreBtn,!1,woodmart_settings.infinit_scroll_offset),o("body > .tooltip").remove(),woodmartThemeModule.$body.on("updated_wc_div",function(){woodmartThemeModule.$document.trigger("wood-images-loaded")}),woodmartThemeModule.$document.trigger("resize.vcRowBehaviour")}}(jQuery); !function(a){woodmartThemeModule.clickOnScrollButton=function(t,n,o){var e,i;"function"==typeof a.fn.waypoint&&0!==(e=a(t)).length&&(e.trigger("wd-waypoint-destroy"),o=o||0,i=new Waypoint({element:e[0],handler:function(){e.trigger("click")},offset:function(){return woodmartThemeModule.$window.outerHeight()+parseInt(o)}}),e.data("waypoint-inited",!0).off("wd-waypoint-destroy").on("wd-waypoint-destroy",function(){e.data("waypoint-inited")&&(i.destroy(),e.data("waypoint-inited",!1))}))}}(jQuery); !function(e){woodmartThemeModule.$document.on("wdShopPageInit wdBackHistory",function(){woodmartThemeModule.backHistory()}),woodmartThemeModule.backHistory=function(){e(".wd-back-btn > a").on("click",function(o){o.preventDefault(),history.go(-1),setTimeout(function(){e(".filters-area").removeClass("filters-opened").stop().hide(),woodmartThemeModule.$window.width()<=1024&&e(".wd-nav-product-cat").removeClass("categories-opened").stop().hide(),woodmartThemeModule.$document.trigger("wdBackHistory")},20)})},e(document).ready(function(){woodmartThemeModule.backHistory()})}(jQuery); !function(d){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.widgetCollapse()}),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.widgetCollapse()},300)),woodmartThemeModule.widgetCollapse=function(){var e=d(".main-footer .footer-widget");"yes"===woodmart_settings.collapse_footer_widgets&&0 *:not(.widget-title)").show())),d(".wd-widget-collapse .widget-title").off("click").on("click",function(){var e=d(this).parent(),o=e.find("> *:not(.widget-title)");e.hasClass("wd-opened")?(e.removeClass("wd-opened"),o.stop().slideUp(200)):(e.addClass("wd-opened"),o.stop().slideDown(200),woodmartThemeModule.$document.trigger("wood-images-loaded"))})},d(document).ready(function(){woodmartThemeModule.widgetCollapse()}),window.addEventListener("popstate",function(){woodmartThemeModule.widgetCollapse()})}(jQuery); !function(t){woodmartThemeModule.menuStickyOffsets=function(){var d=t(".wd-sticky-nav"),n=t(".wd-close-side");function o(e,o=!0){e.addClass("wd-opened"),d.addClass("wd-opened"),n.addClass("wd-close-side-opened").addClass("wd-location-sticky-nav"),o&&d.on("mouseout",function(){s(),d.off("mouseout")})}function s(){t(".wd-header-sticky-nav").removeClass("wd-opened"),d.removeClass("wd-opened"),n.removeClass("wd-close-side-opened").removeClass("wd-location-sticky-nav")}t(".wd-sticky-nav .wd-nav-sticky.wd-nav-vertical").each(function(){var e=t(this),o=(e.on("mouseenter mousemove",function(){e.hasClass("wd-offsets-calculated")||(e.find("> .menu-item-has-children").each(function(){o(t(this))}),e.addClass("wd-offsets-calculated"))}),void 0!==woodmart_settings.clear_menu_offsets_on_resize&&"yes"!==woodmart_settings.clear_menu_offsets_on_resize||setTimeout(function(){woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){e.removeClass("wd-offsets-calculated"),e.find(" > .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3),function(e){var e=e.find(" > .wd-dropdown-menu"),o=e.innerHeight(),d=e.offset().top-woodmartThemeModule.$window.scrollTop(),n=woodmartThemeModule.$window.height();e.attr("style",""),o&&d&&n<=d+o&&e.css({top:-(d+o-n)})})}),woodmartThemeModule.$document.on("click",".wd-header-sticky-nav",function(e){e.preventDefault();e=t(this);o(e,e.hasClass("wd-close-menu-mouseout"))}),woodmartThemeModule.$document.on("mouseenter mousemove",".wd-header-sticky-nav.wd-event-hover",function(){o(t(this))}),woodmartThemeModule.$document.on("click",".wd-close-side.wd-location-sticky-nav",function(){s()})},t(document).ready(function(){woodmartThemeModule.menuStickyOffsets()})}(jQuery); !function(n){woodmartThemeModule.menuOverlay=function(){var l,e=".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-hover, .wd-sticky-nav:not(.wd-opened), .wd-header-cats.wd-with-overlay.wd-event-hover, .wd-header-my-account.wd-with-overlay, .wd-header-cart.wd-with-overlay, .wd-header-search.wd-display-dropdown.wd-with-overlay";woodmartThemeModule.$document.on("mouseleave",e,function(){n(this).parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||n(".wd-close-side").attr("class",l)}),woodmartThemeModule.$document.on("mouseenter mousemove",e,function(){var e,d,a,t,o=n(this),s=n(".wd-close-side");s.hasClass("wd-close-side-opened")||n("html").hasClass("platform-iOS")||(e=o.parents(".whb-header").length,d=o.parents(".whb-clone").length,a=o.hasClass("wd-sticky-nav"),t=o.parents(".wd-header-cats").length,l=s.attr("class"),e?(o.parents(".whb-sticked").length?s.addClass("wd-location-header-sticky"):s.addClass("wd-location-header"),t&&s.addClass("wd-location-header-cats")):d?s.addClass("wd-location-header-sticky"):a&&s.addClass("wd-location-sticky-nav"),s.addClass("wd-close-side-opened"))}),woodmartThemeModule.$document.on("click",".wd-header-nav.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay .item-level-0.menu-item-has-children.wd-event-click, .wd-header-cats.wd-with-overlay.wd-event-click",function(){var e=n(".wd-close-side"),d=n(this);d.hasClass("wd-opened")&&e.hasClass("wd-close-side-opened")||d.parents(".wd-header-cats.wd-with-overlay.wd-event-click.wd-opened").length||d.parents(".wd-header-cats.wd-with-overlay.wd-event-hover").length||e.toggleClass("wd-close-side-opened").toggleClass("wd-location-header")}),woodmartThemeModule.$document.on("click touchstart",".wd-close-side.wd-location-header",function(){n(this).removeClass("wd-location-header")})},n(document).ready(function(){woodmartThemeModule.menuOverlay()})}(jQuery); !function(m){woodmartThemeModule.menuOffsets=function(){m(".wd-header-main-nav ul.menu > li, .wd-header-secondary-nav ul.menu > li, .widget_nav_mega_menu ul.menu:not(.wd-nav-vertical) > li, .wd-header-main-nav .wd-dropdown.wd-design-aside ul > li").each(function(){var e=m(this);function d(){e.hasClass("wd-offsets-calculated")||e.parents(".wd-design-aside").length||(e.find(" > .menu-item-has-children").each(function(){var e,d,s,o,n,a,t,i,w,l;e=m(this),i=e.find(" > .wd-dropdown-menu"),w=i.outerWidth(),l=i.offset(),i.attr("style",""),w&&l&&(i.hasClass("wd-design-full-width")||i.hasClass("wd-design-aside")?(s=woodmartThemeModule.$window.width(),woodmartThemeModule.$body.hasClass("rtl")?s<=(o=s-l.left-w)+w&&i.css({right:-(d=o+w-s)}):l.left+w>=s&&(d=l.left+w-s,i.css({left:-d}))):(i.hasClass("wd-design-sized")||i.hasClass("wd-design-full-height"))&&(s=woodmart_settings.site_width,o=(s=woodmartThemeModule.$window.width() .menu-item-has-children > .wd-dropdown-menu").attr("style","")},300))},2e3)})},woodmartThemeModule.menuDropdownAside=function(){m(".wd-nav .wd-design-aside, .wd-header-cats.wd-open-dropdown .wd-nav").each(function(){var e,d=m(this).find(".menu-item");d.length&&((e=d.first()).hasClass("menu-item-has-children")||e.parents(".wd-sub-menu-wrapp").addClass("wd-empty-item"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"),d.on("mouseover",function(){var e=m(this),d=e.parents(".wd-sub-menu-wrapp");e.hasClass("wd-opened")||(e.hasClass("item-level-1")&&(e.hasClass("menu-item-has-children")?d.removeClass("wd-empty-item"):d.addClass("wd-empty-item")),e.siblings().removeClass("wd-opened").find(".wd-dropdown").removeClass("wd-opened"),e.addClass("wd-opened").find(".wd-dropdown").addClass("wd-opened"))}))})},woodmartThemeModule.$window.on("wdEventStarted",function(){setTimeout(function(){woodmartThemeModule.menuDropdownAside(),woodmartThemeModule.menuOffsets()},100)})}(jQuery); !function(d){woodmartThemeModule.menuSetUp=function(){var n=d(".wd-nav, .wd-header-cats"),o="wd-opened";function e(){woodmartThemeModule.$window.width()<=1024?n.find(" > .menu-item-has-children.wd-event-hover").each(function(){d(this).data("original-event","hover").removeClass("wd-event-hover").addClass("wd-event-click")}):n.find(" > .wd-event-click").each(function(){var e=d(this);"hover"===e.data("original-event")&&e.removeClass("wd-event-click").addClass("wd-event-hover")})}d(".mobile-nav").find("ul.wd-nav-mobile").find(" > li").has(".wd-dropdown-menu").addClass("menu-item-has-children"),woodmartThemeModule.$document.on("click",".wd-nav .wd-event-click > a, .wd-header-cats.wd-event-click > span",function(e){e.preventDefault();e=d(this);e.parent().siblings().hasClass(o)&&e.parent().siblings().removeClass(o),e.parent().toggleClass(o)}),woodmartThemeModule.$document.on("click",function(e){e=e.target;!(0]+)?%>/g,function(e){e=e.slice(2,-2);return r.find(e).length?f("
    ").append(r.find(e).first().clone()).html():void 0!==s[e]?s[e]:""})).replace(/]*>/g,""),r.after(d),(r=r.parent().find(".whb-clone")).find(".whb-row").removeClass("whb-flex-equal-sides").addClass("whb-flex-flex-middle")),o.on("scroll",function(){var e=n,s=woodmartThemeModule.$window.scrollTop(),l=woodmartThemeModule.$window.height(),o=woodmartThemeModule.$document.height(),d=(0$1").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/<(\/?strong)>/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var e,t=this,n="."+t.classes.suggestion,o=t.classes.selected,s=t.options;t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){0===d(e.target).closest("."+t.options.containerClass).length&&(t.killSuggestions(),t.disableKillerFn())},t.noSuggestionsContainer=d('
    ').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(s.containerClass),(e=d(t.suggestionsContainer)).appendTo(s.appendTo),"auto"!==s.width&&e.width(s.width),e.on("mouseover.autocomplete",n,function(){t.activate(d(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+o).removeClass(o)}),e.on("click.autocomplete",n,function(){t.select(d(this).data("index"))}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},d(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),0===e.options.minChars&&0===e.el.val().length&&e.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(e){var t=this,n=t.options;d.extend(n,e),t.isLocal=Array.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),d(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearInterval(e.onChangeInterval),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,o,s,i,a,l,r=this,u=d(r.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!r.options.forceFixPosition||(i=r.options.orientation,e=u.outerHeight(),t=r.el.outerHeight(),n={top:(l=r.el.offset()).top,left:l.left},"auto"===i&&(a=d(window).height(),o=-(s=d(window).scrollTop())+l.top-e,s=s+a-(l.top+t+e),i=Math.max(o,s)===o?"top":"bottom"),n.top+="top"===i?-e:t,c!==document.body&&(a=u.css("opacity"),r.visible||u.css("opacity",0).show(),l=u.offsetParent().offset(),n.top-=l.top,n.left-=l.left,r.visible||u.css("opacity",a).hide()),"auto"===r.options.width&&(n.width=r.el.outerWidth()-2+"px"),u.css(n))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==r||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case o:t.el.val(t.currentValue),t.hide();break;case l:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case s:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case i:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case r:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case r:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0s&&(e.suggestions=e.suggestions.slice(0,s)),e},getSuggestions:function(o){var e,t,n,s=this,i=s.options,a=i.serviceUrl;i.params[i.paramName]=o,e=i.ignoreParams?null:i.params,!1!==i.onSearchStart.call(s.element,i.params)&&("function"==typeof i.lookup?i.lookup(o,function(e){s.suggestions=e.suggestions,s.suggest(),i.onSearchComplete.call(s.element,o,e.suggestions)}):(n=s.isLocal?s.getSuggestionsLocal(o):("function"==typeof a&&(a=a.call(s.element,o)),t=a+"?"+d.param(e||{}),s.cachedResponse[t]))&&Array.isArray(n.suggestions)?(s.suggestions=n.suggestions,s.suggest(),i.onSearchComplete.call(s.element,o,n.suggestions)):s.isBadQuery(o)?i.onSearchComplete.call(s.element,o,[]):(s.abortAjax(),n={url:a,data:e,type:i.type,dataType:i.dataType},d.extend(n,i.ajaxSettings),s.currentRequest=d.ajax(n).done(function(e){s.currentRequest=null,e=i.transformResult(e,o),s.processResponse(e,o,t),i.onSearchComplete.call(s.element,o,e.suggestions)}).fail(function(e,t,n){i.onSearchError.call(s.element,o,e,t,n)})))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var e=this,t=d(e.suggestionsContainer);"function"==typeof e.options.onHide&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),d(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){var e,t,n,o,s,i,a,l,r,u,c,g;0===this.suggestions.length?this.options.showNoSuggestionNotice?this.noSuggestions():this.hide():(t=(e=this).options,n=t.groupBy,o=t.formatResult,s=e.getQuery(e.currentValue),i=e.classes.suggestion,a=e.classes.selected,l=d(e.suggestionsContainer),r=d(e.noSuggestionsContainer),u=t.beforeRender,c="",t.triggerSelectOnValidInput&&e.isExactMatch(s)?e.select(0):(d.each(e.suggestions,function(e,t){n&&(c+=function(e){e=e.data[n];return g===e?"":'
    '+(g=e)+"
    "}(t)),c+='
    '+o(t,s)+"
    "}),this.adjustContainerWidth(),r.detach(),l.html(c),"function"==typeof u&&u.call(e.element,l),e.fixPosition(),l.show(),t.autoSelectFirst&&(e.selectedIndex=0,l.scrollTop(0),l.children("."+i).first().addClass(a)),e.visible=!0,e.findBestHint()))},noSuggestions:function(){var e=d(this.suggestionsContainer),t=d(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=d(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth()-2,t.width(0t.selectedIndex?(o=s.get(t.selectedIndex),d(o).addClass(n),o):null},selectHint:function(){var e=d.inArray(this.hint,this.suggestions);this.select(e)},select:function(e){this.hide(),this.onSelect(e)},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(d(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,o,s=this,i=s.activate(e);i&&(t=d(i).outerHeight(),i=i.offsetTop,o=(n=d(s.suggestionsContainer).scrollTop())+s.options.maxHeight-t,i .wd-scroll-content"),l=o.data("post_type"),c=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",u=parseInt(o.data("price")),p=o.data("sku"),m=o.parents(".wd-search-full-screen-2").length,h=e.find(".wd-dropdown-results");0'+woodmart_settings.all_results+"
    "),w(e).removeAttr("style")},onSearchComplete:function(){o.removeClass("search-loading"),woodmartThemeModule.$document.trigger("wood-images-loaded")},formatResult:function(e,t){var t="("+(t="&"===t?"&":t).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")",a="";return e.divider&&(a+='
    '+e.divider+"
    "),s&&e.thumbnail&&(a+='
    '+e.thumbnail+"
    "),e.value&&(a=(a+='
    ')+'

    '+e.value.replace(new RegExp(t,"gi"),"$1").replace(/<(\/?strong)>/g,"<$1>")+"

    "),p&&e.sku&&(a+='

    '+e.sku+"

    "),u&&e.price&&(a+='

    '+e.price+"

    "),e.value&&(a+="
    "),e.products_not_found&&(a=''+e.value+""),m&&e.no_results&&h.addClass("wd-no-results"),h.addClass("wd-opened"),o.parents("div[class*='wd-search-full-']").addClass("wd-searched"),a}}),r.length&&(e=o.find('[type="text"]').devbridgeAutocomplete(),t=woodmart_settings.ajaxurl+"?action=woodmart_ajax_search",0 .wd-scroll-content").on("click",function(e){e.stopPropagation()})})},w(document).ready(function(){woodmartThemeModule.ajaxSearch()})}(jQuery); !function(c){woodmartThemeModule.loginSidebar=function(){var e=woodmartThemeModule.$body,o=c(".login-form-side"),n=c(".wd-close-side"),d=(c(".login-side-opener").on("click",function(e){o.length&&(e.preventDefault(),t()?d():setTimeout(function(){i()},10))}),e.on("click touchstart",".wd-close-side",function(){t()&&d()}),e.on("click",".close-side-widget",function(e){e.preventDefault(),t()&&d()}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&t()&&d()}),function(){o.removeClass("wd-opened"),n.removeClass("wd-close-side-opened")}),i=function(){o.find("form").removeClass("hidden-form"),o.addClass("wd-opened"),n.addClass("wd-close-side-opened")},t=(0 ul").length&&i(),function(){return o.hasClass("wd-opened")})},c(document).ready(function(){woodmartThemeModule.loginSidebar()})}(jQuery); !function(m){woodmartThemeModule.miniCartQuantity=function(){var i;woodmartThemeModule.$document.on("change input",".woocommerce-mini-cart .quantity .qty",function(){var t=m(this),e=t.val(),n=t.parents(".woocommerce-mini-cart-item").data("key"),a=t.attr("max"),o=woodmart_settings.cart_hash_key,r=woodmart_settings.fragment_name;clearTimeout(i),parseInt(e)>parseInt(a)&&(e=a),i=setTimeout(function(){t.parents(".mini_cart_item").addClass("wd-loading"),m.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_cart_item",item_id:n,qty:e},success:function(i){i&&i.fragments&&(m.each(i.fragments,function(t,e){var a,o,r;m(t).hasClass("widget_shopping_cart_content")?(a=m(e).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),o=m(e).find(".shopping-cart-widget-footer"),r=m(t).find('.woocommerce-mini-cart-item[data-key="'+n+'"]'),i.cart_hash?(r.replaceWith(a),m(".shopping-cart-widget-footer").replaceWith(o)):m(t).replaceWith(e)):m(t).replaceWith(e)}),woodmartThemeModule.supports_html5_storage&&(sessionStorage.setItem(r,JSON.stringify(i.fragments)),localStorage.setItem(o,i.cart_hash),sessionStorage.setItem(o,i.cart_hash),i.cart_hash&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())),woodmartThemeModule.$body.trigger("wc_fragments_refreshed"))},dataType:"json",method:"GET"})},500)})},m(document).ready(function(){woodmartThemeModule.miniCartQuantity()})}(jQuery); !function(n){woodmartThemeModule.woocommerceQuantity=function(){String.prototype.getDecimals||(String.prototype.getDecimals=function(){var t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}),woodmartThemeModule.$document.on("click",".plus, .minus",function(){var t=n(this),a=t.closest(".quantity").find(".qty"),e=parseFloat(a.val()),o=parseFloat(a.attr("max")),r=parseFloat(a.attr("min")),i=a.attr("step");e&&""!==e&&"NaN"!==e||(e=0),""!==o&&"NaN"!==o||(o=""),""!==r&&"NaN"!==r||(r=0),"any"!==i&&""!==i&&void 0!==i&&"NaN"!=parseFloat(i)||(i="1"),t.is(".plus")?o&&o<=e?a.val(o):a.val((e+parseFloat(i)).toFixed(i.getDecimals())):r&&e<=r?a.val(r):00?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})}); !function(c){woodmartThemeModule.wishlist=function(){var d="woodmart_wishlist_count",i="woodmart_wishlist_products";if(woodmartThemeModule.$body.hasClass("logged-in")&&(d+="_logged"),woodmart_settings.is_multisite&&(d+="_"+woodmart_settings.current_blog_id,i+="_"+woodmart_settings.current_blog_id),"undefined"!=typeof Cookies){var e=Cookies.get(d),t=0;if(void 0!==e)try{t=JSON.parse(e)}catch(e){console.log("cant parse cookies json")}void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded||a(t),woodmartThemeModule.$body.on("click",".wd-wishlist-btn a",function(e){var t=c(this);if(t.hasClass("added"))return!0;e.preventDefault();var o,e=t.data("product-id"),s=t.data("key");woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies?(t.addClass("loading"),void 0!==woodmart_settings.wishlist_expanded&&"yes"===woodmart_settings.wishlist_expanded&&"disable"!==woodmart_settings.wishlist_show_popup&&woodmartThemeModule.$body.hasClass("logged-in")?woodmartThemeModule.$document.trigger("wdShowWishlistGroupPopup",[e,s]):n(e,"",s)):(s={},void 0!==(o=Cookies.get(i))&&o&&(o=JSON.parse(o),Object.keys(o).length&&(s=o)),s[e]={product_id:e},a(o=Object.keys(s).length),Cookies.set(i,JSON.stringify(s),{expires:7,path:"/",secure:woodmart_settings.cookie_secure_param}),Cookies.set(d,o,{expires:7,path:"/",secure:woodmart_settings.cookie_secure_param}),l(t))}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove",function(e){e.preventDefault();var t,o=c(this),e="";o.parents(".wd-wishlist-group").length&&(e=o.parents(".wd-wishlist-group").data("group-id")),o.addClass("loading"),woodmartThemeModule.$body.hasClass("logged-in")||"undefined"==typeof Cookies||1===o.parents(".products.elements-grid").find(".product-grid-item").length?r(o.data("product-id"),e,o.parents(".wd-products-holder"),function(){o.removeClass("loading")}):(o.parents(".product-grid-item").remove(),e={},void 0!==(t=Cookies.get(i))&&t&&(e=JSON.parse(t),Object.keys(e).length&&delete e[o.data("product-id")]),a(t=Object.keys(e).length),Cookies.set(i,JSON.stringify(e),{expires:7,path:"/",secure:woodmart_settings.cookie_secure_param}),Cookies.set(d,t,{expires:7,path:"/",secure:woodmart_settings.cookie_secure_param}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-checkbox",function(e){var t=c(this),o=t.parents(".product-grid-item"),t=t.parents(".wd-products-element").siblings(".wd-wishlist-bulk-action"),s=t.find(".wd-wishlist-select-all");o.toggleClass("wd-current-product"),s.hasClass("wd-selected")&&t.hasClass("wd-visible")&&!o.hasClass("wd-current-product")&&s.removeClass("wd-selected"),o.siblings(".product").length===o.siblings(".wd-current-product").length&&o.hasClass("wd-current-product")&&s.addClass("wd-selected"),o.siblings(".wd-current-product").length||!t.hasClass("wd-visible")||o.hasClass("wd-current-product")?t.addClass("wd-visible"):t.removeClass("wd-visible")}),woodmartThemeModule.$body.on("click",".wd-wishlist-remove-action > a",function(e){e.preventDefault();var t=c(this),e=t.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products"),o=e.find(".wd-current-product"),s=[],d="";o.length&&confirm(woodmart_settings.wishlist_remove_notice)&&(t.addClass("loading"),t.parents(".wd-wishlist-group").length&&(d=t.parents(".wd-wishlist-group").data("group-id")),o.each(function(){s.push(c(this).data("id"))}),r(s,d,e,function(){t.parents(".wd-wishlist-bulk-action").removeClass("wd-visible"),t.removeClass("loading")}))}),woodmartThemeModule.$body.on("click",".wd-wishlist-select-all > a",function(e){e.preventDefault();var e=c(this).parent(),t=e.parents(".wd-wishlist-bulk-action").siblings(".wd-products-element").find(".products");e.hasClass("wd-selected")?(t.find(".product").removeClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!1),e.removeClass("wd-selected"),e.parents(".wd-wishlist-bulk-action").removeClass("wd-visible")):(t.find(".product").addClass("wd-current-product").find(".wd-wishlist-checkbox").prop("checked",!0),e.addClass("wd-selected"))}),woodmartThemeModule.$document.on("wdAddProductToWishlist",function(e,t,o,s,d){n(t,o,s,d)}),woodmartThemeModule.$document.on("wdRemoveProductToWishlist",function(e,t,o,s,d){r(t,o,s,d)}),woodmartThemeModule.$document.on("wdUpdateWishlistContent",function(e,t){var o;t=t,o=c(".wd-wishlist-content"),a(t.count),0o.width()&&(o.trigger("zoom.destroy"),o.zoom(t))}o.hasClass("thumbs-position-bottom")||o.hasClass("thumbs-position-left")?(e.on("changed.owl.carousel",function(o){i(e.find(".product-image-wrap").eq(o.item.index).find(".woocommerce-product-gallery__image"))}),i(e.find(".product-image-wrap").eq(0).find(".woocommerce-product-gallery__image"))):e.find(".product-image-wrap").each(function(){i(n(this).find(".woocommerce-product-gallery__image"))})},n(document).ready(function(){woodmartThemeModule.initZoom()})}(jQuery); !function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(a){"use strict";var o,r=window.Slick||{};o=0,(r=function(i,e){var t=this;t.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(i),appendDots:a(i),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(i,e){return a('