!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(o){"use strict";var n=!1;return o(document).on("mouseup",function(){n=!1}),o.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(e){if(!0===o.data(e.target,t.widgetName+".preventClickEvent"))return o.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){var t,i,s;if(!n)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),i=1===(this._mouseDownEvent=e).which,s=!("string"!=typeof(t=this).options.cancel||!e.target.nodeName)&&o(e.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===o.data(e.target,this.widgetName+".preventClickEvent")&&o.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),n=!0)),!0},_mouseMove:function(e){if(this._mouseMoved){if(o.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&o.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,n=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../keycode","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.slider",o.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t=this.options,i=this.element.find(".ui-slider-handle"),s=[],a=t.values&&t.values.length||1;for(i.length>a&&(i.slice(a).remove(),i=i.slice(0,a)),e=i.length;e<a;e++)s.push("<span tabindex='0'></span>");this.handles=i.add(o(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){o(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=o("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,a,n,t,h,l=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<s||s===t&&(e===l._lastChangedValue||l.values(e)===u.min))&&(s=t,a=o(this),n=e)}),!1!==this._start(e,n))&&(this._mouseSliding=!0,this._handleIndex=n,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),t=a.offset(),h=!o(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-t.left-a.width()/2,top:e.pageY-t.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,n,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),e=e/t;return(e=1<e?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,a=this.value(),n=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),a=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),n[t]=i),i!==a&&!1!==this._trigger("slide",e,this._uiHash(t,i,n))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,a;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return e=null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var e=e.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,e,s,a,n=this.options.range,h=this.options,l=this,u=!this._animateOff&&h.animate,r={};this._hasMultipleValues()?this.handles.each(function(e){i=(l.values(e)-l._valueMin())/(l._valueMax()-l._valueMin())*100,r["horizontal"===l.orientation?"left":"bottom"]=i+"%",o(this).stop(1,1)[u?"animate":"css"](r,h.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===e&&l.range.stop(1,1)[u?"animate":"css"]({left:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:h.animate})):(0===e&&l.range.stop(1,1)[u?"animate":"css"]({bottom:i+"%"},h.animate),1===e&&l.range[u?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:h.animate}))),t=i}):(e=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(e-s)/(a-s)*100:0,r["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[u?"animate":"css"](r,h.animate),"min"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:i+"%"},h.animate),"max"===n&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:100-i+"%"},h.animate),"min"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:i+"%"},h.animate),"max"===n&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:100-i+"%"},h.animate))},_handleEvents:{keydown:function(e){var t,i,s,a=o(e.target).data("ui-slider-handle-index");switch(e.keyCode){case o.ui.keyCode.HOME:case o.ui.keyCode.END:case o.ui.keyCode.PAGE_UP:case o.ui.keyCode.PAGE_DOWN:case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(e.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(o(e.target),null,"ui-state-active"),!1!==this._start(e,a)))break;return}switch(s=this.options.step,t=i=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case o.ui.keyCode.HOME:i=this._valueMin();break;case o.ui.keyCode.END:i=this._valueMax();break;case o.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case o.ui.keyCode.UP:case o.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+s);break;case o.ui.keyCode.DOWN:case o.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-s)}this._slide(e,a,i)},keyup:function(e){var t=o(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),this._removeClass(o(e.target),null,"ui-state-active"))}}})});
!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var o,e=t.ui.mouse.prototype,u=e._mouseInit,n=e._mouseDestroy;e._touchStart=function(t){!o&&this._mouseCapture(t.originalEvent.changedTouches[0])&&(o=!0,this._touchMoved=!1,c(t,"mouseover"),c(t,"mousemove"),c(t,"mousedown"))},e._touchMove=function(t){o&&(this._touchMoved=!0,c(t,"mousemove"))},e._touchEnd=function(t){o&&(c(t,"mouseup"),c(t,"mouseout"),this._touchMoved||c(t,"click"),o=!1)},e._mouseInit=function(){this.element.on({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),u.call(this)},e._mouseDestroy=function(){this.element.off({touchstart:t.proxy(this,"_touchStart"),touchmove:t.proxy(this,"_touchMove"),touchend:t.proxy(this,"_touchEnd")}),n.call(this)}}function c(t,o){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var e=t.originalEvent.changedTouches[0],u=document.createEvent("MouseEvents");u.initMouseEvent(o,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(u)}}}(jQuery);
!function(n,r){var e={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},t=Array.prototype.map,o=Array.isArray,a=Object.prototype.toString;function i(n){return!!(""===n||n&&n.charCodeAt&&n.substr)}function u(n){return o?o(n):"[object Array]"===a.call(n)}function c(n){return n&&"[object Object]"===a.call(n)}function s(n,r){var e;for(e in n=n||{},r=r||{})r.hasOwnProperty(e)&&null==n[e]&&(n[e]=r[e]);return n}function f(n,r,e){var o,a,i=[];if(!n)return i;if(t&&n.map===t)return n.map(r,e);for(o=0,a=n.length;o<a;o++)i[o]=r.call(e,n[o],o,n);return i}function p(n,r){return n=Math.round(Math.abs(n)),isNaN(n)?r:n}function l(n){var r=e.settings.currency.format;return"function"==typeof n&&(n=n()),i(n)&&n.match("%v")?{pos:n,neg:n.replace("-","").replace("%v","-%v"),zero:n}:n&&n.pos&&n.pos.match("%v")?n:i(r)?e.settings.currency.format={pos:r,neg:r.replace("%v","-%v"),zero:r}:r}var m,d=e.unformat=e.parse=function(n,r){if(u(n))return f(n,function(n){return d(n,r)});if("number"==typeof(n=n||0))return n;r=r||e.settings.number.decimal;var t=new RegExp("[^0-9-"+r+"]",["g"]),o=parseFloat((""+n).replace(/\((.*)\)/,"-$1").replace(t,"").replace(r,"."));return isNaN(o)?0:o},g=e.toFixed=function(n,r){r=p(r,e.settings.number.precision);var t=Math.pow(10,r);return(Math.round(e.unformat(n)*t)/t).toFixed(r)},h=e.formatNumber=e.format=function(n,r,t,o){if(u(n))return f(n,function(n){return h(n,r,t,o)});n=d(n);var a=s(c(r)?r:{precision:r,thousand:t,decimal:o},e.settings.number),i=p(a.precision),l=n<0?"-":"",m=parseInt(g(Math.abs(n||0),i),10)+"",y=m.length>3?m.length%3:0;return l+(y?m.substr(0,y)+a.thousand:"")+m.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+a.thousand)+(i?a.decimal+g(Math.abs(n),i).split(".")[1]:"")},y=e.formatMoney=function(n,r,t,o,a,i){if(u(n))return f(n,function(n){return y(n,r,t,o,a,i)});n=d(n);var m=s(c(r)?r:{symbol:r,precision:t,thousand:o,decimal:a,format:i},e.settings.currency),g=l(m.format);return(n>0?g.pos:n<0?g.neg:g.zero).replace("%s",m.symbol).replace("%v",h(Math.abs(n),p(m.precision),m.thousand,m.decimal))};e.formatColumn=function(n,r,t,o,a,m){if(!n)return[];var g=s(c(r)?r:{symbol:r,precision:t,thousand:o,decimal:a,format:m},e.settings.currency),y=l(g.format),b=y.pos.indexOf("%s")<y.pos.indexOf("%v"),v=0;return f(f(n,function(n,r){if(u(n))return e.formatColumn(n,g);var t=((n=d(n))>0?y.pos:n<0?y.neg:y.zero).replace("%s",g.symbol).replace("%v",h(Math.abs(n),p(g.precision),g.thousand,g.decimal));return t.length>v&&(v=t.length),t}),function(n,r){return i(n)&&n.length<v?b?n.replace(g.symbol,g.symbol+new Array(v-n.length+1).join(" ")):new Array(v-n.length+1).join(" ")+n:n})},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=e),exports.accounting=e):"function"==typeof define&&define.amd?define([],function(){return e}):(e.noConflict=(m=n.accounting,function(){return n.accounting=m,e.noConflict=void 0,e}),n.accounting=e)}(this);
jQuery(function(e){if("undefined"==typeof woocommerce_price_slider_params)return!1;function r(){e("input#min_price, input#max_price").hide(),e(".price_slider, .price_label").show();var r=e(".price_slider_amount #min_price").data("min"),i=e(".price_slider_amount #max_price").data("max"),c=e(".price_slider_amount").data("step")||1,o=e(".price_slider_amount #min_price").val(),_=e(".price_slider_amount #max_price").val();e(".price_slider:not(.ui-slider)").slider({range:!0,animate:!0,min:r,max:i,step:c,values:[o,_],create:function(){e(".price_slider_amount #min_price").val(o),e(".price_slider_amount #max_price").val(_),e(document.body).trigger("price_slider_create",[o,_])},slide:function(r,i){e("input#min_price").val(i.values[0]),e("input#max_price").val(i.values[1]),e(document.body).trigger("price_slider_slide",[i.values[0],i.values[1]])},change:function(r,i){e(document.body).trigger("price_slider_change",[i.values[0],i.values[1]])}})}e(document.body).on("price_slider_create price_slider_slide",function(r,i,c){e(".price_slider_amount span.from").html(accounting.formatMoney(i,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),e(".price_slider_amount span.to").html(accounting.formatMoney(c,{symbol:woocommerce_price_slider_params.currency_format_symbol,decimal:woocommerce_price_slider_params.currency_format_decimal_sep,thousand:woocommerce_price_slider_params.currency_format_thousand_sep,precision:woocommerce_price_slider_params.currency_format_num_decimals,format:woocommerce_price_slider_params.currency_format})),e(document.body).trigger("price_slider_updated",[i,c])}),r(),e(document.body).on("init_price_filter",r),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){r()})});
!function(s){woodmartThemeModule.$document.on("wdBackHistory wdShopPageInit",function(){woodmartThemeModule.woocommercePriceSlider()}),woodmartThemeModule.woocommercePriceSlider=function(){var e=s(".price_slider_amount"),a=s(".price_slider_amount #min_price"),i=s(".price_slider_amount #max_price"),r=s(".products"),t=new URL(window.location.href);if("undefined"==typeof woocommerce_price_slider_params||a.length<1||!s.fn.slider)return!1;var o,d,n,c,m=s(".price_slider");void 0===m.slider("instance")&&(s("input#min_price, input#max_price").hide(),s(".price_slider, .price_label").show(),o=parseInt(a.data("min")),d=parseInt(i.data("max")),e=e.data("step")||1,n=parseInt(t.searchParams.has("min_price")?t.searchParams.get("min_price"):o,10),c=parseInt(t.searchParams.has("max_price")?t.searchParams.get("max_price"):d,10),r.attr("data-min_price")&&0<r.attr("data-min_price").length&&(n=parseInt(r.attr("data-min_price"),10)),r.attr("data-max_price")&&0<r.attr("data-max_price").length&&(c=parseInt(r.attr("data-max_price"),10)),m.slider({range:!0,animate:!0,min:o,max:d,step:e,values:[n,c],create:function(){a.val(n),i.val(c),woodmartThemeModule.$body.trigger("price_slider_create",[n,c])},slide:function(e,r){a.val(r.values[0]),i.val(r.values[1]),woodmartThemeModule.$body.trigger("price_slider_slide",[r.values[0],r.values[1]])},change:function(e,r){woodmartThemeModule.$body.trigger("price_slider_change",[r.values[0],r.values[1]])}}),setTimeout(function(){woodmartThemeModule.$body.trigger("price_slider_create",[n,c]),1<m.find(".ui-slider-range").length&&m.find(".ui-slider-range").first().remove()},10))},s(document).ready(function(){woodmartThemeModule.woocommercePriceSlider()})}(jQuery);
!function(r){woodmartThemeModule.$document.on("wdPjaxStart wdBackHistory wdShopPageInit",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.hiddenSidebar()}),woodmartThemeModule.hiddenSidebar=function(){var e=woodmartThemeModule.$body.hasClass("rtl")?"right":"left",d=r(".wd-content-layout"),o=woodmartThemeModule.windowWidth,a=("undefined"!=typeof elementor&&elementor.hasOwnProperty("$preview")&&elementor.$preview.width()&&(o=elementor.$preview.width()),(d.hasClass("wd-sidebar-hidden-lg")&&1024<o||d.hasClass("wd-sidebar-hidden-md-sm")&&o<=1024&&768<o||d.hasClass("wd-sidebar-hidden-sm")&&o<=768)&&(r(".wd-sidebar").addClass("wd-side-hidden wd-"+e+" wd-scroll"),r(".wd-sidebar .widget-area").addClass("wd-scroll-content")),woodmartThemeModule.$body.off("click",".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar").on("click",".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar",function(e){e.preventDefault();var e=r(".wd-show-sidebar-btn, .wd-sidebar-opener"),d=r(".wd-sidebar");d.length&&(d.hasClass("wd-opened")?(e.removeClass("wd-opened"),woodmartThemeModule.hideShopSidebar()):(r(this).addClass("wd-opened"),a()))}),woodmartThemeModule.$body.on("click touchstart",".wd-close-side",function(){woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$body.on("click",".close-side-widget",function(e){e.preventDefault(),woodmartThemeModule.hideShopSidebar()}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&woodmartThemeModule.hideShopSidebar()}),function(){var e=r(".wd-sidebar");e.addClass("wd-opened"),e.trigger("wdOpenSide"),r(".wd-close-side").addClass("wd-close-side-opened")});woodmartThemeModule.$document.trigger("wdHiddenSidebarsInited")},woodmartThemeModule.hideShopSidebar=function(){var e=r(".wd-sidebar");e.hasClass("wd-opened")&&(e.trigger("wdCloseSide"),e.removeClass("wd-opened"),r(".wd-close-side").removeClass("wd-close-side-opened"),r(".wd-show-sidebar-btn, .wd-sidebar-opener, .wd-toolbar-sidebar").removeClass("wd-opened"))},r(document).ready(function(){woodmartThemeModule.hiddenSidebar()})}(jQuery);
!function(x){x.each(["frontend/element_ready/wd_products.default","frontend/element_ready/wd_products_tabs.default"],function(t,a){woodmartThemeModule.wdElementorAddAction(a,function(){woodmartThemeModule.quickShopVariationForm()})}),woodmartThemeModule.quickShopVariationForm=function(){function y(a){!1===a.data("product_variations")&&(a.addClass("wd-loading"),x.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_load_available_variations",id:a.data("product_id")},method:"get",dataType:"json",success:function(t){0<t.length&&a.data("product_variations",t).trigger("reload_product_variations")},complete:function(){a.removeClass("wd-loading");var t=a.find("select.wd-changes-variation-image");t.length&&t.first().val().length&&t.first().trigger("change")},error:function(){console.log("ajax error")}}))}woodmartThemeModule.$document.on("mouseenter touchstart mousemove",".wd-product.product-type-variable",function(){var e,i,n,d=x(this),s=d.find(".variations_form"),o=d.find(".button.product_type_variable"),r=d.find(".price"),a=d.find(".wd-product-img-link > img, .wd-product-img-link > picture > img"),l=d.find(".wd-product-img-link picture source"),t=a.attr("src"),c=a.attr("srcset")?a.attr("srcset"):null,u=a.attr("sizes")?a.attr("sizes"):null,m=o.first().text(),h=woodmart_settings.add_to_cart_text,v=r.first().clone(),f=d.find(".wd-product-stock"),g=d.find(".wd-product-sku").find("span").not(".wd-label"),w=o.siblings(".quantity").find("input[name=quantity]"),_=w.first().attr("max"),p=w.first().attr("min");function b(t){t.data("product_variations")&&(o.find("span.wd-action-text").text(m),o.data("purchasable",!1),d.removeClass("wd-variation-active"),t.find(".variations select").each(function(){var t=x(this),a=t.parent().find(".wd-swatches-product"),e=t.html(),e=x(e);t.val()&&(o.find("span.wd-action-text").text(h),o.data("purchasable",!0),d.addClass("wd-variation-active")),a.find(".wd-swatch").removeClass("wd-enabled").addClass("wd-disabled"),e.each(function(){var t=x(this).val();x(this).hasClass("enabled")?a.find('div[data-value="'+t+'"]').removeClass("wd-disabled").addClass("wd-enabled"):a.find('div[data-value="'+t+'"]').addClass("wd-disabled").removeClass("wd-enabled")})}),setTimeout(function(){woodmartThemeModule.$document.trigger("wdProductHoverContentRecalc",[d])}))}function C(t){t.image&&(t.image.thumb_src&&1<t.image.thumb_src.length&&(d.addClass("wd-loading-image"),a.attr("src",t.image.thumb_src),a.attr("srcset")&&!t.image.srcset&&a.attr("srcset",t.image.thumb_src),a.one("load",function(){d.removeClass("wd-loading-image")})),1<t.image.srcset.length&&(a.attr("srcset",t.image.srcset),0<l.length)&&l.attr("srcset",t.image.srcset),1<t.image.sizes.length)&&(a.attr("sizes",t.image.sizes),0<l.length)&&l.attr("image_sizes",t.image.sizes)}!s.length||s.hasClass("wd-variations-inited")||"undefined"!=typeof elementorFrontend&&elementorFrontend.isEditMode()||(f.length&&(e=f.first().text(),i=f.attr("class")),g.length&&(n=g.first().text()),s.wc_variation_form(),s.addClass("wd-variations-inited"),s.on("click",".wd-swatch",function(){var e,t=x(this),a=t.parents(".wd-product"),i=t.data("value"),n=t.parent().siblings("select");s.hasClass("wd-form-inited")||(s.addClass("wd-form-inited"),y(s)),b(s),t.parents(".variations_form.wd-clear-double").length&&t.hasClass("wd-active")?(n.val("").trigger("change"),t.removeClass("wd-active"),e=!1,a.find(".wd-swatch").each(function(t,a){if(x(a).hasClass("wd-active"))return e=!0}),e||a.trigger("wdImagesGalleryInLoopOn",a)):t.hasClass("wd-active")||t.hasClass("wd-disabled")||(n.val(i).trigger("change"),t.parent().find(".wd-active").removeClass("wd-active"),t.addClass("wd-active"),a.trigger("wdImagesGalleryInLoopOff",a),b(s))}),s.on("change","select",function(){if(s.parents(".wd-products.grid-masonry").length&&void 0!==x.fn.isotope&&setTimeout(function(){s.parents(".wd-products.grid-masonry").isotope("layout")},100),s.hasClass("wd-form-inited"))return!1;s.addClass("wd-form-inited"),y(s)}),s.on("found_variation",function(t,a){1<a.price_html.length&&(r.replaceWith(a.price_html),r=d.find(".price")),C(a),f.length&&(a.availability_html?(f.removeClass("in-stock available-on-backorder out-of-stock"),0<a.availability_html.search("available-on-backorder")?f.addClass("available-on-backorder"):0<a.availability_html.search("out-of-stock")?f.addClass("out-of-stock"):f.addClass("in-stock"),f.text(a.availability_html.replace(/<\/?[^>]+(>|$)/g,""))):(f.attr("class",i),f.text(e))),g.length&&(a.sku?g.text(a.sku):g.text(n)),w.length&&(w.val(p),w.attr("max",a.max_qty).attr("min",a.min_qty))}),s.on("show_variation",function(){s.find(".wd-swatch").length&&!s.find(".wd-swatch.wd-active").length&&s.find("select").each(function(){var t=x(this),a=t.val();a&&t.siblings(".wd-swatches-product").find('.wd-swatch[data-value="'+a+'"]').addClass("wd-active")}),s.addClass("variation-swatch-selected"),woodmartThemeModule.$document.trigger("wdProductHoverContentRecalc",[d])}),s.on("woocommerce_update_variation_values",function(){b(s)}),s.on("hide_variation",function(){r.replaceWith(v),r=d.find(".price"),o.find("span.wd-action-text").text(m),a.attr("src")!==t&&(a.attr("src",t),a.attr("srcset",c),a.attr("sizes",u),0<l.length)&&l.attr("srcset")!==c&&(l.attr("srcset",c),l.attr("image_sizes",u)),f.length&&(f.attr("class",i),f.text(e)),g.length&&g.text(n),w.length&&w.attr("max",_).attr("min",p)}),s.on("click",".reset_variations",function(){s.find(".wd-active").removeClass("wd-active"),s.removeClass("wd-form-inited"),d.trigger("wdImagesGalleryInLoopOn",d)}),s.on("reset_data",function(){var t=x(this),a=!0;s.find(".variations select").each(function(){0===(t.val()||"").length&&(a=!1)}),a&&s.find(".wd-active").removeClass("wd-active"),s.removeClass("variation-swatch-selected"),b(s)}),s.find("select.wd-changes-variation-image").on("change",function(){var t=x(this),e=t.attr("name"),i=t.val(),t=s.data("product_variations"),a=!1;s.find("select").each(function(){if(!x(this).val())return!(a=!0)}),a&&i&&t&&x.each(t,function(t,a){if(a.attributes[e]===i)return setTimeout(function(){C(a)}),!1})}),o.on("click",function(t){var a=s.find(".single_add_to_cart_button");x(this).data("purchasable")&&a.length&&(t.preventDefault(),"undefined"!=typeof wc_add_to_cart_variation_params&&a.hasClass("disabled")?a.hasClass("wc-variation-is-unavailable")?alert(wc_add_to_cart_variation_params.i18n_unavailable_text):a.hasClass("wc-variation-selection-needed")&&alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text):(w.length&&(t=w.val())&&s.find(".single_variation_wrap .variations_button input[name=quantity]").val(t),s.trigger("submit"),o.addClass("loading"),woodmartThemeModule.$body.one("added_to_cart not_added_to_cart",function(){o.removeClass("loading")}),woodmartThemeModule.$body.one("added_to_cart",function(){o.addClass("added")})))}))})},x(document).ready(function(){woodmartThemeModule.quickShopVariationForm()})}(jQuery);
!function(r){woodmartThemeModule.addToCartAllTypes=function(){0!=woodmart_settings.ajax_add_to_cart&&(woodmartThemeModule.$body.on("submit","form.cart",function(a){var t=r(this),o=t.parents(".single-product-page");if(!((o=0===o.length?t.parents(".product-quick-view"):o).hasClass("product-type-external")||o.hasClass("product-type-zakeke")||o.hasClass("product-type-gift-card")||void 0!==a.originalEvent&&r(a.originalEvent.submitter).hasClass("wd-buy-now-btn"))){if(0<t.parents(".wd-sticky-btn-cart").length)if(t.parents(".wd-sticky-btn-cart").hasClass("wd-product-type-external"))return;a.preventDefault();var d=t.find(".single_add_to_cart_button"),o=t.serialize();o+="&action=woodmart_ajax_add_to_cart",d.val()&&(o+="&add-to-cart="+d.val()),d.removeClass("added not-added"),d.addClass("loading"),woodmartThemeModule.$body.trigger("adding_to_cart",[d,o]),r.ajax({url:woodmart_settings.ajaxurl,data:o,method:"POST",success:function(a){var t,o,e;a&&(window.location.toString().replace("add-to-cart","added-to-cart"),a.error&&a.product_url?window.location=a.product_url:"yes"===woodmart_settings.cart_redirect_after_add?window.location=woodmart_settings.cart_url:(d.removeClass("loading"),t=a.fragments||{},o=a.cart_hash,t&&(r.each(t,function(a){r(a).addClass("updating")}),r.each(t,function(a,t){r(a).replaceWith(t)})),(e=r(".woocommerce-notices-wrapper")).empty(),a.notices&&0<a.notices.indexOf("error")?(e.append(a.notices),d.addClass("not-added"),woodmartThemeModule.$body.trigger("not_added_to_cart",[t,o,d])):(void 0!==r.fn.magnificPopup&&"widget"===woodmart_settings.add_to_cart_action&&r.magnificPopup.close(),d.addClass("added"),woodmartThemeModule.$body.trigger("added_to_cart",[t,o,d]))))},error:function(){console.log("ajax adding to cart error")},complete:function(){}})}}),woodmartThemeModule.$body.on("click",".variations_form .wd-buy-now-btn",function(a){var t=r(this).siblings(".single_add_to_cart_button");"undefined"!=typeof wc_add_to_cart_variation_params&&t.hasClass("disabled")&&(a.preventDefault(),t.hasClass("wc-variation-is-unavailable")?alert(wc_add_to_cart_variation_params.i18n_unavailable_text):t.hasClass("wc-variation-selection-needed")&&alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))}))},r(document).ready(function(){woodmartThemeModule.addToCartAllTypes()})}(jQuery);